/* =========================================================
   CONFIGURACIÓN 2026: MODO CINEMATOGRÁFICO
   ========================================================= */
:root {
    --bg-main: #0B111A;     
    --bg-gradient-end: #1A2436; 
    --text-primary: #FFFFFF; 
    --text-secondary: #94A3B8; 
    --gold-primary: #D4AF37; 
    --gold-hover: #B3932B;
    --glass-bg: rgba(11, 17, 26, 0.6); 
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --soft-lift-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
    --gold-glow-soft: 0 10px 30px -15px rgba(212, 175, 55, 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 PARA TODA LA PÁGINA
   ========================================================= */
section {
    background-color: var(--bg-main) !important;
    border: none;
    margin-bottom: 0;
}

.ambient-light {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(10, 37, 64, 0.05) 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(--gold-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    color: transparent; 
    display: inline-block;
}

.highlight-gold {
    color: var(--gold-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: rgba(11, 17, 26, 0.85); 
    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(--gold-primary);
    transform: translateY(-10px);
    box-shadow: var(--gold-glow-soft), var(--soft-lift-shadow);
}

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

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

.metallic-logo {
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); 
}

.btn-accent {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-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(212, 175, 55, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.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: 25px 0;
    background: transparent; 
    border-bottom: 1px solid transparent; 
    transition: all 0.4s ease; 
}

.navbar.scrolled {
    background: rgba(11, 17, 26, 0.9); 
    backdrop-filter: blur(15px);
    padding: 12px 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.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(--gold-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(--gold-primary); 
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* =========================================================
   HERO Y VIDEO CINEMATOGRÁFICO
   ========================================================= */
.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.5; filter: saturate(130%) contrast(110%) brightness(0.8); 
}

.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(11, 17, 26, 0.1) 40%, 
        rgba(11, 17, 26, 0.8) 80%,
        rgba(11, 17, 26, 1) 98%, 
        rgba(11, 17, 26, 1) 100%
    );
}

/* =========================================================
   SECCIÓN DE SERVICIOS
   ========================================================= */
#servicios {
    background-color: var(--bg-main); 
    margin-top: -2px; 
    position: relative;
    z-index: 5; 
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Cuadrícula 2x2 */
    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(--gold-primary); 
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); 
    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(255, 255, 255, 0.1); 
    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(--gold-primary); font-size: 0.8rem; margin-top: 2px;
}

.card-link {
    display: inline-block; color: var(--gold-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); }

/* =========================================================
   CONFIANZA Y FORMULARIO
   ========================================================= */
.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); }
.shield-icon { font-size: 8rem; filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.2)); animation: pulse 3s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.05); opacity: 1; } }

.section-title-left { font-size: 2.5rem; margin-bottom: 30px; color: var(--text-primary); }
.check-list { list-style: none; margin-top: 30px; }
.check-list li { margin-bottom: 15px; padding-left: 30px; position: relative; font-size: 1.1rem; color: var(--text-secondary); }
.check-list li::before { content: '✓'; color: var(--gold-primary); position: absolute; left: 0; font-weight: bold; font-size: 1.3rem; }
.check-list strong { color: var(--text-primary); }

/* =========================================================
   FORMULARIO PREMIUM (V2)
   ========================================================= */
.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; }

/* Íconos dentro de los inputs */
.input-icon {
    position: absolute;
    left: 0;
    top: 15px;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* =========================================================
CAMPOS DE ENTRADA (CORRECCIÓN DE ÍCONOS Y AUTOFILL)
   ========================================================= */

.cyber-form input, .cyber-select {
    width: 100%; 
    /* El 45px es el que empuja el texto para que no pise el ícono */
    padding: 15px 10px 15px 45px !important; 
    background: transparent !important; 
    border: none; 
    border-bottom: 2px solid rgba(255, 255, 255, 0.15); 
    color: var(--text-primary); 
    font-size: 1.05rem; 
    font-family: inherit;
    transition: all 0.3s ease; 
    font-weight: 500;
}

/* --- EL TRUCO PARA MATAR EL FONDO FEO DEL AUTOCOMPLETADO --- */
.cyber-form input:-webkit-autofill,
.cyber-form input:-webkit-autofill:hover, 
.cyber-form input:-webkit-autofill:focus, 
.cyber-form input:-webkit-autofill:active {
    /* Forzamos a que el fondo vuelva a ser el azul oscuro de tu página */
    -webkit-box-shadow: 0 0 0 30px var(--bg-main) inset !important;
    /* Mantenemos el texto en blanco */
    -webkit-text-fill-color: var(--text-primary) !important;
    /* Respetamos la fuente */
    font-family: inherit !important;
    /* Obligamos a que mantenga el espacio del ícono aunque autocompletes */
    padding-left: 45px !important;
    /* Evitamos que haga transiciones raras de color */
    transition: background-color 5000s ease-in-out 0s;
}
/* --- TICKET DE SIMULACIÓN --- */
.simulation-ticket textarea {
    width: 100%;
    background: rgba(212, 175, 55, 0.05); /* Fondo ligéramente dorado */
    border: 1px dashed rgba(212, 175, 55, 0.4); /* Borde punteado dorado */
    border-radius: 8px;
    padding: 15px;
    color: var(--gold-primary);
    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(212, 175, 55, 0.1);
    border-style: solid;
}

/* =========================================================
FOOTER INSTITUCIONAL V2
   ========================================================= */
.site-footer {
    background-color: #05080c; /* Un tono aún más oscuro que el fondo principal para darle profundidad al cierre */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0;
}

/* Banda de Seguridad */
.security-banner {
    background: rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 20px 0;
}

.security-banner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

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

/* Cuadrícula Principal */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr; /* Proporciones de las columnas */
    gap: 50px;
    padding-top: 80px;
    padding-bottom: 60px;
}

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

