@font-face {
      font-family: 'DEMFUENTE';
      src: url('../fonts/Blackmoor Std Regular.otf') format('truetype');
    }
    @font-face {
      font-family: 'AMERICEB';
      src: url('../fonts/americana.otf') format('truetype');
    }
    @font-face {
      font-family: 'BillionStars';
      src: url('../fonts/BillionStars.ttf') format('truetype');
    }
    @font-face {
      font-family: 'Artifex';
      src: url('../fonts/Artifex.otf') format('truetype');
    }
    @font-face {
      font-family: 'Playfair';
      src: url('../fonts/PlayfairDisplay.ttf') format('truetype');
    }
    @font-face {
      font-family: 'brandonblack';
      src: url('../fonts/brandonblack.ttf') format('truetype');
    }        
html, body {
  margin: 0;
  padding: 0;
  /* height: 100%; ← Puede causar problemas */
  overflow-x: hidden;
  /* overflow-y: visible; ← Por defecto, no necesario */
    background-color: white; 

}

/* Si necesitas que el body ocupe toda la altura */
body {
  min-height: 100svh;
}
     
    /* Navbar inicialmente transparente */
    .navbar {
      background-color: transparent;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      transition: background-color 0.3s ease;
    }

    /* Navbar sólida al hacer scroll - CLASE CORREGIDA */
    .navbar.solid {
      background-color: black;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
      z-index: 10000;
    }

    /* Contenedor interno */
    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
      height: 70px;
    }
    
    /* Logo */
    .logo {
      font-family: 'AMERICEB';
      color: #2b9831;
      font-size: 2.3rem;
      text-decoration: none;
      letter-spacing: -2px;
      display: flex;
      align-items: center;
      margin-left: 15px;
    }
    
    /* Menú de navegación */
    .nav-menu {
      font-family: 'Artifex';
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
    }
    
    .nav-item {
      margin: 0 15px;
    }
    
    .nav-link {
      color: rgb(245, 201, 31);
      text-decoration: none;
      font-size: 1.4rem;
      padding: 10px 0;
      position: relative;
      transition: color 0.3s;
    }
    
    .nav-link:hover {
      color: #2b9831;
    }
    
    .nav-link::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      bottom: 0;
      left: 0;
      background-color: #2b9831;
      transition: width 0.3s;
    }
    
    .nav-link:hover::after {
      width: 100%;
    }
    
    /* Botón de menú hamburguesa */
    .hamburger {
      display: none;
      cursor: pointer;
      background: none;
      border: none;
      color: rgb(245, 201, 31);
      font-size: 1.8rem;
    }
    
    /* Media queries para responsive */
    @media screen and (max-width: 768px) {
      .hamburger {
        display: block;
      }
      
      .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        backdrop-filter: blur(5px);
      }
      
      .nav-menu.active {
        left: 0;
      }
      
      .nav-item {
        margin: 15px 0;
      }
      
      .nav-link {
        padding: 15px;
        display: block;
      }
      
      .nav-link::after {
        display: none;
      }
    }

    /* Submenu oculto por defecto */
    .dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: black;
      list-style: none;
      padding: 0;
      margin: 0;
      min-width: 180px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
      border-radius: 4px;
      z-index: 2000;
    }

    .dropdown li a {
      display: block;
      padding: 12px 15px;
      color: white;
      font-size: 1.2rem;
      text-decoration: none;
    }

    .dropdown li a:hover {
      background-color: #2b9831;
      color: black;
    }

    /* Mostrar submenu al pasar mouse en desktop */
    .submenu {
      position: relative;
    }

    .submenu:hover .dropdown {
      display: block;
    }

    /* --- Responsive (móvil) --- */
    @media screen and (max-width: 768px) {
      .dropdown {
        position: static;
        background: rgba(0, 0, 0, 0.9);
        box-shadow: none;
        border-radius: 0;
      }

      .dropdown li a {
        padding: 15px;
        font-size: 1.3rem;
        text-align: center;
      }

      .submenu.active .dropdown {
        display: block;
      }
    }
 
