/* --- MAGIA 1: Smooth Scrolling (Desplazamiento suave) --- */
html {
    scroll-behavior: smooth;
}

/* --- Variables de Color --- */
:root {
    --color-dorado: #C6A664;       /* El dorado principal del logo */
    --color-dorado-oscuro: #A4864A; /* Un tono más oscuro para cuando pasas el mouse */
    --color-texto-oscuro: #333333;
    --color-fondo-claro: #ffffff;
}

/* --- Reseteo básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--color-fondo-claro);
    color: var(--color-texto-oscuro);
}

/* --- Navegación --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #ffffff;
    /* La sombra se quitó de aquí porque ahora se la ponemos dinámicamente con JS */
    position: sticky;
    top: 0;
    z-index: 100; /* Asegura que el menú siempre quede por encima del contenido */
    transition: all 0.3s ease; /* Transición suave para la sombra dinámica */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-dorado);
}

/* --- Botones --- */
.btn-primary {
    background-color: var(--color-dorado);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-dorado-oscuro);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-dorado);
    padding: 10px 20px;
    border: 2px solid var(--color-dorado);
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--color-dorado);
    color: #ffffff;
}

/* --- Sección Hero --- */
.hero {
    position: relative; /* Importante para posicionar el video dentro */
    height: 80vh; /* Ajusta la altura a tu gusto */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Corta lo que sobre del video */
    color: white;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* El video va al fondo */
    transform: translate(-50%, -50%);
    object-fit: cover; /* Hace que el video cubra todo el espacio sin deformarse */
}

/* Capa oscura para mejorar el contraste del texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Negro al 40% de transparencia */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* El texto va arriba de todo */
    max-width: 800px;
    padding: 0 20px;
}

/* Estilo para el botón secundario en el fondo oscuro */
.btn-secondary-white {
    padding: 12px 25px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 10px;
    transition: 0.3s;
}

.btn-secondary-white:hover {
    background: white;
    color: var(--color-dorado);
}

/* --- Sección de Servicios --- */
.services-section {
    padding: 60px 20px;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto; 
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #111;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* --- Cuadrícula (CSS Grid) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Diseño de las Tarjetas --- */
.service-card {
    background-color: var(--color-fondo-claro);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #222;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    text-decoration: none;
    color: var(--color-dorado);
    font-weight: 600;
}

.service-link:hover {
    color: var(--color-dorado-oscuro);
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
/* --- Centro de Datos --- */
.stats-section {
    padding: 60px 20px;
    background-color: var(--color-fondo-claro); /* Usamos la variable que creamos */
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}
/* --- Sección de Afiliación --- */
.signup-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.signup-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    align-items: center;
}

.signup-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #111;
}

.signup-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-texto-oscuro);
}

/* --- Tarjeta del Formulario --- */
.signup-form-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-top: 5px solid var(--color-dorado); /* Detalle elegante en la parte superior */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-dorado);
}

/* Fila con dos columnas (para RUC y Teléfono) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   MENÚ RESPONSIVO (MÓVILES)
   ========================================= */

/* Estilos del botón hamburguesa (Oculto en PC por defecto) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-texto-oscuro);
    transition: all 0.3s ease;
}

/* Cuando la pantalla es menor a 768px (Tablets y Celulares) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Mostramos el botón hamburguesa */
    }

    /* Ocultamos el botón de 'Hazte Socio' del menú en celulares para ahorrar espacio */
    .btn-desktop {
        display: none;
    }

    /* Transformamos la barra de enlaces en un menú desplegable vertical */
    .nav-links {
        position: absolute;
        top: 70px; /* Justo debajo del navbar */
        left: -100%; /* Oculto fuera de la pantalla a la izquierda */
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    /* Clase que añadiremos con JavaScript para mostrar el menú */
    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }
}
/* --- Sección de Eventos --- */
.events-section {
    padding: 60px 20px;
    background-color: var(--color-fondo-claro);
    max-width: 1000px; /* Un poco más angosto para que la lista se vea mejor */
    margin: 0 auto;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* El bloque cuadrado con la fecha */
.event-date {
    background-color: var(--color-dorado);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.event-details {
    padding: 25px;
    flex-grow: 1;
}

.event-details h3 {
    color: #222;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.event-meta {
    font-weight: 600;
    color: var(--color-dorado-oscuro);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.event-desc {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
    .event-card {
        flex-direction: column; /* Apila la fecha arriba y el texto abajo */
    }
    
    .event-date {
        flex-direction: row; /* Pone el día y mes lado a lado */
        gap: 10px;
        padding: 15px;
    }
}
/* Estilos para el logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px; /* Ajusta esta altura según cómo quieras que se vea */
    width: auto;  /* Esto mantiene la proporción de la imagen para que no se estire */
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); /* Un pequeño efecto de zoom al pasar el mouse */
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .logo-img {
        height: 40px; /* Un poco más pequeño en móviles */
    }
}
/* ==========================================
   MENÚ DESPLEGABLE (DROPDOWN)
   ========================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 300px; /* Ancho del menú desplegable */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--color-dorado) !important;
    color: white !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Indicador de flechita */
