:root {
  --bg: #f1eee7;
  --paper: #e4ded2;
  --ink: #211f1b;
  --muted: #777168;
  --dark: #171614;
  --light: #f6f3ec;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  height: 76px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  transition: 0.35s;
}

.header.scrolled {
  background: #f1eee7ee;
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.header.hidden {
  transform: translateY(-100%);
}

.logo {
  font: 600 1.5rem var(--serif);
  letter-spacing: 0.15em;
}

.header nav {
  display: flex;
  gap: 2.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-button {
  display: none;
  background: none;
  border: 0;
  color: currentColor;
}

.menu-button span {
  display: block;
  width: 25px;
  height: 1px;
  background: currentColor;
  margin: 6px;
}

/* ========== HERO & ORIGIN ========== */
.hero,
.origin {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #777268, #37342f);
  min-height: 500px;
}

.photo:before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 8px, #ffffff08 9px);
  z-index: 1;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffffaa;
  text-align: center;
  letter-spacing: 0.16em;
}

.placeholder span {
  font-size: 0.75rem;
}

.placeholder small {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.hero > .photo,
.origin > .photo {
  position: absolute;
  inset: 0;
}

/* Imagen real del hero */
.hero .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000a, #0001 75%),
              linear-gradient(0deg, #0007, transparent 55%);
  z-index: 1;
}

.hero-content,
.origin-content {
  position: relative;
  z-index: 2;
  width: 88vw;
  max-width: 1250px;
  margin: auto;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 9rem);
  text-transform: uppercase;
}

.hero-content > p:not(.eyebrow) {
  font-size: 1rem;
}

.discover {
  display: inline-flex;
  gap: 1.3rem;
  margin-top: 4rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.discover b {
  font-size: 1.3rem;
}

/* ========== SECTIONS ========== */
.section {
  position: relative;
  padding: clamp(7rem, 13vw, 13rem) 6vw;
}

.number {
  position: absolute;
  top: 3rem;
  right: 5vw;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.split {
  width: 88vw;
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8vw;
  align-items: center;
}

.text {
  max-width: 620px;
}

.text h2,
.heading h2,
.origin-content h2,
.contact h2 {
  font-size: clamp(3.5rem, 6.5vw, 7rem);
}

.text > p:not(.eyebrow),
.wide-copy,
.origin-content > p,
.contact p {
  color: #625d54;
  font-size: 0.94rem;
}

.dark {
  background: var(--dark);
  color: var(--light);
}

.dark .eyebrow {
  color: #b8b0a3;
}

.heading {
  width: 88vw;
  max-width: 1250px;
  margin: 0 auto 5rem;
}


.wide-copy {
  width: 92vw;
  max-width: 1450px;
  margin: 2rem auto 0;
  text-align: right;
}

.dark .wide-copy {
  color: #b8b0a3;
}

.product .photo {
  height: 700px;
}

.product dl {
  margin-top: 3rem;
  border-top: 1px solid #211f1b33;
}

.product dl div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #211f1b33;
  padding: 1rem 0;
  font-size: 0.78rem;
}

.product dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product dd {
  margin: 0;
}

.origin {
  min-height: 85svh;
}

.origin-content h2 {
  max-width: 800px;
}

.origin-content > p {
  color: #ffffffbb;
  max-width: 500px;
}

/* ========== GALLERY ========== */
.gallery {
  background: var(--paper);
}

.gallery-grid {
  width: 88vw;
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.gallery-grid .photo {
  min-height: 450px;
}

.gallery-grid .tall {
  min-height: 650px;
}

.gallery-grid .wide {
  grid-column: 1 / -1;
  min-height: 600px;
}

/* ========== CONTACT ========== */
.contact {
  padding: 10rem 6vw;
  min-height: 70svh;
  background: var(--dark);
  color: var(--light);
  text-align: center;
  display: grid;
  place-items: center;
}

.contact p {
  max-width: 550px;
  margin: 2rem auto;
  color: #aaa59a;
}

.button {
  display: inline-block;
  border: 1px solid #fff8;
  padding: 1rem 2.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button:hover {
  background: #fff;
  color: #171614;
}

/* ========== FOOTER ========== */
footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 6vw;
  background: #111;
  color: #aaa;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

footer strong {
  display: block;
  color: #fff;
  font: 500 1.2rem var(--serif);
  letter-spacing: 0.12em;
}

footer div {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

footer small {
  text-align: right;
}

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.9s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay {
  transition-delay: 0.12s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 800px) {
  .header nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #171614;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .header nav.open {
    opacity: 1;
    visibility: visible;
  }

  .menu-button {
    display: block;
    z-index: 2;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product .photo {
    height: 500px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .wide {
    grid-column: auto;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer div,
  footer small {
    text-align: left;
    justify-content: flex-start;
  }
}
/* =========================================
   IMÁGENES REALES EN TODAS LAS SECCIONES
   ========================================= */

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.photo:before {
  z-index: 1;
}

.process-photo {
  position: relative;
  overflow: hidden;
}

.gallery-grid .photo {
  position: relative;
  overflow: hidden;
}
/* Título más pequeño en la sección de historia */
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.8rem 0;
}

/* ===== HISTORIA - Versión responsive ===== */

.historia-top {
  width: 88vw;
  max-width: 1250px;
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4vw;
  align-items: center;
}

.historia-title h2 {
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.historia-title .section-title {
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  color: var(--muted);
  margin: 0;
}

.historia-text {
  width: 88vw;
  max-width: 1250px;
  margin: 0 auto;
  columns: 2;
  column-gap: 3.5rem;
}

.historia-text p {
  text-align: justify;
  margin: 0 0 1.3rem 0;
  break-inside: avoid;
}

/* Imagen */
#historia .photo {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  aspect-ratio: 16 / 9;
  background: #e4ded2;
}

#historia .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ========== TABLET (menos de 1000px) ========== */
@media (max-width: 1000px) {
  .historia-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .historia-text {
    columns: 1;
  }

  #historia .photo {
    aspect-ratio: 16 / 9;
    min-height: 320px;
  }
}

/* ========== CELULAR (menos de 600px) ========== */
@media (max-width: 600px) {
  .historia-top {
    width: 92vw;
    gap: 2rem;
  }

  .historia-title h2 {
    font-size: clamp(2.6rem, 11vw, 3.8rem);
  }

  .historia-text {
    width: 92vw;
    columns: 1;
  }

  #historia .photo {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }
}
/* ===== Ajuste del título del Hero en celular ===== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
    letter-spacing: -0.02em;
    line-height: 0.95;
    padding: 0 0.5rem; /* pequeño margen para que no se corte */
  }

  .hero-content {
    width: 92vw;
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 0.95rem;
  }
}
/* ===== ELABORACIÓN - Solo la imagen centrada sin desbordar ===== */
.process-photo {
  width: 100% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 3rem !important;
  position: relative !important;
  overflow: hidden !important;
  background: #1a1917 !important;
  line-height: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.process-photo img {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  max-width: 100% !important;
}

@media (max-width: 600px) {
  .process-photo {
    width: 100% !important;
    max-width: none !important;
  }
}
/* ===== Quitar el marco oscuro con líneas debajo de la foto (celular) ===== */
@media (max-width: 600px) {
  .process-photo {
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
  }

  .process-photo::before {
    display: none !important;
    content: none !important;
  }
}
/* ===== Texto del proceso de elaboración ===== */
.proceso-texto {
  width: 88vw;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.proceso-titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: #b8b0a3;
  margin: 0 0 1.8rem 0;
  line-height: 1.3;
}

.proceso-texto p {
  text-align: justify;
  color: #b8b0a3;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1.4rem 0;
}

@media (max-width: 600px) {
  .proceso-texto {
    width: 92vw;
  }
}
/* ===== Forzar texto justificado en elaboración ===== */
.proceso-texto p {
  text-align: justify !important;
  text-justify: inter-word;
  color: #b8b0a3;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1.4rem 0;
}
/* ===== Menú móvil pantalla completa (arreglado) ===== */
@media (max-width: 800px) {
  .header {
    transform: none !important;
  }

  .header.hidden {
    transform: none !important;
  }

  .header nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* mejor en móviles modernos */
    background: #171614 !important;
    z-index: 999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s !important;
  }

  .header nav.open {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .menu-button {
    z-index: 1000 !important;
    position: relative !important;
  }
}
/* ===== Sección La Bebida ===== */
.bebida-texto {
  width: 88vw;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.bebida-titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--ink);
  margin: 0 0 1.8rem 0;
  line-height: 1.3;
}

.bebida-texto h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 2.2rem 0 1rem 0;
  color: var(--ink);
}

.bebida-texto p {
  text-align: justify !important;
  color: #625d54;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1.4rem 0;
}

/* Foto del producto (opcional) */
.product-photo {
  width: 94vw;
  max-width: 1100px;
  margin: 0 auto 2rem;
  position: relative;
  overflow: hidden;
  background: #e4ded2;
}

.product-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .bebida-texto {
    width: 92vw;
  }
}
/* ===== Sección Origen ===== */
.origen-texto {
  width: 88vw;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.origen-titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: #b8b0a3;
  margin: 0 0 1.8rem 0;
  line-height: 1.3;
}

.origen-texto p {
  text-align: justify !important;
  color: #b8b0a3;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1.4rem 0;
}

@media (max-width: 600px) {
  .origen-texto {
    width: 92vw;
  }
}
/* Foto vertical en la sección Bebida */
#bebida .photo {
  min-height: 620px;
  aspect-ratio: 3 / 4;   /* Formato vertical */
  position: relative;
  overflow: hidden;
}

