@font-face {
  font-family: "Emberly";
  src:
    local("Emberly"),
    url("../fonts/emberly/Emberly-LightNarrow.ttf") format("opentype");
  font-weight: 300;
}

@font-face {
  font-family: "Cormorant";
  src:
    local("Cormorant"),
    url("../fonts/cormorant/Cormorant-VariableFont_wght.ttf") format("opentype");
}


/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #070707;
    --bg-dark-gray: #0f0f0f;
    --gold: #E9A92C;
    /*--gold: #c9a054;*/
    --grey: #999999;
    --white: #ffffff;
    --text-muted: #aaaaaa;
    --font-title: 'Emberly', serif;
    --font-body: 'Cormorant', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- REUSABLE STYLES --- */
h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 300;
    letter-spacing: 2px;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--grey);
    /* text-transform: uppercase; */
}

p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.gold-text {
    color: var(--gold);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.btn-text {
    color: var(--gold);
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--white);
}

/* --- HERO SECTION --- */
.hero {
    /*background: url('../img/fondo-barriles-hero.jpg.png') no-repeat center center/cover;*/
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 90%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    opacity: 0.3; /* Ajusta la opacidad según tu preferencia */
}


.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: auto auto 4rem auto;
}

.hero-content h1 {
    font-size: 9.5rem;
    line-height: .9;
}

/* --- HISTORY SECTION --- */
.history-gallery {
    display: flex;
    gap: 1rem;
}

.gallery-img {
    flex: 1;
    border-radius: 12px; /* Esquinas redondeadas como el diseño */
    object-fit: cover;
    height: 350px;
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: translateY(-5px);
}

/* --- PRODUCTS SECTION --- */
.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 6rem 2rem;
}

.row-reverse {
    flex-direction: row-reverse;
}

.product-text {
    flex: 1;
    max-width: 450px;
}

.product-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.product-img img {
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.7));
}

/* --- EVENTS SECTION --- */
.events-gallery {
    display: flex;
    gap: 1.5rem;
}

.event-img {
    width: 50%;
    border-radius: 12px;
    object-fit: cover;
    height: 250px;
}

.contact-display {
    scale: 1.5;
    height: 100%;
    width: 100%;
    background: url('../img/tres-botellas.png') no-repeat center center/cover;
}

/* --- CONTACT SECTION --- */
.contact-section {
    background: #000;
    padding: 6rem 0;
}

.buttons-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.buttons-group.end {
    align-items: flex-end;
}

.buttons-group.start {
    align-items: flex-start;
}

.btn-outline {
    display: inline-block;
    width: fit-content;
    padding: 0.8rem 2rem;
    background-color: var(--white);
    border: 1px solid var(--white);
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--bg-dark);
    color: var(--white);
    border: 1px solid var(--white);
}

/* --- FOOTER --- */
.footer {
    background: url('../img/fondo-barriles-footer.jpg') no-repeat center center/cover;
    border-top: 1px solid #1a1a1a;
    padding: 4rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    max-height: 120px;
    object-fit: contain;
}

.footer-action {
    text-align: right;
    font-size: 1.25rem;
}

.btn-white {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--white);
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 25px;
    margin-top: 0.5rem;
    transition: opacity 0.3s;
}

.btn-white:hover {
    opacity: 0.9;
}

/* 1. Modifica esta regla existente para aumentar el tamaño del texto principal */
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem; /* Aumentado (antes estaba en 0.9rem) */
    font-weight: 400;
    transition: color 0.3s ease;
}

/* 2. Añade esta nueva regla para controlar el contenedor de los subenlaces */
.footer-sublinks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1.2rem; /* Crea la ligera sangría hacia la derecha */
    margin: 0.4rem 0 0.8rem 0; /* Separa el bloque de los enlaces principales */
}

/* 3. Añade esta nueva regla específica para los enlaces de los productos */
.footer-sublinks a {
    color: var(--gold) !important; /* Fuerza el texto a color oro */
    font-size: 0.95rem; /* Un poco más pequeño que el principal para jerarquía */
    text-transform: none; /* Por si tienes activadas las mayúsculas */
}

/* 4. Añade el efecto hover para los subenlaces (opcional, se aclaran al pasar el mouse) */
.footer-sublinks a:hover {
    filter: brightness(1.3);
}

