:root {
  --ink-950: #141210;
  --ink-900: #1f1c19;
  --ink-800: #2d2925;
  --cream: #f7f1e3;
  --mist: #d3c9b5;
  --parchment: #e7d6b0;
  --sienna: #8a5a2b;
  --gold: #d6b262;
  --rule-dark: rgba(247, 241, 227, .18);
  --rule-light: rgba(31, 28, 25, .24);
  --display: "Rye", Georgia, serif;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--cream);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }
ol { list-style: none; }
h2 {
  font: 700 clamp(2.5rem, 6vw, 4.75rem)/1 var(--head);
  text-transform: uppercase;
  text-wrap: balance;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--ink-900); }

.skip {
  position: fixed; top: -100px; left: 16px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: var(--ink-900); font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 136px); }
.dark { background: var(--ink-900); }
.light {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .12 0 0 0 .55 -.14'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23p)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at center, #eddfbf 45%, #d6bd88 100%);
  color: var(--ink-900);
}

.eyebrow {
  margin-bottom: 16px;
  font: 600 1.0625rem/1.2 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.light .eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink-900);
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p:not(.eyebrow) { margin-top: 20px; font-size: 1.1875rem; }
.dark .section-head p:not(.eyebrow) { color: var(--mist); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid transparent;
  font: 700 1.1875rem/1.2 var(--head);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, transform .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink-900); }
