﻿/*==================================================
  LOGIN + CONTACTO (yirehmana)
  Alineado a la grilla principal (.container-xl)
==================================================*/

/* Contenedor principal de la sección */
.login-contact-section {
  /*  width: 100%;
    padding-top: 10px;*/
   /* padding-bottom: 30px;*/
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Grilla principal (1.85fr a 1fr coincide con la proporción de Testimonios vs Video) */
.login-contact-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1.85fr 1fr;
    gap: 0; /* <--- Elimina el espacio entre las dos tarjetas */
    border-radius: 12px; /* <--- Esquinas redondeadas del contenedor completo */
    overflow: hidden; /* <--- Mantiene los fondos recortados dentro de la tarjeta */
    align-items: stretch;
}

/*--------------------------------------------------
  BLOQUE IZQUIERDO: FONDO OSCURO (LOGIN + CTA)
--------------------------------------------------*/
/*==================================================
  AJUSTE DE ESPACIO SUPERIOR INTERNO
==================================================*/

/* 1. Reducimos el padding interno del bloque oscuro */
.dark-block {
    background: #05111A;
    border-radius: 12px 12px 0 12px;
    display: grid;
    grid-template-columns: 1.25fr auto 0.75fr;
    gap: 25px;
    padding: 15px 25px 20px 25px; /* <--- Cambiamos top a 15px (antes 25px) */
    align-items: center;
}

    /* 2. Pegamos los títulos de las dos secciones más hacia arriba */
    .dark-block .section-title,
    .section-title-dark {
        font-size: 1.15rem;
        font-weight: 800;
        margin-top: 0; /* <--- Quita cualquier margen por defecto */
        margin-bottom: 10px; /* <--- Compacta el espacio hacia los inputs/lista */
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .dark-block .section-title {
        color: #ffffff;
    }

.section-title-dark {
    color: #05111A;
}

/* 3. Reducimos el padding superior en el bloque claro */
.light-block {
    background: #EEF3F6;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 15px 20px 0 25px; /* <--- Cambiamos top a 15px (antes 25px) */
    position: relative;
}

.highlight {
    color: #C89B3C;
}

/* Formularios / Inputs */
.form-group {
    position: relative;
    margin-bottom: 10px;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
}

.form-control {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #1e293b;
    background: #ffffff;
    padding-left: 38px;
    padding-right: 38px;
    font-size: 0.8rem;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: #C89B3C;
    }

/* Opciones debajo del Formulario */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 14px;
    font-size: 0.72rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    cursor: pointer;
}

.forgot-link {
    color: #C89B3C;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* Alinea el contenedor del botón hacia la derecha */
.login-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Ajusta el ancho para que no sea full-width (width: 100%) */
.btn-login {
    width: auto; /* Deja de ocupar todo el ancho */
    min-width: 130px; /* Ancho compacto adecuado */
    padding: 0 20px; /* Espaciado interno horizontal */
    height: 38px;
    background: #C89B3C;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-login:hover {
        background: #b08530;
    }

/* LÍNEA DIVISORIA VERTICAL */
.divider-line {
    width: 1px;
    height: 80%;
    background: rgba(255, 255, 255, 0.15);
    justify-self: center;
}

/* BLOQUE CENTRAL DE CTA */
.cta-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el botón al cambiar su ancho */
}

    .cta-box h3 {
        color: #C89B3C;
        font-size: 0.95rem;
        font-weight: 800;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .cta-box p {
        color: #ffffff;
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 16px;
    }

/* BOTÓN QUIERO INFORMACIÓN (Compacto) */
.btn-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #28a745;
    color: #ffffff;
    padding: 10px 22px; /* Relleno lateral cómodo */
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    transition: background-color 0.2s;
    width: auto; /* Deja de estirarse al 100% */
    max-width: 100%;
    box-sizing: border-box;
}

    .btn-info:hover {
        background: #218838;
    }

