/* =========================================
   VARIABLES DE COLOR Y FUENTES (PALETA CLARA)
========================================= */
:root {
    --bg-main: #ffffff;        /* Fondo principal muy suave */
    --bg-surface: #ffffff;     /* Cajas, tarjetas y secciones */
    --body-deep-blue: #0f172a; /* Footer y contrastes oscuros */
    --accent-premium: #2563eb; /* Azul vibrante financiero para CTAs */
    --accent-hover: #1d4ed8;   /* Azul más oscuro para interacciones */
    --text-main: #1e293b;      /* Texto principal (casi negro) */
    --text-muted: #000000;     /* Párrafos y subtítulos */
    --font-headers: 'Playfair Display', serif;
    --montserrat: 'Montserrat', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.06); /* Sombra elegante y limpia */
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--montserrat);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
}

/* =========================================
   HEADER PREMIUM PROCRECE (VERSIÓN CLARA)
========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 5%; /* Ajuste de tamaño general más compacto */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px); /* Soporte para Safari */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all .15s ease;
}

.site-header.scrolled {
    padding: 0.2rem 5%; /* Ajuste proporcional al hacer scroll */
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

/* LOGO */
.logo {
    font-family: var(--font-headers);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent-premium);
    text-decoration: none;
    transition: .3s;
}

.logo:hover {
    opacity: .85;
}

/* NAV DESKTOP */
#nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

#nav-menu ul li {
    display: flex;
    align-items: center;
}

/* LINKS */
#nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: .95rem;
    letter-spacing: .5px;
    font-weight: 600;
    transition: all .25s ease;
    position: relative;
}

#nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-premium);
    transition: .3s;
}

#nav-menu a:hover::after {
    width: 100%;
}

#nav-menu a:hover {
    color: var(--accent-premium);
}

#nav-menu i {
    font-size: 1.2rem;
    margin-right: 6px;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--accent-premium);
    cursor: pointer;
    transition: transform .3s ease;
}

/* =========================================
   MOBILE MENU
========================================= */
@media (max-width:768px) {
    .menu-toggle { display: block; }
/* 1. Reducir el padding de la barra en móviles */
    .site-header {
        padding: 0.4rem 5%; 
    }

    /* 2. Achicar el texto del logo en móviles */
    .logo {
        font-size: 1.3rem; 
    }
    #nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0,0,0,.05);
        transition: left .4s ease;
        box-shadow: 0 10px 25px rgba(0,0,0,.1);
    }

    #nav-menu.nav-active { left: 0; }

    #nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
    }

    #nav-menu ul li { width: 100%; text-align: center; }
    
    #nav-menu ul li a {
        display: block;
        font-size: 1.1rem;
        padding: 10px;
    }
}

/* =========================================
   HERO (MÁS LUMINOSO)
========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Capa translúcida clara sobre la imagen de fondo */
    background:
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.95)),
        url('img/head.webp') center/cover no-repeat;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-headers);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- BOTÓN PREMIUM (ACCIÓN DIRECTA) --- */
.btn-premium {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid var(--accent-premium);
    background: var(--accent-premium);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: .3s;
}

.btn-premium:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
}

.btn-premium.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}

.btn-premium.btn-whatsapp:hover {
    background-color: #1ebc5a;
    border-color: #1ebc5a;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* =========================================
   TRUST SECTION (CONFIANZA)
========================================= */
.trust-section {
    padding: 60px 5%;
    background: var(--bg-surface);
    border-top: 1px solid rgba(0,0,0,.05);
    border-bottom: 1px solid rgba(0,0,0,.05);
    position: relative;
    z-index: 2;
}

.trust-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.trust-item h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-premium);
    margin-bottom: 5px;
    font-family: var(--font-headers);
}

.trust-item p {
    font-size: .95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* =========================================
   QUIÉNES SOMOS (GLASS SECTION CLARA)
========================================= */
.glass-section {
    margin: 5rem auto;
    width: 90%;
    max-width: 900px;
    padding: 4rem;
    background: var(--bg-surface);
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.glass-section h2 {
    font-family: var(--font-headers);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-align: center;
}

/* =========================================
   CREDITOS (TARJETAS LIMPIAS)
========================================= */
.creditos-section {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--bg-main);
}

.section-title {
    font-family: var(--font-headers);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 3rem;
}

.grid-creditos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
}