.btn-gold:hover { background: var(--cream); }
.btn-ghost { border-color: var(--cream); background: transparent; color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--ink-900); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
  padding-inline: var(--gutter);
  transition: background-color .25s;
}
.site-header.solid, .site-header.open { background: var(--ink-950); }
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--cream); text-decoration: none;
  font: 400 1.5rem/1 var(--display);
}
.brand { margin-right: auto; }
.brand img { width: 62px; }
.cart-toggle {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-left: clamp(4px, 1vw, 12px);
  border: 2px solid var(--gold); background: none; color: var(--gold); cursor: pointer;
  transition: background-color .18s, color .18s;
}
.cart-toggle:hover { background: var(--gold); color: var(--ink-900); }
.cart-count {
  position: absolute; top: -9px; right: -9px;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: var(--cream); color: var(--ink-900);
  font: 700 .8125rem/22px var(--head); text-align: center;
}
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .4s ease-out; }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a {
  color: var(--cream); text-decoration: none;
  font: 600 1.125rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase;
}
.nav a:hover { color: var(--gold); }
.nav .nav-cta { padding: 10px 18px; background: var(--gold); color: var(--ink-900); }
.nav .nav-cta:hover { background: var(--cream); color: var(--ink-900); }
.nav-toggle {
  display: none;
  padding: 8px 14px;
  border: 2px solid var(--cream);
  background: none; color: var(--cream);
  font: 600 1.0625rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--gutter) clamp(40px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
  filter: sepia(.3) saturate(.8);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 18, 16, .72) 0%, rgba(31, 28, 25, .28) 34%, rgba(31, 28, 25, .55) 58%, var(--ink-900) 100%);
}
.hero-mule {
  --kick: 4.5s;
  position: relative;
  flex: none;
  align-self: flex-end;
  width: clamp(190px, min(31vw, 34svh), 460px);
  aspect-ratio: 1495 / 1083;
  filter: drop-shadow(0 0 22px rgba(214, 178, 98, .45));
}
.hero-mule img, .mule-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.mule-body { transform-origin: 68% 99%; animation: mule-buck var(--kick) ease-in-out infinite; }
.mule-leg-low { transform-origin: 37.8% 40.3%; animation: mule-leg var(--kick) ease-in-out infinite; }
.mule-leg-high { transform-origin: 38.7% 32.3%; animation: mule-leg var(--kick) ease-in-out .04s infinite; }
.mule-tail { transform-origin: 43.8% 21.1%; animation: mule-tail var(--kick) ease-in-out infinite; }
.mule-rival { transform-origin: 27% 99%; animation: mule-rival var(--kick) ease-in-out infinite; }
/* Reposa en la pose del logo; encoge las patas y las suelta de golpe */
@keyframes mule-buck {
  0%, 30% { transform: none; }
  44% { transform: rotate(-3deg); }
  48% { transform: rotate(4deg); }
  55% { transform: rotate(-1.5deg); }
  64%, 100% { transform: none; }
}
@keyframes mule-leg {
  0%, 30% { transform: none; }
  44% { transform: rotate(-38deg) scaleX(.82); }
  48% { transform: rotate(8deg) scaleX(1.06); }
  56% { transform: rotate(-3deg); }
  66%, 100% { transform: none; }
}
@keyframes mule-tail {
  0%, 36% { transform: none; }
  44% { transform: rotate(10deg); }
  48% { transform: rotate(-14deg); }
  54% { transform: rotate(10deg); }
  60% { transform: rotate(-5deg); }
  68%, 100% { transform: none; }
}
@keyframes mule-rival {
  0%, 30% { transform: none; }
  44%, 47.5% { transform: rotate(-2deg); }
  52% { transform: translateX(-9%) rotate(-12deg); }
  60% { transform: translateX(-11%) rotate(-5deg); }
  72% { transform: translateX(-3%) rotate(2deg); }
  80%, 100% { transform: none; }
}
.hero-copy { width: 100%; max-width: 1280px; margin-inline: auto; }
.hero .eyebrow { display: inline-block; margin-bottom: 10px; padding: 5px 10px; background: var(--ink-950); }
.hero h1 {
  margin-left: -.03em;
  font: 400 clamp(4.25rem, min(17.5vw, 26svh), 15.5rem)/.95 var(--display);
  color: var(--gold);
  background: linear-gradient(180deg, #f6e6b6 8%, #d6b262 52%, #9a7433 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(20, 18, 16, .75));
}
.hero-lead {
  max-width: 34ch;
  margin-top: 14px;
  font: 500 clamp(1.5rem, 3vw, 2.25rem)/1.15 var(--head);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Ticker */
.ticker { overflow: hidden; background: var(--gold); color: var(--ink-900); }
.ticker-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ticker span {
  padding: 14px 28px;
  font: 700 1.25rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.ticker span::after { content: "✦"; margin-left: 56px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Origen */
.origen-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px); align-items: center;
}
.origen-text p:not(.eyebrow) { margin-top: 20px; font-size: 1.1875rem; max-width: 54ch; }
.origen-text h2 { font-size: clamp(2.75rem, 6vw, 5rem); }
.origen-photo { position: relative; }
.origen-photo::before {
  content: ""; position: absolute; inset: 24px -18px -18px 24px; z-index: 0;
  background: var(--gold);
}
.origen-photo img { position: relative; width: 100%; }

/* Productor */
.productor { background: var(--ink-950); }
.productor-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 104px); align-items: center;
}
.productor-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.productor-lead { margin-top: 22px; font: 500 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--head); }
.productor-lead ~ p { margin-top: 18px; max-width: 54ch; font-size: 1.1875rem; color: var(--mist); }
.productor-quote { margin: 28px 0 30px; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); }
.productor-quote p { font: 500 clamp(1.25rem, 2vw, 1.5rem)/1.3 var(--head); color: var(--cream); max-width: 40ch; }
.productor-quote footer { margin-top: 10px; font: 600 .9375rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.productor-lead ~ p a { color: var(--cream); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.productor-lead ~ p a:hover { color: var(--gold); }

/* Proceso */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px;
  padding-inline: var(--gutter);
  max-width: 1600px; margin-inline: auto;
}
.step {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 480px;
  overflow: hidden;
  background: var(--ink-800);
  isolation: isolate;
}
.step > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.step:hover > img { transform: scale(1.05); }
.step::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0) 30%, rgba(20, 18, 16, .94) 78%);
}
.step > div { padding: 24px 20px; }
.step-n { font: 700 1.25rem/1 var(--head); color: var(--gold); letter-spacing: .08em; }
.step h3 { margin-top: 8px; font: 700 2.125rem/1 var(--head); text-transform: uppercase; }
.step p { margin-top: 10px; font-size: 1rem; line-height: 1.45; color: var(--mist); }
.step-final { background: var(--gold); color: var(--ink-900); }
.step-final::after { display: none; }
.step-final > .step-mule {
  inset: 32px 20px auto; width: calc(100% - 40px); height: auto;
  object-fit: contain; filter: brightness(0);
}
.step-final:hover > .step-mule { transform: none; }
.step-final .step-n, .step-final p { color: var(--ink-900); }

