/* =============================================
   1. ESTILOS GLOBALES Y LOGIN
   ============================================= */
body {
    font-family: 'Nunito', sans-serif;
}

/* --- FRANJA SUPERIOR --- */
.top-header-strip {
    background-color:#dcdcdc !important;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 80px;
    padding-right: 80px;
    position: relative;
    z-index: 20;
}

.logo-area img {
    height: 65px;
    display: block;
}

/* Texto "¿Eres cliente...?" MÁS GRANDE */
.top-header-link {
    color: #1a437d !important;
    font-size: 1.30rem; /* Aumentado */
    font-weight: 600;
    text-align: right;
}

.top-header-link a {
    color: #1a437d;
    font-weight: 1000;
    text-decoration: underline;
}

/* --- ESTRUCTURA SPLIT --- */
.split-left-bg {
    /* Cambiamos el gris claro (#e6e6e6) por uno un toque más oscuro (#dcdcdc) */
    background-color: #dcdcdc !important; 
    min-height: calc(100vh - 90px); 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 3rem; 
}
.split-right-bg {
    /* Cambiamos de blanco puro a un gris claro neutro */
    background-color: #f2f2f2 !important; 
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 4rem;
    
    /* Sombra para dar profundidad contra el lado izquierdo */
    box-shadow: -5px 0 20px rgba(0,0,0,0.05); 
    position: relative;
    z-index: 10;
}

