/* OCHO · Peruvian Dry Gin
   Colores de marca: azul marino, rojo burdeos, blanco perla y dorado. */
:root {
  --navy: #1b2a45;
  --navy-2: #22355a;
  --navy-d: #111b2e;
  --navy-x: #0c1424;
  --wine: #6b1423;
  --wine-d: #34000c;
  --cream: #f5f1ea;
  --pearl: #fbf8f2;
  --gold: #c8a35a;
  --gold-l: #e3c98f;
  --gold-line: rgba(200, 163, 90, .35);

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-sans: "Poppins", system-ui, sans-serif;

  --nav: 76px;
  --gut: 80px;
  --padt: 128px;
  --padb: 104px;
  --r-lg: 20px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --vignette-dark: inset 0 0 220px rgba(0, 0, 0, .5);
  --vignette-light: inset 0 0 200px rgba(120, 86, 30, .14);
  --ts-dark: 0 2px 2px rgba(0, 0, 0, .25), 0 14px 40px rgba(0, 0, 0, .35);
  --ts-light: 0 1px 0 rgba(255, 255, 255, .7), 0 14px 34px rgba(27, 42, 69, .14);
}
@media (max-width: 1023px) { :root { --gut: 40px; --padt: 112px; --padb: 88px; } }
@media (max-width: 639px)  { :root { --nav: 64px; --gut: max(5vw, 16px); --padt: 96px; --padb: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-sans); font-size: 16px; line-height: 1.6;
  color: var(--cream); background: var(--navy);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: var(--nav); }

.wrap {
  width: 100%; max-width: calc(1280px + 2 * var(--gut)); margin: 0 auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}

/* ---------- Tipografía ---------- */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec--cream .eyebrow { color: #9a7631; }
.h2 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 4.6vw, 76px); line-height: .95; letter-spacing: .005em; text-wrap: balance;
  text-shadow: var(--ts-dark);
}
.sec--cream .h2 { text-shadow: var(--ts-light); }
.h2--xl { font-size: clamp(52px, 6.4vw, 104px); }
.h3 { font-family: var(--f-serif); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.lead, .body-l { font-size: 18px; line-height: 1.65; max-width: 34em; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.02em; }

/* ---------- Logo (máscara: toma el color del texto) ---------- */
.logo {
  display: inline-block; height: 40px; aspect-ratio: 908 / 426; background: currentColor;
  -webkit-mask: url(../img/ocho-logo.png) center / contain no-repeat; mask: url(../img/ocho-logo.png) center / contain no-repeat;
}
.logo--xl { height: 72px; }
.logo--footer { height: 52px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--cream); --fg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-sans); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  background: var(--bg); color: var(--fg); cursor: pointer;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease);
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { height: 60px; padding: 0 32px; font-size: 17px; }
.btn--ghost { background: transparent; color: inherit; border-color: var(--gold-line); box-shadow: none; }
.sec--cream .btn--primary, .agegate .btn--primary { --bg: var(--navy); --fg: var(--cream); box-shadow: 0 12px 28px -12px rgba(27, 42, 69, .6), inset 0 1px 0 rgba(255, 255, 255, .12); }
.agegate .btn--ghost { color: var(--navy); }
.sec--wine .btn--primary { --fg: var(--wine); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--bg) 88%, var(--gold)); }
  .btn--ghost:hover { background: rgba(200, 163, 90, .1); border-color: var(--gold); }
}
/* al presionar: la letra en dorado */
.btn:active, .btn.is-pressed { --bg: var(--navy-x); color: var(--gold-l); border-color: var(--gold); transform: translateY(1px) scale(.985); transition-duration: 90ms; }
.btn--ghost:active, .btn--ghost.is-pressed { background: rgba(200, 163, 90, .12); color: var(--gold); }
.agegate .btn--ghost:active, .agegate .btn--ghost.is-pressed { color: #9a7631; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- Verificación de edad ---------- */
.agegate { display: none; }
.js .agegate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse at center, var(--pearl) 40%, #e9e1d2 100%); color: var(--navy); text-align: center;
  transition: opacity 400ms var(--ease), visibility 0s linear 400ms;
}
.js.edad-ok .agegate { opacity: 0; visibility: hidden; pointer-events: none; }
.js:not(.edad-ok) body { overflow: hidden; }
.agegate__inner { position: relative; display: grid; justify-items: center; gap: 20px; max-width: 480px; padding: 48px 32px; }
.agegate__inner::before, .agegate__inner::after { content: ""; position: absolute; width: 44px; height: 44px; border: 1px solid var(--gold); }
.agegate__inner::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.agegate__inner::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.agegate__q { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 6vw, 64px); line-height: .95; margin-top: 16px; text-shadow: var(--ts-light); }
.agegate__note { color: color-mix(in srgb, var(--navy) 80%, transparent); }
.agegate__no { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--wine); }
.agegate .btn { min-width: 150px; }

