/* =========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    --gold: #c5a059;
    --dark: #0a0a0a;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    --nav-height-sticky: 80px; 

}
    html, body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Evita que cualquier imagen o contenedor rompa el ancho móvil */
.contact-photo, .history-grid-images, .gallery-grid-premium, .about-img {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

img {
    max-width: 100%;
    height: auto;
}

/* Arreglo específico para el scroll horizontal */
html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}
*, *:before, *:after {
    box-sizing: inherit;
}
.flex-grid {
    display: flex;
    flex-wrap: wrap; /* Esto permite que bajen en el móvil */
    gap: 30px;
    overflow: hidden; /* Evita que las animaciones AOS empujen la web */
}

.about-text, .about-img {
    flex: 1 1 400px; /* Se ajustan al ancho disponible */
    max-width: 100%;
}

/* --- MODAL DE GALERÍA RESPONSIVE --- */
#gallery-modal {
    display: none; /* Se cambia a 'flex' mediante JS */
    position: fixed;
    z-index: 9999; /* Por encima de la navegación sticky */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    
    /* Centrado total */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

/* Contenedor relativo para posicionar el botón de cierre */
.modal-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px; /* Tamaño máximo en escritorio */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#img-ampliada {
    width: 100%;
    height: auto;
    max-height: 80vh; /* No permite que la imagen sea más alta que el 80% de la pantalla */
    object-fit: contain; /* Mantiene la proporción sin deformar */
    border: 2px solid #c5a059;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Botón de cerrar adaptado a dedos (touch friendly) */
.close-zoom {
    position: absolute;
    top: -50px;
    right: 0;
    color: #c5a059;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-zoom:hover {
    color: #fff;
}
 .disclaimer-box {
            background: rgba(197, 160, 89, 0.1);
            border: 1px solid var(--gold);
            padding: 20px;
            margin: 30px 0;
            text-align: center;
            font-style: italic;
            color: #ccc;
        }
#caption-zoom {
    margin-top: 20px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

/* --- AJUSTES ESPECÍFICOS PARA MÓVIL --- */
@media (max-width: 768px) {
    #gallery-modal {
        padding: 10px;
    }

    .close-zoom {
        top: -45px;
        right: 10px;
        font-size: 40px;
    }

    #caption-zoom {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    #img-ampliada {
        max-height: 70vh; /* Un poco más pequeño en móvil para dejar aire */
    }
}
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* Estilos específicos para el Menú */
.menu-hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/bg.jpg');
    background-attachment: fixed; /* Efecto elegante para PC */
    background-size: cover;
    background-position: center center;
    text-align: center;
    width: 100%;
}