/* El mezcal */
.mezcal { background: var(--ink-950); }
.bottles-size {
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-dark);
  font: 700 clamp(1.5rem, 2.6vw, 2rem)/1 var(--head); letter-spacing: .06em; color: var(--gold);
}
.bottles + .bottles-size { margin-top: clamp(40px, 6vw, 72px); }
.bottles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; gap: clamp(14px, 2vw, 24px); }
.bottle { display: flex; flex-direction: column; }
.bottle .zoom { aspect-ratio: 3 / 4; }
.bottle p { flex: 1 0 auto; }
.btn-cart { margin-top: 16px; padding: 12px 14px; font-size: 1rem; text-align: center; }
.btn-cart.added { background: var(--cream); }
.bottle h4 { margin: 16px 0 0; font: 700 clamp(1.375rem, 2.2vw, 1.75rem)/1.05 var(--head); text-transform: uppercase; }
.bottle p { margin-top: 8px; font-size: 1rem; line-height: 1.45; color: var(--mist); }
.bottle .bottle-price { flex: none; margin-top: 12px; font: 700 clamp(1.5rem, 2.4vw, 1.875rem)/1 var(--head); color: var(--gold); }
.bottle-price span { font-size: .55em; letter-spacing: .08em; }
.mezcal-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px); align-items: center;
  margin-top: clamp(56px, 8vw, 104px);
}
.origen-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px;
  margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--rule-light);
}
.origen-facts dt { font: 700 clamp(1.75rem, 3vw, 2.375rem)/1 var(--head); text-transform: uppercase; color: var(--sienna); }
.origen-facts dd { margin-top: 6px; font-size: 1rem; line-height: 1.35; }
.mezcal-title { font: 700 clamp(2rem, 4vw, 3.25rem)/1 var(--head); text-transform: uppercase; }
.mezcal-photo img { width: 100%; }
.mezcal-lead { margin-top: 18px; font-size: 1.1875rem; color: var(--mist); max-width: 46ch; }
.specs { margin: 32px 0 36px; border-top: 1px solid var(--rule-dark); }
.specs div {
  display: flex; justify-content: space-between; gap: 24px;
  padding-block: 13px;
  border-bottom: 1px solid var(--rule-dark);
}
.specs dt { font: 600 1.0625rem/1.4 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.specs dd { font-weight: 500; text-align: right; }


/* Medallas */
.medals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 3vw, 40px); }
.zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden;
}
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.zoom:hover img { transform: scale(1.03); }
.medal .zoom { aspect-ratio: 4 / 5; background: var(--ink-900); }
.medal-text { margin-top: 20px; }
.medal h3 { font: 400 clamp(2.5rem, 5vw, 4rem)/1 var(--display); }
.medal h3 span { font: 700 .62em/1 var(--head); vertical-align: .12em; }
.medal-text p { margin-top: 10px; font-size: 1.125rem; }
.medal-text .medal-date { margin-top: 4px; font-size: 1rem; opacity: .72; }

