﻿/* =========================================================
   ACCESO A OFICINA VIRTUAL - ESTILOS EXACTOS AL PROTOTIPO
   ========================================================= */
.office-access-section {
    background: #00315E; /* Azul oscuro profundo del fondo */
    padding: 45px 0 55px 0;
    color: #ffffff;
}

.office-access-header {
    text-align: center;
    margin-bottom: 28px;
}

    .office-access-header .section-title {
        font-size: 1.8rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
        color: #ffffff;
    }

    .office-access-header .highlight {
        color: #ebb934; /* Dorado brillante prototipo */
    }

    .office-access-header p {
        color: #cbd5e1;
        font-size: 0.88rem;
        margin: 0;
    }

/* Grid Principal */
.office-access-grid {
    display: grid;
    grid-template-columns: 280px 35px 1fr;
    gap: 15px;
    align-items: stretch; /* Estira las columnas para igualar alturas */
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------------------------------------------------------
   TARJETA IZQUIERDA: CREDENCIALES (FORMULARIO BLANCO)
   --------------------------------------------------------- */
.credentials-card {
    background: #ffffff;
    padding: 24px 20px 18px 20px;
    border-radius: 14px;
    color: #333333;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .credentials-card .form-group {
        position: relative;
        margin-bottom: 12px;
    }

    .credentials-card .input-icon-left {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #1e293b;
        font-size: 0.9rem;
        z-index: 2;
        pointer-events: none;
    }

    .credentials-card .input-icon-right {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 0.9rem;
        z-index: 2;
        cursor: pointer;
    }

    .credentials-card .form-control {
        width: 100%;
        padding: 10px 36px 10px 38px !important;
        font-size: 0.85rem;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        background-color: #ffffff;
        color: #1e293b;
        outline: none;
        box-sizing: border-box;
    }

        .credentials-card .form-control:focus {
            border-color: #eab308;
            box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
        }

/* Botón Dorado de Ingresar en la Tarjeta Blanca */
.btn-ingresar {
    width: 100%;
    margin: 6px 0 14px 0;
    background: linear-gradient(180deg, #facc15 0%, #eab308 50%, #ca8a04 100%);
    color: #0f172a !important;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(202, 138, 4, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    box-sizing: border-box;
}

    .btn-ingresar:hover {
        background: linear-gradient(180deg, #fde047 0%, #facc15 50%, #eab308 100%);
        transform: translateY(-1px);
    }

/* Opciones inferiores alineadas horizontalmente */
.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #334155;
}

    .login-options-row .remember {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }

    .login-options-row .forgot-link {
        color: #2563eb;
        text-decoration: underline;
        font-weight: 600;
    }

/* Flechas conectoras centrales */
.access-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ebb934;
    font-size: 1.3rem;
}

/* ---------------------------------------------------------
   TARJETAS DERECHAS (TARJETAS CLARAS CON BORDES BLANCOS)
   --------------------------------------------------------- */
.access-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: stretch;
}

/* Estructura de la columna de tarjeta + caja inferior */
.card-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.access-card {
    width: 100%;
    height: 100%; /* Ocupa todo el alto de la columna */
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

/* Colores de Fondo Claros idénticos al Prototipo */
.card-ciclo1 {
    background: linear-gradient(180deg, #FCDF97 0%, #ffffff 90%);
}

.card-ciclo2 {
    background: linear-gradient(180deg, #BBDAFD 0%, #ffffff 90%);
}

.card-empresario {
    background: linear-gradient(180deg, #C8EFBD 0%, #ffffff 90%);
}

/* Badges Circulares Superior */
.badge-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

    .badge-circle.gold {
        background: linear-gradient(180deg, #eab308, #ca8a04);
    }

    .badge-circle.blue {
        background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    }

    .badge-circle.green {
        background: linear-gradient(180deg, #22c55e, #15803d);
    }

.access-card h3 {
    font-size: 1.50rem;
    font-weight: 900;
    margin: 2px 0 0 0;
    letter-spacing: 0.5px;
}

.card-ciclo1 h3 {
    color: #854d0e;
}

.card-ciclo2 h3 {
    color: #1e40af;
}

.card-empresario h3 {
    color: #166534;
}

/* Subtexto estandarizado con altura fija para alineación */
.access-card .subtext {
    font-size: 1.0rem;
    font-weight: 600;
    margin-bottom: 8px;
    height: 28px; /* Ocupa exactamente 2 líneas en todas las tarjetas */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.card-ciclo1 .subtext {
    color: #a16207;
}

.card-ciclo2 .subtext {
    color: #1d4ed8;
}

.card-empresario .subtext {
    color: #15803d;
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.card-ciclo1 .card-icon {
    color: #ca8a04;
}

.card-ciclo2 .card-icon {
    color: #1d4ed8;
}

.card-empresario .card-icon {
    color: #15803d;
}

/* Botones de Selección alineados automáticamente al fondo de la tarjeta */
.btn-access {
    width: 100%;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: all 0.2s;
    box-sizing: border-box;
    margin-top: auto; /* Empuja el botón al fondo de la tarjeta */
}

.btn-gold {
    background: linear-gradient(180deg, #ca8a04 0%, #854d0e 100%);
}

.btn-blue {
    background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%);
}

.btn-green {
    background: linear-gradient(180deg, #15803d 0%, #14532d 100%);
}

.btn-access:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* Flechas conectoras hacia las cajas informativas inferiores */
.down-arrow {
    color: #ffffff;
    font-size: 0.8rem;
    margin: 8px 0 4px 0;
}

/* Cajas informativas punteadas en el fondo azul con altura fija pareja */
.access-info-box {
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.68rem;
    color: #ffffff;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    height: 52px; /* Altura estandarizada idéntica para las 3 cajas */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------------------------------
   ADAPTACIÓN RESPONSIVA (MÓVILES Y TABLETS)
   --------------------------------------------------------- */
@media (max-width: 991px) {
    .office-access-section {
        padding: 25px 15px 35px 15px;
    }

    .office-access-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 380px;
    }

    /* FLECHAS VISIBLES EN MÓVIL Y TABLET APUNTANDO HACIA ABAJO */
    .access-arrows {
        display: flex !important;
        flex-direction: row; /* Mantiene las dos flechas en fila horizontal si deseas o vertical */
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin: 5px 0;
        color: #ebb934;
        font-size: 1.4rem;
    }

        /* Rota los chevrons 90 grados para que apunten hacia abajo */
        .access-arrows i {
            transform: rotate(90deg);
            display: inline-block;
        }

    .access-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .credentials-card {
        padding: 20px 16px;
    }

    .access-card .subtext {
        height: auto;
    }

    .access-info-box {
        height: auto;
        min-height: 50px;
    }

    .btn-access,
    .btn-ingresar {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================================
   OVERLAY DE CARGA (OFICINA VIRTUAL)
   ========================================================= */
.office-access-section {
    position: relative; /* CRÍTICO: Define el límite del overlay dentro de la sección */
}

.loading-overlay {
    position: absolute; /* Se acopla a los bordes de .office-access-section */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 49, 94, 0.85); /* Azul corporativo #00315E traslúcido */
    backdrop-filter: blur(3px); /* Fondo difuminado sutil */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 100;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px; /* Se adapta si la sección tiene esquinas redondeadas */
}

    /* Tamaño del spinner */
    .loading-overlay .spinner-border {
        width: 2.8rem;
        height: 2.8rem;
        border-width: 0.25em;
    }