.dropbtn::after {
    content: ' ▼';
    font-size: 0.7rem;
}
/* ==========================================
   CORRECCIÓN DEL MENÚ DESPLEGABLE
   ========================================== */
.nav-links .dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Ocultar el submenú por defecto */
.nav-links .dropdown-content {
    display: none !important; /* Forzamos a que esté oculto */
    position: absolute;
    background-color: #ffffff;
    min-width: 280px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 9999; /* Lo ponemos por encima de todo el sitio */
    top: 100%;
    left: 0;
    border-radius: 5px;
    padding: 0;
    flex-direction: column; /* Obligamos a que se apilen hacia abajo */
}

/* Mostrar el submenú en formato lista al pasar el mouse */
.nav-links .dropdown:hover .dropdown-content {
    display: flex !important; 
}

/* Estilo de cada opción dentro del menú blanco */
.nav-links .dropdown-content a {
    color: #333 !important;
    padding: 12px 15px !important;
    text-decoration: none !important;
    display: block !important;
    text-align: left !important;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: normal; /* Permite que si el texto es largo, baje a otra línea */
}

.nav-links .dropdown-content a:last-child {
    border-bottom: none;
}

.nav-links .dropdown-content a:hover {
    background-color: var(--color-dorado) !important;
    color: white !important;
}

/* Ocultar la flechita en versión móvil para que no se dañe */
@media (max-width: 768px) {
    .nav-links .dropdown-content {
        position: static;
        box-shadow: none;
        display: none !important;
    }
    .nav-links .dropdown:hover .dropdown-content {
        display: none !important; /* En móviles el menú desplegable suele manejarse diferente, por ahora lo ocultamos para que no rompa el diseño */
    }
}
/* ==========================================
   DISEÑO DEL FOOTER INSTITUCIONAL (VERSIÓN DORADA)
   ========================================== */
.site-footer {
    background-color: #c6a664; /* Puedes poner aquí tu variable var(--color-dorado) o el hex exacto que usaste */
    color: #1a252f; /* Cambiamos el color base a oscuro */
    padding: 60px 20px 20px; 
    font-family: 'Inter', sans-serif;
}

.footer-logo {
    text-align: center;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 80px;
    /* QUITAMOS EL FILTRO BLANCO: Ahora tu logo se verá con sus colores normales */
    filter: none; 
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

/* Forzamos a que todo esté alineado a la izquierda para mantener el orden */
.footer-col {
    text-align: left;
}

.footer-col h4 {
    color: #1a252f; /* Títulos en el color oscuro Navy */
    font-size: 1.05rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* La rayita debajo de los títulos ahora es oscura */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #1a252f;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

/* Los enlaces y textos ahora son oscuros para que resalten sobre el dorado */
.footer-col ul li a,
.footer-col p,
.footer-col .social-links a {
    color: #333333; 
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: block; 
    margin-bottom: 12px;
    font-weight: 500;
}

/* Al pasar el mouse, los textos se vuelven blancos */
.footer-col ul li a:hover,
.footer-col .social-links a:hover {
    color: #ffffff; 
}

.footer-col p {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* La parte final del Copyright */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(26, 37, 47, 0.15); /* Línea divisoria oscura sutil */
    padding-top: 25px;
    font-size: 0.85rem;
    color: #444444;
}

/* ==========================================
   BOTÓN FLOTANTE DE WHATSAPP (PREMIUM)
   ========================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    /* Efecto de latido suave */
    animation: pulse-whatsapp 2s infinite;
}

/* Animación del latido */
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #20b858;
    animation: none; /* Detiene el latido al pasar el mouse */
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
    filter: none;
    z-index: 2;
}

/* Etiqueta de texto "¡Hablemos!" */
.whatsapp-float::before {
    content: '¡Hablemos!';
    position: absolute;
    right: 75px;
    background-color: #ffffff;
    color: #333333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform: translateX(10px);
}

/* Mostrar la etiqueta al pasar el mouse */
.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-float img { width: 30px; height: 30px; }
    .whatsapp-float::before { display: none; } /* Ocultamos la etiqueta en celulares */
}