/* Visitas */
.visit-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  aspect-ratio: 16 / 9;
}
.visit-a { grid-row: 1 / 3; }
.visit-c { grid-column: 2 / 4; }
.visit-offer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px;
  margin-top: 36px; padding: 26px 28px;
  border: 2px solid var(--gold);
}
.visit-amount { font: 700 clamp(2.75rem, 5vw, 3.75rem)/1 var(--head); color: var(--gold); }
.visit-amount span { font-size: .4em; letter-spacing: .08em; }
.visit-per { margin-top: 4px; font: 600 1rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.visit-includes { flex: 1 1 260px; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 1.125rem; }
.visit-includes li { display: flex; align-items: center; gap: 10px; }
.visit-includes li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.visit-offer .btn { margin-left: auto; }

/* Ferias */
.ferias-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.ferias-lead { margin-top: 20px; font-size: 1.1875rem; }
.ferias-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-light); }
.ferias-list li { padding-block: 14px; border-bottom: 1px solid var(--rule-light); }
.ferias-list strong { display: block; font: 700 1.5rem/1.15 var(--head); text-transform: uppercase; }
.ferias-list a { color: var(--ink-900); font-weight: 600; text-underline-offset: 3px; }
.ferias-list a:hover { background: var(--gold); }
.ferias-photo figcaption { margin-top: 10px; font-size: .9375rem; }