.footer-col .text-sm {
    line-height: 1.6;
}

/* Enlaces y Listas */
.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 15px; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

/* Lista de Contacto con Íconos */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

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

.wa-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.wa-link:hover {
    color: var(--gold-primary);
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* Caja de la UNE */
.une-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--text-secondary);
}

.une-box strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.une-box p {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Logos de Autoridades */
.authority-logos {
    display: flex;
    gap: 25px; /* Un poco más de espacio entre ellos */
    align-items: center; /* Centrados verticalmente */
    margin-top: 25px;
}

.auth-logo {
    height: 50px; /* Altura fija para que ambos se vean del mismo tamaño */
    width: auto; /* El ancho se ajusta automáticamente */
    filter: brightness(0) invert(1); /* Vuelve el logo completamente blanco */
    opacity: 0.6; /* Un poco transparente al inicio para no distraer */
    transition: all 0.3s ease; /* Suaviza el cambio al pasar el mouse */
}

.auth-logo:hover {
    opacity: 1; /* Se vuelven 100% blancos y nítidos al pasar el mouse */
    transform: scale(1.05); /* Crecen un poquito */
}

/* Ajuste para celulares (para que no se amontonen) */
@media (max-width: 768px) {
    .authority-logos {
        justify-content: center; /* Centrados en pantallas pequeñas */
        flex-wrap: wrap; /* Si no caben, que se ponga uno abajo del otro */
    }
    .auth-logo {
        height: 45px; /* Un poco más pequeños en celular */
        margin: 10px;
    }
}

/* Copyright Bottom */
.footer-bottom {
    background: #030508; /* El negro más profundo para el final */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

/* Responsividad del Footer */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-contact li { flex-direction: column; align-items: center; gap: 5px; }
    .social-links { justify-content: center; }
    .authority-logos { justify-content: center; }
}

/* =========================================================
   NOTIFICACIÓN FLOTANTE (TOAST)
   ========================================================= */
.toast {
    position: fixed; bottom: 30px; right: 30px;
    background: rgba(11, 17, 26, 0.95); backdrop-filter: blur(20px);
    border-left: 4px solid var(--gold-primary); 
    padding: 20px 25px; border-radius: 10px; display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); 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(--text-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 AVANZADA (MEDIA QUERIES)
   ========================================================= */
/* 1. Pantallas Medianas / Tablets en horizontal (hasta 1024px) */
@media (max-width: 1024px) {
    .container { width: 95%; }
    .mega-title { font-size: 4.5rem; }
    .grid-2-trust { gap: 30px; }
    .shield-icon { font-size: 6rem; }
    .section-padding { padding: 80px 0; }
    .hero { min-height: 80vh; }
}

/* 2. Tablets en vertical y Celulares grandes (hasta 768px) */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%; max-width: 300px;
        background: rgba(11, 17, 26, 0.95); 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.8); 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); }
    
    .hero { padding-top: 140px; text-align: center; padding-bottom: 80px; }
    .hero p { margin-left: auto; margin-right: auto; }
    .mega-title { font-size: 3rem; margin-bottom: 20px; }
    
    .grid-3 { grid-template-columns: 1fr; } /* 1 columna en celulares */
    .grid-2-trust { grid-template-columns: 1fr; text-align: center; }
    
    .trust-visual { margin-bottom: 30px; }
    .section-title-left { text-align: center; }
    .check-list { display: inline-block; text-align: left; }
    
    .glass-panel { padding: 40px 25px; }
    .glass-form-container { padding: 40px 25px; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}

/* 3. Celulares pequeños (hasta 480px) */
@media (max-width: 480px) {
    .mega-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    .hero p { font-size: 1rem; }
    .btn-accent { width: 100%; text-align: center; padding: 15px 20px; display: block; }
    .hero-btns { width: 100%; padding: 0 10px; }
    .glass-card { padding: 30px 20px; }
    .card-icon-3d { font-size: 3rem; }
    .cyber-form input, .cyber-select { font-size: 1rem; padding: 12px 5px; }
    .toast { bottom: 20px; left: 20px; right: 20px; padding: 15px; }
}

