/* --- VARIABLES GLOBALES --- */
:root {
    --color-negro: #111;
    --color-acento: #c5a059;
    --color-whatsapp: #25D366;
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-texto: 'Lato', sans-serif;
}

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

body { 
    font-family: var(--fuente-texto); 
    color: var(--color-negro); 
    background-color: #f9f9f9; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { width: 100%; display: block; }

/* --- HEADER Y NAVEGACIÓN --- */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    z-index: 1000; padding: 20px 0;
}
.navbar {
    max-width: 1600px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center; padding: 0 40px;
}
.logo { font-family: var(--fuente-titulos); font-size: 2.2rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }

ul.nav-links { display: flex; gap: 40px; }
.nav-links a {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px;
    font-weight: 600; color: var(--color-negro); position: relative;
}
.nav-links a:hover { color: var(--color-acento); }

/* --- HERO (PORTADA PRINCIPAL) --- */
.hero { 
    height: 85vh; 
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1469334031218-e382a71b716b?q=80&w=2070&auto=format&fit=crop') no-repeat center/cover; 
    display: flex; align-items: center; justify-content: center; 
    text-align: center; color: white; margin-top: 80px;
}
.hero-content h1 { font-family: var(--fuente-titulos); font-size: 4.5rem; margin-bottom: 10px; letter-spacing: 2px; font-weight: 700; }

/* --- PAGE HERO (PARA LAS OTRAS PÁGINAS) --- */
.page-hero { 
    height: 40vh; 
    background: url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?q=80&w=2070&auto=format&fit=crop') center/cover; 
    display: flex; align-items: center; justify-content: center; 
    margin-top: 80px; 
}
.page-hero h1 { 
    color: white; font-family: var(--fuente-titulos); font-size: 3.5rem; 
    text-transform: uppercase; letter-spacing: 2px; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
}

/* --- SECCIONES COMUNES --- */
.section-container { max-width: 1400px; margin: 100px auto; padding: 0 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--fuente-titulos); font-size: 2.5rem; margin-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}