#bebida .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 800px) {
  #bebida .photo {
    min-height: 480px;
    aspect-ratio: 3 / 4;
  }
}
/* ===== GALERÍA: VIDEO + CARRUSEL (versión limpia) ===== */

/* Video */
#galeria .video-container {
  width: 90vw;
  max-width: 1000px;
  margin: 0 auto 3rem;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
}

#galeria .video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Carrusel */
#galeria .carousel {
  width: 90vw;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #1a1917;
  border-radius: 4px;
}

#galeria .carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

#galeria .carousel-slide {
  min-width: 100%;
  height: 62vh;
  min-height: 400px;
  max-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#galeria .carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  display: block;
}

/* Botones */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23, 22, 20, 0.7);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-btn:hover {
  background: rgba(23, 22, 20, 0.9);
}

/* Puntitos */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c5bdb0;
  cursor: pointer;
}

.dot.active {
  background: #211f1b;
}

/* Celular */
@media (max-width: 700px) {
  #galeria .video-container {
    width: 94vw;
    max-width: none;
  }

  #galeria .carousel {
    width: 94vw;
    max-width: none;
  }

  #galeria .carousel-slide {
    height: 50vh;
    min-height: 300px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  object-fit: contain;
}
/* ===== Botones de contacto ===== */
.contact-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.8rem;
}

.contact .button {
  margin-top: 0;
}

@media (max-width: 500px) {
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
}
/* ===== Mapa ===== */
.map-section {
  background: var(--paper);
  padding-bottom: 5rem;
}

.map-container {
  width: 92vw;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
}

@media (max-width: 600px) {
  .map-container iframe {
    height: 350px;
  }
}