/* ---------- Barra superior ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, #121c31 0%, #18253f 100%);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .75);
}
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.nav__bar { height: var(--nav); display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; color: var(--cream); padding: 8px 0; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.nav__links { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 1365px) { .nav__bar { gap: 16px; } .nav__links { gap: 6px; } .nav__links a { padding: 0 12px; } }
.nav__links a {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--cream);
  background: rgba(245, 241, 234, .05); border: 1px solid rgba(200, 163, 90, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}
.ni { width: 17px; height: 17px; flex: none; color: var(--gold); transition: color 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { background: rgba(200, 163, 90, .14); border-color: rgba(200, 163, 90, .6); }
}
.nav__links a.is-current { background: linear-gradient(180deg, #d6b571, var(--gold)); border-color: var(--gold-l); color: var(--navy-x); box-shadow: 0 6px 18px -8px rgba(200, 163, 90, .8); }
.nav__links a.is-current .ni { color: var(--navy-x); }
.nav__links a:active, .nav__links a.is-pressed { color: var(--gold-l); background: var(--navy-x); border-color: var(--gold); transform: scale(.97); }
.nav__links a.is-pressed .ni { color: var(--gold-l); }
.skip-link { position: absolute; left: var(--gut); top: -100px; z-index: 30; background: var(--cream); color: var(--navy); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--gold-line);
  border-radius: 999px; background: rgba(245, 241, 234, .05); cursor: pointer; place-content: center; gap: 6px;
}
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--gold-l); transition: transform 200ms var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu {
  position: fixed; inset: calc(var(--nav) + env(safe-area-inset-top, 0px)) 0 0; background: var(--navy-d); padding: 16px var(--gut) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; box-shadow: var(--vignette-dark);
}
.menu[hidden] { display: none; }
.menu a:not(.btn) {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 38px; line-height: 1;
  text-decoration: none; padding: 16px 0; border-bottom: 1px solid rgba(200, 163, 90, .2); transition: color 150ms var(--ease);
}
.menu .ni { width: 24px; height: 24px; }
.menu a:not(.btn):active, .menu a.is-pressed:not(.btn) { color: var(--gold-l); }
.menu .btn { margin-top: auto; }
@media (max-width: 1199px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: grid; margin-left: 0; }
}
@media (max-width: 639px) { .nav__cta { display: none; } .lang-toggle { margin-left: auto; } }
@media (max-width: 1199px) { .lang-toggle { margin-left: auto; } .lang-toggle + .nav__cta { margin-left: 0; } }

/* ---------- Bola 8 (WebGL) ---------- */
.ball-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.ball-anchor { position: relative; aspect-ratio: 1; border-radius: 50%; touch-action: pan-y; }
.gl-ok .ball-anchor--hero { cursor: grab; }
.gl-ok .ball-anchor--hero:active { cursor: grabbing; }
.ball-fallback {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #55555c 0, #141416 36%, #050506 75%);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7);
}
.ball-fallback span {
  width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--pearl); color: #0b0b0e; border: 3px solid var(--gold);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 900;
}
.ball-anchor--hero .ball-fallback span { font-size: 40px; }
.ball-anchor--big .ball-fallback span { font-size: 80px; }
.gl-ok .ball-fallback { visibility: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: calc(var(--nav) + 48px) 0 64px; display: flex; align-items: center; overflow: clip;
  background: radial-gradient(ellipse 70% 60% at 72% 50%, #24375c 0%, var(--navy) 55%, #142039 100%);
  box-shadow: var(--vignette-dark);
}
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hero__copy { grid-column: 1 / span 6; position: relative; z-index: 6; }
.hero__h1 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 7.4vw, 124px); line-height: .9; letter-spacing: .005em; margin-bottom: 28px;
  text-shadow: var(--ts-dark);
}
.hero__h1 em { font-size: 1.02em; letter-spacing: -.03em; color: var(--gold-l); }
.hero__h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__h1 .line > span { display: inline-block; }
.hero .lead { color: color-mix(in srgb, var(--cream) 86%, transparent); margin-bottom: 36px; }
.facts { display: flex; gap: 32px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--gold-line); max-width: 480px; }
.facts li { font-size: 14px; color: color-mix(in srgb, var(--cream) 72%, transparent); }
.facts strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1.1; color: var(--gold-l); text-shadow: var(--ts-dark); }
.hero__stage { grid-column: 7 / span 6; position: relative; display: flex; justify-content: center; align-items: center; height: min(calc(100svh - var(--nav) - 112px), 780px); min-height: 420px; }
.hero__halo { position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 241, 234, .12), rgba(200, 163, 90, .05) 62%, transparent); }
.hero__halo::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(200, 163, 90, .25); }
.hero__bottle { position: relative; height: 100%; width: auto; max-width: none; max-height: 100%; filter: drop-shadow(0 40px 50px rgba(3, 7, 16, .65)); }
.ball-anchor--hero { position: absolute; width: clamp(110px, 13vw, 200px); left: 4%; bottom: 0; z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__h1 .line > span { transform: translateY(105%); }
  .js [data-hero-fade] { opacity: 0; transform: translateY(12px); }
  .js .hero__bottle { opacity: 0; transform: translateY(32px) scale(.98); }
  .js .hero__halo { opacity: 0; transform: scale(.9); }
}