/* --- CATEGORÍAS (INDEX) --- */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.category-card { position: relative; height: 450px; overflow: hidden; display: block; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.category-card:hover img { transform: scale(1.1); }
.category-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.category-card:hover .category-overlay { background: rgba(0,0,0,0.4); }
.category-overlay h3 {
    color: white; font-family: var(--fuente-titulos); font-size: 2rem;
    text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
    border: 2px solid white; padding: 15px 30px;
}

/* --- SOBRE NOSOTROS --- */
.about-section { display: flex; align-items: center; gap: 60px; }
.about-text { flex: 1; }
.about-text h2 { font-family: var(--fuente-titulos); font-size: 2.5rem; margin-bottom: 30px; font-weight: 700;}
.about-text p { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 20px; }
.about-image { flex: 1; height: 500px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* --- VISÍTANOS (MAPA) --- */
.visit-section-full { display: flex; height: 650px; width: 100%; margin-top: 100px; }
.visit-info-box { flex: 1; background-color: var(--color-negro); color: white; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.visit-info-box h2 { font-family: var(--fuente-titulos); font-size: 3rem; margin-bottom: 40px; font-weight: 700; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-item i { color: var(--color-acento); font-size: 1.8rem; margin-top: 5px; }
.info-content h4 { font-family: var(--fuente-titulos); font-size: 0.9rem; letter-spacing: 2px; color: var(--color-acento); margin-bottom: 10px; text-transform: uppercase;}
.horario-tabla { width: 100%; font-size: 1rem; color: #ddd; line-height: 1.5; }
.horario-tabla td { padding-bottom: 5px; vertical-align: top;}
.dia { font-weight: 700; width: 100px; color: white;}
.horas { color: #ccc;}
.btn-call {
    display: inline-flex; align-items: center; gap: 10px;
    background: white; color: var(--color-negro);
    padding: 15px 40px; font-weight: 700; letter-spacing: 2px; font-size: 0.9rem;
    text-transform: uppercase; border-radius: 2px; width: fit-content; margin-top: 20px;
}
.btn-call:hover { background: var(--color-acento); color: white; }
.map-container { flex: 1.2; position: relative; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- GALERÍA DE PRODUCTOS (MUJER, HOMBRE, NIÑOS) --- */
/* En estilos.css */
.gallery-container, .gallery-grid { 
    max-width: 1600px; 
    margin: 80px auto; 
    padding: 0 20px; 
    display: grid; 
    /* CAMBIO AQUÍ: bajamos de 280px a 240px para que entren más holgados */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    /* AÑADIDO: Centra los elementos si no completan la fila */
    justify-content: center;
    gap: 30px; 
    /* flex: 1; <- Esto lo puedes quitar, en un grid container no hace nada útil aquí */
}
.product-card { background: white; cursor: pointer; border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s; }
.product-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.product-img-box { height: 350px; overflow: hidden; position: relative; background-color: #f4f4f4; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img-box img { transform: scale(1.05); }
.product-info { padding: 20px; text-align: center; }
.product-title { font-family: var(--fuente-titulos); font-size: 1.1rem; margin-bottom: 5px; font-weight: 700; color: #333; }
.product-price { font-family: var(--fuente-texto); font-size: 1.1rem; color: var(--color-acento); font-weight: 700; margin-top: 5px; }
.product-season { font-size: 0.8rem; color: #777; font-style: italic; display: block; margin-top: 5px;}

/* --- ESPECIFICO ACCESORIOS --- */
.category-selector { max-width: 1200px; margin: 80px auto; padding: 0 20px; text-align: center; flex: 1; }
.selector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.selector-card { position: relative; height: 400px; overflow: hidden; cursor: pointer; border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.selector-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.selector-card:hover img { transform: scale(1.1); }
.selector-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; color: white; transition: background 0.3s; }
.selector-card:hover .selector-overlay { background: rgba(0,0,0,0.5); }
.selector-overlay h2 { font-family: var(--fuente-titulos); font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; border: 2px solid white; padding: 15px 30px; }

.products-view { display: none; max-width: 1600px; margin: 60px auto; padding: 0 20px; animation: fadeIn 0.5s ease; flex: 1; }
.back-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fuente-texto); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; cursor: pointer; margin-bottom: 40px; padding: 10px 20px; border: 1px solid #ddd; transition: 0.3s; background: white; }
.back-btn:hover { background: #000; color: #fff; border-color: #000; }
.section-title { text-align: center; margin-bottom: 50px; }

/* --- DETALLE PRODUCTO --- */
.single-product-view { display: none; max-width: 1400px; margin: 60px auto; padding: 0 20px; animation: slideIn 0.5s ease; flex: 1; }
.product-detail-container { display: flex; gap: 60px; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.detail-image { flex: 1; height: 600px; background-color: #f9f9f9; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 4px; cursor: zoom-in; position: relative; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.detail-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.detail-title { font-family: var(--fuente-titulos); font-size: 3rem; margin-bottom: 15px; line-height: 1.2; font-weight: 700; }
.detail-price { font-family: var(--fuente-titulos); font-size: 2.2rem; color: var(--color-acento); margin-bottom: 30px; font-weight: 700; }
.btn-whatsapp-big { display: inline-flex; align-items: center; justify-content: center; gap: 15px; background-color: var(--color-whatsapp); color: white; padding: 18px 40px; border-radius: 50px; width: fit-content; font-family: var(--fuente-texto); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; text-decoration: none; }
.btn-whatsapp-big:hover { background-color: #1ebc57; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); color: white; }

/* --- LIGHTBOX --- */
.lightbox { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center; cursor: zoom-out; animation: fadeIn 0.3s; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.5); cursor: default; }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: white; font-size: 40px; cursor: pointer; }

/* --- AVISO LEGAL / TEXTOS --- */
.legal-main { margin-top: 120px; flex: 1; padding: 0 20px; margin-bottom: 80px; }
.legal-container { max-width: 900px; margin: 0 auto; background: white; padding: 60px; border-radius: 4px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.legal-container h1 { font-family: var(--fuente-titulos); font-size: 2.5rem; text-align: center; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 2px; }
.legal-container h2 { font-family: var(--fuente-titulos); font-size: 1.5rem; margin-top: 40px; margin-bottom: 20px; color: var(--color-negro); border-bottom: 2px solid var(--color-acento); display: inline-block; }
.legal-container p { font-size: 1.05rem; line-height: 1.8; color: #555; margin-bottom: 20px; text-align: justify; }
.company-data { background: #f9f9f9; border-left: 4px solid var(--color-acento); padding: 30px; margin: 30px 0; }
.company-data ul li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; color: #444; }
.company-data i { color: var(--color-acento); font-size: 1.4rem; }

/* --- FOOTER --- */
footer { background-color: #111; color: #fff; padding: 80px 0 30px; margin-top: auto; border-top: 1px solid #222; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-section h3 { font-family: var(--fuente-titulos); font-size: 1.1rem; margin-bottom: 30px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-acento); font-weight: 700; }
.footer-brand p { color: #999; font-size: 0.95rem; line-height: 1.8; margin-bottom: 25px; max-width: 350px;}
.footer-socials { display: flex; gap: 15px; }
.footer-socials a { width: 40px; height: 40px; border: 1px solid #444; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s; }
.footer-socials a:hover { background: var(--color-acento); border-color: var(--color-acento); color: white; transform: translateY(-3px); }
.footer-links ul li { margin-bottom: 15px; }
.footer-links a { color: #bbb; font-size: 0.95rem; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px;}
.footer-links a:hover { color: var(--color-acento); padding-left: 5px; }
.footer-contact p { color: #bbb; margin-bottom: 20px; display: flex; gap: 15px; font-size: 0.95rem; line-height: 1.6; }
.footer-contact i { color: var(--color-acento); font-size: 1.3rem; margin-top: 2px; }
.footer-bottom { margin-top: 70px; padding-top: 30px; border-top: 1px solid #222; text-align: center; color: #555; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px;}

/* --- BANNER COOKIES --- */
#cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1000px; background-color: rgba(17, 17, 17, 0.95); border: 1px solid var(--color-acento); border-radius: 8px; color: white; padding: 25px; z-index: 9999; display: none; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(5px); }
.cookie-content { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cookie-text { font-size: 0.95rem; color: #ddd; line-height: 1.6; }
.cookie-buttons { display: flex; gap: 15px; min-width: 300px; justify-content: flex-end; }
.btn-cookie-accept { background-color: var(--color-acento); color: white; border: none; padding: 12px 25px; font-weight: 700; cursor: pointer; text-transform: uppercase; border-radius: 4px; transition: 0.3s; }
.btn-cookie-deny { background-color: transparent; color: #bbb; border: 1px solid #555; padding: 12px 25px; font-weight: 700; cursor: pointer; text-transform: uppercase; border-radius: 4px; transition: 0.3s; }
.btn-cookie-accept:hover { background-color: #fff; color: #111; }
.btn-cookie-deny:hover { border-color: #fff; color: #fff; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .about-section, .visit-section-full { flex-direction: column; height: auto; }
    .about-image, .map-container { height: 400px; width: 100%; }
    .visit-info-box { padding: 50px 30px; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-contact p, .footer-socials { justify-content: center; }
    .footer-brand p { margin: 0 auto 25px auto; }
    .footer-bottom { flex-direction: column; gap: 15px; }
    #cookie-banner { flex-direction: column; text-align: center; padding: 20px; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
    .nav-links { display: none; }
}
@media (max-width: 900px) { 
    .selector-grid, .gallery-grid, .gallery-container { grid-template-columns: 1fr; } 
    .product-detail-container { flex-direction: column; } 
    .detail-image { height: 400px; } 
}
@media (max-width: 600px) { 
    .categories-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
}
/* --- MEJORAS VISUALES PREMIUM & MOVIMIENTO --- */

/* 1. Scrollbar Personalizada (Más elegante) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--color-acento); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a38243; }

/* 2. Navegación Glassmorphism (Efecto cristal) */
header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 0; /* Un poco más compacto al bajar */
    transition: all 0.4s ease;
}

/* 3. Animación de Enlaces (Subrayado mágico) */
.nav-links a::after {
    content: ''; display: block; width: 0; height: 2px;
    background: var(--color-acento); transition: width 0.3s;
    margin-top: 5px;
}
.nav-links a:hover::after { width: 100%; }

/* 4. Tarjetas de Producto con Efecto 3D y Sombra Suave */
.product-card {
    transition: transform 0.1s ease, box-shadow 0.3s ease; /* Transición rápida para el tilt */
    transform-style: preserve-3d;
    perspective: 1000px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Sombra inicial muy suave */
}

/* Efecto al pasar el ratón (Hover mejorado) */
.product-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.product-card:hover .product-title { color: var(--color-acento); transition: 0.3s; }

/* Brillo que pasa por la imagen */
.product-img-box { overflow: hidden; position: relative; }
.product-img-box::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg); transition: 0.5s; z-index: 2; pointer-events: none;
}
.product-card:hover .product-img-box::before { left: 125%; transition: 0.7s; }

/* 5. Clases para "Scroll Reveal" (Aparición mágica) */
.reveal-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* 6. Botones con Efecto Ripple/Brillo */
.btn-whatsapp-big {
    position: relative; overflow: hidden;
    background: linear-gradient(45deg, #25D366, #1ebc57);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp-big:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* 7. Footer Mejorado */
footer {
    background: linear-gradient(to bottom, #111, #050505);
}
.footer-socials a {
    background: rgba(255,255,255,0.05);
    border: none;
}
.footer-socials a:hover {
    background: var(--color-acento);
    transform: rotate(360deg); /* Vuelta completa al pasar el ratón */
}
/* --- ESTILOS MENÚ HAMBURGUESA (Móvil) --- */

/* Por defecto, el icono está oculto en PC */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-negro);
}

/* Modificación para Móviles y Tablets */
@media (max-width: 1024px) {
    /* Hacemos visible el botón hamburguesa */
    .hamburger {
        display: block;
        z-index: 2000; /* Para que quede por encima del menú desplegado */
    }

    /* Ocultamos el icono de hamburguesa si el menú está activo (opcional, o lo animamos a X) */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Redefinimos la lista de enlaces para que sea un menú lateral */
    .nav-links {
        position: fixed;
        left: -100%; /* Lo escondemos a la izquierda */
        top: 0; /* Desde arriba del todo */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98); /* Fondo casi blanco */
        width: 100%;
        height: 100vh; /* Ocupa toda la altura */
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 120px; /* Espacio para no tapar el logo al abrir */
        display: flex !important; /* Forzamos display flex porque antes tenías 'display:none' */
        gap: 25px;
        z-index: 1500;
    }

    /* Clase que añade JS para mostrar el menú */
    .nav-links.active {
        left: 0; /* Lo movemos al sitio visible */
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.5rem; /* Letra más grande en móvil */
    }
    
    /* Asegúrate de borrar o modificar la línea antigua que decía:
       .nav-links { display: none; } 
       dentro de tu media query original para que no entre en conflicto.
    */
}