/* Contacto */
.contact { background: var(--ink-800); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px);
}
.contact h2 + p { margin-top: 18px; font-size: 1.1875rem; }
.contact-list { margin-top: 24px; border-top: 1px solid var(--rule-dark); }
.contact-list div {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule-dark);
}
.contact-list dt { font: 600 1.0625rem/1.5 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.contact-list dd { overflow-wrap: anywhere; }
.contact-list a { color: var(--cream); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--gold); }
.contact-logo { width: min(240px, 70%); margin-top: 32px; padding: 14px; background: #fff; }
.form { display: grid; gap: 20px; align-content: start; }
.field label {
  display: block; margin-bottom: 8px;
  font: 600 1.0625rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 2px solid var(--rule-dark); border-radius: 0;
  background: var(--ink-950); color: var(--cream);
  font: 400 1.0625rem/1.4 var(--body);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea::placeholder { color: var(--mist); opacity: .75; }
.field [aria-invalid="true"] { border-color: var(--cream); }
.error { margin-top: 6px; font-weight: 600; }
.form .btn { justify-self: start; }

/* Footer */
.footer { padding-block: 40px; background: var(--ink-950); color: var(--mist); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer img { width: 64px; }
.footer .legal { margin-left: auto; padding-right: 76px; font-size: .9375rem; }
.footer-credit { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; padding-right: 76px; border-top: 1px solid var(--rule-dark); font-size: .875rem; }
.footer .footer-credit img { flex: none; width: auto; height: 34px; }
.footer-credit a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--gold); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border: 2px solid var(--ink-900); border-radius: 50%;
  background: var(--gold); color: var(--ink-900);
  box-shadow: 0 6px 22px rgba(20, 18, 16, .45);
  transition: background-color .18s, transform .18s;
}
.wa-float:hover { background: var(--cream); transform: translateY(-2px); }

/* Diálogos */
dialog { border: 0; padding: 0; color: var(--cream); }
.lightbox { max-width: 94vw; max-height: 92vh; background: var(--ink-950); }
.lightbox::backdrop { background: rgba(20, 18, 16, .92); }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px;
  padding: 10px 16px; border: 0;
  background: var(--gold); color: var(--ink-900);
  font: 700 1.0625rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.age {
  width: min(460px, calc(100vw - 32px));
  padding: 36px 28px;
  background: var(--ink-900);
  border: 2px solid var(--gold);
  text-align: center;
}
.age::backdrop { background: rgba(20, 18, 16, .86); backdrop-filter: blur(8px); }
.age img { width: 150px; margin-inline: auto; }
.age h2 { margin-top: 20px; font-size: 2.5rem; }
.age p { margin-top: 12px; color: var(--mist); }
.age-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Carrito */
.cart {
  position: fixed; inset: 0 0 0 auto;
  width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto;
  display: none; flex-direction: column;
  background: var(--ink-900); border-left: 2px solid var(--gold);
}
.cart[open] { display: flex; }
.cart::backdrop { background: rgba(20, 18, 16, .7); }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--rule-dark); }
.cart-head h2 { font-size: 2rem; }
.cart-close, .cart-clear {
  padding: 8px 12px; border: 2px solid var(--cream); background: none; color: var(--cream);
  font: 600 1rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.cart-close:hover, .cart-clear:hover { background: var(--cream); color: var(--ink-900); }
.cart-list { flex: 1 1 auto; overflow-y: auto; margin: 0; padding: 4px 20px; list-style: none; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
.cart-item img { grid-row: span 2; width: 56px; height: 76px; object-fit: cover; }
.cart-item h3 { font: 700 1.125rem/1.1 var(--head); text-transform: uppercase; }
.cart-size { grid-column: 2; color: var(--mist); font-size: .9375rem; }
.cart-remove { grid-column: 3; grid-row: 1; justify-self: end; padding: 2px 4px; border: 0; background: none; color: var(--mist); font-size: .875rem; text-decoration: underline; cursor: pointer; }
.cart-remove:hover { color: var(--gold); }
.cart-qty { grid-column: 3; grid-row: 2; display: flex; align-items: center; border: 1px solid var(--rule-dark); }
.cart-qty button { width: 32px; height: 32px; border: 0; background: none; color: var(--cream); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.cart-qty button:hover { background: var(--gold); color: var(--ink-900); }
.cart-qty output { min-width: 28px; text-align: center; font-weight: 600; }
.cart-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 20px; color: var(--mist); }
.cart-empty[hidden], .cart-foot[hidden] { display: none; }
.cart-foot { display: grid; gap: 10px; padding: 16px 20px 22px; border-top: 1px solid var(--rule-dark); background: var(--ink-950); }
.cart-total { font: 700 1.25rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.cart-label { font: 600 .9375rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.cart-input { width: 100%; padding: 12px 14px; border: 1px solid var(--rule-dark); background: var(--ink-900); color: var(--cream); font: inherit; }
.cart-input:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.cart-note { color: var(--mist); font-size: .9375rem; }
.cart-send { width: 100%; text-align: center; }
.cart-clear { justify-self: start; border-color: var(--rule-dark); color: var(--mist); }
.cart-toast {
  position: fixed; left: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 2 * var(--gutter) - 76px);
  padding: 12px 14px 12px 16px;
  background: var(--cream); color: var(--ink-900);
  box-shadow: 0 8px 26px rgba(20, 18, 16, .45);
  font-weight: 600;
}
.cart-toast[hidden] { display: none; }
.cart-toast button {
  flex: none; padding: 8px 12px; border: 0; background: var(--ink-900); color: var(--gold);
  font: 700 .9375rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}

/* Aparición al hacer scroll, solo si JS está activo */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .steps {
    display: flex; gap: 10px; overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-bottom: 12px;
  }
  .step { flex: 0 0 min(78vw, 320px); min-height: 460px; scroll-snap-align: start; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; order: 3; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink-950);
  }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.375rem; border-bottom: 1px solid var(--rule-dark); }
  .nav .nav-cta { margin-top: 14px; padding: 14px; border: 0; text-align: center; }
  .origen-grid, .mezcal-grid, .contact-grid, .productor-grid, .ferias-grid { grid-template-columns: minmax(0, 1fr); }
  .origen-photo { margin-right: 18px; }
  .bottles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit-grid { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .visit-a, .visit-c { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .visit-b, .visit-d { aspect-ratio: 1; }
  .footer .legal { margin-left: 0; width: 100%; }
  .visit-offer .btn { margin-left: 0; flex: 1 1 100%; text-align: center; }
}

@media (max-width: 560px) {
  .hero .eyebrow { font-size: .9375rem; letter-spacing: .06em; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .specs div { flex-direction: column; gap: 2px; }
  .specs dd { text-align: left; }
  .form .btn { justify-self: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
