/* =========================================================
   El Amigo Simitrio · Mezcal Artesanal
   Paleta tomada del logo: azul marino + oro + crema
   ========================================================= */
:root {
  --navy-950: #0b1033;
  --navy-900: #0f1644;
  --navy-800: #141d4f;
  --navy-700: #1d2a6e;   /* azul del logotipo */
  --navy-600: #2b3c8f;
  --gold-200: #f2e2a6;
  --gold-300: #e8cc72;
  --gold-400: #d6b04c;   /* oro del logotipo */
  --gold-500: #c09634;
  --gold-700: #8a671c;
  --cream-50: #fbf8f1;
  --cream-100: #f5eee0;
  --cream-200: #ebe0c9;
  /* Fondos claros cálidos: pergamino e ixtle (fibra de agave) */
  --bg-1: #efe4cf;
  --bg-2: #e4d4b6;
  --paper: #f9f3e7;
  --paper-line: #d8c5a3;
  --gold-600: #a27a22;
  --grain: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27160%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.85%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.1 0 0 0 .09 0%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E");
  --ink: #1b1d2b;
  --ink-soft: #4a4d63;
  --line-dark: rgba(255, 255, 255, .12);
  --line-light: rgba(20, 29, 79, .12);

  --gold-grad: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 45%, var(--gold-700) 100%);

  --f-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --f-serif: "Playfair Display", Georgia, serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(11, 16, 51, .45);
  --container: 1180px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; }
h1, h2 { font-family: var(--f-serif); font-weight: 700; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-600); }
h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: .04em; font-size: 1.7rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { opacity: .75; font-size: .95rem; }

.eyebrow {
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .8em;
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.hero .eyebrow, .section__head--light .eyebrow, .contact .eyebrow, .footer .eyebrow { color: var(--gold-400); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .12em;
  padding: .85em 1.7em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 10px 25px -10px rgba(214, 176, 76, .7); }
.btn--gold:hover { box-shadow: 0 16px 30px -10px rgba(214, 176, 76, .9); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--sm { padding: .5em 1.2em; font-size: 1rem; }
.btn--block { width: 100%; }
.link-arrow { font-family: var(--f-display); letter-spacing: .12em; font-size: 1.1rem; color: var(--gold-700); text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 6px; }

/* ---------- Verificación de edad ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 30%, var(--navy-700), var(--navy-950) 70%);
}
.age-gate[hidden] { display: none; }
.age-gate__card { max-width: 440px; text-align: center; color: var(--cream-100); }
.age-gate__logo { width: 190px; margin: 0 auto 1.5rem; }
.age-gate h2 { font-size: 2rem; color: #fff; }
.age-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.age-gate__msg { margin-top: 1.2rem; color: var(--gold-300); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: background .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled { background: rgba(15, 22, 68, .94); backdrop-filter: blur(10px); box-shadow: 0 6px 30px -12px rgba(0,0,0,.5); }
.nav__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand img { height: 56px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) {
  color: var(--cream-100); text-decoration: none; font-family: var(--f-display);
  letter-spacing: .14em; font-size: 1.1rem; position: relative; padding: 4px 0;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--gold-400); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--cream-100); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy-950); color: #fff;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 60%;
  filter: saturate(.85); transform: scale(1.08); animation: heroZoom 18s ease-out forwards;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,16,51,.97) 0%, rgba(11,16,51,.85) 42%, rgba(11,16,51,.45) 75%, rgba(11,16,51,.75) 100%),
    linear-gradient(0deg, rgba(11,16,51,1) 0%, transparent 35%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); color: #fff; }
.hero h1 em { color: var(--gold-300); }
.hero__lead { font-size: 1.15rem; max-width: 34em; color: var(--cream-100); opacity: .92; }
.hero__lead strong { color: var(--gold-300); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 1.6rem; }
.hero__medals { display: flex; gap: 10px; flex-wrap: wrap; }
.medal-chip {
  font-family: var(--f-display); letter-spacing: .14em; font-size: .95rem;
  padding: .35em 1em; border-radius: 999px; border: 1px solid;
}
.medal-chip--gold { color: var(--gold-300); border-color: rgba(232,204,114,.5); background: rgba(232,204,114,.08); }
.medal-chip--route { color: var(--cream-100); border-color: rgba(245,238,224,.4); background: rgba(245,238,224,.06); }
.medal-chip--silver { color: #dfe3ee; border-color: rgba(223,227,238,.4); background: rgba(223,227,238,.06); }
.hero__bottle { margin: 0; justify-self: center; position: relative; }
.hero__bottle::before {
  content: ""; position: absolute; inset: 8% -6% -4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,176,76,.35), transparent 65%); filter: blur(20px);
}
.hero__bottle img {
  position: relative; width: min(420px, 100%); border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(232,204,114,.25);
}
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold-300); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Cifras ---------- */
.stats { background: var(--gold-grad); color: var(--navy-900); padding: 46px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { display: block; font-family: var(--f-display); font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; }
.stat__label { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; }
.section__head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section__head h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }
.section__head--light h2 { color: #fff; }
.section__head--light h2 em { color: var(--gold-300); }
.section__head--light p { color: var(--cream-200); }

/* ---------- Historia ---------- */
.story, .awards, .visit { background: var(--bg-1) var(--grain); }
.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.story__media { margin: 0; position: relative; }
.story__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story__media::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 2px solid var(--gold-600); border-radius: var(--radius); z-index: -1;
}
.story__media figcaption { margin-top: .8em; font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.story__text h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--navy-800); }
.story__text strong { color: var(--navy-700); }
.quote {
  margin: 2rem 0; padding: 1.6rem 1.8rem; background: var(--navy-800); color: var(--cream-100);
  border-radius: var(--radius); position: relative; border-left: 5px solid var(--gold-400);
}
.quote p { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; margin-bottom: .6em; color: #fff; }
.quote cite { font-style: normal; font-size: .9rem; color: var(--gold-300); letter-spacing: .04em; }

.press {
  margin-top: clamp(70px, 9vw, 110px); display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center;
  padding: 32px; background: var(--paper); border-radius: 20px; box-shadow: 0 20px 60px -35px rgba(11,16,51,.35);
  border: 1px solid var(--line-light);
}
.press__img img { border-radius: 10px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); transition: transform .4s; }
.press__img:hover img { transform: rotate(-2deg) scale(1.03); }
.press__text h3 { font-family: var(--f-serif); font-style: italic; font-weight: 700; letter-spacing: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--navy-800); }

