/* ========================================
   RESET Y CONFIGURACIÓN BASE
   ======================================== */

/* Reset: Elimina márgenes y padding por defecto del navegador
   box-sizing: border-box hace que padding y border se incluyan en el tamaño total */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS: Permite reutilizar colores en todo el documento
   Es como crear constantes que puedes usar en cualquier parte con var(--nombre) */
:root {
    --primary-green: #00ff88;    /* Verde neón brillante */
    --dark-bg: #0a0e27;          /* Azul oscuro espacial */
    --light-bg: #1a1f3a;         /* Azul medio */
    --accent-blue: #00d4ff;      /* Cian brillante */
    --accent-purple: #b400ff;    /* Púrpura eléctrico */
    --text-light: #ffffff;       /* Blanco */
    --text-gray: #a0a0a0;        /* Gris medio */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* GRADIENTE DE FONDO: Mezcla 3 colores en diagonal (135deg)
       Crea profundidad y un aspecto espacial moderno */
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f1729 50%, var(--light-bg) 100%);
    color: var(--text-light);
    overflow-x: hidden;  /* Evita scroll horizontal no deseado */
    line-height: 1.6;
}

/* ========================================
   PARTÍCULAS FLOTANTES DE FONDO
   EFECTO: Puntos brillantes que suben por la pantalla
   ======================================== */
.particles {
    position: fixed;      /* Se mantiene fijo al hacer scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;          /* Detrás de todo el contenido */
    pointer-events: none; /* No interfiere con clicks del usuario */
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 50%;   /* Hace que el cuadrado sea un círculo */
    opacity: 0.5;         /* Semi-transparente */
    animation: float 20s infinite;  /* Animación que se repite infinitamente */
    /* BOX-SHADOW: Crea un brillo alrededor de cada partícula
       Formato: horizontal vertical blur color */
    box-shadow: 0 0 10px var(--primary-green);
}

/* POSICIONAMIENTO ÚNICO: Cada partícula tiene diferente posición, retraso y duración
   nth-child(n) selecciona cada hijo específico
   Esto crea un efecto más natural y menos repetitivo */
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 60%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 70%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 80%; animation-delay: 2.5s; animation-duration: 21s; }
.particle:nth-child(8) { left: 90%; animation-delay: 4.5s; animation-duration: 14s; }

/* ANIMACIÓN FLOAT: Simula partículas subiendo desde abajo
   @keyframes define los pasos de la animación
   Los porcentajes representan el progreso de la animación */
@keyframes float {
    /* INICIO Y FIN: Partícula invisible en la parte inferior */
    0%, 100% {
        transform: translateY(100vh) scale(0);  /* 100vh = 100% altura de ventana */
        opacity: 0;  /* Invisible */
    }
    /* APARICIÓN GRADUAL: Se hace visible al 10% del recorrido */
    10% {
        opacity: 0.5;
    }
    /* DESAPARICIÓN GRADUAL: Empieza a desvanecerse al 90% */
    90% {
        opacity: 0.5;
    }
    /* PUNTO MEDIO: Tamaño completo a la mitad del recorrido */
    50% {
        transform: translateY(50vh) scale(1);
    }
}

/* ========================================
   BARRA DE NAVEGACIÓN
   EFECTO: Se desliza desde arriba al cargar + efecto vidrio esmerilado
   ======================================== */
.navbar {
    position: fixed;      /* Se mantiene visible al hacer scroll */
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;  /* Separa logo y menú */
    align-items: center;
    /* FONDO SEMI-TRANSPARENTE: rgba(r,g,b,alpha) donde alpha=0.95 para mayor opacidad */
    background: rgba(10, 14, 39, 0.95);
    /* BACKDROP-FILTER: ¡EFECTO VIDRIO ESMERILADO MODERNO!
       Difumina lo que está detrás de la barra */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;       /* Encima de todo */
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);  /* Línea sutil verde */
    animation: slideDown 0.5s ease-out;  /* Animación de entrada */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);  /* Sombra para destacar */
}

/* ANIMACIÓN SLIDE DOWN: La barra entra deslizándose desde arriba
   from/to es equivalente a 0%/100% */
@keyframes slideDown {
    from {
        transform: translateY(-100%);  /* Empieza arriba fuera de vista */
        opacity: 0;                    /* Invisible */
    }
    to {
        transform: translateY(0);      /* Posición final normal */
        opacity: 1;                    /* Visible */
    }
}

/* LOGO CON TEXTO DEGRADADO
   TRUCO: Usar gradiente como color de texto */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    /* GRADIENTE: Mezcla de verde a azul en 45 grados */
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    /* background-clip: text = El gradiente solo se aplica al texto
       -webkit- es prefijo para Safari/Chrome */
    -webkit-background-clip: text;
    background-clip: text;
    /* Hace el texto transparente para ver el gradiente de fondo */
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite;  /* Pulso de brillo constante */
}

/* ANIMACIÓN GLOW: Pulso de brillo que respira
   ease-in-out = Suave al inicio y al final */
@keyframes glow {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 5px var(--primary-green)); 
    }
    50% { 
        /* BRIGHTNESS(1.5) = 50% más brillante
           DROP-SHADOW = Sombra más grande en el pico */
        filter: brightness(1.5) drop-shadow(0 0 20px var(--primary-green)); 
    }
}

/* MENÚ DE NAVEGACIÓN */
.nav-links {
    display: flex;
    list-style: none;  /* Quita los puntos de la lista */
    gap: 2rem;         /* Espacio entre enlaces */
}

