* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    /* background: linear-gradient(135deg, #D37D00 0%, #447C37 100%); */
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

p {
    margin: 0px !important;
}

.container-acceso {
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 900px; /* 1100px*/
    width: 100%;
    animation: slideIn 0.6s ease-out;
    margin: 0 auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
}

.form-section {
    padding: 35px 45px;
}

.header-title {
    text-align: center;
    margin-bottom: 30px;
}

.header-title h1 {
    font-size: 32px;
    background: linear-gradient(135deg, #D37D00 0%, #447C37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-title p {
    color: #718096;
    font-size: 15px;
}

.instruction-text {
    background: linear-gradient(135deg, rgba(211, 125, 0, 0.1) 0%, rgba(68, 124, 55, 0.1) 100%);
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #D37D00;
}

.instruction-text p {
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-controls {
    width: 100%;
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d3748;
    font-weight: 500;
    line-height: normal !important;
}

.form-controls:focus {
    outline: none;
    border-color: #D37D00;
    background: white;
    box-shadow: 0 0 0 4px rgba(211, 125, 0, 0.1);
}

.form-controls:hover {
    border-color: #cbd5e0;
}

select.form-controls {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D37D00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

input[type="date"].form-controls {
    cursor: pointer;
}

 .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-login {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #D37D00 0%, #447C37 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(211, 125, 0, 0.4);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 125, 0, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.help-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.help-section p {
    color: #718096;
    font-size: 13px;
    margin-bottom: 12px;
}

.btn-help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #D37D00;
    color: #D37D00;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-help:hover {
    background: #D37D00;
    color: white;
    transform: translateY(-2px);
}

.image-section {
    background: linear-gradient(135deg, #D37D00 0%, #447C37 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
}

.image-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.voting-illustration {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.vote-icon-large {
    font-size: 140px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.voting-illustration h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.voting-illustration p {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 10px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.security-badge {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

 .security-badge span {
    font-size: 24px;
}

.security-badge p {
    font-size: 13px;
    margin: 0;
}


@media (max-width: 968px) {
.main-content {
    grid-template-columns: 1fr;
}

.image-section {
    order: -1;
    padding: 40px 30px;
}

.vote-icon-large {
    font-size: 100px;
}

.voting-illustration h2 {
    font-size: 26px;
}

.stats-container {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 20px;
    }

    .form-section {
        padding: 35px 25px;
    }

    .header-title h1 {
        font-size: 26px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .image-section {
        padding: 30px 20px;
    }

    .vote-icon-large {
        font-size: 80px;
    }

    .voting-illustration h2 {
        font-size: 22px;
    }

    .voting-illustration p {
        font-size: 14px;
    }
    }

    @media (max-width: 480px) {
    .form-section {
        padding: 25px 20px;
    }

    .header-title h1 {
        font-size: 22px;
    }

    .form-controls {
        padding: 12px 15px;
        font-size: 14px;
    }

    .btn-login {
        padding: 14px;
        font-size: 14px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 22px;
    }
}

 #modal-loading {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* Fondo con opacidad */
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
  }

  /* Contenedor interno */
  .loading-content {
    text-align: center;
    color: #fff;
    animation: fadeIn 0.3s ease;
  }

  /* Logo Claro */
  .loading-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* background-image: url('/images/logo.png'); */
    background-size: cover;
    background-position: center;
    background-color: #fff;  
    margin: 0 auto 15px auto;
    opacity: 0.9;
    animation: pulse 1.5s infinite;
  }

  /* Texto */
  .loading-text {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  }

  .titleNameModal{
    font-weight: bold !important;
  }

  .modal-dialog {
    display: flex;
    justify-content: center; /* centra horizontal */
    align-items: center;     /* centra vertical */
}

.modal img {
    max-width: 90vw;  /* ancho máximo del viewport */
    max-height: 90vh; /* alto máximo del viewport */
    height: auto;
}

.modal .modal-content {
    text-align: center;
}