.FLAGSHIP { 
  background-image: linear-gradient(rgba(0.4, 0.4, 0.4, 0.4), rgba(0.7, 0.7, 0.7, 0.7)), url('../images/Espadincampo.webp'); 
  background-size: cover; 
  display: flex; 
  justify-content: center; /* centra el grupo horizontal */ 
  align-items: center; /* centra verticalmente */ 
  min-height: 100svh; /* nuevo estándar, altura real visible */
  position: relative; 
  margin: 0; 
  gap: 0px; /* espacio entre texto y botella- */  

  } 

  /* Botella */ 
  .botelladmn { 
    display: block; 
    height: 460px; /*aqui era 480px cuando se usa el 87vh en flagship*/ 
    /* margin-right: 20px; */ 
    max-width: 100%; 
  } /* Texto vertical a la izquierda */ 

  .text3 { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: -80px; 
    margin-top: 40px; 
  } /* El texto vertical */ 

  .p3 { 
    font-family: 'Artifex'; 
    color: white; 
    font-size: 28px; 
    writing-mode: vertical-rl;
    text-orientation: sideways; 
    transform: scale(-1, -1); 
  } /* Texto inferior centrado */ 

  .text { 
    font-family: 'DEMFUENTE'; 
    color: white; 
    font-size: 55px; 
    padding: 18px 22px; 
    position: absolute; 
    bottom: 35px; 
    width: 100%; 
    text-align: center; 
  } 

  .text2 { 
    font-family: 'AMERICEB'; 
    color: red; 
    font-size: 32px; 
    padding: 18px 22px; 
    position: absolute; 
    bottom: 5px; 
    width: 100%; 
    text-align: center;
     }

    @media screen and (max-width: 768px) {

      .text{
        margin-bottom: 55px;
     font-size: 60px; 
       
      }
      .text2{
        margin-bottom: 40px;
    font-size: 37px; 

      }


    } 

    footer {
      background-color: black;
      color: white;
      text-align: center;
      padding: 30px 0;
    }

    /* === ESTILOS DE ARTÍCULOS: TAMAÑO DE DESKTOP RESTAURADO (250px) === */
    article {
      position: relative;
      width: 250px; /* RESTAURADO: Tamaño original de desktop */
      transition: all .3s ease;
    }   

    article img:first-child {
      box-shadow: 0 60px 60px -60px rgba(0,0,0,0.5);
      border-radius: 4px;
      object-fit: cover;
      width: 100%;
    }

    article img:last-child {
      position: absolute;
      width: 200px; /* Ajustado al tamaño de 250px del article */
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      transform: translateY(25%);
      transition: .3s ease;
      opacity: 0;
    }

    article:hover,
    article.active {
      transform: perspective(250px) rotateX(10deg) translateY(-5%) translateZ(0);
    }

    article::before {
      content: "";
      position: absolute;
      bottom: 0;
      height: 100%;
      width: 100%;
      background-image: linear-gradient(to bottom, transparent 10%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,1) 95%);
      opacity: 0;
      transition: all .3s ease;
    }

    article:hover::before,
    article.active::before {
      opacity: 1;
    }

    article:hover img:last-child,
    article.active img:last-child {
      opacity: 1;
      transform: translateY(10%);
    }

    /* CONTENEDOR DE ARTÍCULOS: GAP REDUCIDO */
    .contenedorr {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 40px; /* Espacio reducido entre artículos en desktop */
      flex-wrap: wrap;
      margin: 0px auto; /* Centrado horizontal */
      padding: 20px 0; /* Padding horizontal CERO en desktop */
      margin-top: 60px;
      max-width: 1200px;

    }

    .texto-imagen {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      padding: 30px;
      font-size: 21px;
      font-family: Playfair;
      margin-top: 30px;
      margin-right:30px ;
      margin-left:30px ;
      color: black;
      z-index: 1000;
    }

    .texto-imagen img {
      width: 400px;
      height: auto;
      border-radius: 10px;
    }

    .texto-imagen p {
      flex: 1;
      margin: 0;
      text-align: justify;

    } 
.imgbrr{
  width: 400px; height: auto; border-radius: 10px;
}
    @media (max-width: 768px) {
      .texto-imagen {
        flex-direction: column;
        text-align: center;
      }

      .texto-imagen img {
        width: 100%;
        margin: 0 auto 20px auto;
      }
      
      /* === AJUSTES DE RESPONSIVIDAD PARA LA SECCIÓN COMPROMISO === */
      .compromiso-cozobi-seccion {
          padding: 60px 20px; /* Añadimos padding lateral de 20px en móvil */
      }
        
      .compromiso-cozobi-texto-contenedor p {
          padding: 0 15px;
      }
      
      .compromiso-cozobi-titulo {
          font-size: 32px;
      }

      /* === CONTENEDOR DE ARTÍCULOS EN MÓVIL (COLUMNA) === */
      .contenedorr {
        gap: 30px; /* Espacio vertical */
        padding: 0 10px;
        margin-top: 40px;
        flex-direction: column; /* FORZAR COLUMNA VERTICAL */
        align-items: center; /* Centrar los artículos apilados */
      } 
      
      article {
          width: 100%; /* Ocupa el 100% del contenedor */
          max-width: 200px; /* TAMAÑO PEQUEÑO PARA MÓVIL */
          margin: 0 auto; /* Centrar cada artículo */
      }

      article img:first-child {
          width: 100%; 
      }

      article img:last-child {
          width: 150px; /* Ajuste para la botella */
          transform: translateY(15%); 
      }
      /* ======================================================= */


    } 

    .dropmezcal{
      font-family: 'Artifex';
    }

    .conten{
      display: flex; align-items: center; text-align: center; margin-top: 18px; margin-bottom: -30PX;
    }

    .hrclass{
      flex: 1; border: none; border-top: 1px solid black;
    }

    .spanclass{
      margin-bottom: -20px; font-family: BillionStars; font-size: 80px; text-align: center;
      color: black;
    }

    .bbr{
      display: flex; align-items: flex-start; gap: 20px; padding: 30px; font-size: 22px; font-family: brandonblack;color: black;
    }