/* ENLACES CON SUBRAYADO ANIMADO
   TÉCNICA: Usar pseudo-elemento ::after como línea decorativa */
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;  /* Necesario para posicionar el ::after */
    transition: color 0.3s;  /* Transición suave del color */
}

/* PSEUDO-ELEMENTO ::after: Crea una línea debajo del enlace
   content: '' es obligatorio para que aparezca
   Este elemento NO existe en el HTML, CSS lo crea */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;      /* 5px debajo del texto */
    left: 0;
    width: 0;          /* EMPIEZA EN 0 (invisible) */
    height: 2px;
    /* Línea con gradiente de colores */
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    transition: width 0.3s;  /* Animación del crecimiento */
}

/* AL HACER HOVER: La línea crece de 0 a 100%
   EFECTO VISUAL: Línea que se dibuja de izquierda a derecha */
.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-green);  /* Cambio de color al pasar el mouse */
}

/* Estilo especial para el enlace de juegos - Versión llamativa (legacy) */
.nav-games {
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.nav-games::after {
    display: none; /* No mostrar la línea animada en el botón de juegos */
}

.nav-games:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

/* Estilo discreto para el enlace de juegos */
.nav-games-discrete {
    color: var(--text-gray);
    padding: 0.5rem 1rem !important;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-games-discrete::after {
    display: none; /* No mostrar la línea animada */
}

.nav-games-discrete:hover {
    color: var(--primary-green);
    border-color: var(--primary-green);
    opacity: 1;
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-2px);
}

/* ========================================
   SECCIÓN HERO (PRINCIPAL)
   EFECTO: Contenido entra desde los lados
   ======================================== */
.hero {
    min-height: 100vh;   /* 100% de la altura de la ventana */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 4rem;  /* Padding-top para compensar navbar */
    position: relative;
    z-index: 1;
    gap: 4rem;           /* Espacio entre texto y visual */
}

.hero-content {
    flex: 1;            /* Ocupa el espacio disponible */
    animation: fadeInLeft 1s ease-out;  /* Entra desde la izquierda */
}

/* ANIMACIÓN FADE IN LEFT: Aparece deslizándose desde la izquierda
   Combina opacidad (fade) con movimiento horizontal (slide) */
@keyframes fadeInLeft {
    from {
        opacity: 0;                      /* Invisible */
        transform: translateX(-50px);    /* 50px a la izquierda */
    }
    to {
        opacity: 1;                      /* Visible */
        transform: translateX(0);        /* Posición normal */
    }
}

/* ========================================
   EFECTO GLITCH - ¡EL MÁS LLAMATIVO!
   TÉCNICA: Usar múltiples text-shadow de colores que cambian de posición
   RESULTADO: Efecto de distorsión digital estilo cyberpunk
   ======================================== */
.glitch {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    /* TEXT-SHADOW: Crea copias del texto con colores RGB
       Formato: horizontal vertical blur color
       TRUCO: Pequeños desplazamientos crean efecto de aberración cromática */
    text-shadow: 0.05em 0 0 var(--accent-blue),        /* Sombra azul a la derecha */
                 -0.025em -0.05em 0 var(--accent-purple), /* Sombra púrpura arriba-izq */
                 0.025em 0.05em 0 var(--primary-green);   /* Sombra verde abajo-der */
    animation: glitch 1000ms infinite;  /* Se repite cada segundo */
    margin-bottom: 1rem;
}

/* ANIMACIÓN GLITCH: Cambia las posiciones de las sombras aleatoriamente
   CONCEPTO: Simula un error digital donde los canales RGB se desalinean
   Los cambios bruscos en porcentajes específicos crean el efecto "glitchy" */
@keyframes glitch {
    /* PASOS 0-14%: Posición inicial estable */
    0% {
        text-shadow: 0.05em 0 0 var(--accent-blue), 
                     -0.05em -0.025em 0 var(--accent-purple),
                     -0.025em 0.05em 0 var(--primary-green);
    }
    14% {
        text-shadow: 0.05em 0 0 var(--accent-blue), 
                     -0.05em -0.025em 0 var(--accent-purple),
                     -0.025em 0.05em 0 var(--primary-green);
    }
    /* PASO 15%: ¡CAMBIO BRUSCO! Las sombras saltan a nuevas posiciones
       Este cambio repentino crea el efecto de "glitch" */
    15% {
        text-shadow: -0.05em -0.025em 0 var(--accent-blue),  /* Azul salta a izquierda-arriba */
                     0.025em 0.025em 0 var(--accent-purple),  /* Púrpura al centro */
                     -0.05em -0.05em 0 var(--primary-green);  /* Verde arriba-izquierda */
    }
    /* MANTIENE posición hasta el 49% */
    49% {
        text-shadow: -0.05em -0.025em 0 var(--accent-blue), 
                     0.025em 0.025em 0 var(--accent-purple),
                     -0.05em -0.05em 0 var(--primary-green);
    }
    /* PASO 50%: Otro cambio brusco a mitad de ciclo */
    50% {
        text-shadow: 0.025em 0.05em 0 var(--accent-blue),
                     0.05em 0 0 var(--accent-purple),
                     0 -0.05em 0 var(--primary-green);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 var(--accent-blue),
                     0.05em 0 0 var(--accent-purple),
                     0 -0.05em 0 var(--primary-green);
    }
    /* PASO 100%: Vuelve a posición diferente para reiniciar sin corte */
    100% {
        text-shadow: -0.025em 0 0 var(--accent-blue),
                     -0.025em -0.025em 0 var(--accent-purple),
                     -0.025em -0.05em 0 var(--primary-green);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   BOTÓN CALL-TO-ACTION (CTA)
   EFECTOS COMBINADOS:
   1. Pulso de luz constante
   2. Brillo deslizante
   3. Hover con escala y elevación
   ======================================== */
.cta-button {
    position: relative;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-bg);
    /* Fondo con gradiente diagonal */
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    border: none;
    border-radius: 50px;  /* Bordes completamente redondeados */
    cursor: pointer;
    overflow: hidden;     /* Oculta el brillo que sale del botón */
    transition: transform 0.3s, box-shadow 0.3s;
    /* ANIMACIÓN PULSE: El botón "respira" con luz pulsante */
    animation: pulse 2s infinite;
}

/* ANIMACIÓN PULSE: Expande y contrae el brillo alrededor del botón
   TÉCNICA: Dos box-shadow para crear un efecto de aura doble */
@keyframes pulse {
    0%, 100% {
        /* Brillo normal: dos capas de sombra */
        box-shadow: 0 0 20px var(--primary-green),    /* Capa interior */
                    0 0 40px var(--primary-green);    /* Capa exterior */
    }
    50% {
        /* Brillo expandido: Sombras más grandes */
        box-shadow: 0 0 30px var(--primary-green),
                    0 0 60px var(--primary-green);
    }
}

/* HOVER: Crece y se eleva al pasar el mouse
   transform: scale() + translateY() = Agranda + Levanta */
.cta-button:hover {
    transform: scale(1.05) translateY(-2px);  /* 5% más grande, 2px arriba */
    box-shadow: 0 10px 40px var(--primary-green);  /* Sombra más pronunciada */
}

.cta-button span {
    position: relative;
    z-index: 1;  /* Mantiene el texto encima del brillo animado */
}

/* BUTTON-GLOW: Crea una franja de luz que cruza el botón
   TÉCNICA: Un elemento 2x más grande que el botón, rotado 45° */
.button-glow {
    position: absolute;
    top: -50%;     /* Empieza fuera del botón (arriba) */
    left: -50%;    /* Empieza fuera del botón (izquierda) */
    width: 200%;   /* El doble de ancho */
    height: 200%;  /* El doble de alto */
    /* Gradiente de transparente → blanco semi-transparente → transparente */
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);  /* Rotación diagonal */
    animation: buttonShine 3s infinite;
}

/* ANIMACIÓN BUTTON SHINE: Mueve el brillo de izquierda a derecha
   translateX(-100%) a translateX(100%) = Cruza completamente el botón */
@keyframes buttonShine {
    0% { 
        transform: rotate(45deg) translateX(-100%);  /* Fuera a la izquierda */
    }
    100% { 
        transform: rotate(45deg) translateX(100%);   /* Fuera a la derecha */
    }
}

/* ========================================
   VISUAL HERO - TIERRA FLOTANTE CON ÓRBITAS
   EFECTOS MÚLTIPLES COMBINADOS
   ======================================== */
.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease-out;  /* Entra desde la derecha */
}