/* ---------- Proceso ---------- */
.process { background: var(--bg-2) var(--grain); position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.step {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -28px rgba(11,16,51,.4);
  display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -26px rgba(11,16,51,.5); }
.step__img { aspect-ratio: 3/4; overflow: hidden; }
.step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.step:hover .step__img img { transform: scale(1.06); }
.step__body { padding: 20px 20px 24px; position: relative; }
.step__num {
  position: absolute; top: -28px; right: 16px; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--f-display); font-size: 1.5rem;
  background: var(--navy-800); color: var(--gold-300); border: 3px solid var(--paper);
}
.step h3 { color: var(--navy-800); font-size: 1.5rem; margin-top: 4px; }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }


/* ---------- Video de la horneada ---------- */
.horneada {
  margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: var(--navy-800); color: var(--cream-100); border-radius: 20px; padding: 18px; box-shadow: var(--shadow);
}
.horneada__video { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 848/480; }
.horneada__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.horneada__sound {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--f-display); letter-spacing: .12em; font-size: .95rem; color: var(--navy-900);
  background: var(--gold-grad); border: 0; border-radius: 999px; padding: .5em 1em .45em .8em; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6);
}
.horneada__sound svg { width: 20px; height: 20px; fill: currentColor; }
.horneada__sound .sound-on { display: none; }
.horneada__sound[aria-pressed="true"] .sound-on { display: inline; }
.horneada__sound[aria-pressed="true"] .sound-off { display: none; }
.horneada__text { padding-right: 18px; }
.horneada__text .eyebrow { color: var(--gold-400); }
.horneada__text h3 { color: #fff; font-size: 2rem; }
.horneada__text p:last-child { color: var(--cream-200); margin: 0; }

/* ---------- Productos ---------- */
.products { background: radial-gradient(circle at 50% 0%, var(--navy-700), var(--navy-900) 60%); color: var(--cream-100); position: relative; }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product {
  background: rgba(255,255,255,.04); border: 1px solid rgba(232,204,114,.22); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .35s ease, border-color .35s ease;
}
.product:hover { transform: translateY(-8px); border-color: rgba(232,204,114,.6); }
.product__img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--navy-950); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.product:hover .product__img img { transform: scale(1.05); }
.product__badge {
  position: absolute; z-index: 1; top: 16px; left: 16px; font-family: var(--f-display); letter-spacing: .12em;
  background: var(--gold-grad); color: var(--navy-900); padding: .3em .9em; border-radius: 999px; font-size: .95rem;
}
.product__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 2.2rem; color: var(--gold-300); margin-bottom: .3em; }
.product__body p { color: var(--cream-200); font-size: .97rem; flex: 1; }
.product__specs { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.product__specs li { padding: 12px 0; font-size: .92rem; font-weight: 600; color: #fff; }
.product__specs li + li { padding-left: 12px; border-left: 1px solid var(--line-dark); }
.product__specs span { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); font-weight: 500; }

/* ---------- Premios ---------- */
.awards__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 980px; margin: 0 auto; }
.award { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.award a { display: block; overflow: hidden; }
.award img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; transition: transform .6s; }
.award:hover img { transform: scale(1.05); }
.award--gold img { object-position: center 18%; }
.award__body { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.award__year { font-family: var(--f-display); font-size: 4rem; line-height: 1; }
.award--gold .award__year { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.award--silver .award__year { background: linear-gradient(135deg, #f4f6fb, #a7adbd 60%, #6d7386); -webkit-background-clip: text; background-clip: text; color: transparent; }
.award h3 { color: var(--navy-800); font-size: 1.9rem; }
.award p { color: var(--ink-soft); font-size: .93rem; margin: 0; }


/* ---------- Generaciones ---------- */
.lineage { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 20px; margin-top: clamp(60px, 8vw, 96px); align-items: stretch; }
.gen { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 28px 24px; position: relative; box-shadow: 0 18px 40px -30px rgba(11,16,51,.4); }
.gen h3 { color: var(--navy-800); font-size: 1.6rem; margin-bottom: .3em; }
.gen p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.gen__num { display: inline-block; font-family: var(--f-display); font-size: 3rem; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .2em; }
.gen--main { background: var(--navy-800); color: var(--cream-100); display: grid; grid-template-columns: 44% 1fr; gap: 22px; padding: 16px 24px 16px 16px; align-items: center; border-color: transparent; }
.gen--main img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; border-radius: 10px; }
.gen--main h3 { color: #fff; }
.gen--main p { color: var(--cream-200); }
.lineage .gen:not(.gen--main)::after { content: ""; position: absolute; top: 50%; width: 20px; height: 2px; background: var(--gold-400); }
.lineage .gen:first-child::after { right: -20px; }
.lineage .gen:last-child::after { left: -20px; }

/* ---------- Banda de frase ---------- */
.band { position: relative; padding: clamp(110px, 16vw, 200px) 0; color: #fff; text-align: center; overflow: hidden; background: var(--navy-950); }
.band__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(11,16,51,.55), rgba(11,16,51,.88) 70%); }
.band__inner { position: relative; max-width: 860px; }
.band__quote { font-family: var(--f-serif); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.25; margin-bottom: .6em; }
.band__quote em { color: var(--gold-300); }
.band__cite { font-family: var(--f-display); letter-spacing: .2em; color: var(--gold-300); margin: 0; }

/* ---------- Comunidad: mosaico ---------- */
.town { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; grid-auto-flow: dense; margin-bottom: clamp(56px, 7vw, 88px); }
.town__item { position: relative; border-radius: 14px; overflow: hidden; display: block; cursor: zoom-in; box-shadow: 0 18px 40px -28px rgba(11,16,51,.5); }
.town__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.town__item:hover img { transform: scale(1.06); }
.town__item--tall { grid-row: span 2; }
.town__item--wide { grid-column: span 2; }
.town__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-family: var(--f-display); letter-spacing: .14em; font-size: 1.15rem; color: #fff; background: linear-gradient(0deg, rgba(11,16,51,.85), transparent); }
.town__item--big { grid-column: span 2; grid-row: span 2; }

/* ---------- Familia ---------- */
.family { margin-top: 20px; position: relative; }
.family a { display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.family img { width: 100%; aspect-ratio: 16/8; object-fit: cover; object-position: center 62%; transition: transform .8s ease; }
.family a:hover img { transform: scale(1.03); }
.family figcaption {
  position: absolute; left: 48px; top: 28px; padding: 18px 24px; border-radius: 14px;
  background: rgba(15, 22, 68, .88); backdrop-filter: blur(6px); color: #fff; pointer-events: none;
}
.family figcaption .eyebrow { margin-bottom: .3em; color: var(--gold-300); }
.family figcaption strong { display: block; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 500; }

/* ---------- Feria ---------- */
.feria {
  margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: center;
  background: var(--paper); border-radius: 20px; padding: 20px; box-shadow: 0 20px 60px -35px rgba(11,16,51,.35); border: 1px solid var(--line-light);
}
.feria__img { display: block; border-radius: 14px; overflow: hidden; }
.feria__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s ease; }
.feria__img:hover img { transform: scale(1.04); }
.feria__text { padding-right: 20px; }
.feria__text h3 { color: var(--navy-800); font-size: 2rem; }
.feria__text p:last-of-type { color: var(--ink-soft); margin: 0; }
.feria__text .link-arrow { display: inline-block; margin-top: 14px; }
.feria + .feria { margin-top: 28px; }
.feria--reverse .feria__img { order: 2; }
.feria--reverse .feria__text { padding: 0 0 0 20px; }
.feria--ruta .feria__img img { object-position: center 30%; }
/* Los logos aliados vienen sobre fondo blanco: multiply los funde con el papel */
.partner-logo { width: 150px; height: auto; mix-blend-mode: multiply; margin-bottom: 10px; }

/* ---------- Casa del Mezcal ---------- */
.casa-card {
  display: flex; align-items: center; gap: 18px; margin: 0 0 2rem; padding: 14px 20px 14px 14px;
  background: var(--paper); border: 1px solid var(--paper-line); border-radius: 16px;
}
.casa-card img { width: 96px; height: 96px; object-fit: contain; mix-blend-mode: multiply; flex-shrink: 0; }
.casa-card .eyebrow { margin-bottom: .2em; font-size: .9rem; }
.casa-card strong { display: block; font-family: var(--f-serif); font-size: 1.25rem; color: var(--navy-800); }
.casa-card p:last-child { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Aliados en el pie ---------- */
.footer__partners-title { margin-top: 1.6rem; }
.footer__partners { display: flex; gap: 12px; }
.footer__partners img { width: 84px; height: 84px; object-fit: contain; background: var(--paper); border-radius: 14px; padding: 6px; mix-blend-mode: normal; }
.community__text h3 { color: var(--navy-800); font-size: 2rem; }
.award__link { margin-top: 12px; font-size: 1rem; }
.g-item--wide { grid-column: span 2; }

/* ---------- Galería ---------- */
.gallery { background: var(--navy-950); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; grid-auto-flow: dense; }
.g-item { position: relative; border-radius: 12px; overflow: hidden; display: block; cursor: zoom-in; }
.g-item--tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .4s; filter: saturate(.9); }
.g-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,16,51,.55), transparent 50%);
  opacity: 0; transition: opacity .35s;
}
.g-item:hover img { transform: scale(1.07); filter: saturate(1.05); }
.g-item:hover::after { opacity: 1; }