/* ---------- Secciones ---------- */
.sec { position: relative; min-height: 100svh; padding: var(--padt) 0 var(--padb); display: flex; align-items: center; }
.sec > .wrap { width: 100%; }
.sec--cream { background: var(--cream); color: var(--navy); box-shadow: var(--vignette-light); }
.sec--navy { background: radial-gradient(ellipse at 50% 0%, #22355a 0%, var(--navy) 60%); box-shadow: var(--vignette-dark); }
.sec--wine { background: radial-gradient(ellipse at 30% 40%, #7d1a2b 0%, var(--wine) 55%, #4f0d19 100%); box-shadow: var(--vignette-dark); }
.sec__head { margin-bottom: 56px; max-width: 760px; }

/* Historia */
.historia { align-items: flex-start; }
.historia__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.historia__stage { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav) + 8vh); display: grid; place-items: center; height: calc(100svh - var(--nav) - 16vh); }
.ball-anchor--big { width: min(100%, 420px); }
.historia__copy { grid-column: 7 / span 6; }
.historia .h2 { margin-bottom: 48px; }
.story { border-top: 1px solid var(--gold-line); }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 28px 0; border-bottom: 1px solid rgba(27, 42, 69, .12); }
.chapter__h { font-family: var(--f-serif); font-weight: 500; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #9a7631; }
.chapter p { font-family: var(--f-serif); font-size: 19px; line-height: 1.7; color: color-mix(in srgb, var(--navy) 92%, transparent); max-width: 34em; }
.dropcap::first-letter { float: left; font-family: var(--f-serif); font-weight: 500; font-size: 4.1em; line-height: .82; padding: 8px 12px 0 0; color: var(--wine); text-shadow: 0 8px 20px rgba(107, 20, 35, .18); }
.pull {
  position: relative; margin-top: 48px; padding: 40px 32px; text-align: center;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: var(--wine);
  background: var(--pearl); border-radius: 4px; box-shadow: 0 30px 60px -34px rgba(27, 42, 69, .45);
}
.pull::before, .pull::after { content: ""; position: absolute; width: 36px; height: 36px; border: 1px solid var(--gold); }
.pull::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.pull::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* Botánicos */
.botanicos { position: relative; background: radial-gradient(ellipse at 30% 50%, #4a0614 0%, var(--wine-d) 60%); color: var(--cream); }
.botanicos::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: var(--vignette-dark); }
.botanicos__pin { min-height: 100svh; padding: calc(var(--nav) + 40px) 0 48px; display: flex; align-items: center; }
.botanicos.is-pinned { height: 420svh; }
.botanicos.is-pinned .botanicos__pin { position: sticky; top: 0; height: 100svh; }
.botanicos__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; height: 100%; }
.botanicos__visual { grid-column: 1 / span 5; display: grid; place-items: center; height: 100%; min-height: 0; }
.bv { --a: 0; --b: .226; position: relative; height: min(100%, 760px); aspect-ratio: 411 / 1152; max-height: calc(100svh - var(--nav) - 88px); filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .55)); }
.bv img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bv__dim { filter: brightness(.3) saturate(.4); clip-path: inset(0 0 0 53.4%); }
.bv__lit { clip-path: inset(calc(var(--a) * 100%) 0 calc((1 - var(--b)) * 100%) 53.4%); }
.bv__mark { position: absolute; left: calc(100% + 12px); width: clamp(24px, 4vw, 64px); height: 1px; background: var(--gold); top: calc((var(--a) + var(--b)) / 2 * 100%); }
.bv__mark::before { content: ""; position: absolute; left: -4px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(227, 201, 143, .8); }
.botanicos__copy { grid-column: 7 / span 6; position: relative; z-index: 1; }
.botanicos .h2 { margin-bottom: 28px; }
.bot-list { border-top: 1px solid var(--gold-line); }
.bot { border-bottom: 1px solid rgba(200, 163, 90, .18); }
.bot button {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; align-items: baseline;
  padding: 11px 0; background: none; border: 0; text-align: left; cursor: pointer; opacity: .42; transition: opacity 240ms var(--ease), color 150ms var(--ease);
}
.bot.is-active button { opacity: 1; }
.bot button.is-pressed .bot__name { color: var(--gold-l); }
@media (hover: hover) and (pointer: fine) { .bot button:hover { opacity: .8; } .bot.is-active button:hover { opacity: 1; } }
.bot__n { font-family: var(--f-display); font-weight: 800; font-size: 18px; color: var(--gold); grid-row: span 2; }
.bot__name { font-family: var(--f-serif); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; transition: color 150ms var(--ease); }
.bot.is-active .bot__name { color: var(--gold-l); text-shadow: 0 0 24px rgba(200, 163, 90, .35); }
.bot__note { font-size: 15px; line-height: 1.45; color: color-mix(in srgb, var(--cream) 82%, transparent); }
@media (max-height: 820px) and (min-width: 900px) {
  .bot button { padding: 7px 0; }
  .bot__name { font-size: 20px; }
  .botanicos .h2 { font-size: 48px; margin-bottom: 20px; }
}