/* Entrada desde la derecha (opuesto al texto) */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);  /* 50px a la derecha */
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   TIERRA FLOTANTE - ¡DOBLE ANIMACIÓN!
   TÉCNICA AVANZADA: Combinar múltiples animaciones separadas por coma
   ======================================== */
.floating-earth {
    font-size: 8rem;
    /* DOS ANIMACIONES SIMULTÁNEAS:
       1. rotate3d: Rotación en el eje Y (efecto 3D)
       2. float-up-down: Movimiento vertical (flotación)
       ¡Se ejecutan AL MISMO TIEMPO! */
    animation: rotate3d 20s infinite linear, 
               float-up-down 3s ease-in-out infinite;
    z-index: 2;  /* Encima de las órbitas */
    /* DROP-SHADOW: Sombra verde brillante alrededor del emoji */
    filter: drop-shadow(0 0 30px var(--primary-green));
}

/* ROTACIÓN 3D: Gira sobre el eje Y (horizontal)
   rotateY simula rotación en 3D */
@keyframes rotate3d {
    from { transform: rotateY(0deg); }      /* Vista frontal */
    to { transform: rotateY(360deg); }      /* Vuelta completa */
}

/* FLOTACIÓN: Sube y baja suavemente
   ease-in-out = Movimiento natural, suave en extremos */
@keyframes float-up-down {
    0%, 100% { transform: translateY(0px); }    /* Posición normal */
    50% { transform: translateY(-20px); }       /* 20px arriba */
}

/* ========================================
   ÓRBITAS ANIMADAS - Anillos que giran
   CONCEPTO: Círculos concéntricos girando a diferentes velocidades
   ======================================== */
.orbit {
    position: absolute;   /* Centradas en el contenedor */
    border: 2px solid rgba(0, 255, 136, 0.3);  /* Borde semi-transparente */
    border-radius: 50%;   /* Forma circular */
    animation: spin 10s linear infinite;  /* Rotación constante */
}

/* ÓRBITA 1: La más cercana, más rápida */
.orbit-1 {
    width: 300px;
    height: 300px;
    animation-duration: 8s;   /* Completa vuelta en 8 segundos */
    border-color: rgba(0, 255, 136, 0.4);  /* Verde más visible */
}

/* ÓRBITA 2: Media, velocidad media */
.orbit-2 {
    width: 400px;
    height: 400px;
    animation-duration: 12s;  /* Más lenta que la primera */
    border-color: rgba(0, 212, 255, 0.3);  /* Azul cian */
}