/* ---------- Comunidad / Video ---------- */
.community { background: var(--bg-2) var(--grain); }
.community__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.community__text h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--navy-800); }
.community__text strong { color: var(--navy-700); }
.video { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: filter .3s, transform .6s; }
.video__poster:hover img { filter: brightness(.85); transform: scale(1.03); }
.video__poster:focus-visible { outline: 3px solid var(--gold-400); outline-offset: -3px; }
.video__play {
  position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--gold-grad); box-shadow: 0 0 0 10px rgba(232,204,114,.25); transition: transform .3s;
}
.video__play::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 22px solid var(--navy-900); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video__poster:hover .video__play { transform: scale(1.08); }
.video__title { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; font-family: var(--f-display); letter-spacing: .1em; font-size: 1.2rem; }

/* ---------- Visítanos ---------- */
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.visit__text h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--navy-800); }
.visit__list { list-style: none; padding: 0; margin: 0 0 2rem; }
.visit__list li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line-light); position: relative; }
.visit__list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-400); }
.visit__list strong { color: var(--navy-800); }
.visit__map { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3.4; border: 6px solid var(--paper); }
.visit__map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--cream-100); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact__text h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: #fff; }
.contact__text h2 em { color: var(--gold-300); }
.contact__img { margin-top: 2rem; border-radius: 16px; aspect-ratio: 16/10; object-fit: cover; width: 100%; opacity: .9; }
.form { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 40px); border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.form__row { margin-bottom: 18px; }
.form__row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--navy-700); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--paper-line); background: #fffdf8; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(214,176,76,.2); }
.form input.is-invalid { border-color: #c0392b; }
.form__note { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--cream-200); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { width: 140px; margin-bottom: 1rem; }
.footer__brand p { font-size: .92rem; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-content: start; }
.footer__nav a { text-decoration: none; font-family: var(--f-display); letter-spacing: .14em; font-size: 1.05rem; }
.footer__nav a:hover { color: var(--gold-300); }
.social { display: flex; gap: 12px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(232,204,114,.4); transition: background .25s; }
.social a[hidden] { display: none; }
.social a:hover { background: var(--gold-400); }
.social svg { width: 20px; height: 20px; fill: var(--gold-300); }
.social a:hover svg { fill: var(--navy-900); }
.footer__legal { padding-top: 26px; font-size: .8rem; opacity: .7; text-align: center; }
.footer__legal p { margin: .3em 0; }
.footer__legal a { color: var(--gold-300); white-space: nowrap; }
.footer__credit { margin: 18px auto 0; font-size: .85rem; text-align: center; color: var(--cream-200); }
.footer__credit strong { color: var(--gold-300); font-weight: 600; }
.footer__credit a { color: var(--gold-300); white-space: nowrap; }
.footer__credit a:hover { color: var(--gold-400); }
.contact__phone { font-size: 1.1rem; }
.contact__phone a { color: var(--gold-300); font-weight: 600; white-space: nowrap; }
.visit__list a { color: inherit; font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) { .footer .footer__credit { padding-bottom: 76px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(8, 11, 36, .95); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: var(--cream-200); margin-top: 14px; font-size: .95rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 3rem; line-height: 1; padding: 10px 16px; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--gold-300); }
.lightbox__close { top: 10px; right: 14px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__toggle { display: block; }
  .nav__brand img { height: 48px; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 12px 24px 24px; transform: translateY(-120%); transition: transform .35s ease;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); z-index: -1;
  }
  .nav__menu.is-open { transform: none; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav__menu .btn { margin-top: 16px; }
  .nav.menu-open { background: var(--navy-900); }
  .hero__inner, .story__grid, .community__grid, .visit__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__bottle img { width: min(320px, 80vw); }
  .products__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .awards__grid { grid-template-columns: 1fr; max-width: 560px; }
  .press { grid-template-columns: 1fr; text-align: center; }
  .press__img img { max-width: 240px; margin: 0 auto; }
  .press .eyebrow { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .lineage { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .lineage .gen:not(.gen--main)::after { display: none; }
  .feria { grid-template-columns: 1fr; }
  .horneada { grid-template-columns: 1fr; }
  .horneada__text { padding: 0 8px 12px; }
  .feria__text, .feria--reverse .feria__text { padding: 0 8px 12px; }
  .feria--reverse .feria__img { order: 0; }
  .town { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .band__bg { background-attachment: scroll; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container, .nav__inner { padding: 0 16px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; }
  .step__img { aspect-ratio: auto; width: 38%; flex-shrink: 0; }
  .step__num { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 1.2rem; }
  .step h3 { padding-right: 50px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; }
  .award { grid-template-columns: 1fr; }
  .gen--main { grid-template-columns: 1fr; padding: 16px; }
  .gen--main img { min-height: 0; aspect-ratio: 4/3; }
  .town { grid-auto-rows: 150px; gap: 10px; }
  .family img { aspect-ratio: 4/3; }
  .family figcaption { position: static; margin-top: 12px; background: var(--navy-800); }
  .town__item--tall { grid-row: span 2; }
  .award img { aspect-ratio: 4/3; }
  .form__row--half { grid-template-columns: 1fr; }
  .lightbox { padding: 50px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 6px; transform: none; }
  .story__media::before { inset: -10px 10px 10px -10px; }
  .hero__scroll { display: none; }
}
.partner-link { display: block; width: fit-content; transition: transform .25s; }
.partner-link:hover { transform: scale(1.05); }
.footer__partners a { display: block; transition: transform .25s; }
.footer__partners a:hover { transform: translateY(-3px); }

/* ---------- Accesibilidad y ajustes finos ---------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--gold-400); color: var(--navy-950); padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }
.footer .footer__grid { padding-bottom: 40px; }

/* ---------- Visítanos: acciones y dirección ---------- */
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: var(--cream-200); }
.casa-card .casa-card__addr { margin: .2em 0 .35em; font-size: .95rem; font-weight: 600; color: var(--navy-800); }
.casa-card a { color: #7a5a12; font-weight: 600; white-space: nowrap; }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--bg-2) var(--grain); }
.faq__inner { max-width: 860px; }
.faq .section__head h2 { color: var(--navy-800); }
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--paper-line); border-radius: 14px; padding: 0 22px; transition: box-shadow .25s; }
.faq details[open] { box-shadow: 0 14px 30px -18px rgba(11,16,51,.35); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative; font-family: var(--f-serif); font-weight: 700; font-size: 1.12rem; color: var(--navy-800); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: 1.7rem; color: var(--gold-600); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); }
.faq details a { color: #7a5a12; font-weight: 600; white-space: nowrap; }