/* Adaptación para celulares */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
    .footer-logo img {
        height: 60px;
    }
}
/* ==========================================
   NUEVOS ESTILOS: SERVICIOS CON LOGOS DE CONVENIOS
   ========================================== */
.service-item {
    display: flex;
    align-items: center;
    gap: 20px; 
    padding: 20px 0;
    border-bottom: 1px dashed #eaeaea; 
}

/* Le quitamos la rayita al último elemento de la lista */
.service-item:last-child {
    border-bottom: none;
}

.service-logo {
            flex-shrink: 0; 
            width: 110px;  /* Aumentado de 75px */
            height: 110px; /* Aumentado de 75px */
            background-color: #ffffff;
            border: 1px solid #eee;
            border-radius: 12px; 
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            transition: transform 0.3s ease;
        }

        /* Efecto para que el logo se mueva al pasar el mouse */
        .service-logo:hover {
            transform: scale(1.05);
            border-color: var(--color-dorado);
        }

        .service-logo img {
            width: 90%;  /* Ajustado para que no se vea gigante y borroso */
            height: 90%;
            object-fit: contain; /* Para que el logo no se deforme */
            padding: 5px; 
        }

        /* Estilo para los links en los títulos */
        .service-info a {
            text-decoration: none;
            color: inherit;
        }
        
        .service-info a:hover h4 {
            color: var(--color-dorado);
            text-decoration: underline;
        }
/* ==========================================
   ÍCONOS ELEGANTES (TARJETAS DE SERVICIOS)
   ========================================== */
.icon-elegant {
    font-size: 2rem;
    color: var(--color-dorado); /* Color dorado por defecto */
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(198, 166, 100, 0.1); /* Un fondo dorado muy transparente */
    border-radius: 50%; /* Lo hace un círculo perfecto */
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse por encima de la tarjeta */
.service-card:hover .icon-elegant {
    background-color: var(--color-dorado);
    color: #ffffff; /* El ícono se vuelve blanco */
    transform: scale(1.1); /* Crece un poquito */
    box-shadow: 0 10px 20px rgba(198, 166, 100, 0.3);
}
/* ==========================================
   ÍCONOS DEL MENÚ DESPLEGABLE
   ========================================== */
.dropdown-content a i {
    color: var(--color-dorado) !important; /* Íconos dorados */
    width: 20px; /* Ancho fijo para que el texto quede alineado */
    text-align: center;
    margin-right: 8px; /* Separación con el texto */
    font-size: 1.1rem;
}
/* ==========================================
   NUEVAS TARJETAS DE EVENTOS CON FOTO (HERO CARDS)
   ========================================== */
.events-grid-img {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.event-card-img {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja el texto hacia abajo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* La imagen de fondo */
.event-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: top center; /* <--- LA MAGIA ESTÁ AQUÍ */
    z-index: 1;
    transition: transform 0.5s ease;
}

/* Efecto zoom a la foto al pasar el mouse */
.event-card-img:hover .event-bg {
    transform: scale(1.08); 
}

/* El degradado oscuro (estilo corporativo) */
.event-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado: empieza transparente arriba y termina azul oscuro/negro abajo */
    background: linear-gradient(to top, rgba(15, 32, 60, 0.95) 0%, rgba(15, 32, 60, 0.6) 40%, rgba(15, 32, 60, 0.1) 100%);
    z-index: 2;
}

/* El contenido (Títulos y Fechas) */
.event-content {
    position: relative;
    z-index: 3;
    padding: 25px;
    color: #ffffff;
}

.event-content h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

/* La rayita divisoria y la fecha */
.event-date-location {
    font-size: 0.95rem;
    color: #e5e7eb; 
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 15px;
}
/* ==========================================
   CENTRO DE DATOS EMPRESARIAL (DASHBOARD)
   ========================================== */
.stats-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-box {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.stat-box i {
    font-size: 2.2rem;
    color: var(--color-dorado);
    margin-bottom: 15px;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: #1a252f;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.stat-box p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    height: 400px; /* Altura controlada para que no se estire de más */
    position: relative;
}

/* --- MAGIA 2: Clases para la animación al hacer scroll (Fade-In) --- */
.elemento-oculto {
    opacity: 0;
    transform: translateY(40px); /* Empieza 40px más abajo */
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); /* Movimiento súper suave */
}

.elemento-visible {
    opacity: 1;
    transform: translateY(0); /* Sube a su posición original */
}
/* Definición de la animación de entrada */
@keyframes aparecerLogo {
    0% { opacity: 0; transform: translateX(-60px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Clase para aplicar la animación */
.animacion-logo {
    animation: aparecerLogo 1s cubic-bezier(0.4, 0.9, 0.2, 1) forwards;
}