/* Capa elegida: palpita con brillo y marco dorado sobre la botella */
.bv__glow { position: absolute; inset: 0; }
.bv__frame {
  position: absolute; pointer-events: none; opacity: 0; border: 2px solid var(--gold-l); border-radius: 6px;
  top: calc(var(--a) * 100% - 3px); height: calc((var(--b) - var(--a)) * 100% + 6px);
  left: calc(53.4% - 3px); width: calc((var(--r) - 53.4) * 1% + 6px);
  box-shadow: 0 0 0 1px rgba(200, 163, 90, .5), 0 0 26px rgba(227, 201, 143, .7), inset 0 0 18px rgba(227, 201, 143, .45);
}
.bv.is-pulsing .bv__frame { animation: layer-frame 700ms ease-in-out 3; }
.bv.is-pulsing .bv__glow { animation: layer-glow 700ms ease-in-out 3; }
@keyframes layer-frame {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes layer-glow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(227, 201, 143, 0)); }
  50% { filter: brightness(1.28) saturate(1.15) drop-shadow(0 0 18px rgba(227, 201, 143, .95)); }
}
@media (prefers-reduced-motion: reduce) {
  .bv.is-pulsing .bv__frame { animation: none; opacity: 1; }
  .bv.is-pulsing .bv__glow { animation: none; }
}