.div2 {
    display: flex; 
    flex-direction: column; /* Cambiamos a columna */
    align-items: center; 
    margin-top: 0px; 
    margin-bottom: 0px;
        background-position: 50% 18%;
    background-repeat: repeat;
    background-size: 115%;
    padding: 20px; /* Añadimos padding */
}

.texto-justificado {
    text-align: center;
    margin-top: 20px;
    width: 100%; /* Ocupa todo el ancho */
    max-width: 800px; /* Ancho máximo opcional */
    line-height: 1.5;
    font-size: 22.26px;
    color: black;
    font-family: brandonblack !important;
}

 
.iframee{
    width: 100%;
    border: none;
    display: block;
    overflow: hidden;
    height: 600px;
    background-color: black; 
  
}


    @media screen and (max-width: 950px) {
      .div2{
        background-size: cover;
      }
      .FLAGSHIP{
          background-position: center center; /* Centra la imagen horizontal y verticalmente */


      }
      .botelladmn{
        height: 520px;
        width: 100%;
        align-items: center;
        margin-left: 25px;
        margin-top: -40px;
      }
    } 

    


/* ================================================================= */
/* ESTILOS ESPECÍFICOS PARA LA SECCIÓN "COMPROMISO COZOBI" - CENTRADO FORZADO */
/* ================================================================= */

.compromiso-cozobi-seccion {
    display: flex; 
    flex-direction: column;
    /* FORZAR CENTRADO: Alinea los elementos hijos al centro */
    align-items: center; 
    width: 100%;
    
    /* Fondo: Asegúrate de reemplazar 'url_imagen_fondo_tierra.jpg' con la ruta correcta */
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/win.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* MODIFICADO: Ajustamos el padding (ej. 40px arriba y 40px abajo) */
    /* Y eliminamos la propiedad min-height */
    padding: 40px 0%; 
    /* min-height: 400px; <--- ELIMINADO PARA AJUSTARSE AL CONTENIDO */
    
    /* FORZAR CENTRADO: Alinea el texto dentro de la sección */
    text-align: center;
}

.compromiso-cozobi-titulo {
    font-family: 'Artifex', sans-serif; 
    font-size: clamp(35px, 7vw, 60px); 
    font-weight: 900; 
    color: white; 
    
    /* CENTRADO: Aseguramos el margen automático para el centrado de un bloque */
    margin: 0 auto; 
    
    /* El ancho máximo es crucial, pero al estar centrado, no empujará el contenido */
    max-width: 900px; 
    line-height: 1.1; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.compromiso-cozobi-texto-contenedor {
    margin-top: 30px; 
    width: 100%; 
    
    /* CENTRADO: Aplicamos margin auto para centrar el contenedor de texto */
    max-width: 900px; 
    margin: 30px auto 0 auto;
}

.compromiso-cozobi-texto-contenedor p {
    font-family: 'Artifex', sans-serif; 
    font-size: clamp(18px, 2.5vw, 24px); 
    line-height: 1.6; 
    color: white; 
    
    /* CENTRADO: Alineamos el párrafo al centro */
    text-align: center; 
    margin: 0; /* Quitamos márgenes para evitar desplazamiento */
}

/* ================================================================= */
/* ESTILOS PARA SECCIÓN "EXPLORA NUESTRA HISTORIA" */
/* Clases únicas para evitar conflictos con br.css */
/* ================================================================= */

.historia-seccion {
    /* Se aísla la sección con fondo blanco (como en la imagen) */
    background-color: white; 
    padding: 60px 20px; /* Padding general en todos los dispositivos */
    text-align: center;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box; 
}

.historia-titulo {
    /* Estilo del título: Fuente clásica, espaciada y centrada */
    font-family: 'Artifex', serif; /* Usando Artifex de tu br.css */
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 400; 
    letter-spacing: 4px;
    text-transform: uppercase;
    color: black;
    margin-bottom: 50px;
}

.historia-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: flex-start;
    gap: 30px; /* Espacio entre los ítems en desktop */
    max-width: 1200px; 
    margin: 0 auto; 
}