/*--------------------------------------------------
  BLOQUE DERECHO: FONDO CLARO (CONTACTO)
--------------------------------------------------*/
.light-block {
    background: #EEF3F6;
    border-radius: 0; /* <--- Sin bordes individuales para pegar perfectamente */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 25px 20px 0 25px;
    position: relative;
}

.section-title-dark {
    font-size: 1.15rem;
    font-weight: 800;
    color: #05111A;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

    .contact-list li {
        display: flex;
        gap: 10px;
        margin-bottom: 12px;
        align-items: center;
    }

.contact-icon-green {
    width: 30px;
    height: 30px;
    background: #28a745;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    flex-shrink: 0;
}

.contact-icon-gold {
    width: 30px;
    height: 30px;
    background: rgba(200, 155, 60, 0.2);
    border-radius: 50%;
    color: #C89B3C;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    color: #05111A;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1px;
}

.contact-text span {
    color: #475569;
    font-size: 0.72rem;
}

.advisor {
    align-self: flex-end;
    display: flex;
    justify-content: flex-end;
    line-height: 0; /* Elimina espacio en blanco debajo de la imagen */
}

    .advisor img {
        height: 220px; /* Aumentado de 175px a 220px */
        max-height: 100%;
        width: auto;
        object-fit: contain;
        display: block;
        margin-right: -10px; /* Ajuste fino para pegar más a la esquina derecha */
    }

/*--------------------------------------------------
  RESPONSIVE
--------------------------------------------------*/
/*==================================================
  RESPONSIVE / MÓVIL
==================================================*/
/*==================================================
  RESPONSIVE / MÓVIL (Ajuste Fino de Espacios)
==================================================*/
/*==================================================
  RESPONSIVE / MÓVIL (Corrección Total de Contáctanos)
==================================================*/
@media (max-width: 991px) {
    /* 1. Mantenemos el bloque completo envuelto en la misma tarjeta */
    .login-contact-container {
        grid-template-columns: 1fr;
        gap: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    /* 2. Bloque Oscuro (Login + CTA) */
    .dark-block {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 18px;
        border-radius: 0; /* Lo gestiona el contenedor padre */
    }

    /* Línea divisoria horizontal */
    .divider-line {
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.12);
        margin: 5px 0;
    }

    .login-btn-container {
        justify-content: flex-end;
        width: 100%;
    }

    .btn-login {
        width: 100%;
        max-width: 160px;
    }

    .btn-info {
        width: 100%;
        max-width: 240px;
    }

    /* 3. Bloque Claro (CONTÁCTANOS Rediseñado) */
    .light-block {
        background: #EEF3F6;
        display: flex;
        flex-direction: row; /* Mantiene lado a lado información y foto */
        justify-content: space-between;
        align-items: flex-end;
        padding: 20px 15px 0 20px;
        position: relative;
        overflow: hidden;
        border-radius: 0;
    }

    .contact-info {
        flex: 1;
        padding-bottom: 15px; /* Espacio inferior cómodo */
    }

    .section-title-dark {
        font-size: 1.1rem;
        margin-bottom: 12px;
        text-align: left;
    }

    .contact-list {
        margin-bottom: 0;
    }

        .contact-list li {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            text-align: left;
        }

    .contact-text strong {
        font-size: 0.72rem;
    }

    .contact-text span {
        font-size: 0.68rem;
    }

    /* Ajuste de la asesora en móvil */
    .advisor {
        align-self: flex-end;
        flex-shrink: 0;
    }

        .advisor img {
            height: 140px; /* Escala perfecta para celular */
            width: auto;
            display: block;
            margin-right: -10px; /* Pega la imagen al borde derecho */
            object-fit: contain;
        }
}


/* =========================================================
   UPDATE PROGRESS OVERLAY (SOLO DENTRO DE LOGIN)
   ========================================================= */
/* Debe asegurarse de que la caja del login tenga position: relative */
.login-box {
    position: relative;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    gap: 12px;
    z-index: 50;
    color: #F6F4EE;
    font-weight: 600;
    font-size: 0.95rem;
}

.spinner-border {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top: 3px solid #C89B3C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}