/* ÓRBITA 3: La más grande, más lenta */
.orbit-3 {
    width: 500px;
    height: 500px;
    animation-duration: 16s;  /* La más lenta */
    border-color: rgba(180, 0, 255, 0.2);  /* Púrpura sutil */
}

/* ANIMACIÓN SPIN: Rotación simple en el eje Z (plano 2D)
   linear = Velocidad constante sin aceleración */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Secciones */
section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

/* Margen superior para compensar navbar fijo en scroll */
section[id] {
    scroll-margin-top: 100px;
}

/* TÍTULOS DE SECCIÓN con gradiente de 3 colores */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    /* GRADIENTE TRIPLE: Verde → Azul → Púrpura
       EFECTO: Texto multicolor vibrante */
    background: linear-gradient(45deg, 
        var(--primary-green),    /* Verde inicio */
        var(--accent-blue),      /* Azul medio */
        var(--accent-purple)     /* Púrpura final */
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

/* Párrafo introductorio debajo del título */
.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: -2rem auto 3rem;
    line-height: 1.6;
    opacity: 0.9;
    animation: fadeIn 1.2s ease-out 0.3s forwards;
}

/* ANIMACIÓN FADE IN UP: Aparece subiendo desde abajo
   USADA EN: Títulos de sección, tarjetas, estadísticas
   COMBINA: Opacidad + movimiento vertical */
@keyframes fadeInUp {
    from {
        opacity: 0;                     /* Invisible */
        transform: translateY(30px);    /* 30px abajo */
    }
    to {
        opacity: 1;                     /* Visible */
        transform: translateY(0);       /* Posición normal */
    }
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

/* ========================================
   TARJETAS INFORMATIVAS
   EFECTOS: Vidrio esmerilado + Hover 3D + Brillo deslizante
   ======================================== */
.card {
    /* VIDRIO ESMERILADO: Fondo semi-transparente + blur */
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);  /* Difumina lo que está detrás */
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;  /* Contiene el brillo animado dentro de la tarjeta */
    /* TRANSICIÓN: Suaviza el cambio al hacer hover */
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;  /* Mantiene el estado final de la animación */
}

/* ENTRADA ESCALONADA: Cada tarjeta aparece con un ligero retraso
   EFECTO: "Cascada" de tarjetas apareciendo una tras otra */
.card-1 { animation-delay: 0.1s; }  /* Primera: espera 0.1s */
.card-2 { animation-delay: 0.2s; }  /* Segunda: espera 0.2s */
.card-3 { animation-delay: 0.3s; }  /* Tercera: espera 0.3s */

/* HOVER EFECTO 3D: Se eleva y agranda ligeramente
   TRUCO: Combinar translateY (elevación) + scale (zoom) */
.card:hover {
    transform: translateY(-10px) scale(1.02);  /* Sube 10px y crece 2% */
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);  /* Sombra dramática */
    border-color: var(--primary-green);  /* Borde se ilumina */
}

/* ÍCONO REBOTANTE */
.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;  /* Rebote constante */
}

/* ANIMACIÓN BOUNCE: Rebote simple arriba-abajo */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }     /* Posición normal */
    50% { transform: translateY(-10px); }      /* Salta 10px arriba */
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   BRILLO DESLIZANTE EN TARJETAS
   IGUAL que el botón pero más sutil
   ======================================== */
.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;    /* Doble de tamaño */
    height: 200%;
    /* Franja de luz verde semi-transparente */
    background: linear-gradient(45deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transform: rotate(45deg);
    animation: cardShine 5s infinite;  /* Más lento que el botón (5s vs 3s) */
}

/* Cruza la tarjeta de esquina a esquina */
@keyframes cardShine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* ========================================
   ÍTEMS DE ACCIÓN
   EFECTO: Fondo que sube desde abajo al hacer hover
   ======================================== */
.action-item {
    position: relative;
    padding: 2rem;
    background: rgba(26, 31, 58, 0.4);
    border-radius: 15px;
    border: 2px solid transparent;  /* Invisible inicialmente */
    overflow: hidden;
    transition: all 0.3s;  /* Anima TODAS las propiedades que cambien */
    cursor: pointer;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

/* ENTRADA ESCALONADA: 4 ítems con retrasos incrementales */
.action-item:nth-child(1) { animation-delay: 0.1s; }
.action-item:nth-child(2) { animation-delay: 0.2s; }
.action-item:nth-child(3) { animation-delay: 0.3s; }
.action-item:nth-child(4) { animation-delay: 0.4s; }

/* HOVER: Crece y muestra borde brillante */
.action-item:hover {
    border-color: var(--primary-green);  /* Borde se vuelve visible */
    transform: scale(1.05);  /* Agranda 5% */
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

/* NÚMERO GRANDE DE FONDO - Diseño decorativo */
.action-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-green);
    opacity: 0.2;  /* Muy transparente, solo decorativo */
    position: absolute;
    top: 10px;
    right: 20px;
}

.action-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
    position: relative;
    z-index: 1;  /* Encima del fondo animado */
}

.action-item p {
    color: var(--text-gray);
    position: relative;
    z-index: 1;  /* Encima del fondo animado */
}

/* ========================================
   FONDO DESLIZANTE - Sube desde abajo al hacer hover
   TÉCNICA: Elemento posicionado fuera de vista que se mueve
   ======================================== */
.action-bg {
    position: absolute;
    bottom: -100%;  /* EMPIEZA ABAJO FUERA DE VISTA (clave del efecto) */
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente de transparente arriba a verde abajo */
    background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.1));
    transition: bottom 0.3s;  /* Anima el movimiento vertical */
}