.historia-item {
    /* Define el ancho para que quepan 4 por fila y sean del mismo tamaño */
    flex: 1 1 20%; /* Ancho flexible para 4 ítems con un poco de espacio */
    max-width: 280px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.historia-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.historia-descripcion {
    /* Estilo de la descripción: Fuente gruesa y legible */
    font-family: 'Artifex', sans-serif; 
    font-size: 18px;
    font-weight: 500;
    color: black;
    margin: 0;
    padding: 0 10px;
}


/* ================================================================= */
/* RESPONSIVIDAD PARA MÓVILES (Single Column) */
/* ================================================================= */

@media (max-width: 768px) {
    .historia-seccion {
        padding: 40px 10px; /* Padding reducido en móvil */
    }

    .historia-titulo {
        margin-bottom: 30px;
    }
    
    .historia-grid {
        /* Aumentamos el gap vertical para separación */
        gap: 40px; 
    }

    .historia-item {
        /* MÓVIL: Apilamos verticalmente, pero limitamos el tamaño para que no sean enormes */
        flex: 0 0 90%; 
        max-width: 300px; /* Limita el ancho para que la imagen se vea bien y centrada */
        margin: 0 auto; /* Centrar cada bloque */
    }

    .historia-descripcion {
        font-size: 16px;
    }
}

/* ================================================================= */
/* ESTILOS PARA SECCIÓN HERO TEXTO-IMAGEN RESPONSIVE */
/* Texto a la izquierda, Imagen a la derecha. Se apilan en móvil. */
/* ================================================================= */

.hero-info-mezcal {
    background-color: white; /* Fondo para que destaque del body */
    padding: 0px 0;
    width: 100%;
    box-sizing: border-box;
}

.hero-info-contenedor {
    display: flex;
    /* Alineación de los elementos en el contenedor */
    align-items: center;
    justify-content: center;
    
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; 
    gap: 60px; /* Espacio entre el texto y la imagen */
}

/* --- Bloque de Texto (Izquierda) --- */
.hero-info-texto {
    /* Ocupa aproximadamente la mitad */
    flex: 1 1 45%; 
    max-width: 550px;
    text-align: left;
}

.hero-info-titulo {
    font-family: 'Artifex', sans-serif;
    font-size: clamp(28px, 4vw, 36px);
    color: black;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 25px;
}

.hero-info-parrafo {
    font-family: 'Artifex', serif;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.hero-info-tradicion {
    font-family: 'Artifex', serif;
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.7;
    color: black;
    margin-top: 30px;
    font-weight: bold; /* Para destacar la palabra "tradición" */
}


/* --- Bloque de Imagen (Derecha) --- */
.hero-info-imagen-wrapper {
    /* Ocupa la otra mitad */
    flex: 1 1 55%; 
    max-width: 520px;
}

.hero-info-imagen {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Si deseas bordes redondeados, usa esta línea: */
    /* border-radius: 8px; */
}


/* ================================================================= */
/* RESPONSIVIDAD (Móvil: Apilamiento) */
/* ================================================================= */

@media (max-width: 768px) {
    .hero-info-mezcal {
        padding: 40px 0; /* Padding vertical reducido en móvil */
    }

    .hero-info-contenedor {
        /* CAMBIO CLAVE: Los bloques se apilan verticalmente */
        flex-direction: column; 
        padding: 0 20px; /* Padding lateral más ajustado */
        gap: 30px; /* Espacio entre el texto y la imagen apilados */
    }

    .hero-info-imagen{
      max-height: 400px;
    }
    .hero-info-texto,
    .hero-info-imagen-wrapper {
        /* Ambos bloques ocupan todo el ancho disponible */
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center; /* Centramos el texto en móvil */
    }
    
    .hero-info-parrafo {
        /* Aseguramos la alineación en móvil si es necesario */
        text-align: left; 
    }
}





.marcas-cozobi-texto-contenedor {
    margin-top: 30px; 
    width: 100%; 
    
    /* CENTRADO: Aplicamos margin auto para centrar el contenedor de texto */
    max-width: 900px; 
    margin: 0px auto 0 auto;
}

.marcas-cozobi-texto-contenedor p {
    font-family: 'Artifex', sans-serif; 
    font-size: clamp(18px, 2.5vw, 24px); 
    line-height: 1.6; 
    color: black; 
    
    /* CENTRADO: Alineamos el párrafo al centro */
    text-align: center; 
    margin: 0; /* Quitamos márgenes para evitar desplazamiento */
}