.tarjeta-credito {
    background: var(--bg-surface);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid rgba(0,0,0,.03);
}

.tarjeta-credito:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.1);
}

.tarjeta-credito img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: .5s;
}

.tarjeta-info {
    padding: 2rem 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tarjeta-info h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: .8rem;
    font-family: var(--font-headers);
}

.tarjeta-info p {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}

/* =========================================
   CTA FINAL (LLAMADO A LA ACCIÓN)
========================================= */
.cta-final {
    padding: 80px 5%;
    text-align: center;
    background: linear-gradient(135deg, #e0e7ff, #eff6ff); /* Fondo azul muy fresco */
    border-top: 2px solid var(--accent-premium);
}

.cta-final h2 {
    font-family: var(--font-headers);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.cta-final p {
    max-width: 700px;
    margin: auto;
    margin-bottom: 35px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* =========================================
   FOOTER PREMIUM FINANCIERO
========================================= */
.footer-premium {
    background: var(--body-deep-blue);
    padding: 70px 5% 30px;
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.logo-footer {
    font-family: var(--font-headers);
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

.lema, .direccion {
    color: #94a3b8;
    font-size: .95rem;
    margin-bottom: 15px;
}

.footer-contact h3,
.footer-security h3,
.footer-legal h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn, .legal-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: .95rem;
    transition: .25s;
}

.contact-btn:hover, .legal-link:hover {
    color: var(--accent-premium);
    transform: translateX(4px);
}

.footer-security ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: .9rem;
    color: #cbd5e1;
}

.footer-security i, .cert-item i {
    color: var(--accent-premium);
    margin-right: 6px;
}

.footer-certifications {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: #cbd5e1;
}

.footer-bottom {
    text-align: center;
    font-size: .8rem;
    color: #64748b;
}

/* =========================================
   BOTÓN WHATSAPP FLOTANTE
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

/* =========================================
   ANIMACIONES
========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .3s; }
.delay-3 { transition-delay: .5s; }
.delay-4 { transition-delay: .7s; }
.delay-5 { transition-delay: .9s; }

/* =========================================
   RESPONSIVE
========================================= */
@media(max-width:992px) {
    .tarjeta-credito {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media(max-width:768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .tarjeta-credito {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cta-final h2 {
        font-size: 1.8rem;
    }
    .footer-certifications {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
/* =========================================
   NUEVA SECCIÓN: IMPACTO Y BENEFICIOS
========================================= */
.impact-section {
    padding: 7rem 5%;
    background-color: #f8fafc; /* Fondo ligeramente gris para separar secciones */
}

.impact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6rem;
}

/* Columna Visual */
.impact-visual {
    flex: 1;
    position: relative;
}

.impact-visual .main-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    height: 500px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent-premium);
    color: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.experience-badge .number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-headers);
}

.experience-badge .text {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Columna de Texto/Contenido */
.impact-content {
    flex: 1;
}

.section-title.left-align {
    text-align: left;
    margin-bottom: 20px;
}

.impact-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.benefits-list {
    list-style: none;
    margin-bottom: 3rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 15px;
}

.benefits-list li i {
    color: var(--accent-premium);
    font-size: 1.2rem;
}

/* Reubicación de los números/stats */
.stats-grid {
    display: flex;
    gap: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-premium);
    font-family: var(--font-headers);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-item p {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================================
   HOVER ESTILO OUTLINE
========================================= */
.btn-outline-dark:hover {
    background: var(--accent-premium);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

/* =========================================
   RESPONSIVO (Ajustes para Impact Section)
========================================= */
@media(max-width:992px) {
    .impact-container {
        flex-direction: column;
        gap: 4rem;
    }
    .experience-badge {
        right: 20px;
        bottom: -20px;
    }
}

@media(max-width:768px) {
    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }
    .experience-badge {
        padding: 15px;
        right: 10px;
    }
    .experience-badge .number {
        font-size: 2.5rem;
    }
}