/* === CONFIGURACIÓN GLOBAL Y VARIABLES === */
:root {
    --lime-green: #61d45b; 
    --dark-bg: #1a1a1a;   
    --off-white: #f0efe9; 
    --text-light: #ffffff; 
    --text-dark: #3d3a17; 

    --hero-text-fill-color: var(--lime-green);
    --hero-text-stroke-color: #ffffff;
    --hero-text-stroke-width: 2px;
    --hero-text-shadow-color: rgba(68, 237, 47, 0.3);

    --goat-gradient-start: #44ed2f;
    --goat-gradient-end: #b0ffaa;
    --goat-glow-color: rgba(68, 237, 47, 0.5);
    
    --font-main: 'Inter', sans-serif;
}

body { margin: 0; font-family: var(--font-main); background-color: var(--dark-bg); color: var(--text-light); overflow-x: hidden; }
h1, h2 { text-transform: uppercase; font-weight: 900; margin: 0; line-height: 1.1; }
p { line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* === HEADER === */
.main-header { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 40px; box-sizing: border-box; z-index: 1000; }
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.nav-links a, .nav-logo a, .nav-contact a { margin: 0 15px; font-weight: 700; }
.contact-button { background-color: var(--lime-green); color: var(--text-dark); padding: 10px 20px; border-radius: 20px; }

/* === SECCIÓN HERO === */
/* === SECCIÓN HERO (NUEVA TIPOGRAFÍA Y EFECTO DE LUZ) === */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/hero2-background.jpg');
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-family: 'Inter', sans-serif; /* Nueva tipografía, más parecida al video */
    font-size: 6vw; /* Tamaño grande restaurado */
    color: var(--text-light); /* Color conservado */
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    position: relative; /* Necesario para el efecto de brillo */
    overflow: hidden; /* Oculta el brillo cuando está fuera del texto */
}

/* El pseudo-elemento que crea el efecto de luz */
.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* El degradado que simula la luz */
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 80%);
    /* La animación que mueve la luz */
    animation: shine-effect 4s infinite linear;
}