/* =========================================================
   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(--gold-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 "RAYO LÁSER" Y ANIMACIONES
   ========================================================= */

/* La barra de fondo (el riel) */
.gold-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px; /* Más delgada para mayor elegancia */
    background: rgba(255, 255, 255, 0.1); /* Gris muy sutil */
    border-radius: 2px;
    outline: none;
    transition: all 0.3s;
    cursor: pointer;
    /* Este truco permite "llenar" la barra de oro a la izquierda del control */
    background-image: linear-gradient(var(--gold-primary), var(--gold-primary));
    background-size: 0% 100%; /* Empieza vacío (se controla con JS) */
    background-repeat: no-repeat;
}

/* El control que se arrastra (Webkit: Chrome, Safari, Edge) */
.gold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px; /* Rectángulo vertical delgado */
    height: 24px;
    background: var(--gold-primary); /* Oro sólido */
    border-radius: 2px; /* Bordes ligeramente redondeados */
    cursor: grab;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); /* Resplandor intenso */
    transition: all 0.2s ease;
    border: none; /* Sin borde, pura luz */
    margin-top: -10px; /* Centrarlo verticalmente respecto al riel */
}

/* El control que se arrastra (Firefox) */
.gold-slider::-moz-range-thumb {
    width: 12px;
    height: 24px;
    background: var(--gold-primary);
    border-radius: 2px;
    cursor: grab;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    transition: all 0.2s ease;
    border: none;
}

/* Efecto al agarrar el control */
.gold-slider:active::-webkit-slider-thumb {
    transform: scale(1.1);
    cursor: grabbing;
    background: var(--text-primary); /* Se vuelve blanco brillante al tocarlo */
}
.gold-slider:active::-moz-range-thumb {
    transform: scale(1.1);
    cursor: grabbing;
    background: var(--text-primary);
}

/* --- ANIMACIÓN DEL PANEL DE RESULTADOS --- */

/* Clase que añade el pulso de luz */
.pulsing {
    animation: goldPulse 0.6s ease-out;
}

/* Definición de la animación de pulso */
@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); border-color: var(--gold-primary); }
    70% { box-shadow: 0 0 30px 10px rgba(212, 175, 55, 0); border-color: rgba(212, 175, 55, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); border-color: rgba(212, 175, 55, 0.3); }
}

/* Panel de Resultados */
.simulator-results {
    background: rgba(11, 17, 26, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    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(255, 255, 255, 0.1);
}

.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: rgba(148, 163, 184, 0.6); text-align: left; line-height: 1.4; }

/* Responsividad para el simulador */
@media (max-width: 768px) {
    .simulator-wrapper { grid-template-columns: 1fr; padding: 30px 20px; gap: 40px; }
    .result-number { font-size: 2.2rem; }
}

/* =========================================================
   NUEVA SECCIÓN DE SEGURIDAD (BLINDAJE FOCREMEX)
   ========================================================= */

/* Escudo Holográfico */
.hologram-shield {
    position: relative;
    width: 150px;
    height: 180px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Mantiene el láser dentro del escudo */
}

.hologram-shield svg {
    width: 100%;
    height: 100%;
    stroke: var(--gold-primary);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    position: relative;
    z-index: 2;
}

/* Línea láser que sube y baja */
.scanner-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--gold-primary);
    box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.6);
    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%; }
}

/* Tarjetas apiladas de la derecha */
.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(--gold-primary); /* Línea dorada distintiva */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-item:hover {
    transform: translateX(10px); /* Al pasar el mouse, se mueven un poco a la derecha */
}

.sec-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--gold-primary);
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.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;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .security-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .security-item:hover {
        transform: translateY(-5px); /* En celular se mueven hacia arriba, no a la derecha */
    }
}
/* =========================================================
   SECCIÓN: QUIÉNES SOMOS (NOSOTROS)
   ========================================================= */
.grid-2-about {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* La columna de texto es un poco más ancha */
    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(255, 255, 255, 0.1); /* Línea divisoria elegante */
}

.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;
}

/* Animación del rombo institucional */
.abstract-shape svg {
    width: 160px;
    height: 160px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    animation: floatShape 6s ease-in-out infinite;
}

.text-sm { font-size: 0.85rem; }

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

/* Responsividad para la sección de Nosotros */
@media (max-width: 768px) {
    .grid-2-about { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .about-stats { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .section-title-left { 
        text-align: center; 
    }
}

/* =========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    left: 30px; /* Posicionado a la izquierda */
    background-color: #25D366; /* Verde oficial */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998; /* Un punto por debajo de la notificación de correo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite; /* El efecto de latido */
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
    margin-left: 2px; /* Pequeño ajuste visual para centrar el logo */
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px); /* Se levanta un poco al pasar el mouse */
    background-color: #1EBE57; /* Verde un poco más oscuro */
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Animación de ondas expansivas verdes */
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Ajuste fino para celulares (para que no estorbe en pantallas chicas) */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}