/* --- RESPONSIVE DESIGN (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    .grid-2, .product-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .row-reverse {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 5.2rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-action {
        text-align: center;
    }

    .buttons-group {
        justify-content: center;
    }
}

/* ==========================================================================
   NUEVOS ESTILOS PARA LA PÁGINA "SOBRE NOSOTROS"
   ========================================================================== */

/* Auxiliares de alineación */
.text-center {
    text-align: center;
}
.navbar .nav-links a.active {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

/* Modificación para el Hero de la página interna (más enfocada en el título) */
.hero-internal {
    background: url('../img/fondo-barriles-hero.jpg.png') no-repeat center center/cover;
    height: 80vh; /* Un poco más baja que la principal */
}

/* Sección Tequila, Tierra y Tradición */
.rounded-img {
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* Sección de Características (El 33 y detalles) */
.about-features {

    padding: 4rem 0;
    position: relative;
}

.feature-badge {
    background: url('../img/33.png') no-repeat center center/contain;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature-item {
    margin-bottom: 2rem;
    max-width: 500px;
}

.feature-item h3 {
    font-size: 2.25rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.feature-item p {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.features-display img {
    filter: drop-shadow(0 10px 20px rgba(201, 160, 84, 0.15));
}

/* Sección Nuestro Proceso (Banner con fondo de paisaje) */
.our-process {
    background: url('../img/fonto-jima.png') no-repeat center center/cover;
    padding: 6rem 0;
    position: relative;
}

.process-header h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.step-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.border-step {
    border-left: 2px solid var(--gold);
    padding-left: 2rem;
}

/* Sección Mosaico de Productos (Grid de 3 columnas) */
.our-products-grid .section-title {
    margin-bottom: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    text-align: center;
}

.card-img-wrapper {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.card-img-wrapper img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.product-card .btn-text {
    font-size: 1.1rem;
    display: inline-block;
}

/* --- AJUSTES RESPONSIVOS EXTRA --- */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .card-img-wrapper img {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .border-step {
        border-left: none;
        border-top: 2px solid var(--gold);
        padding-left: 0;
        padding-top: 2rem;
    }
    
    .hero-internal {
        height: 50vh;
    }
}

/* ==========================================================================
   NUEVOS ESTILOS PARA LA PÁGINA DE PRODUCTO (TEQUILA BLANCO)
   ========================================================================== */

/* Hero de producto específico con botella centrada abajo */
.hero-product {
    height: 80vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-product-anejo {
    background: url('../img/botella-anejo-hero.jpg') no-repeat center center/cover;
}

.hero-product-blanco {
    background: url('../img/botella-blanco-hero.jpg') no-repeat center center/cover;
}

.hero-product-reposado {
    background: url('../img/botella-reposado-hero.jpg') no-repeat center center/cover;
}

.hero-product .hero-content {
    text-align: left;
    margin-bottom: 2rem;
    z-index: 2;
}

.hero-bottle-img {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    max-width: 320px;
}

/* Contenedor maestro del Scroll de Catas */
.tasting-scroll-container {
    background-color: var(--bg-dark);
    position: relative;
    padding-top: 10rem; /* Espacio para que baje de la botella del hero */
}

.tasting-wrapper {
    display: flex;
    position: relative;
    gap: 4rem;
}

/* Columna de textos: tendrá suficiente scroll */
.tasting-text-col {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.tasting-step {
    min-height: 70vh; /* Cada nota ocupa buena parte de la pantalla al scrollear */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.tasting-step h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.tasting-step p {
    font-size: 1.1rem;
    max-width: 480px;
    line-height: 1.8;
}

/* Columna Sticky de la Botella */
.tasting-sticky-col {
    width: 50%;
    position: relative;
}

.sticky-bottle-box {
    position: -webkit-sticky;
    position: sticky;
    top: 20vh; /* Se clava a un 20% de la pantalla superior */
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen de la botella con transiciones suaves controladas por JS */
.interactive-bottle {
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 30px 5px rgba(0, 0, 0, 0.6));
}


/* --- ADAPTACIÓN RESPONSIVE TOTAL (MÓVILES Y TABLETS) --- */
@media (max-width: 992px) {
    /* En pantallas medianas/chicas el efecto fixed de lado puede estorbar, 
       así que el diseño pasa a ser una columna hermosa y limpia */
       
    /*.hero-product {
        height: auto;
        padding-bottom: 250px;
    }*/

    .hero-bottle-img {
        max-width: 220px;
        bottom: -50px;
    }

    .tasting-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .tasting-text-col {
        width: 100%;
        order: 2; /* El texto va abajo */
    }

    .tasting-sticky-col {
        width: 100%;
        order: 1; /* La botella se muestra arriba primero */
        height: auto;
    }

    .sticky-bottle-box {
        position: relative; /* Desactivamos el sticky en móvil */
        top: 0;
        height: auto;
        padding: 2rem 0;
    }

    .interactive-bottle {
        max-height: 400px;
        transform: rotate(0deg) !important; /* En móviles la dejamos derecha para mejor lectura */
    }

    .tasting-step {
        min-height: auto;
        text-align: center;
        margin-bottom: 4rem;
    }

    .tasting-step p {
        margin: 0 auto;
    }
}

/* ==========================================================================
   NUEVOS ESTILOS PARA LA PÁGINA DE COCTELES (CARRUSEL HORIZONTAL)
   ========================================================================== */

.hero-cocteles {
    background: url('../img/fondo-cocteles.png') no-repeat center center/cover;
}


.cocktails-section {
    background-color: var(--bg-dark);
    padding: 4rem 0;
}

/* Fila del coctel estructurada en dos columnas */
.cocktail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    padding: 6rem 2rem;
    position: relative;
    border-bottom: 1px solid #141414;
}

/* Columna de Información (Fija detrás si es necesario o estática izquierda) */
.cocktail-info-col {
    width: 45%;
    position: relative;
    z-index: 1;
}

.cocktail-title {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.recipe-block {
    margin-bottom: 2rem;
}

.recipe-block h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recipe-block ul {
    list-style: none;
    padding: 0;
}

.recipe-block ul li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

/* Pequeño detalle dorado para la lista de ingredientes */
.recipe-block ul li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 0;
}

/* Columna del Carrusel que permite desbordarse por encima */
.cocktail-carousel-col {
    width: 55%;
    position: relative;
    z-index: 2; /* Mayor prioridad para tapar el texto al deslizar si se expande */
}

/* Contenedor con Scroll de Ajuste Magnético (Scroll Snap) */
.carousel-snap-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
    
    /* Ocultar barra de scroll por estética premium, pero manteniendo la función activa */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.carousel-snap-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Ajustes de las láminas del Carrusel */
.carousel-slide {
    flex: 0 0 75%; /* Cada foto toma el 75% del ancho de su columna para dejar ver la siguiente */
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    background-color: #111;
}

.carousel-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}


/* ==========================================================================
   ADAPTACIÓN RESPONSIVE EXCLUSIVA (VISTA MÓVIL)
   ========================================================================== */

@media (max-width: 992px) {
    .cocktail-row {
        flex-direction: column; /* Cambia a una sola columna */
        gap: 2rem;
        padding: 4rem 1rem;
    }

    /* Las fotos se posicionan en la parte superior de cada sección */
    .cocktail-carousel-col {
        width: 100%;
        order: 1; /* Pasa al primer lugar */
    }

    .cocktail-info-col {
        width: 100%;
        order: 2; /* El texto pasa abajo de las fotos */
        text-align: left;
        padding-top: 1rem;
    }

    .carousel-slide {
        flex: 0 0 85%; /* En móviles hacemos las fotos un poco más anchas */
    }

    .carousel-slide img {
        height: 320px; /* Reducimos la altura para pantallas móviles */
    }

    .cocktail-title {
        font-size: 1.8rem;
        text-align: center;
    }
}

/* ==========================================================================
   NUEVOS ESTILOS PARA LA PÁGINA DE CONTACTO EXCLUSIVA
   ========================================================================== */

/* Hero largo adaptado a la distribución de la imagen de contacto */
.hero-contact-page {
    background: url('../img/fondo-contacto.jpg') no-repeat center center/cover;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Contenedor de textos alineados y ajustados como en la captura */
.contact-page-content {
    max-width: 600px;
    margin: 4rem auto auto 10%; /* Empujado ligeramente a la izquierda en pantallas grandes */
}

.contact-page-content h1 {
    margin-bottom: 2rem;
}

.contact-lead {
    width: 100%;
    max-width: 350px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Bloque vertical para los botones redondeados ovalados */
.contact-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start; /* Los alinea al ancho del contenido */
}

/* El clásico botón blanco redondeado del diseño */
.btn-white-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.75rem 2.2rem;
    background-color: var(--white);
    color: #1a1a1a;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: 30px; /* Hace el botón completamente ovalado */
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-white-round:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Estilo para los iconos SVG dentro de los botones */
.btn-white-round .icon {
    display: flex;
    align-items: center;
    color: #1a1a1a;
}

.margin-top-xs {
    margin-top: 0.5rem;
}

/* Modificaciones precisas del Footer para esta vista
.footer-action p {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 0.5rem;
} */


/* --- AJUSTES RESPONSIVOS DE CONTACTO --- */
@media (max-width: 768px) {
    .contact-page-content {
        margin: 4rem auto;
        text-align: center;
        padding: 0 1.5rem;
    }

    .contact-page-content h1 {
        font-size: 2.8rem;
    }

    .contact-actions-vertical {
        align-items: center; /* Los centra perfectamente en pantallas móviles */
        width: 100%;
    }

    .btn-white-round {
        width: 100%; /* Hace que los botones abarquen el ancho completo disponible en móvil */
        max-width: 320px;
    }
}

/* ==========================================================================
   NUEVO HEADER COMPLETO (ESCRITORIO & RESPONSIVE)
   ========================================================================== */

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    position: sticky;
    top: 0;
    background-color: rgba(7,7,7,0.95);
    padding: 2rem 0;
    z-index: 100;
}

/* En escritorio el contenedor se expande completamente */
.nav-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
}

.nav-group {
    display: flex;
    gap: 3rem;
    align-items: center;
}

/* Enlaces base del menú */
.nav-group a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-group a:hover,
.dropdown-menu a:hover {
    color: var(--gold);
}

/* --- LOGO EN ESCRITORIO (Centrado absoluto mediante Spacer) --- */
.navbar .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 110;
    transition: all 0.3s ease;
}

.logo > a > img {
    height: 80px;
}

.nav-logo-spacer {
    width: 120px; /* Mismo espacio aproximado que ocupa tu logo */
}

/* --- SUBMENÚ DESPLEGABLE (DROPDOWN) EN ESCRITORIO --- */
.nav-item-dropdown {
    position: relative;
}

.arrow {
    font-size: 0.6rem;
    display: inline-block;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0c0c0c;
    border: 1px solid #1a1a1a;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-menu a {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: none;
}

/* Mostrar menú en hover (solo escritorio) */
@media (min-width: 993px) {
    .nav-item-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-item-dropdown:hover .arrow {
        transform: rotate(180deg);
    }
}

/* --- BOTÓN MENÚ HAMBURGUESA --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 120;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* ==========================================================================
   VISTA RESPONSIVE (MÓVIL & TABLET)
   ========================================================================== */

@media (max-width: 992px) {
    /* Reposicionar logo a la izquierda nativamente */
    .navbar .logo {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
    }

    .nav-logo-spacer {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Animación hamburguesa activa */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Contenedor transformándose en menú desplegable de pantalla completa o bloque */
    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #070707;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        border-bottom: 1px solid #141414;
    }

    /* Clase que inyecta JS para abrir el menú */
    .nav-container.open {
        max-height: 500px; /* Altura suficiente para desplegar todo */
    }

    .nav-group {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-group a, 
    .nav-item-dropdown .dropdown-toggle {
        display: block;
        width: 100%;
        padding: 1.2rem 1.5rem;
        border-bottom: 1px solid #111;
        box-sizing: border-box;
    }

    /* Acordeón Móvil de Productos */
    .dropdown-menu {
        position: relative;
        top: 0;
        width: 100%;
        background-color: #0f0f0f;
        border: none;
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease-out;
    }

    /* Clase activa controlada por JS en clic móvil */
    .nav-item-dropdown.active .dropdown-menu {
        max-height: 200px; 
    }

    .nav-item-dropdown.active .arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        padding: 1rem 2.5rem;
        background-color: #0b0b0b;
    }
}


/* FONDOS BOTELLAS */

.fondo-blanco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/fondo-blanco.png') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Asegura que el fondo esté detrás de otros elementos */
}

.fondo-reposado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/fondo-reposado.png') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Asegura que el fondo esté detrás de otros elementos */
}

.fondo-anejo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/fondo-anejo.png') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Asegura que el fondo esté detrás de otros elementos */
}

.fondo-tres-botellas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/fondo-tres-botellas-campo.png') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Asegura que el fondo esté detrás de otros elementos */
}