/* AL HACER HOVER: El fondo sube a la vista
   De bottom: -100% a bottom: 0 = Desliza de abajo hacia arriba */
.action-item:hover .action-bg {
    bottom: 0;  /* Posición final: visible */
}

/* Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* ========================================
   CAJAS DE ESTADÍSTICAS
   EFECTO: Números con gradiente + onda de color animada
   ======================================== */
.stat-box {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(26, 31, 58, 0.6);
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    transition: transform 0.3s;
}

/* HOVER: Elevación simple */
.stat-box:hover {
    transform: translateY(-10px);  /* Sube 10px */
    border-color: var(--accent-blue);  /* Borde más brillante */
}

/* NÚMEROS CON TEXTO DEGRADADO
   TÉCNICA: Igual que el logo, gradiente como relleno de texto */
.stat-number {
    font-size: 4rem;
    font-weight: 900;
    /* Gradiente de 3 colores */
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;  /* Texto transparente para ver el gradiente */
    margin-bottom: 1rem;
    /* NOTA: Los números se animan con JavaScript en el HTML
       El contador sube desde 0 hasta el valor final */
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;  /* Espacio entre letras para estilo moderno */
}

/* ========================================
   ONDA DE COLOR - Barra animada en la parte inferior
   EFECTO: Franja de colores que se mueve de lado a lado
   ======================================== */
.stat-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* Gradiente horizontal de 3 colores */
    background: linear-gradient(90deg, 
        var(--primary-green), 
        var(--accent-blue), 
        var(--accent-purple)
    );
    animation: waveMove 3s linear infinite;
}

/* ANIMACIÓN WAVE: La franja se mueve horizontalmente
   TRUCO: translateX de -100% a 100% = Atraviesa la caja */
@keyframes waveMove {
    0% { transform: translateX(-100%); }    /* Empieza fuera a la izquierda */
    100% { transform: translateX(100%); }   /* Sale por la derecha */
}

/* Footer */
.footer {
    position: relative;
    padding: 3rem 5%;
    text-align: center;
    background: rgba(10, 14, 39, 0.8);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-small {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ========================================
   ONDA EN EL FOOTER - Efecto de movimiento infinito
   TÉCNICA: Elemento más ancho que el contenedor
   ======================================== */
.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;    /* ¡EL DOBLE DE ANCHO! (clave del efecto) */
    height: 100px;
    /* Gradiente horizontal que va de transparente a verde a transparente */
    background: linear-gradient(90deg, 
        transparent,                      /* Extremos invisibles */
        rgba(0, 255, 136, 0.1),          /* Centro verde */
        transparent
    );
    animation: footerWave 10s linear infinite;
}

/* ANIMACIÓN FOOTER WAVE: Movimiento horizontal continuo
   TRUCO: width: 200% + translateX(-50%) = Loop infinito perfecto
   Al moverse 50% de su ancho, vuelve a la posición inicial visualmente */
@keyframes footerWave {
    0% { transform: translateX(0); }      /* Posición inicial */
    100% { transform: translateX(-50%); } /* Se mueve la mitad (vuelve al inicio) */
}

/* ========================================
   CONCEPTOS CLAVE DE TODAS LAS ANIMACIONES:
   
   1. @keyframes: Define los pasos de una animación
   2. animation: Aplica la animación a un elemento
   3. transform: Mueve, rota, escala sin afectar el layout
   4. transition: Anima cambios de propiedades CSS
   5. opacity: Controla transparencia (0=invisible, 1=visible)
   6. box-shadow: Crea sombras y efectos de brillo
   7. filter: Aplica efectos visuales como blur y brightness
   8. backdrop-filter: Efecto vidrio esmerilado (blur del fondo)
   9. linear-gradient: Crea degradados de color
   10. position: absolute/fixed para posicionamiento preciso
   
   TIMING FUNCTIONS (velocidad de animación):
   - linear: Velocidad constante
   - ease-in-out: Suave al inicio y final
   - ease-out: Suave al final
   
   TRUCOS PARA EFECTOS LLAMATIVOS:
   - Combinar múltiples animaciones (separadas por coma)
   - Usar retrasos (animation-delay) para efectos secuenciales
   - Elementos más grandes (200%) para efectos de paso
   - Pseudo-elementos (::after, ::before) para capas extra
   - Overflow: hidden para contener efectos dentro del elemento
   - z-index para apilar capas correctamente
   ======================================== */

/* ========================================
   GALERÍA DE SOLUCIONES
   EFECTO: Tilt 3D + Barras de progreso animadas
   ======================================== */
.gallery-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s;
    transform-style: preserve-3d;
}

.gallery-item:hover {
    box-shadow: 0 25px 70px rgba(0, 255, 136, 0.4);
}

.gallery-image {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: float-up-down 3s ease-in-out infinite;
}

.gallery-content h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.gallery-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    border-radius: 10px;
    width: 0;
    transition: width 2s ease-out;
    box-shadow: 0 0 15px var(--primary-green);
}

.progress-text {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: bold;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 136, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ========================================
   QUIZ INTERACTIVO
   ======================================== */
.quiz-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.quiz-container {
    max-width: 800px;
    margin: 3rem auto;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 3rem;
    border: 2px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.quiz-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
}

.quiz-progress {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-left: 2rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    width: 0;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px var(--primary-green);
}

.quiz-question {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    color: var(--text-light);
}

.quiz-option:hover:not(:disabled) {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-green);
    transform: translateX(10px);
}

.option-letter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: var(--dark-bg);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.quiz-option.correct {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-green);
    animation: correctPulse 0.5s ease;
}

