/* =========================================================
   CONFIGURACIÓN 2026: TEMA CLARO CORPORATIVO (LIGHT THEME)
   ========================================================= */
:root {
    /* Fondos Blancos y Claros */
    --bg-main: #FFFFFF;     
    --bg-alt: #F8FAFC; 
    
    /* Textos Oscuros para alta legibilidad */
    --text-primary: #111827; 
    --text-secondary: #4B5563; 
    
    /* Paleta Extraída del Logo de Financiera Futura Mexicana */
    --green-primary: #00A859; /* Verde Brillante/Acento */
    --green-hover: #007A33;   /* Verde Oscuro al pasar el mouse */
    --green-dark: #003A2B;    /* Verde Institucional Profundo (Para Footer) */
    
    /* Cristales adaptados a fondo blanco */
    --glass-bg: rgba(255, 255, 255, 0.85); 
    --glass-border: 1px solid rgba(0, 168, 89, 0.15);
    --soft-lift-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --green-glow-soft: 0 10px 30px -15px rgba(0, 168, 89, 0.4); 
}

/* =========================================================
   BASE Y TIPOGRAFÍA
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-secondary); 
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================================
   FONDO UNIFICADO Y SECCIONES ALTERNAS
   ========================================================= */
section {
    background-color: var(--bg-main);
    border: none;
    margin-bottom: 0;
}

/* Generamos un contraste sutil alternando secciones en gris muy claro */
#servicios, #contacto {
    background-color: var(--bg-alt) !important;
}

.ambient-light {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 168, 89, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(10, 37, 64, 0.03) 0%, transparent 40%);
    filter: blur(60px);
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.relative { position: relative; z-index: 2; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }

h1, h2, h3 { color: var(--text-primary); letter-spacing: -0.02em; }

.mega-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-primary); 
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--green-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    color: transparent; 
    display: inline-block;
}

.highlight-green {
    color: var(--green-primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block; margin-bottom: 20px;
}

.section-title {
    font-size: 3rem; text-align: center; margin-bottom: 60px;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-primary);
}

/* =========================================================
   COMPONENTES (CRISTAL, BOTONES, LOGO)
   ========================================================= */
.glass {
    background: var(--glass-bg); 
    backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(120%); 
    border: var(--glass-border);
    padding: 50px 30px;
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative; overflow: hidden;
    box-shadow: var(--soft-lift-shadow); 
}

.glass-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: 0.6s;
}
.glass-card:hover::before { left: 100%; }

.box-glow:hover {
    border-color: var(--green-primary);
    transform: translateY(-10px);
    box-shadow: var(--green-glow-soft), var(--soft-lift-shadow);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px);
    padding: 50px; border-radius: 20px; 
    border-left: 4px solid var(--green-primary); 
    box-shadow: var(--soft-lift-shadow);
}

.glass-form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: var(--glass-border);
    padding: 60px; border-radius: 20px;
    width: 100%; max-width: 700px;
    box-shadow: var(--soft-lift-shadow);
}

.brand-logo {
    max-height: 90px;
    width: auto;
    transition: all 0.3s ease;
}

.btn-accent {
    background: linear-gradient(135deg, var(--green-primary), var(--green-hover));
    color: white; 
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    border: none; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 168, 89, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 89, 0.5);
    color: white;
}

.mega-btn { font-size: 1.2rem; padding: 20px 50px; }
.btn-block { width: 100%; padding: 20px; font-size: 1.2rem; }

/* =========================================================
   NAVEGACIÓN
   ========================================================= */
.navbar { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 100; 
    padding: 20px 0;
    background: transparent; 
    border-bottom: 1px solid transparent; 
    transition: all 0.4s ease; 
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(15px);
    padding: 12px 0; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .brand-logo { max-height: 70px;}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-primary); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; transition: color 0.3s ease;}
.nav-links a:not(.btn-accent):hover { color: var(--green-primary); }

.menu-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1000; 
}

.menu-toggle .bar {
    width: 25px; height: 3px;
    background-color: var(--green-primary); 
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* =========================================================
   HERO Y VIDEO (VERSIÓN CLARA MEJORADA)
   ========================================================= */
.hero {
    padding: 250px 0 150px; 
    min-height: 100vh; 
    display: flex; 
    align-items: center;
    position: relative; 
    overflow: hidden; 
}

.hero p { font-size: 1.3rem; max-width: 600px; margin-bottom: 50px; color: var(--text-secondary); font-weight: 500; }
.hero-content { z-index: 2; position: relative; }

.video-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; background-color: var(--bg-main); 
}

.video-background video {
    width: 100%; height: 100%; object-fit: cover; 
    opacity: 0.8; 
    filter: contrast(1.1) saturate(1.2); 
}