/* Notas de cata */
.cata__head { margin-bottom: 48px; }
.cata__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.nota {
  position: relative; padding: 36px 28px 32px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(37, 57, 95, .9) 0%, rgba(29, 45, 76, .9) 100%); border: 1px solid rgba(200, 163, 90, .22);
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nota::before, .nota::after { content: ""; position: absolute; width: 28px; height: 28px; border: 1px solid var(--gold); }
.nota::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.nota::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.nota__ico { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.nota__h { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: 1; letter-spacing: .02em; color: var(--gold-l); margin-bottom: 16px; text-shadow: var(--ts-dark); }
.nota p { font-family: var(--f-serif); font-size: 17px; line-height: 1.65; color: color-mix(in srgb, var(--cream) 90%, transparent); }
@media (max-width: 1099px) { .cata__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cata__grid { grid-template-columns: minmax(0, 1fr); } .nota { padding: 30px 24px 26px; } }

/* Intro: la bola 8 llena la pantalla */
.ball-canvas.is-intro { z-index: 110; }

/* Puntos de venta */
.puntos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.punto {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 36px 32px 32px; border-radius: 16px;
  background: var(--pearl); border: 1px solid rgba(200, 163, 90, .35);
  box-shadow: 0 30px 60px -34px rgba(27, 42, 69, .45), inset 0 1px 0 #fff;
}
.punto__pais { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #9a7631; }
.punto__pais .ni { width: 18px; height: 18px; color: var(--gold); }
.punto__h { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: 1; color: var(--navy); text-shadow: var(--ts-light); }
.punto address { font-style: normal; font-family: var(--f-serif); font-size: 18px; line-height: 1.6; color: color-mix(in srgb, var(--navy) 90%, transparent); margin-bottom: 8px; }
.link-gold {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px;
  font-weight: 500; color: var(--wine); text-decoration: none; border-bottom: 1px solid var(--gold-line); transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.link-gold .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-gold:hover { border-color: var(--gold); } .link-gold:hover .arrow { transform: translateX(3px); } }
.link-gold:active, .link-gold.is-pressed { color: #9a7631; border-color: var(--gold); }
@media (max-width: 999px) { .puntos__grid { grid-template-columns: minmax(0, 1fr); } }

/* Envíos a todo el Perú */
.envios {
  position: relative; display: flex; align-items: center; gap: 28px; margin-top: 24px; padding: 28px 32px; border-radius: 16px;
  background: linear-gradient(120deg, var(--navy) 0%, #22355a 100%); color: var(--cream);
  border: 1px solid var(--gold-line); box-shadow: 0 30px 60px -34px rgba(27, 42, 69, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.sec--cream .envios .btn--primary { --bg: var(--cream); --fg: var(--navy); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.envios__ico { width: 56px; height: 56px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; }
.envios__txt { flex: 1; min-width: 0; }
.envios__h { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 32px; line-height: 1; color: var(--gold-l); margin-bottom: 6px; text-shadow: var(--ts-dark); }
.envios p { color: color-mix(in srgb, var(--cream) 88%, transparent); }
@media (max-width: 799px) { .envios { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 24px; } .envios .btn { width: 100%; } }

/* Selector de idioma (barra) */
.lang-toggle {
  display: inline-flex; align-items: center; height: 40px; padding: 3px; gap: 2px; border-radius: 999px; cursor: pointer;
  background: rgba(245, 241, 234, .05); border: 1px solid var(--gold-line); font-size: 13px; font-weight: 600; letter-spacing: .06em;
}
.lang-toggle span { display: grid; place-items: center; width: 34px; height: 32px; border-radius: 999px; color: color-mix(in srgb, var(--cream) 70%, transparent); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
html[data-lang="es"] .lang-toggle [data-l="es"], html[data-lang="en"] .lang-toggle [data-l="en"] { background: var(--gold); color: var(--navy-x); }
.lang-toggle.is-pressed span { color: var(--gold-l); }

/* Paso de idioma en la entrada */
.js .agegate.is-lang { background: radial-gradient(ellipse at center, #22355a 0%, var(--navy) 55%, var(--navy-x) 100%); color: var(--cream); }
.agegate__inner[hidden] { display: none; }
.agegate__lang .logo { color: var(--cream); }
.agegate__lang .agegate__q { text-shadow: var(--ts-dark); }
.agegate__lang .agegate__q span { display: block; margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; font-size: 20px; color: var(--gold-l); }
.lang-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(100%, 440px); margin-top: 12px; }
.lang-opt {
  display: grid; gap: 6px; justify-items: center; padding: 26px 16px 24px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, rgba(245, 241, 234, .08), rgba(245, 241, 234, .02)); border: 1px solid var(--gold-line);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.lang-opt__code { font-family: var(--f-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--gold-l); }
.lang-opt__name { font-family: var(--f-serif); font-size: 18px; color: var(--cream); transition: color 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .lang-opt:hover { transform: translateY(-2px); border-color: var(--gold); background-color: rgba(200, 163, 90, .08); } }
.lang-opt:active, .lang-opt.is-pressed { transform: scale(.98); border-color: var(--gold-l); }
.lang-opt:active .lang-opt__name, .lang-opt.is-pressed .lang-opt__name { color: var(--gold-l); }
.agegate__lang .agegate__inner::before { border-color: var(--gold); }

/* Origen */
.origen__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.origen__copy { grid-column: 1 / span 6; }
.origen__specs { grid-column: 8 / span 5; }
.origen .rows { max-width: none; }
.origen .h2 { margin-bottom: 28px; }
.origen .body-l { color: color-mix(in srgb, var(--navy) 88%, transparent); }
.rows { max-width: 520px; border-top: 1px solid var(--gold-line); }
.rows > div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid rgba(27, 42, 69, .14); }
.rows dt { color: color-mix(in srgb, var(--navy) 70%, transparent); font-size: 15px; }
.rows dd { font-weight: 500; text-align: right; }

/* Cócteles */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; border-radius: 6px;
  background: linear-gradient(180deg, #25395f 0%, #1d2d4c 100%); border: 1px solid rgba(200, 163, 90, .22);
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.card::before, .card::after { content: ""; position: absolute; width: 28px; height: 28px; border: 1px solid var(--gold); }
.card::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.card::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.card__top { display: flex; justify-content: space-between; align-items: flex-end; height: 72px; margin-bottom: 28px; }
.card__n { font-family: var(--f-display); font-weight: 900; font-size: 56px; line-height: .8; color: var(--gold-l); text-shadow: var(--ts-dark); }
.card .h3 { margin-bottom: 20px; }
.recipe { border-top: 1px solid rgba(200, 163, 90, .25); margin-bottom: 20px; }
.recipe li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(245, 241, 234, .1); }
.recipe li span:last-child { color: color-mix(in srgb, var(--cream) 78%, transparent); white-space: nowrap; }
.card__garnish { margin-top: auto; font-family: var(--f-serif); font-style: italic; font-size: 17px; color: color-mix(in srgb, var(--cream) 88%, transparent); }
.glass { position: relative; display: block; border: 1.5px solid var(--gold); }
.glass--tall { width: 34px; height: 66px; border-top: 0; border-radius: 2px 2px 6px 6px; }
.glass--rocks { width: 52px; height: 42px; border-top: 0; border-radius: 2px 2px 8px 8px; }
.glass--coupe { width: 58px; height: 30px; border-top: 0; border-radius: 0 0 30px 30px; margin-bottom: 36px; }
.glass--coupe::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 30px; margin-left: -1px; background: var(--gold); }
.glass--coupe::before { content: ""; position: absolute; left: 50%; top: calc(100% + 30px); width: 28px; height: 1.5px; margin-left: -14px; background: var(--gold); }
.glass--tall::after, .glass--rocks::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: rgba(200, 163, 90, .2); }

/* Contacto */
.contacto__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.contacto__copy { grid-column: 1 / span 6; }
.contacto .h2 { margin-bottom: 28px; }
.contacto .body-l { color: color-mix(in srgb, var(--cream) 90%, transparent); margin-bottom: 36px; max-width: 30em; }
.contact-list { grid-column: 8 / span 5; border-top: 1px solid var(--gold-line); }
.contact-list li { border-bottom: 1px solid rgba(245, 241, 234, .2); }
.contact-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 22px 0; text-decoration: none; transition: color 150ms var(--ease); }
.contact-list__label { grid-column: 1; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-l); }
.contact-list__value { grid-column: 1; font-family: var(--f-serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.3; overflow-wrap: anywhere; text-shadow: var(--ts-dark); transition: color 150ms var(--ease); }
.contact-list .arrow { grid-column: 2; grid-row: 1 / span 2; width: 24px; height: 24px; fill: none; stroke: var(--gold-l); stroke-width: 1.6; transition: transform 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover .arrow { transform: translateX(4px); } .contact-list a:hover .contact-list__value { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--gold); } }
.contact-list a:active .contact-list__value, .contact-list a.is-pressed .contact-list__value { color: var(--gold-l); }

/* Pie */
.footer { background: var(--navy-x); padding: 72px 0 calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--gold-line); }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(200, 163, 90, .18); }
.footer .logo { color: var(--cream); }
.footer__tag { margin-top: 12px; font-size: 14px; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { display: inline-block; padding: 10px 0; font-size: 15px; font-weight: 500; text-decoration: none; color: color-mix(in srgb, var(--cream) 80%, transparent); transition: color 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { color: var(--cream); } }
.footer__links a:active, .footer__links a.is-pressed { color: var(--gold-l); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; color: color-mix(in srgb, var(--cream) 72%, transparent); }
.footer__legal strong { color: var(--gold-l); font-weight: 600; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 15;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5), 0 0 0 2px rgba(200, 163, 90, .5);
  transform: translateY(16px) scale(.9); opacity: 0; pointer-events: none;
  transition: transform 240ms var(--ease), opacity 200ms var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float.is-on { transform: none; opacity: 1; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .wa-float.is-on:hover { transform: translateY(-2px); } }
.wa-float.is-on:active { transform: scale(.96); }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .hero { padding-top: calc(var(--nav) + 32px); align-items: flex-start; }
  .hero__grid, .historia__grid, .botanicos__grid, .origen__grid, .contacto__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy, .hero__stage, .historia__stage, .historia__copy, .botanicos__visual, .botanicos__copy,
  .origen__copy, .origen__specs, .contact-list, .contacto__copy { grid-column: 1; }
  .origen__specs { margin-top: 32px; }
  .hero__stage { height: 64svh; margin-top: 16px; }
  .facts { margin-top: 32px; }
  .historia__stage { position: static; height: auto; margin-bottom: 24px; }
  .ball-anchor--big { width: min(64vw, 300px); }
  .bv { height: 62svh; max-height: 560px; }
  .bv__mark { display: none; }
  .botanicos__visual { margin-bottom: 32px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .contact-list { margin-top: 24px; }
}
@media (max-width: 639px) {
  .lead, .body-l { font-size: 17px; }
  .chapter p { font-size: 17.5px; }
  .btn-row .btn { width: 100%; }
  .hero__stage { height: 56svh; }
  .ball-anchor--hero { width: 96px; left: 0; }
  .facts { gap: 20px; }
  .facts strong { font-size: 28px; }
  .card { padding: 28px 24px 24px; }
  .pull { padding: 32px 24px; }
  .contacto .btn--lg { width: 100%; }
  .footer__legal { flex-direction: column; }
}

/* ---------- Transiciones entre secciones: cada fondo nace del color anterior ---------- */
[data-from] { --from: transparent; }
[data-from="navy"] { --from: #172440; }
[data-from="cream"] { --from: var(--cream); }
[data-from="wined"] { --from: #2a000a; }
[data-from="wine"] { --from: #57101d; }
.sec[data-from]::before, .botanicos[data-from]::before, .footer[data-from]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(120px, 18vh, 200px); z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--from) 0%, color-mix(in srgb, var(--from) 55%, transparent) 40%, transparent 100%);
}
.sec > .wrap, .botanicos__pin, .footer > .wrap { position: relative; z-index: 1; }
.footer { position: relative; }
/* un filo dorado muy fino marca el cambio */
.sec[data-from]::after { content: ""; position: absolute; left: 50%; top: 0; width: min(40%, 360px); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(200, 163, 90, .55), transparent); pointer-events: none; }

/* Indicación en botánicos */
.bot-hint { display: flex; align-items: center; gap: 10px; margin: -12px 0 22px; font-size: 15px; color: var(--gold-l); }
.bot-hint svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) { .bot-hint svg { animation: hint-tap 2.4s ease-in-out infinite; transform-origin: 40% 80%; } }
@keyframes hint-tap { 0%, 60%, 100% { transform: translateY(0) scale(1); } 70% { transform: translateY(2px) scale(.92); } 80% { transform: translateY(0) scale(1); } }

/* Pie: documentos legales y Libro de Reclamaciones */
.footer__docs { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding: 24px 0; border-bottom: 1px solid rgba(200, 163, 90, .18); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__legal-links a { display: inline-block; padding: 10px 0; font-size: 14px; color: color-mix(in srgb, var(--cream) 78%, transparent); text-decoration: underline; text-decoration-color: rgba(200, 163, 90, .4); text-underline-offset: 4px; }
.footer__legal-links a:active, .footer__legal-links a.is-pressed { color: var(--gold-l); }
.libro { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--gold); color: var(--gold-l); text-decoration: none; font-weight: 600; font-size: 15px; background: rgba(200, 163, 90, .06); }
.libro svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .libro:hover { background: rgba(200, 163, 90, .14); } }
.libro:active, .libro.is-pressed { color: var(--cream); }
.todo { color: #f2b0a8; }

@media (max-width: 639px) { .nav__brand .logo { height: 34px; } }

/* Botella más grande e imponente */
.hero { padding: calc(var(--nav) + 24px) 0 24px; }
.hero__stage { height: min(calc(100svh - var(--nav) - 48px), 980px); min-height: 520px; }
.hero__halo { width: 100%; }
.hero__bottle { filter: drop-shadow(0 50px 60px rgba(3, 7, 16, .7)) drop-shadow(0 0 40px rgba(227, 201, 143, .08)); }
@media (max-width: 899px) { .hero__stage { height: 72svh; min-height: 420px; } }
@media (max-width: 639px) { .hero__stage { height: 66svh; } }