.quiz-option.wrong {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    animation: shake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.quiz-feedback {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.quiz-feedback.correct {
    color: var(--primary-green);
    background: rgba(0, 255, 136, 0.1);
    opacity: 1;
    transform: translateY(0);
}

.quiz-feedback.wrong {
    color: #ff6b6b;
    background: rgba(255, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(0);
}

.quiz-next-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    border: none;
    border-radius: 15px;
    color: var(--dark-bg);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.quiz-next-btn:hover {
    transform: scale(1.05);
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ========================================
   JUEGO: PLANTAR ÁRBOLES
   ======================================== */
.tree-game-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.tree-game-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tree-game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tree-stat {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tree-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
}

.tree-stat-icon {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.tree-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tree-stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tree-game-area {
    position: relative;
    min-height: 500px;
    background: rgba(26, 31, 58, 0.4);
    border-radius: 25px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 136, 0.2);
}

.plant-tree-btn {
    position: relative;
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    border: none;
    border-radius: 50px;
    color: var(--dark-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 10;
    animation: pulse 2s infinite;
}

.plant-tree-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.5);
}

.plant-tree-btn:active {
    transform: scale(0.95);
}

.btn-icon {
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tree-forest {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 2rem;
}

.tree {
    font-size: 3rem;
    animation: treeGrow 0.5s ease-out;
    filter: drop-shadow(0 5px 10px rgba(0, 255, 136, 0.5));
}

@keyframes treeGrow {
    from {
        transform: scale(0) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.tree-particle {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    animation: particleFloat 1s ease-out forwards;
}

@keyframes particleFloat {
    from {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg);
        opacity: 0;
    }
}

.achievement-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 212, 255, 0.9));
    padding: 2rem 3rem;
    border-radius: 20px;
    text-align: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.achievement-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.achievement-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.5s ease infinite;
}

.achievement-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-bg);
}

.tree-game-info {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    border-left: 4px solid var(--accent-blue);
}

.tree-game-info p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========================================
   LLAMADO A LA ACCIÓN: JUEGOS
   ======================================== */
.games-cta-section {
    padding: 8rem 5%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.games-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.games-cta-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.games-cta-description {
    max-width: 800px;
    margin: 2rem auto 3rem;
    font-size: 1.3rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.games-cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.games-cta-feature {
    padding: 2rem;
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out;
}

.games-cta-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.3);
    border-color: var(--primary-green);
}

.games-cta-feature:nth-child(1) { animation-delay: 0.1s; }
.games-cta-feature:nth-child(2) { animation-delay: 0.2s; }
.games-cta-feature:nth-child(3) { animation-delay: 0.3s; }
.games-cta-feature:nth-child(4) { animation-delay: 0.4s; }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.feature-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light);
}

.games-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 4rem;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    margin-top: 2rem;
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.4);
    transition: all 0.3s;
}

.games-cta-button:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.6);
}

.games-cta-button .btn-arrow {
    font-size: 2rem;
    transition: transform 0.3s;
}

.games-cta-button:hover .btn-arrow {
    transform: translateX(10px);
}

.games-cta-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    opacity: 0.1;
}

.floating-game-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.game-float-icon {
    position: absolute;
    font-size: 4rem;
    animation: float-around 20s linear infinite;
}

.game-float-icon:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.game-float-icon:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.game-float-icon:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.game-float-icon:nth-child(4) {
    top: 30%;
    left: 80%;
    animation-delay: -9s;
    animation-duration: 22s;
}

.game-float-icon:nth-child(5) {
    top: 50%;
    left: 10%;
    animation-delay: -12s;
    animation-duration: 17s;
}

@keyframes float-around {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(0, -100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, -50px) rotate(270deg);
    }
}

/* ========================================
   TIMELINE ANIMADO
   ======================================== */
.timeline-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.timeline {
    max-width: 1000px;
    margin: 3rem auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-green), var(--accent-blue), var(--accent-purple));
    box-shadow: 0 0 20px var(--primary-green);
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    transform: translateX(50px);
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-green), 0 0 40px var(--primary-green);
    animation: dotPulse 2s infinite;
    z-index: 2;
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--primary-green), 0 0 40px var(--primary-green);
    }
    50% {
        box-shadow: 0 0 30px var(--primary-green), 0 0 60px var(--primary-green);
    }
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
    border-color: var(--primary-green);
}

.timeline-year {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    color: var(--dark-bg);
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   TESTIMONIOS CARRUSEL
   ======================================== */
.testimonials-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.testimonials-container {
    max-width: 900px;
    margin: 3rem auto;
    position: relative;
}

.testimonials-slider {
    position: relative;
    height: 400px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    opacity: 0;
    transform: scale(0.9) translateX(100px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: all;
}

.testimonial-avatar {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    text-align: center;
}

.author-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 0.3rem;
}

.author-title {
    color: var(--text-gray);
    font-size: 1rem;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 8rem;
    color: rgba(0, 255, 136, 0.1);
    font-family: Georgia, serif;
    line-height: 0.8;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--dark-bg);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.testimonial-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
}

.testimonial-prev {
    left: -70px;
}

.testimonial-next {
    right: -70px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-green);
    box-shadow: 0 0 15px var(--primary-green);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--accent-blue);
}

/* ========================================
   MAPA INTERACTIVO
   ======================================== */
.map-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.map-container {
    max-width: 1200px;
    margin: 3rem auto;
}

.world-map {
    position: relative;
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2rem;
    border: 2px solid rgba(0, 255, 136, 0.2);
    overflow: hidden;
}