.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0.3) 0%,   
        rgba(255, 255, 255, 0.1) 40%,  
        rgba(255, 255, 255, 0.9) 90%,  
        rgba(255, 255, 255, 1) 100%    
    );
    pointer-events: none; 
}

/* =========================================================
   SECCIÓN DE SERVICIOS
   ========================================================= */
#servicios {
    margin-top: -2px; 
    position: relative;
    z-index: 5; 
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.glass-card h3 { color: var(--text-primary); margin-bottom: 15px; font-size: 1.5rem; }
.glass-card p { color: var(--text-secondary); }

.card-icon-svg svg {
    width: 55px; height: 55px;
    stroke: var(--green-primary); 
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.glass-card:hover .card-icon-svg svg { transform: scale(1.1); }

.card-features {
    list-style: none; margin: 25px 0; padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05); 
    text-align: left;
}

.card-features li {
    font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 12px;
    display: flex; align-items: flex-start; gap: 10px;
}

.card-features li::before {
    content: '✦'; color: var(--green-primary); font-size: 0.8rem; margin-top: 2px;
}

.card-link {
    display: inline-block; color: var(--green-primary); text-decoration: none;
    font-weight: 700; font-size: 0.95rem; text-transform: uppercase;
    letter-spacing: 1px; margin-top: 10px; transition: all 0.3s ease;
}

.card-link:hover { color: var(--text-primary); transform: translateX(8px); }

/* =========================================================
   SECCIÓN: QUIÉNES SOMOS (NOSOTROS)
   ========================================================= */
.grid-2-about {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 60px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05); 
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.abstract-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.abstract-shape svg {
    width: 160px;
    height: 160px;
    animation: floatShape 6s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* =========================================================
   SIMULADOR DE CRÉDITO
   ========================================================= */
.simulator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 60px;
}

.slider-group { margin-bottom: 30px; }
.mt-4 { margin-top: 30px; }

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.slider-header label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.slider-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-primary);
}

.slider-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.7;
}

/* Nuevos Sliders (Riel Verde) */
.green-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px; 
    background: rgba(0, 0, 0, 0.1); 
    border-radius: 2px;
    outline: none;
    transition: all 0.3s;
    cursor: pointer;
    background-image: linear-gradient(var(--green-primary), var(--green-primary));
    background-size: 0% 100%; 
    background-repeat: no-repeat;
}

.green-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px; 
    height: 24px;
    background: var(--green-primary); 
    border-radius: 2px; 
    cursor: grab;
    box-shadow: 0 0 10px rgba(0, 168, 89, 0.4); 
    transition: all 0.2s ease;
    border: none; 
    margin-top: -10px; 
}

.green-slider:active::-webkit-slider-thumb {
    transform: scale(1.1);
    cursor: grabbing;
    background: var(--text-primary); 
}

.pulsing { animation: greenPulse 0.6s ease-out; }

@keyframes greenPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 168, 89, 0.4); border-color: var(--green-primary); }
    70% { box-shadow: 0 0 20px 10px rgba(0, 168, 89, 0); border-color: rgba(0, 168, 89, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(0, 168, 89, 0); border-color: rgba(0, 168, 89, 0.2); }
}

.simulator-results {
    background: var(--bg-alt);
    border: 1px solid rgba(0, 168, 89, 0.2);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.simulator-results h3 { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 15px; text-transform: uppercase; }

.result-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1;
}

.result-details {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.result-details li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.result-details strong { color: var(--text-primary); }
.disclaimer { font-size: 0.75rem; color: var(--text-secondary); text-align: left; line-height: 1.4; opacity: 0.8; }

/* =========================================================
   CONFIANZA Y SEGURIDAD (ESCUDO)
   ========================================================= */
.grid-2-trust { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
.trust-visual { text-align: center; color: var(--text-primary); }

.section-title-left { font-size: 2.5rem; margin-bottom: 30px; color: var(--text-primary); }

.hologram-shield {
    position: relative;
    width: 150px;
    height: 180px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.hologram-shield svg {
    width: 100%;
    height: 100%;
    stroke: var(--green-primary);
    position: relative;
    z-index: 2;
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--green-primary);
    box-shadow: 0 0 20px 5px rgba(0, 168, 89, 0.4);
    z-index: 3;
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 10%; opacity: 0; }
    15%, 85% { opacity: 1; }
    50% { top: 90%; }
}

.security-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--green-primary); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-item:hover { transform: translateX(10px); }

.sec-icon svg {
    width: 40px; height: 40px;
    stroke: var(--green-primary);
}

.sec-text h4 { color: var(--text-primary); font-size: 1.1rem; margin-bottom: 5px; letter-spacing: 0.5px; }
.sec-text p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; line-height: 1.5; }

