:root {
    --primary-color: #333333;
    --text-light: #666666;
    --accent-green: #8de613;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { font-family: var(--font-main); color: var(--primary-color); line-height: 1.6; }

/* Utilidades */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
h2 { font-size: 2rem; margin-bottom: 15px; text-align: center; }
p.subtitle { text-align: center; color: var(--text-light); margin-bottom: 40px; font-size: 0.9rem; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); padding: 20px 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 80px; /* Ajusta según el tamaño de tu logo */
    width: auto;
    max-width: 150px; /* Ajusta según necesites */
    object-fit: contain;
}

/* Responsive: ajusta el tamaño en móvil si es necesario */
@media (max-width: 768px) {
    .navbar .logo img {
        height: 52px;
    }
}
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 30px; }
.nav-links a { text-decoration: none; color: var(--primary-color); font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-green); border-bottom: 2px solid var(--accent-green); padding-bottom: 5px;}

/* =========================================
   HERO CINEMATOGRÁFICO (KEN BURNS)
   ========================================= */

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #2c3e50; 
}

/* 1. La Imagen con Animación */
.hero-bg-animated {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('img/hero.jpg'); 
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: kenBurnsEffect 20s infinite alternate ease-in-out;
}

/* 2. La Capa Oscura (Vignette) */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2; 
}

/* Contenido */
.hero-content {
    position: relative;
    z-index: 10;
    top: -100px; 
}

.scroll-down { z-index: 10; }

@keyframes kenBurnsEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Texto Hero */
.zoom-text {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: center;
    opacity: 0; 
}

.highlight-text { color: var(--accent-green); }

.animate-zoom {
    animation: zoomInHero 1.5s cubic-bezier(0.1, 0.7, 0.1, 1) forwards;
}

@keyframes zoomInHero {
    0%   { opacity: 0.0; transform: scale(1.5); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Flecha Hero */
.scroll-down { position: absolute; bottom: 30px; font-size: 2rem; color: white; animation: bounce 2s infinite; text-decoration: none; transition: color 0.3s; }
.scroll-down:hover { color: var(--accent-green); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* Créditos / Iconos */
.icons-grid { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; margin-top: 40px; }
.icon-card h3 { margin-top: 15px; font-size: 1rem; font-weight: 600; text-transform: uppercase; }
.icon-card img { height: 60px; }

/* Zig Zag */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.zigzag img { width: 100%; border-radius: 5px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: transform 0.3s; }
.zigzag img:hover { transform: scale(1.02); }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { margin-bottom: 10px; color: var(--text-light); }
.feature-list li::before { content: "•"; color: var(--accent-green); font-weight: bold; display: inline-block; width: 1em; }

/* Galería Mosaico */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
    margin-top: 30px;
}
.mosaic-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9; 
}
.mosaic-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.mosaic-item:hover img { transform: scale(1.1); filter: brightness(1.1); }
.mosaic-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s;
}
.mosaic-overlay i { color: white; font-size: 2rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.mosaic-item:hover .mosaic-overlay { opacity: 1; }

/* Parallax Sections & Backgrounds */
.parallax-bg, .parallax-bg-contact { background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; position: relative; color: white; text-align: center; }

/* Quiénes Somos */
/* Quiénes Somos - CORREGIDO PARA PARALLAX */
.about-us {
    background-image: url('img/follaje.png'); 
    height: 500px;
    display: flex; align-items: center; justify-content: center;
    
    /* CAMBIO AQUÍ: De 'scroll !important' a 'fixed' para activar parallax */
    background-attachment: fixed; 
    
    background-size: cover; 
    background-position: center; 
    position: relative; 
}
.overlay-dark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.content-centered { position: relative; z-index: 2; color: white; }

/* =========================================
   CONTACTO & FORMULARIO (LUMI EDITION)
   ========================================= */

#contacto {
    background-color: #ffffff; /* Fondo Blanco pedido */
    color: var(--primary-color);
}

/* Ocultar el overlay antiguo en contacto */
#contacto .overlay-dark { display: none; }

#contacto h2, #contacto p {
    color: var(--primary-color);
}

.contact-container {
    max-width: 800px; /* Contenedor general */
    margin: 0 auto;
}

/* Estilo del Formulario */
#contactForm {
    max-width: 700px; /* Ancho limitado para UX */
    margin: 40px auto 0;
    padding: 0 10px;
}

/* Estructura Grid para las filas (rows) */
#contactForm .row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columnas */
    gap: 20px;
    margin: 0 0 20px 0; /* Margen inferior entre filas */
    width: 100%;
}

/* Reset de las columnas de Bootstrap dentro del form */
#contactForm .col-md-6, 
#contactForm .col-12 {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Excepción: Mensaje y Botón ocupan todo el ancho */
#contactForm .col-12 {
    grid-column: span 2; /* Expande a las 2 columnas */
}

/* Labels */
label.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    text-align: left;
}

/* --- INPUTS & TEXTAREA (Estilo Verde Verona) --- */
input, textarea {
    width: 100%;
    padding: 15px;
    
    /* Fondo inactivo: Verde muy sutil (8%) */
    background-color: rgba(141, 230, 19, 0.08);
    
    /* Borde suave */
    border: 1px solid rgba(141, 230, 19, 0.2); 
    border-radius: 8px;
    
    color: #333;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    
    /* Reset de estilos anteriores */
    border-bottom: 2px solid rgba(141, 230, 19, 0.3) !important; 
    backdrop-filter: none;
}