.map-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.map-point {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.point-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.point-marker {
    position: relative;
    font-size: 2rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 255, 136, 0.5));
}

.point-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0) scale(0.8);
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--primary-green);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.point-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--primary-green);
}

.point-tooltip h4 {
    color: var(--primary-green);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.point-tooltip p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN - TABLETS
   Breakpoint: 1024px (tablets en horizontal)
   ======================================== */
@media (max-width: 1024px) {
    /* Navegación */
    .navbar {
        padding: 1rem 3%;
    }
    
    .nav-links {
        gap: 1.5rem;
        font-size: 0.95rem;
    }
    
    .nav-games,
    .nav-games-discrete {
        padding: 0.4rem 1rem !important;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 7rem 3% 3rem;  /* Más padding-top para tablets */
        gap: 2rem;
    }
    
    .glitch {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .floating-earth {
        font-size: 6rem;
    }
    
    .orbit-1, .orbit-2, .orbit-3 {
        width: 250px;
        height: 250px;
    }
    
    /* Tarjetas y grids */
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Sección de juegos CTA */
    .games-cta-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .games-cta-button {
        padding: 1.3rem 3rem;
        font-size: 1.3rem;
    }
    
    /* Timeline */
    .timeline-content {
        width: 42%;
    }
    
    /* Mapa */
    .interactive-map {
        height: 400px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - TABLETS VERTICAL
   Breakpoint: 768px (tablets en vertical, móviles grandes)
   ======================================== */
@media (max-width: 768px) {
    /* Navegación - Hacerla vertical o scroll horizontal */
    .navbar {
        padding: 1rem 3%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .nav-games,
    .nav-games-discrete {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem;
    }
    
    /* Hero Section - Layout vertical */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 5% 3rem;  /* Aumentado de 5rem a 6rem */
        min-height: auto;
    }
    
    .hero-content {
        animation: fadeInUp 1s ease-out;
    }
    
    .glitch {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin: 1.5rem 0;
    }
    
    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .hero-visual {
        height: 300px;
        width: 100%;
        margin-top: 2rem;
    }
    
    .floating-earth {
        font-size: 5rem;
    }
    
    .orbit-1, .orbit-2, .orbit-3 {
        width: 180px;
        height: 180px;
    }
    
    /* Títulos de sección */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Todas las grids a 1 columna */
    .cards-container,
    .actions-grid,
    .stats-container,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Tarjetas */
    .card {
        padding: 2rem 1.5rem;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    /* Estadísticas */
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Sección de juegos CTA */
    .games-cta-section {
        padding: 5rem 5%;
    }
    
    .games-cta-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .games-cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
        width: 100%;
        justify-content: center;
    }
    
    .games-cta-visual {
        width: 100%;
        height: 300px;
        opacity: 0.05;
    }
    
    /* Timeline - Simplificar a línea vertical única */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-end;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content {
        width: 100%;
        padding: 1.5rem;
    }
    
    .timeline-year {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    /* Testimonios */
    .testimonials-slider {
        height: auto;
        min-height: 450px;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-quote {
        font-size: 1.1rem;
    }
    
    .testimonial-prev {
        left: 10px;
    }
    
    .testimonial-next {
        right: 10px;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    /* Mapa interactivo */
    .interactive-map {
        height: 300px;
    }
    
    .map-point {
        transform: scale(0.8);
    }
    
    .point-tooltip {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
        white-space: normal;
        max-width: 200px;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 5% 2rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MÓVILES
   Breakpoint: 480px (teléfonos móviles)
   ======================================== */
@media (max-width: 480px) {
    /* Navegación compacta */
    .navbar {
        padding: 0.8rem 4%;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-links li a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .nav-games,
    .nav-games-discrete {
        padding: 0.3rem 0.8rem !important;
        font-size: 0.75rem;
    }
    
    /* Hero - Extra compacto */
    .hero {
        padding: 5rem 4% 2rem;  /* Aumentado de 4rem a 5rem */
    }
    
    .glitch {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin: 1rem 0;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .floating-earth {
        font-size: 4rem;
    }
    
    .orbit-1, .orbit-2, .orbit-3 {
        width: 140px;
        height: 140px;
    }
    
    /* Secciones */
    .info-section,
    .actions-section,
    .stats-section,
    .gallery-section,
    .games-cta-section,
    .timeline-section,
    .testimonials-section,
    .map-section {
        padding: 3rem 4%;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    /* Tarjetas extra compactas */
    .card {
        padding: 1.5rem 1rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
    
    /* Acciones */
    .action-item {
        padding: 1.5rem 1rem;
    }
    
    .action-icon {
        font-size: 2.5rem;
    }
    
    .action-item h3 {
        font-size: 1.1rem;
    }
    
    /* Estadísticas */
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Galería */
    .gallery-image {
        font-size: 3rem;
    }
    
    .gallery-content h3 {
        font-size: 1.1rem;
    }
    
    .gallery-content p {
        font-size: 0.85rem;
    }
    
    /* Sección de juegos CTA */
    .games-cta-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
    }
    
    .games-cta-description {
        font-size: 1rem;
        margin: 1.5rem auto 2rem;
    }
    
    .games-cta-features {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .games-cta-feature {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-text {
        font-size: 1rem;
    }
    
    .games-cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    /* Timeline ultra compacto */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }
    
    .timeline-dot {
        left: 15px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 1.2rem;
    }
    
    .timeline-year {
        font-size: 0.9rem;
        padding: 0.3rem 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    /* Testimonios móvil */
    .testimonials-slider {
        min-height: 500px;
    }
    
    .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-quote {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-author {
        font-size: 0.9rem;
    }
    
    .testimonial-role {
        font-size: 0.75rem;
    }
    
    .testimonial-nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    /* Mapa móvil */
    .interactive-map {
        height: 250px;
    }
    
    .map-point {
        transform: scale(0.7);
    }
    
    .point-pulse {
        width: 30px;
        height: 30px;
    }
    
    .point-tooltip {
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
        max-width: 150px;
    }
    
    /* Footer móvil */
    .footer {
        padding: 2rem 4% 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-small {
        font-size: 0.75rem;
    }
}

/* Animaciones adicionales para scroll reveal */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mejoras de accesibilidad */
.quiz-option:focus,
.plant-tree-btn:focus,
.testimonial-nav:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 3px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Efectos de hover mejorados para dispositivos táctiles */
@media (hover: hover) {
    .gallery-item:hover,
    .tree-stat:hover,
    .timeline-content:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

/* Animación de entrada para elementos cuando se hacen visibles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para mejorar el rendimiento */
.gallery-item,
.testimonial-card,
.timeline-item {
    will-change: transform, opacity;
}

/* Transiciones suaves globales */
* {
    scroll-behavior: smooth;
}

/* Mejoras visuales para estados de carga */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 255, 136, 0.2);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Sombras y brillos adicionales para profundidad */
.elevated {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.glow-green {
    box-shadow: 0 0 20px var(--primary-green), 0 0 40px var(--primary-green);
}

.glow-blue {
    box-shadow: 0 0 20px var(--accent-blue), 0 0 40px var(--accent-blue);
}

/* Utilidades de animación */
.bounce-in {
    animation: bounce 0.6s ease;
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease;
}

.slide-in-right {
    animation: slideInFromRight 0.6s ease;
}

.scale-in {
    animation: scaleIn 0.6s ease;
}

/* Mejoras de contraste para mejor legibilidad */
.high-contrast {
    background: var(--dark-bg);
    color: var(--text-light);
    border: 2px solid var(--primary-green);
}

/* Estados de hover para mejor feedback visual */
.interactive:hover {
    cursor: pointer;
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.interactive:active {
    transform: translateY(0);
}

/* Estilos para mensajes de error/éxito */
.message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    font-weight: 500;
}

.message.success {
    background: rgba(0, 255, 136, 0.1);
    border-left: 4px solid var(--primary-green);
    color: var(--primary-green);
}

.message.error {
    background: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #ff0000;
    color: #ff6b6b;
}

.message.info {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--accent-blue);
    color: var(--accent-blue);
}

/* Tooltips personalizados */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(10, 14, 39, 0.95);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Efectos de partículas adicionales */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
}

/* Indicadores de progreso personalizados */
.custom-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.custom-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    animation: progressSlide 2s ease-in-out infinite;
}

@keyframes progressSlide {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 50%;
        left: 25%;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}

/* Mejoras finales de UI */
::selection {
    background: var(--primary-green);
    color: var(--dark-bg);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-green), var(--accent-blue));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* ========================================
   MEJORAS PARA DISPOSITIVOS TÁCTILES
   ======================================== */

/* Aumentar área de toque en elementos interactivos */
@media (hover: none) and (pointer: coarse) {
    /* Botones y enlaces más grandes para dedos */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Desactivar efectos hover en táctiles */
    .card:hover,
    .action-item:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    /* Activar efectos al hacer tap */
    .card:active,
    .action-item:active,
    .gallery-item:active {
        transform: scale(0.98);
    }
    
    /* Mejorar navegación táctil */
    .nav-links a {
        padding: 0.8rem 1rem;
    }
    
    /* Botones más grandes */
    .cta-button,
    .games-cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* ========================================
   OPTIMIZACIONES DE RENDIMIENTO
   ======================================== */

/* Usar aceleración GPU para animaciones suaves */
.floating-earth,
.orbit,
.particle,
.card,
.gallery-item,
.testimonial-card {
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Suavizar fuentes en diferentes navegadores */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   UTILIDADES RESPONSIVE ADICIONALES
   ======================================== */

/* Ocultar en móviles */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Ocultar en desktop */
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Texto centrado en móviles */
@media (max-width: 768px) {
    .center-mobile {
        text-align: center !important;
    }
}

/* ========================================
   MEJORAS DE ACCESIBILIDAD
   ======================================== */

/* Mejores contornos de foco para navegación por teclado */
*:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reducir movimiento para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   MODO LANDSCAPE EN MÓVILES
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    /* Reducir altura de hero en landscape */
    .hero {
        min-height: auto;
        padding: 3rem 5% 2rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    /* Navegación más compacta */
    .navbar {
        padding: 0.5rem 3%;
    }
    
    /* Secciones más compactas */
    .info-section,
    .actions-section,
    .stats-section,
    .gallery-section,
    .games-cta-section,
    .timeline-section,
    .testimonials-section,
    .map-section {
        padding: 3rem 5%;
    }
}

/* ========================================
   IMPRESIÓN (para cuando alguien quiera imprimir)
   ======================================== */
@media print {
    /* Ocultar elementos no necesarios */
    .navbar,
    .particles,
    .cta-button,
    .games-cta-button,
    .testimonial-nav,
    .footer-wave {
        display: none !important;
    }
    
    /* Ajustar colores para impresión */
    body {
        background: white;
        color: black;
    }
    
    /* Evitar saltos de página dentro de elementos */
    .card,
    .action-item,
    .stat,
    .gallery-item,
    .timeline-item,
    .testimonial-card {
        page-break-inside: avoid;
    }
}