/* La animación de Keyframes que mueve la luz de izquierda a derecha */
@keyframes shine-effect {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Estilos de los botones de descarga (sin cambios) */
.store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.store-buttons a img {
    height: 55px;
    transition: transform 0.3s ease;
}
.store-buttons a:hover img {
    transform: scale(1.05);
}
/* Estilos para los botones de descarga */
.store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.store-buttons a img {
    height: 55px;
    transition: transform 0.3s ease;
}
.store-buttons a:hover img {
    transform: scale(1.05);
}

/* === SECCIÓN MISIÓN === */
.mission-section { background-color: var(--lime-green); color: var(--text-dark); padding: 100px 40px; }
.mission-text-container { position: relative; max-width: 1100px; margin: 0 auto 60px auto; text-align: center; }
.mission-title { font-size: 3.5vw; line-height: 1.2; text-transform: none;}
.mission-title .line { display: block; overflow: hidden; }
.mission-title .line > span { display: block; }
.deco-img { position: absolute; border-radius: 15px; z-index: -1; width: 150px; opacity: 0.7; }
.deco-img-1 { top: -20px; left: 5%; transform: rotate(-10deg); }
.deco-img-2 { top: 30%; right: 10%; transform: rotate(5deg); }
.deco-img-3 { bottom: -30px; left: 20%; transform: rotate(8deg); }
.mission-points { display: flex; justify-content: center; gap: 40px; max-width: 1200px; margin: 0 auto; text-align: left; }
.point { flex: 1; }
.point-number { font-size: 2rem; font-weight: 900; display: block; margin-bottom: 10px; }

/* === SECCIÓN GALERÍA === */
.gallery-section { 
    padding: 100px 40px; 
    background-color: var(--off-white); 
    color: var(--text-dark); 
}
.gallery-text { 
    max-width: 600px; /* Le damos un poco más de ancho para que se vea mejor */
    margin: 0 auto 60px auto; /* Esto centra el bloque de texto horizontalmente */
    text-align: center; /* Esto centra el texto dentro de su bloque */
}

/* Nuevo grid organizado */
.gallery-grid-organized {
    display: grid;
    /* Crea columnas que se ajustan automáticamente */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Espacio entre las imágenes */
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.gallery-item-organized .gallery-image-wrapper {
    overflow: hidden; /* Esencial para que el zoom no se salga del contenedor */
    border-radius: 20px;
    height: 400px;
}

.gallery-item-organized .gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* GSAP se encargará de la transformación de escala (scale) */
    transition: transform 0.8s ease; /* Transición suave si JS falla */
}

.gallery-title { 
    text-align: center; 
    font-size: 4vw; 
    max-width: 900px; 
    margin: 0 auto; 
}
.gallery-title .line { 
    display: block; 
    overflow: hidden; 
}
.gallery-title .line > span { 
    display: block; 
}

/* --- FIN DE LAS NUEVAS POSICIONES --- */
.gallery-image-wrapper { overflow: hidden; border-radius: 20px; height: 400px; }
.gallery-image-wrapper img { width: 100%; height: 120%; object-fit: cover; }
.gallery-title { text-align: center; font-size: 4vw; max-width: 900px; margin: 0 auto; }
.gallery-title .line { display: block; overflow: hidden; }
.gallery-title .line > span { display: block; }

/* === SECCIÓN EVENTOS === */
.events-section { background-color: var(--dark-bg); color: var(--text-light); padding: 100px 40px; text-align: center; }
.events-header { overflow: hidden; }
.events-header .stars { font-size: 2rem; }
.events-header .events-title { font-size: 4vw; margin: 10px 0 40px 0; }
.events-title .line { display: block; overflow: hidden; }
.events-title .line > span { display: block; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; font-weight: 700; font-size: 1.5rem; }
.event-item { padding: 20px; border-top: 2px solid var(--text-light); border-bottom: 2px solid var(--text-light); }
.event-item .date { font-size: 1rem; font-weight: 400; margin-top: 10px; display: block; }

/* === FOOTER === */
.main-footer-bottom { background-color: var(--off-white); padding-top: 60px; position: relative; }
.footer-wrapper { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.footer-content { color: var(--text-dark); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 60px; }
.footer-content p { font-size: 0.9rem; margin: 5px 0; display: block; }
.footer-center a { font-size: 0.9rem; margin: 5px 0; display: block; }

/* Estilos para los iconos de redes sociales */
.social-icons {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}
.social-icons a {
    display: inline-block;
}
.social-icons svg {
    width: 24px;
    height: 24px;
    fill: var(--text-dark);
    transition: opacity 0.3s ease;
}
.social-icons a:hover svg {
    opacity: 0.7;
}

.footer-brand { text-align: center; padding: 40px 0; }
.footer-brand-text {
    font-size: 18vw;
    font-weight: 900;
    margin: 0;
    line-height: 0.8;
    background: linear-gradient(90deg, var(--goat-gradient-start), var(--goat-gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: blur(1.5px);
    text-shadow: 0 0 20px var(--goat-glow-color);
    text-transform: none;
}

/* === RESPONSIVE DESIGN (CORREGIDO Y MEJORADO) === */
@media (max-width: 768px) {
    /* --- Ajuste Global para el Header Fijo --- */
    body {
        /* Creamos un espacio superior en toda la página para el header */
        padding-top: 160px; 
    }

    /* --- Ajustes del Header para Móvil --- */
    .main-header {
        padding: 15px;
        /* Hacemos que el header sea fijo y ocupe todo el ancho */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        background-color: rgba(26, 26, 26, 0.9); 
        backdrop-filter: blur(10px);
    }

    .main-nav {
        flex-direction: column;
        gap: 15px;
    }

    /* Reordenamos los elementos para que el logo aparezca primero */
    .nav-logo { order: 1; }
    .nav-links { order: 2; }
    .nav-contact { order: 3; }

    /* --- Eliminamos el padding anterior que ya no es necesario --- */
    .hero-section {
        padding-top: 0; 
    }
    
    .hero-title {
        font-size: 12vw;
    }

    /* --- Otros ajustes que ya tenías --- */
    .mission-points { 
        flex-direction: column; 
    }
    .footer-content, .events-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .social-icons { 
        justify-content: center; 
    }
    .mission-title { 
        font-size: 8vw; 
    }
    .gallery-title, .events-header h2 { 
        font-size: 10vw; 
    }
    .deco-img { 
        display: none; 
    }
    .gallery-grid-overlapped { 
        height: auto; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
    .gallery-item-overlapped { 
        position: static; 
        transform: none !important; 
        margin-bottom: 20px; 
    }
}