/* Estado Focus (Cuando escribes) */
input:focus, textarea:focus {
    background-color: #ffffff; /* Fondo Blanco al escribir */
    border-color: var(--accent-green) !important;
    box-shadow: 0 4px 15px rgba(141, 230, 19, 0.15); /* Resplandor */
    outline: none;
    transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
    color: #999;
}

/* Botón de Enviar */
.btn-blue {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    width: 100%; /* Botón ancho (Full width del contenedor) */
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.btn-blue:hover {
    background-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(141, 230, 19, 0.3);
}

/* Footer y Redes Sociales */
footer { text-align: center; padding: 30px 0; background: white; font-size: 0.9rem; color: var(--text-light); border-top: 1px solid #eee; }
.social-icons { margin-bottom: 15px; }
.social-icons a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; margin: 0 10px;
    background: #eee; color: var(--primary-color);
    border-radius: 50%; text-decoration: none; transition: all 0.3s;
}
.social-icons a:hover { background: var(--accent-green); color: white; }

/* Botón Scroll Top */
.scroll-top {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--accent-green); color: white;
    width: 45px; height: 45px; border-radius: 5px;
    display: flex; justify-content: center; align-items: center;
    text-decoration: none; z-index: 999;
    opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-5px); background: #7ab332; }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); backdrop-filter: blur(5px); }
.modal-content { position: relative; margin: auto; display: flex; justify-content: center; align-items: center; height: 100%; max-width: 90%; }
.modal-content img, .modal-content iframe, .modal-content video { max-width: 100%; max-height: 80vh; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.close-btn { position: absolute; top: 20px; right: 30px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 2001; }
.prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -50px; color: white; font-weight: bold; font-size: 30px; background: rgba(0,0,0,0.3); border-radius: 3px; user-select: none; z-index: 2002;}
.next { right: 0; } .prev { left: 0; }
.caption-text { text-align: center; color: #ccc; padding: 10px 20px; position: absolute; bottom: 20px; width: 100%; }

/* Florituras */
.flourish-full-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.5; }
.flourish-full-bg svg { width: 100%; height: 100%; overflow: visible; }
.flourish-line { fill: none; stroke-linecap: round; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: drawLineLoop 15s ease-in-out infinite alternate; }
.line-1 { stroke: var(--accent-green); opacity: 0.8; }
.line-2 { stroke: #d1d1d1; opacity: 0.6; animation-delay: 0.5s; stroke-width: 1px;}
.line-3 { stroke: var(--accent-green); opacity: 0.2; animation-delay: 1.5s; stroke-width: 4px; }
@keyframes drawLineLoop {
    0% { stroke-dashoffset: 3000; stroke-width: 1px; }
    40% { stroke-width: 5px; }
    60% { stroke-width: 5px; }
    100% { stroke-dashoffset: 0; stroke-width: 1px; }
}
.text-content { position: relative; z-index: 1; }


/* Estilo base de la Hamburguesa (Oculta en Desktop) */
.burger {
    display: none; /* En compu no se ve */
    cursor: pointer;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}
/* Responsive General */
@media (max-width: 1024px) {
    .gallery-mosaic { grid-template-columns: repeat(2, 1fr); } 
}

/* MÓVIL (Responsivo Ajustado + Menú Activo) */
@media (max-width: 768px) {
    /* 1. Ajustes del Hero y Grid (Que ya tenías) */
    .hero { height: 65vh; min-height: 500px; }
    .hero-content { top: -30px; }
    .zoom-text { font-size: 1.8rem; padding: 0 15px; }
    .grid-2, .gallery-mosaic, #contactForm .row { grid-template-columns: 1fr; }
    #contactForm .col-12 { grid-column: span 1; }
    .section-padding { padding: 50px 20px; }

    /* 2. Mostrar la Hamburguesa */
    .burger { display: block; }

    /* 3. El Menú Móvil (Escondido por defecto a la derecha) */
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh; /* Altura de pantalla menos el header */
        top: 8vh;     /* Empieza debajo del navbar */
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;   /* Que ocupe un poco más de la mitad */
        transform: translateX(100%); /* Lo empujamos fuera de la pantalla */
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1); /* Sombrita para profundidad */
    }

    /* Estilo de los links en móvil */
    .nav-links li { 
        margin: 30px 0; 
        opacity: 0; /* Invisibles al inicio para animarlos luego */
    }

    /* 4. Clase para ABRIR el menú (JS la activará) */
    .nav-active {
        transform: translateX(0%);
    }

    /* Animación de entrada de los links (Fade in) */
    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0px); }
    }

    /* 5. Animación Icono Hamburguesa -> X */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
}

/* Animación de entrada para la galería */
.gallery-fade-in {
    /* La magia del movimiento: empieza rápido, termina suave */
    animation: softEntry 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes softEntry {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px); /* Empieza un poquito chica y abajo */
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0); /* Termina perfecta */
    }
}