/* Textos Lado Izquierdo */
.main-title {
    color: #1a437d; 
    font-weight: 300; 
    font-size: 2.2rem; 
    margin-bottom: 0.5rem;
}
.main-title span { font-weight: 800; }
.sub-title {
    color: #1a437d !important; /* Cambiado de gris a Azul */
    font-weight: 600;
    font-style: italic;
    margin-top: 10px;
}
/* --- TARJETAS MÓDULO: EFECTO HUNDIDO CON TONO GRIS --- */
.card-modulo {
    /* El degradado de la tarjeta ahora usa un gris un poco más fuerte al final */
    background: linear-gradient(145deg, #f9f9f9de, #e0e0e0); 
    border-radius: 40px;
    padding: 1.8rem 1.8rem; 
    text-align: left; 
    border: none;
    
    /* Reforzamos las sombras para que el "brillo blanco" sea más evidente contra el fondo oscuro */
    box-shadow: 
        inset 10px 10px 20px rgba(0, 0, 0, 0.15), 
        inset -12px -12px 18px rgba(255, 255, 255, 1);
    
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: center;
    min-height: 180px; 
    transition: all 0.3s ease;
    height: 100%;
}

/* Efecto al pasar el mouse (se presiona un poco más) */
.card-modulo:hover {
    transform: scale(0.98);
    box-shadow: 
        inset 12px 12px 22px rgba(0, 0, 0, 0.12), 
        inset -8px -8px 15px rgba(255, 255, 255, 0.9);
}

/* Ajuste de colores para los títulos (Azul y Verde Oliva) */
.card-modulo h6 {
    color: #1a437d; /* Azul corporativo */
    font-weight: 800;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    margin-top: 10px;
}

.card-modulo.style-verde h6,
.card-modulo.style-verde i {
    color: #aeb960 !important; /* Verde oliva exacto de la imagen */
}

.card-modulo p {
    color: #6e707e;
    font-size: 0.9rem !important;
    font-weight: 600;
    line-height: 1.3;
}

/* ICONOS POR DEFECTO (FLECHAS, CHANCHITO, ETC.) AZULES */
.card-modulo i { 
    font-size: 2.2rem; 
    margin-bottom: 1rem;
    color: #1a437d !important; /* <--- ESTA LÍNEA HACE QUE LAS FLECHAS SEAN AZULES */
}

/* Título "Inicia Sesión" MÁS GRANDE */
.login-title {
    color: #1a437d;
    font-weight: 900; /* Aumentado para que sea más "negrito" */
    font-size: 2.6rem; 
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.label-login {
    color: #1a437d !important; 
    font-size: 1.1rem !important; 
    font-weight: 700 !important;
    margin-left: 15px;
}
/* --- INPUTS CON RELIEVE GRIS (MODELO FIEL) --- */
/* --- INPUTS CON RELIEVE GRIS (MODELO FIEL) --- */
.input-pill {
    /* MANTENEMOS TU LÓGICA DE COLOR Y BORDES */
    background-color: #eeeeee !important; 
    border: none !important;
    border-radius: 50px !important;
    padding: 1.2rem 1.5rem !important;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #1a437d;
    transition: all 0.3s ease;

    /* --- LA CLAVE PARA QUE SEAN LARGOS --- */
    width: 100% !important;   /* Ocupa todo el ancho disponible */
    display: block !important; /* Se asegura de comportarse como bloque */

    /* TU SECRETO DE SOMBRAS INTACTO */
    box-shadow: 
        -5px -5px 10px rgba(255, 255, 255, 1), 
        5px 5px 10px rgba(0, 0, 0, 0.08), 
        inset 4px 4px 8px rgba(0, 0, 0, 0.06), 
        inset -4px -4px 8px rgba(255, 255, 255, 0.8) !important;
}

/* Estado al escribir */
.input-pill:focus {
    background-color: #f2f2f2 !important;
    width: 100% !important; /* Mantenemos el largo en focus */
    box-shadow: 
        -2px -2px 5px rgba(255, 255, 255, 1),
        2px 2px 5px rgba(0, 0, 0, 0.05),
        inset 6px 6px 12px rgba(0, 0, 0, 0.1), 
        inset -4px -4px 10px rgba(255, 255, 255, 0.9) !important;
    outline: none;
}

/* Botón INGRESAR MÁS GRANDE */
.btn-ingresar {
    background-color: #1a437d;
    color: white;
    border-radius: 30px;
    /* Reducimos el padding y el ancho */
    padding: 10px 30px; 
    width: 150px; 
    
    font-weight: 800;
    font-size: 1rem;
    margin: 1.0rem auto 0; 
    display: block;
    border: none;
    box-shadow: 0 4px 10px rgba(26, 67, 125, 0.2);
    transition: all 0.3s ease;
}

.btn-ingresar:hover {
    background-color: #153a6e;
    transform: scale(1.05);
    color: white;
}

/* Enlaces bajo el botón (Olvidé contraseña / Registro) MÁS GRANDES */
/* --- ENLACES DE LOGIN COMPACTOS --- */
.login-links {
    text-align: center;
    /* Reducimos el margen superior de todo el bloque */
    margin-top: 15px !important; 
}

.login-links a {
    color: #1a437d !important; 
    text-decoration: underline !important; 
    /* Mantenemos tu ajuste de grosor */
    font-weight: 400 !important; 
    font-size: 1rem !important; 
    
    /* ELIMINAMOS EL ESPACIO EXTRA ENTRE ELLOS */
    display: block; 
    margin-bottom: 5px !important; 
    padding: 0 !important;
}

/* Ajuste específico para el segundo enlace para que no se separe */
.login-links .mt-3 {
    margin-top: 0 !important; 
}
/* =============================================
   MODULO ACTIVAR / RECUPERAR CUENTA (Actualizado)
   ============================================= */

.bg-activar-page {
    background-color: #f0f0f0; 
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.card-activar {
    background: #e6e6e6; 
    border-radius: 50px; /* Bordes más curvos para suavizar el relieve */
    padding: 3.5rem;
    max-width: 550px;
    margin: 3rem auto;
    border: none;
    
    /* SOMBRAS MÁS INTENSAS Y EXTENSAS */
    box-shadow: 
        25px 25px 50px #b8b8b8, 
        -25px -25px 50px #ffffff;
    
    text-align: center;
}

/* Imagen del icono superior */
.icon-activar-img {
    height: 90px;
    margin-bottom: 1.5rem;
}

/* Tipografía */
.title-activar {
    color: #aeb960; /* El color verde oliva de tu imagen */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-activar {
    color: #1a437d; /* Azul corporativo */
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    line-height: 1.4;
}

/* Input Gris Píldora */
.input-activar {
    background-color: #f1f3f5 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 1.5rem !important;
    font-size: 1rem;
    text-align: center; /* Texto centrado como en la imagen? No, parece izq con padding. Lo dejaremos normal */
    color: #495057;
    width: 100%;
    margin-bottom: 1.5rem;
}
.input-activar::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

/* Checkboxes personalizados alineados a la izquierda */
.checkbox-container {
    text-align: left;
    font-size: 0.8rem;
    color: #1a437d;
    margin-bottom: 1.5rem;
    padding: 0 10px;
}
.checkbox-row {
    display: flex;
    align-items: center; /* Alineación vertical perfecta */
    margin-bottom: 0.5rem;
}
.checkbox-row input[type="checkbox"] {
    transform: scale(1.3); /* Hacer el checkbox un poco más grande */
    margin-right: 10px;
    margin-top: -2px;
}
.checkbox-row a {
    font-weight: 800;
    color: #1a437d;
    text-decoration: underline;
}

/* Línea divisoria antes del botón */
.divider-line {
    border-top: 1px solid #1a437d;
    opacity: 0.2;
    margin: 1.5rem 0;
    width: 100%;
}

/* Botón y Enlaces */
.btn-validar {
    background-color: #1a437d;
    color: white;
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    width: 80%; /* No ocupa todo el ancho, se ve más estético */
    margin-bottom: 1.5rem;
}
.btn-validar:hover {
    background-color: #153a6e;
    color: white;
}

.link-volver {
    color: #1a437d;
    text-decoration: underline;
    font-size: 0.85rem;
    font-weight: 600;
}

/* =============================================
   2. FOOTER Y REDES SOCIALES
   ============================================= */

.footer-banner {
    background-color: #dcdcdc !important; /* El mismo gris más oscuro */
    padding: 3rem 0;
  
}

.footer-content-row {
    display: flex;
    /* Distribuye las columnas con espacio igual entre ellas */
    justify-content: space-between; 
    align-items: flex-start;
    flex-wrap: wrap; /* Permite que se acomoden en móviles */
}

.footer-social-title {
    color: #1a437d !important;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.social-item {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
    font-weight: 700;
    color: #5a5c69;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}
.social-item i { font-size: 1.6rem; margin-right: 8px; }
.social-item:hover { color: #1a437d; text-decoration: none; }

/* --- BOTÓN ATENCIÓN AL CLIENTE: ESTILO NEOMÓRFICO --- */
/* --- BOTÓN ATENCIÓN AL CLIENTE: GRANDE Y SÓLIDO --- */
.btn-atencion {
    background: linear-gradient(145deg, #ffffff, #e6e6e6) !important;
    color: #1a437d;
    font-weight: 900;
    border-radius: 50px;
    
    /* AJUSTE CLAVE: 
       Aumentamos la letra para que el botón se vea grande por su contenido, 
       no por el espacio vacío. */
    font-size: 1.5rem; 
    padding: 15px 45px; /* Menos margen interno para que sea compacto */
    
    border: none !important;
    
    /* Sombras Proporcionales: 
       Sombra más definida para que el relieve no se desparrame */
    box-shadow: 
        -8px -8px 15px rgba(255, 255, 255, 1), 
        8px 8px 15px rgba(0, 0, 0, 0.12) !important;
    
    text-transform: uppercase;
    line-height: 1.1;  
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

/* Efecto al pasar el mouse */
.btn-atencion:hover {
    transform: scale(1.04);
    box-shadow: 
        -4px -4px 10px rgba(255, 255, 255, 1), 
        4px 4px 10px rgba(0, 0, 0, 0.08) !important;
}

/* --- FOOTER PRINCIPAL: COLOR Y TAMAÑO DE TEXTO --- */
.main-footer {
    /* Un azul más vivo y profesional, no tan oscuro/apagado */
    background-color: #042a61ee!important; 
    padding: 60px 0 30px;
    color: white;
}

/* Títulos de las columnas (Empresa, Legal, etc.) */
.footer-title {
    color: #ffffff !important;
    /* Subtítulos más gruesos */
    font-weight: 800 !important; 
    font-size: 1.35rem !important; 
    margin-bottom: 25px;
    /* Asegura que no haya transformaciones extrañas */
    text-transform: none; 
}
/* Enlaces y textos informativos */
.footer-link {
    display: block;
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Sección de Horarios */
.main-footer p {
    color: #ffffff !important;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.main-footer .font-weight-bold {
    font-weight: 800 !important;
    margin-bottom: 20px;
}
/* --- BOTÓN LIBRO DE RECLAMACIONES --- */
/* --- BOTÓN LIBRO DE RECLAMACIONES REFORZADO --- */
.btn-reclamaciones {
    border: 1.5px solid #ffffff; /* Borde un poco más fino para resaltar el texto */
    border-radius: 12px;
    padding: 12px 20px;
    color: #ffffff !important;
    
    /* FUENTE MÁS NEGRITA */
    font-weight: 900 !important; 
    font-size: 1.05rem !important;
    
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.btn-reclamaciones i {
    font-size: 1.2rem; /* Tamaño del icono del libro */
}


/* --- LOGO INFERIOR: A COLOR Y TAMAÑO ORIGINAL --- */
.footer-logo-center {
    /* Mantenemos el tamaño visible de tu referencia */
    height: 65px !important; 
    width: auto !important;
    
    /* ELIMINAMOS EL EFECTO QUE LO VOLVÍA BLANCO */
    filter: none !important; 
    -webkit-filter: none !important;
    
    /* ELIMINAMOS LA TRANSPARENCIA PARA QUE SEA SÓLIDO */
    opacity: 1 !important; 
    
    display: inline-block;
    margin-bottom: 20px;
    
    /* Asegura que la imagen no se recorte */
    object-fit: contain; 
}

/* Contenedor para asegurar el centrado */
.legal-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    margin-top: 30px;
    text-align: center; /* Centra el logo y el texto */
    width: 100%;
}

.legal-text p {
    font-size: 0.9rem !important;
    opacity: 0.8;
}

/* =============================================
   MODULO REGISTRO (CORREGIDO)
   ============================================= */

.bg-registro-page {
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; /* Un poco más de margen lateral */
}

.card-registro {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    max-width: 1250px;
    width: 100%;
    margin: auto;
    display: flex;
}

body.bg-registro-page {
    background-color: #dcdcdc;
    min-height: 70vh; /* Ocupa todo el alto de la ventana */
    display: flex;
    align-items: center;     /* Centrado vertical */
    justify-content: center;  /* Centrado horizontal */
    margin: 0;
    padding: 40px;
}

/* --- COLUMNA IZQUIERDA (Teddy) --- */
.registro-left {
    background-color: transparent; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrado vertical absoluto */
    align-items: center;
    padding: 3rem 2rem !important;
    height: 100%;
    margin-right: 7rem;
}

.titulo-bienvenido {
    background: #f0f2f5 !important; /* Mismo color del fondo */
    color: #1a437d !important;
    padding: 18px 50px !important;
    border-radius: 50px !important;
    font-size: 2.5rem !important; /* Tamaño imponente */
    font-weight: 700 !important; /* Máximo grosor (más grueso que antes) */
    
    /* Efecto relieve neomórfico (Igual al módulo del formulario) */
    box-shadow: 12px 12px 25px #d1d9e6, -12px -12px 25px #ffffff !important;
    
    margin-bottom: 3.5rem !important; /* SEPARACIÓN del logo y de la descripción */
    display: inline-block;
    border: none !important;
}

/* --- CAJA DE INFORMACIÓN ULTRA ANCHA --- */
.info-box-registro {
    background: #ffffff !important;
    /* Redondeado coherente con el formulario */
    border-radius: 40px !important; 
    padding: 35px 50px !important;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.03) !important;
    width: 180% !important;
    max-width: 520px !important;
}

.info-item {
    display: flex;
    align-items: center; /* Centramos icono con texto */
    margin-bottom: 25px !important;
    color: #1a437d !important; 
    font-size: 1.1rem !important;
    font-weight: 500 !important; /* El grosor que te gustó */
}

/* --- CAMBIO DE ICONOS A ESTILO LINEAL (IMAGEN 2) --- */
.info-item i {
    font-size: 1.8rem !important;
    margin-right: 25px !important;
    color: #1a437d !important;
    min-width: 45px;
    text-align: center;
}
.sbs-text {
    color: #aeb960!important;
    font-weight: 800 !important;
    font-size: 0.95rem;
    margin-top: 5px;
    display: block;
}

/* --- COLUMNA DERECHA (Formulario) --- */
.registro-right {
    background: #ffffff !important; /* Mantenemos el formulario en blanco puro */
    border-radius: 80px !important; /* Bordes ultra redondeados para la burbuja */
    padding: 4rem 5rem !important;
    
    /* --- SOMBRAS NOTORIAS (BLANCO ARRIBA / NEGRO ABAJO) --- */
    box-shadow: 
        /* Sombra oscura (Negro) abajo a la derecha: Más densa y extendida */
        30px 30px 70px rgba(0, 0, 0, 0.12), 
        /* Luz blanca (Blanco) arriba a la izquierda: Más brillante y amplia */
        -20px -20px 60px rgba(255, 255, 255, 0.95) !important;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.titulo-crear-cuenta {
    color: #aeb960; 
    font-weight: 800;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitulo-registro {
    text-align: center;
    color: #1a437d;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.form-section-title {
    color: #1a437d;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.form-section-title i { margin-right: 8px; font-size: 1.1rem; }

/* INPUTS Y SELECTS */
.registro-right .input-pill {
    background-color: #f0f2f5 !important; 
    border: none !important;
    border-radius: 20px !important;
    height: 40px !important; 
    font-size: 0.85rem !important;
    padding: 0.5rem 1.2rem !important;
    color: #5a5c69 !important;
    
    /* Sombra interna para el efecto de rectángulo hundido */
    box-shadow: 
        inset 6px 6px 10px rgba(0, 0, 0, 0.05), 
        inset -6px -6px 10px rgba(255, 255, 255, 0.8) !important;
}

/* Corrección específica para el SELECT de Estado Civil */
select.input-pill {
    background-position: right 1.2rem center !important;
}

.btn-crear-cuenta {
    background-color: #1a437d;
    color: white;
    border-radius: 50px;
    padding: 12px 60px; /* Un poco más compacto */
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    margin-top: 1rem; /* Espacio con el cuadro blanco */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-crear-cuenta:hover {
    background-color: #153a6e;
    transform: scale(1.05);
    color: white;
}

.link-inicio-sesion {
    color: #aeb960; 
    font-weight: 800;
    text-decoration: none;
    font-size: 1rem;
}

/* =============================================
   MODULO DASHBOARD (ESTILO BLANCO / IMAGEN REFERENCIA)
   ============================================= */

/* 1. Fondo General (Gris muy suave, casi blanco) */
#content-wrapper {
    background-color: #f0f2f5 !important; 
}

.sidebar-light .nav-item .nav-link i {
    color: #1a437d !important; /* Iconos Azules */
    font-size: 3rem;
    margin-right: 5px;
}
.sidebar-light .nav-item.active .nav-link {
    color: #1a437d !important;
    background-color: rgba(41, 77, 128, 0.05);
    border-radius: 10px;
    font-weight: 800;
}

/* 3. Tarjeta de Saludo (Flotante a la izquierda) */
.card-saludo-dashboard {
    background: white;
    border-radius: 50px; /* Borde muy redondo */
    padding: 1.5rem 3rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    display: inline-block;
    margin-bottom: 2rem;
    text-align: left;
    border: none;
    min-width: 300px;
}
.saludo-titulo {
    color: #1a437d; /* Azul corporativo */
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}
.saludo-sub {
    color: #5a5c69;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 4. Tarjeta Central (Solicitud) */
.card-solicitud-home {
    background: white;
    border-radius: 40px; 
    padding: 4rem 3rem;
    text-align: center;
    /* Efecto "hundido" suave + sombra externa */
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.01), 
        0 15px 40px rgba(0,0,0,0.06); 
    max-width: 550px;
    margin: 0 auto; 
    border: none;
}

.cta-titulo {
    color: #1a437d;
    font-weight: 900;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.cta-sub {
    color: #5a5c69;
    font-style: italic;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* Botón "DALE CLIC" (Verde Oliva/Dorado) */
.btn-cta-home {
    background-color: #aeb960; /* Color exacto de la referencia */
    color: white;
    font-weight: 900;
    font-size: 1.4rem;
    padding: 15px 50px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 20px rgba(174, 185, 96, 0.4);
    transition: transform 0.2s;
    letter-spacing: 1px;
}
.btn-cta-home:hover {
    transform: scale(1.05);
    background-color: #9ca655;
    color: white;
    text-decoration: none;
}

/* =============================================
   BARRA LATERAL (SIDEBAR) ESTILO IMAGEN REFERENCIA
   ============================================= */

.sidebar-light {
    background-color: #f0f2f5 !important;
}

/* Iconos de Imagen (Más grandes y uniformes) */
.sidebar-icon-img {
    width: 45px;        /* TAMAÑO AUMENTADO */
    height: auto;       
    margin-right: 15px; 
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0px 4px 4px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
    flex-shrink: 0; /* Evita que se deforme */
}

/* Efecto hover */
.nav-item .nav-link:hover .sidebar-icon-img {
    transform: scale(1.15) rotate(-3deg); 
}

/* Alineación Flex para el enlace */
.sidebar-light .nav-item .nav-link {
    display: flex !important;
    align-items: center !important; 
    padding: 10px rem !important; 
}

/* Texto del menú */
.sidebar-light .nav-item .nav-link span {
    font-weight: 700;
    color: #265496; 
    font-size: 0.95rem;
    white-space: normal; /* Permite saltos de línea */
    line-height: 1.2;
    text-align: left;
}

/* Logo Principal Sidebar */
.logo-sidebar-3d {
    max-height: 90px !important; 
    margin-bottom: 10px;
    transition: transform 0.3s;
}
.logo-sidebar-3d:hover { transform: scale(1.05); }


/* =============================================
   TOPBAR PERSONALIZADA (Barra Superior)
   ============================================= */

/* Fondo Gris como en la imagen */
.topbar-custom {
    background-color: #e4e4e4 !important; /* Gris de la referencia */
    box-shadow: none !important;
    height: 80px; /* Un poco más alta */
}

/* Icono de Mensaje (Chat) */
.icon-chat-top {
    color: #5a7ce2; /* Azul claro del icono de chat */
    font-size: 1.8rem;
    position: relative;
    cursor: pointer;
}
.icon-chat-top:hover { color: #1a437d; }

/* Línea Divisoria Punteada Vertical */
.top-divider-custom {
    border-left: 2px dotted #858796; /* Punteado */
    height: 40px;
    margin: 0 25px;
    opacity: 0.6;
}

/* Nombre del Usuario */
.top-user-name {
    color: #1a437d; /* Azul corporativo */
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 15px;
}

/* Avatar de Usuario */
.top-user-avatar {
    height: 50px;
    width: 50px;
    border-radius: 50%; /* Redondo */
    object-fit: cover;
    border: 2px solid #fff; /* Borde blanco opcional */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =============================================
   ESTILOS HOME - PROSPECTO (FINAL V2)
   ============================================= */

/* Tarjeta Central (Más grande ahora) */
.card-home-prospecto {
    background: white;
    border-radius: 40px;
    padding: 2.5rem 3rem; /* Más padding interno */
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.01), 0 15px 40px rgba(0,0,0,0.06); 
    max-width: 650px; /* AUMENTADO: Antes era 650px */
    margin: 0 auto;
    border: none;
    position: relative; /* Necesario para que lo de adentro se posicione absolutamente */
    overflow: visible;  /* CRUCIAL: Permite que la imagen salga de los bordes */
}

/* SALUDO MÁS GRANDE */
.saludo-titulo-grande {
    color: #1a437d; 
    font-weight: 800;
    font-size: 1.8rem; 
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Estilos Generales Textos */
.titulo-home-azul {
    color: #1a437d;
    font-weight: 900;
    font-size: 1.7rem; /* Un poco más grande */
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.subtitulo-home {
    color: #1a437d;
    font-style: italic;
    font-weight: 600;
    font-size: 1.1rem; /* Un poco más grande */
    margin-bottom: 2.5rem;
}

/* Botón Verde */
.btn-home-verde {
    background-color: #aeb960; 
    color: white;
    font-weight: 900;
    font-size: 1.3rem;
    padding: 15px 50px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 20px rgba(174, 185, 96, 0.4);
    transition: transform 0.2s;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
}
.btn-home-verde:hover {
    transform: scale(1.05);
    background-color: #9ca655;
    color: white;
    text-decoration: none;
}

/* Animación Carga */
.rotate-center { animation: rotate-center 2s linear infinite; }
@keyframes rotate-center { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }


/* --- IMAGEN FLOTANTE A LA DERECHA (CORREGIDO PARA BAJARLO) --- */
.imagen-flotante-derecha {
    position: absolute;
    bottom: -395px; /* <--- CAMBIO CLAVE: Lo bajamos mucho más */
    right: -390px;  
    width: 500px;   /* Un poquito más grande para que impacte */
    z-index: 10;
    pointer-events: none;
    animation: float-slow 5s ease-in-out infinite;
}

@keyframes float-slow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); } /* Movimiento más sutil */
    100% { transform: translateY(0px); }
}

/* Ajuste para Laptops (Pantallas medianas) */
@media (max-width: 1600px) {
    .imagen-flotante-derecha {
        width: 450px;
        right: -250px;
        bottom: -220px; /* Ajuste proporcional para laptops */
    }
}

/* En tablets/móviles lo ocultamos */
@media (max-width: 1200px) {
    .imagen-flotante-derecha {
        display: none; 
    }
}

/* --- ESTILOS RECHAZO --- */
.texto-rechazo {
    color: #1a437d;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 15px;
    line-height: 1.5;
}
.box-teddy-offer {
    margin-top: 2.5rem;
    border-top: 2px dashed #e3e6f0;
    padding-top: 2rem;
    /* Quitamos la imagen de abajo, así que centramos el contenido */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =============================================
   VISTA CLIENTE (DISEÑO 3 TARJETAS)
   ============================================= */

/* 1. Banner de Saludo (Gris) */
.banner-cliente {
    background-color: #dbe0e6; /* Un gris azulado suave o el gris de tu sidebar */
    border-radius: 40px; /* Bordes muy redondos */
    padding: 3rem 4rem;
    margin-bottom: 3rem;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

/* 2. Tarjetas Píldora (Blanco) */
.card-cliente-pill {
    background: white;
    border-radius: 50px; /* Forma de píldora */
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra suave flotante */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important; /* Quitar subrayado */
    height: 100%;
    border: none;
}

/* Efecto Hover */
.card-cliente-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Textos de la tarjeta */
.titulo-card-cliente {
    color: #1a437d; /* Azul oscuro */
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 5px;
}
.subtitulo-card-cliente {
    color: #5a5c69;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Iconos 3D dentro de las tarjetas */
.icon-card-3d {
    height: 60px; /* Tamaño del icono */
    width: auto;
    margin-left: 15px;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}

/* 1. Icono: Alineado a la izquierda con un pequeño margen */
.card-modulo i {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    margin-left: 5px; /* Margen interno para que no pegue al borde */
}

/* 2. Título: Más grande y con peso fuerte */
.card-modulo h6 {
    font-weight: 800;
    font-size: 1.2rem !important; /* Aumentado como pediste */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1.1;
    margin-left: 5px;
}

/* 3. Descripción: Sin negrita y más limpia */
.card-modulo p {
    /* Subimos de 400 a 600 para que se vea más gruesita pero no negrita total */
    font-weight: 600 !important; 
    
    /* Un azul un poco más profundo para mejorar el contraste */
    color: #1a437dbb !important; 
    
    font-size: 0.95rem !important;
    line-height: 1.3;
    margin-top: 5px;
}

/* --- COLORES UNIFORMES --- */

/* Azul (Mis Créditos y Cambio de Dólares) */
.card-modulo, .card-modulo i, .card-modulo h6, .card-modulo p {
    color: #1a437d !important;
}

/* Verde (Pagar Cuota y Solicitar Crédito) */
.card-modulo.style-verde, .card-modulo.style-verde i, .card-modulo.style-verde h6, .card-modulo.style-verde p {
    color: #aeb960 !important;
}

/* --- DISEÑO COMPACTO DE MENÚ --- */
.sidebar .nav-item .nav-link {
    padding: 0.5rem 1rem !important; /* Reducimos altura de fila */
}

.group-wrapper {
    margin-bottom: 5px; /* Acerca los grupos entre sí */
}
.sub-menu {
    margin-left: 42px;
    border-left: 1.5px solid #b0b0b0;
    padding-left: 5px;
    margin-top: -5px;
}

.sub-item {
    display: flex; /* Cambiado de 'block' a 'flex' para alinear mejor el punto con el texto */
    align-items: center; 
    font-size: 0.88rem !important;
    padding: 6px 12px !important; 
    color: #1a437d !important;
    text-decoration: none !important;
    transition: all 0.2s;

    /* --- ESTO ES LO QUE ARREGLA LA IMAGEN QUE ME MANDASTE --- */
    white-space: normal;    /* Permite que el texto largo baje a otra línea */
    line-height: 1.2;       /* Espacio entre líneas cuando el texto baja */
    word-wrap: break-word;  /* Rompe palabras si es extremadamente necesario */
    width: 100%;
}

.sub-item:before {
    content: "●";
    color: #8db525; 
    font-size: 1rem; 
    margin-right: 10px;
    display: inline-block;
    flex-shrink: 0; /* IMPORTANTE: Evita que el punto se aplaste si el texto es largo */
}

/* Para que el sombreado gris crezca con el texto si hay dos líneas */
.sub-item.active {
    background-color: #d1d1d1 !important;
    border-radius: 10px;
    height: auto !important; 
}

/* --- SOMBREADO DE SELECCIÓN --- */
.sidebar-light .nav-item.active .nav-link,
.sidebar-light .nav-item .nav-link.active,
.sub-item.active {
    background-color: #d1d1d1 !important;
    border-radius: 10px;
    font-weight: 800 !important;
    color: #2055a0 !important;
}

.sub-item:hover {
    color: #153a6e !important; 
    font-weight: 900 !important;
}

.sidebar-light .nav-item .nav-link:hover,
.sub-item:hover {
    background-color: #e0e0e0;
    border-radius: 10px;
}

/* --- COMPORTAMIENTO AL REDUCIR (TOGGLED) --- */

/* Cuando el sidebar tiene la clase 'toggled' (menú contraído) */
.sidebar.toggled .nav-link span, 
.sidebar.toggled .sub-menu,
.sidebar.toggled .group-header span,
.sidebar.toggled hr {
    display: none !important; /* Oculta letras y submenús */
}

.sidebar.toggled {
    width: 6.5rem !important; /* Ancho pequeño solo para iconos */
}

.sidebar.toggled .sidebar-brand-icon img {
    height: 35px !important; /* Logo miniatura */
}

/* Ajuste para que los iconos 3D se centren al estar solos */
.sidebar.toggled .nav-item .nav-link {
    text-align: center;
    width: 100%;
    padding: 0.75rem 1rem !important;
}

.sidebar.toggled .sidebar-icon-img {
    margin-right: 0 !important; /* Centra el icono */
}

.sidebar-light .nav-item.active .nav-link span,
.sidebar-light .nav-item.active .nav-link i {
    color: #1a437d !important; /* El azul fuerte de tus submenús */
    font-weight: 900 !important; /* Negrita máxima */
}

/* También aseguramos que el fondo gris de selección se mantenga */
.sidebar-light .nav-item.active .nav-link {
    background-color: #d1d1d1 !important;
    border-radius: 12px;
    margin: 0 10px;
}

/* Efecto hover para que al pasar el mouse también se vea azul */
.sidebar-light .nav-item .nav-link:hover span {
    color: #1a437d !important;
}

.link-inicio-sesion-exterior {
    color: #aeb960 !important; /* El verde Teddy de tu referencia */
    font-weight: 800 !important; /* Negrita fuerte */
    text-decoration: underline !important; /* Subrayado como en la imagen */
    font-size: 1rem;
    transition: color 0.2s;
}

.link-inicio-sesion-exterior:hover {
    color: #8db525 !important; /* Un verde un poco más oscuro al pasar el mouse */
    text-decoration: underline !important;
}   

/* --- ESCALADO DE ICONOS AL MINIMIZAR --- */

/* Cuando el sidebar tiene la clase 'toggled' */
.sidebar.toggled .nav-item .nav-link .sidebar-icon-img,
.sidebar.toggled .nav-item .nav-link i,
.sidebar.toggled .sidebar-brand-icon img {
    width: 35px !important;  /* Tamaño reducido para iconos */
    height: auto !important;
    transition: all 0.2s ease-in-out; /* Transición suave */
    display: block;
    margin: 0 auto !important; /* Centrado perfecto */
}

/* Ajuste específico para el contenedor del icono de Inicio (el sombreado gris) */
.sidebar.toggled .nav-item.active .nav-link {
    width: 50px !important; /* Achica el cuadro gris de fondo */
    height: 50px !important;
    margin: 10px auto !important;
    padding: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}


    /* --- FONDO DE PÁGINA --- */
    body { background-color: #dbe1e8 !important; }

    /* --- TARJETAS SUPERIORES NEOMÓRFICAS --- */
.card-neom {
    background: radial-gradient(circle, #f0f0f0 0%, #ffffff 80%); /* Efecto gris al medio */
    border-radius: 35px;
    box-shadow: 10px 10px 20px #bebebe, -10px -10px 20px #ffffff;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 125px; /* Mismo tamaño para todas */
}

.titulo-neom {
    font-size: 0.75rem;
    font-weight: 900; /* Negrita máxima aplicada */
    color: #1a4373;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.monto-neom {
    font-size: 1.4rem;
    font-weight: 900;
    color: #8db525 ; /* El verde de tu captura */
}

.monto-neom.rojo {
    color: #e74a3b;
}

/* Para que las imágenes no se deformen y mantengan proporción */
.card-neom img {
    height: 45px; /* Un poco más chicas para que respiren en la tarjeta */
    width: auto;
    object-fit: contain;
}

    /* --- CONTENEDOR DE TABLA (EL CUADRO GRANDE) --- */
    .tabla-container-neom {
        background: #ffffff;
        border-radius: 50px;
        overflow: hidden;
        box-shadow: 20px 20px 50px rgba(0,0,0,0.05);
        margin-top: 3rem;
    }

    /* Franja azul oscuro del título */
    .tabla-header-dark {
        background-color: #1a437d; 
        padding: 20px 40px;
        color: #ffffff;
    }
    .tabla-header-dark h2 { font-size: 1.6rem; font-weight: 800; margin: 0; }

    /* Estilo de la tabla interna */
    .table-clean thead th {
        background-color: #f8f9fc;
        border: none;
        color: #b0b0b0;
        font-size: 0.75rem;
        text-transform: uppercase;
        padding: 15px;
    }
    .table-clean td { vertical-align: middle !important; border-top: 1px solid #f1f3f5; color: #5a5c69; font-size: 0.85rem; }

    /* Botón Volver */
    .btn-volver-link { color: #1a437d; font-weight: 800; text-decoration: none; transition: 0.2s; }
    .btn-volver-link:hover { color: #aeb960; text-decoration: underline; }

    .text-advertencia {
    color: #f6a23e !important;
}

/* Opcional: Un azul grisáceo si prefieres algo más neutro */
.text-pendiente {
    color: #4e73df;
}

.id-credito-azul {
    color: #1a4373;
    font-weight: 800;
}

    /* Contenedor principal para fondo gris claro */
    .main-content-container {
        background-color: #f4f6f9;
        padding: 20px;
        border-radius: 15px;
    }

    /* Estilo para el título azul redondeado */
    .table-title-banner {
        background-color: #1e3a8a; /* Azul oscuro */
        color: white;
        padding: 15px 30px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        margin-bottom: 0;
        font-weight: bold;
        font-size: 1.5rem;
    }

    /* Estilo para la tarjeta de la tabla */
    .custom-table-card {
        background-color: white;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        border: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* Estilo general de la tabla */
    .custom-table {
        margin-bottom: 0;
    }
    .custom-table thead th {
        background-color: #f1f5f9; /* Gris muy claro */
        color: #64748b; /* Gris texto */
        font-weight: 600;
        text-transform: capitalize;
        border-bottom: 1px solid #e2e8f0;
        padding: 15px;
    }
    .custom-table tbody td {
        border-bottom: 1px solid #e2e8f0;
        padding: 15px;
        vertical-align: middle;
        color: #1e293b;
    }

    /* Estilos específicos para las columnas */
    .col-credito { color: #2563eb; font-weight: bold; }
    .col-penalidad { color: #dc2626; font-weight: bold; }
    .col-total { font-weight: bold; }

    /* Estilo para los botones de acción */
    .action-btn-container {
        display: flex;
        flex-direction: column;
        gap: 5px; /* Espacio entre botones */
        align-items: center;
    }
    .btn-action {
        width: 100%;
        max-width: 150px;
        border-radius: 5px;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 5px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
    }
    .btn-action i {
        margin-right: 5px;
    }
    .btn-pagar {
        background-color: #16a34a; /* Verde */
        color: white;
        border: none;
    }
    .btn-ver-cuentas-custom {
        background-color: #0369a1; /* Azul botón */
        color: white;
        border: none;
    }
    .btn-bloqueado-custom {
        background-color: #94a3b8; /* Gris bloqueado */
        color: white;
        border: none;
        cursor: not-allowed;
        opacity: 0.8;
    }
    .text-bloqueado-help {
        color: #94a3b8;
        font-size: 0.7rem;
        margin-top: 2px;
        display: block;
    }

    /* Estilo para el badge de estado VENCIDO */
    .badge-vencido {
        background-color: #ef4444;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 0.7rem;
        font-weight: bold;
        text-transform: uppercase;
    }

    /* --- ESTILOS NUEVOS PARA EL MODAL DE PAGO --- */
#modalRegistrarPago .modal-content {
    border-radius: 25px;
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
#modalRegistrarPago .modal-header {
    background-color: #1a365d; /* Azul oscuro del diseño */
    padding: 1.5rem;
    border-bottom: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
#modalRegistrarPago .modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0;
}
.btn-close-custom {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.btn-close-custom::before, .btn-close-custom::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 4px;
    background-color: #1a365d;
    border-radius: 2px;
}
.btn-close-custom::before { transform: rotate(45deg); }
.btn-close-custom::after { transform: rotate(-45deg); }

#modalRegistrarPago .modal-body {
    padding: 2rem;
    background-color: white;
}
.cuota-info-box {
    background-color: #e2e8f0;
    border-radius: 25px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}
.text-dark-blue {
    color: #1a365d;
    font-weight: 700;
}
.input-pill {
    border: 1px solid #64748b;
    border-radius: 20px;
    padding: 2px 12px;
    background: transparent;
    display: flex;
    align-items: center;
    width: 140px;
}
.input-pill input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    color: #1a365d;
    text-align: right;
    font-weight: 600;
}
.custom-label {
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}
.custom-input {
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    color: #475569;
    width: 100%;
    outline: none;
}
.file-input-wrapper {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    overflow: hidden;
    background-color: white;
}
.file-input-wrapper input[type="file"] {
    display: none;
}
.file-input-wrapper .file-label-text {
    padding: 0.5rem 1rem;
    color: #94a3b8;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}
.file-input-wrapper .btn-buscar {
    background-color: #3b5998; 
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
}
.btn-cancelar-custom {
    background-color: #a3b86c;
    color: white;
    border-radius: 25px;
    padding: 0.6rem 2.5rem;
    font-weight: bold;
    border: none;
    font-size: 1.1rem;
}
.btn-enviar-custom {
    background-color: #1a365d;
    color: white;
    border-radius: 25px;
    padding: 0.6rem 2.5rem;
    font-weight: bold;
    border: none;
    font-size: 1.1rem;
}

/* --- MODAL DE SALIDA PERSONALIZADO --- */
#modalSalida .modal-content {
    border-radius: 40px;
    border: none;
    padding: 2rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.titulo-aviso-salida {
    color: #b1c678; /* Verde lima de la imagen */
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.subtitulo-aviso-salida {
    color: #4e73df; /* Azul del texto pequeño */
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn-continuar-reg {
    background-color: #1a365d;
    color: white;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    border: none;
    flex: 1;
}

.btn-salir-reg {
    background-color: #b1c678;
    color: white;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    border: none;
    flex: 1;
}