/* =========================================================
   FORMULARIO
   ========================================================= */
.form-wrapper { display: flex; justify-content: center; margin-top: 40px; }
.form-title { text-align: center; font-size: 2rem; color: var(--text-primary); }

.cyber-form { margin-top: 30px; }
.cyber-form .input-group { position: relative; margin-bottom: 35px; }

.input-icon {
    position: absolute;
    left: 0;
    top: 15px;
    width: 20px;
    height: 20px;
    color: var(--green-primary);
    transition: all 0.3s ease;
}

.cyber-form input, .cyber-select {
    width: 100%; 
    padding: 15px 10px 15px 45px !important; 
    background: transparent !important; 
    border: none; 
    border-bottom: 2px solid rgba(0, 0, 0, 0.1); 
    color: var(--text-primary); 
    font-size: 1.05rem; 
    font-family: inherit;
    transition: all 0.3s ease; 
    font-weight: 500;
}

.cyber-form input:-webkit-autofill,
.cyber-form input:-webkit-autofill:hover, 
.cyber-form input:-webkit-autofill:focus, 
.cyber-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-alt) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    font-family: inherit !important;
    padding-left: 45px !important;
    transition: background-color 5000s ease-in-out 0s;
}

.simulation-ticket textarea {
    width: 100%;
    background: #F0FDF4; 
    border: 1px dashed rgba(0, 168, 89, 0.4); 
    border-radius: 8px;
    padding: 15px;
    color: var(--green-hover);
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.simulation-ticket textarea:focus {
    outline: none;
    background: rgba(0, 168, 89, 0.1);
    border-style: solid;
}

/* =========================================================
FOOTER INSTITUCIONAL
   ========================================================= */
.site-footer {
    background-color: var(--green-dark); 
    margin-top: 0;
}

.security-banner {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.security-banner p {
    color: #FFFFFF;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.security-banner strong {
    color: var(--green-primary);
    letter-spacing: 1px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; 
    gap: 50px;
    padding-top: 80px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col .text-sm { line-height: 1.6; color: #D1D5DB !important; }

.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 15px; }

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover { color: var(--green-primary); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #D1D5DB;
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-contact svg {
    width: 20px; height: 20px;
    stroke: var(--green-primary);
    flex-shrink: 0; margin-top: 2px;
}

.footer-bottom {
    background: #002219; 
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   NOTIFICACIÓN FLOTANTE (TOAST)
   ========================================================= */
.toast {
    position: fixed; bottom: 30px; right: 30px;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
    border-left: 4px solid var(--green-primary); 
    padding: 20px 25px; border-radius: 10px; display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); z-index: 9999;
    opacity: 0; transform: translateY(100px); visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}
.toast.show { opacity: 1; transform: translateY(0); visibility: visible; }
.toast.error { border-left-color: #ef4444; }
.toast-icon { font-size: 1.8rem; }
.toast-content h4 { color: var(--text-primary); margin-bottom: 2px; font-size: 1.1rem;}
.toast-content p { color: var(--text-secondary); font-size: 0.9rem; margin: 0;}
.toast-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; margin-left: 10px; transition: color 0.3s; }
.toast-close:hover { color: var(--green-primary); }

/* =========================================================
   EFECTOS DE SCROLL (REVEAL)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }

/* =========================================================
   RESPONSIVIDAD (MEDIA QUERIES CELULARES Y TABLETS)
   ========================================================= */
@media (max-width: 768px) {
    nav { position: absolute; } 
    .menu-toggle { display: flex; } 
    
    .glass-panel, .glass-form-container, .simulator-wrapper {
        padding: 30px 15px !important;
    }
    .simulator-results {
        padding: 30px 15px;
    }
    
    .mega-title {
        font-size: 2.8rem;
    }

    .grid-2-trust { grid-template-columns: 1fr; text-align: center; }
    .grid-2-about, .simulator-wrapper { grid-template-columns: 1fr; text-align: center; gap: 30px;}
    .about-stats { grid-template-columns: 1fr; gap: 20px; }
    .section-title-left { text-align: center; }
    .security-item { flex-direction: column; text-align: center; }
    .security-item:hover { transform: translateY(-5px); }
    .grid-3 { grid-template-columns: 1fr; } 
    
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%; max-width: 300px;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.4s cubic-bezier(0.5, 0, 0, 1); 
        box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 999;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 25px 0; }
    
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-contact li { flex-direction: column; align-items: center; gap: 5px; }

    /* Ajuste para que la notificación flotante se vea bien en celular */
    .toast { bottom: 20px; left: 20px; right: 20px; padding: 15px; }
}