/* AJUSTE PARA MÓVIL (Donde falla el fixed) */
@media (max-width: 768px) {
    .menu-hero {
        padding-top: 120px; /* Un poco menos de espacio arriba en móvil */
        padding-bottom: 60px;
        background-attachment: scroll; /* Cambiamos a scroll para que no se vea borrosa */
        background-position: center center;
        /* Forzamos que la altura no sea excesiva para que se vea la foto */
        min-height: 300px; 
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Efecto de revelado suave para secciones */
.section {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.p-desc {
    color: #ccc; /* Un gris un poco más claro para mejor contraste */
    font-size: 1.15rem; 
    line-height: 1.9; /* Máxima legibilidad en textos largos */
}

/* Mejora del header en la página de galería */
.gallery-hero h1 {
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}
/* Grid Premium */
.gallery-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0 60px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Modal Zoom Styles */
.modal-zoom {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.modal-content-zoom {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border: 1px solid var(--gold);
}

.close-zoom {
    position: absolute;
    top: 50px; right: 50px;
    color: var(--gold);
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}
body { 
    font-family: var(--font-main); 
    background: var(--dark); 
    color: var(--white);
    overflow-x: hidden; 
    scroll-behavior: smooth; 
    /* Aumentamos el tamaño base y suavizamos el espaciado */
    font-size: 18px; 
    line-height: 1.7;
    letter-spacing: 0.2px; 
}

p {
    margin-bottom: 1.5rem; /* Separamos más los párrafos entre sí */
}

/* =========================================
   NAVBAR LUXURY & STICKY
   ========================================= */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 4000; 
    padding: 25px 0; 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(15px); 
    transition: var(--transition); 
    border-bottom: 1px solid rgba(197, 160, 89, 0.2); 
    display: flex;
    align-items: center;
}

.navbar.sticky { 
    padding: 0; 
    height: var(--nav-height-sticky); 
    background: #000; 
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 40px; 
    width: 100%;
}

.logo-img { height: 60px; width: auto; transition: 0.3s; }
.navbar.sticky .logo-img { height: 45px; }

.nav-links { 
    display: flex; 
    list-style: none; 
    align-items: center; 
}

.nav-links li a { 
    color: #fff; 
    text-decoration: none; 
    margin-left: 35px; 
    font-size: 0.95rem; /* Antes 0.8rem: Ahora es mucho más legible */
    letter-spacing: 1.5px; /* Bajamos un poco el espaciado para que no se estire tanto */
    text-transform: uppercase; 
    transition: 0.3s; 
}

.nav-links a.active, .nav-links a:hover { color: var(--gold); }

.btn-reserva { 
    border: 1px solid var(--gold); 
    padding: 12px 25px !important; 
    color: var(--gold) !important; 
    font-weight: 600; 
}

.btn-reserva:hover { background: var(--gold); color: #000 !important; }

/* =========================================
   BURGER MENU (CORREGIDO PARA VISIBILIDAD)
   ========================================= */
.burger { 
    display: none; 
    cursor: pointer; 
    z-index: 5001;
}

.burger span { 
    display: block; 
    width: 25px; 
    height: 2px; 
    background-color: #fff; 
    margin: 5px; 
    transition: all 0.3s ease; 
}

/* =========================================
   HERO SLIDER (INDEX)
   ========================================= */
.hero-slider { position: relative; height: 100vh; overflow: hidden; }
.slide { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content h1 { font-family: 'Playfair Display'; font-size: clamp(3rem, 10vw, 6rem); color: #fff; margin-top: 20px; }
.gold-subtitle { color: var(--gold); text-transform: uppercase; letter-spacing: 6px; font-size: 1rem; }

.slider-btn { 
    position: absolute; 
    top: 50%; 
    z-index: 100; 
    background: rgba(0,0,0,0.3); 
    border: none; 
    color: white; 
    padding: 20px; 
    cursor: pointer; 
    transform: translateY(-50%); 
    transition: 0.3s; 
}
.slider-btn:hover { background: var(--gold); color: #000; }
.next { right: 0; } .prev { left: 0; }

/* =========================================
   CARTA: TIRA DE CATEGORÍAS (SIN HUECOS)
   ========================================= */
.category-strip {
    position: sticky;
    top: var(--nav-height-sticky); 
    background: #000; 
    z-index: 3000;
    padding: 15px 0;
    border-bottom: 1px solid var(--gold);
}

.strip-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    display: flex;
}
.strip-container::-webkit-scrollbar { display: none; }

#category-selector {
    display: flex;
    list-style: none;
    gap: 15px;
    padding: 0 20px;
}

/* =========================================
   REVERTIR ESTILO DE BOTONES DE CATEGORÍA
   ========================================= */

.cat-btn {
    white-space: nowrap;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 25px; /* Volvemos al tamaño original */
    font-size: 0.75rem;   /* Volvemos a la letra más pequeña */
    text-transform: uppercase;
    letter-spacing: 2px;  /* Recuperamos el espaciado original */
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    font-family: var(--font-main, 'Quicksand', sans-serif); /* Mantenemos la fuente si quieres que siga redondeada */
}

.cat-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3); /* Recuperamos tu sombra original */
}

/* =========================================
   BLOQUES DE MENÚ Y SECCIONES
   ========================================= */
.section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

.flex-grid { display: flex; align-items: center; gap: 60px; }
.about-text, .about-img { flex: 1; }
.about-img img { width: 100%; height: auto; border-radius: 4px; box-shadow: 15px 15px 0 var(--gold); }

.menu-cat-block { 
    scroll-margin-top: 180px; 
    margin-bottom: 60px; 
}
/* Ajustamos los títulos para que también sigan esa línea */
.gold-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 3.5rem; /* Un poco más grande para impactar */
    color: var(--gold); 
    margin-bottom: 25px; 
    text-align: center;
}
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    margin: 40px 0; 
}

.gallery-grid img { width: 100%; height: 400px; object-fit: cover; border-radius: 2px; }

.prod-card { 
    background: #0d0d0d; 
    border: 1px solid rgba(197,160,89,0.15); 
    padding: 15px;
    transition: var(--transition); 
}

.prod-card:hover { border-color: var(--gold); transform: translateY(-5px); }

.prod-img-list { 
    width: 100%; 
    height: 220px; 
    overflow: hidden; 
    margin-bottom: 15px; 
}

.prod-img-list img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

.prod-info h3 { font-family: 'Playfair Display'; font-size: 1.2rem; color: #fff; margin-bottom: 5px; }
.price { color: var(--gold); font-weight: 700; font-size: 1.1rem; }

/* =========================================
   RESPONSIVE & MENU HAMBURGUESA
   ========================================= */
@media (max-width: 992px) {
    .navbar { padding: 15px 0; }
    
    .burger { display: block; }
    
    .nav-links { 
        position: fixed; 
        right: 0; 
        top: 0; 
        height: 100vh; 
        width: 75%; 
        background: #000; 
        flex-direction: column; 
        justify-content: center; 
        transform: translateX(100%); 
        transition: transform 0.5s ease-in; 
        z-index: 5000;
    }
    
    .nav-links.nav-active { transform: translateX(0); }
    .nav-links li { margin: 25px 0; }
   .nav-links li a { 
    font-family: var(--font-main);
    color: #fff; 
    text-decoration: none; 
    margin-left: 35px; 
    font-size: 1.1rem; /* Menú más visible */
    font-weight: 600;
    letter-spacing: 1px; 
    text-transform: uppercase; 
    transition: 0.3s; 
}

    /* Animación X del Burger */
    .burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle .line2 { opacity: 0; }
    .burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* Ajustes generales móvil */
    .flex-grid { flex-direction: column; text-align: center; }
    .about-img { order: -1; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid img { height: 300px; }
    .gold-title { font-size: 2.2rem; }
}

/* =========================================
   FOOTER PREMIUM
   ========================================= */
.footer-premium { background: #050505; color: #fff; padding: 80px 0 0; border-top: 2px solid var(--gold); }
.footer-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 50px; 
    padding: 0 40px 60px; 
}
.footer-column h4 { color: var(--gold); text-transform: uppercase; margin-bottom: 25px; font-size: 0.9rem; }
.footer-contact li, .footer-links-list li { list-style: none; margin-bottom: 15px; color: #999; }
.footer-links-list li a { color: #999; text-decoration: none; transition: 0.3s; }
.footer-links-list li a:hover { color: var(--gold); }
.footer-bottom { 
    text-align: center; 
    padding: 25px; 
    border-top: 1px solid #111; 
    font-size: 0.85rem; /* Antes 0.75rem: que se pueda leer bien el copyright */
    color: #666; 
}

/* =========================================
   BOTÓN SCROLL TOP
   ========================================= */
#scrollTop { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: var(--gold); 
    color: #000; 
    border: none; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: none; 
    z-index: 2000; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: 0.3s;
}
#scrollTop:hover { transform: scale(1.1); background: #fff; }
/* --- FORMATO DEL LOGO EN EL FOOTER --- */
.footer-logo-area {
    display: flex;
    justify-content: flex-start; /* Alineado a la izquierda por defecto */
    margin-bottom: 25px;
}

.footer-logo {
    max-width: 200px; /* Tamaño máximo en ordenadores */
    height: auto;     /* Mantiene la proporción */
    display: block;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3)); /* Sombra suave para dar relieve */
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05); /* Pequeño efecto al pasar el ratón */
}

/* --- ADAPTACIÓN RESPONSIVE (Móviles) --- */
@media (max-width: 768px) {
    .footer-logo-area {
        justify-content: center; /* En móviles lo centramos para que quede bien */
        margin-bottom: 20px;
    }

    .footer-logo {
        max-width: 150px; /* Un poco más pequeño en móviles */
    }
}

.strip-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.strip-container {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none; /* Oculta scroll en Firefox */
    scroll-behavior: smooth;
}

.strip-container::-webkit-scrollbar { display: none; } /* Oculta scroll en Chrome/Safari */

.strip-arrow {
    background: var(--dark);
    color: var(--gold);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: 0.3s;
}

.strip-arrow:hover { color: #fff; }

/* Ocultar flechas en móviles si prefieres que solo usen el dedo */
@media (max-width: 768px) {
    .strip-arrow { display: none; }
}

/* Fuerza el centrado de los títulos dorados en las cabeceras */
header.section .gold-title {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Contenedor de la ficha de producto para que no se pegue a los bordes */
#product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
}

/* Ajuste para que en móvil el texto respete los márgenes */
@media (max-width: 992px) {
    .product-container {
        padding: 0 20px;
    }
    
    .gold-title {
        font-size: 2.5rem !important; /* Ajuste de tamaño para móvil */
        text-align: center;
    }
}

/* Asegura que el contenedor principal esté siempre centrado y con márgenes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Estilo específico para títulos dorados centrados */
.gold-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    text-align: center;
    line-height: 1.2;
}

/* Ajuste para móviles: bajamos el tamaño si la pantalla es pequeña */
@media (max-width: 768px) {
    header.section {
        padding-top: 120px !important;
    }
    .gold-title {
        font-size: 2.8rem !important;
    }
}