/* Fuentes alojadas en el propio sitio (sin Google Fonts) */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/cinzel-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }

/* ==========================================================================
   Cuatro Puntos — Cervecería Artesanal
   Dark editorial. Type, palette and lockups are taken from the bottle labels:
   Cinzel caps for the wordmark and small tracked labels, amber from the beer,
   gold from the label foil.
   ========================================================================== */

:root {
  --bg:        #060605;
  --bg-rgb:    6 6 5;
  --bg-2:      #0e0d0b;
  --bg-3:      #17150f;
  --cream:     #f3ecdd;
  --cream-2:   #ddd0b8;
  --cream-3:   #8f8272;
  --accent:    #c9822e;
  --accent-2:  #a5631e;
  --accent-ink:#17110a;
  --gold:      #d9b978;
  --wa:        #25d366;
  --line:        rgb(243 236 221 / .12);
  --line-strong: rgb(243 236 221 / .32);

  --font-display: "Cinzel", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 84px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  scrollbar-color: #2b2720 var(--bg);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: rgb(201 130 46 / .38); color: var(--cream); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; }
p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 2000;
  padding: .75rem 1.2rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .85rem; font-weight: 500;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* Small tracked caps, the same voice as "CERVEZA ARTESANAL" on the label */
.kicker, .social-label, .marquee-track span {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
}

/* ---------- custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate3d(-50%, -50%, 0); }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid var(--cream); mix-blend-mode: difference; transition: width .2s var(--ease-out), height .2s var(--ease-out); }
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: var(--accent); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .6s var(--ease-out); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash-mark {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -16px rgb(0 0 0 / .7);
  animation: splashPulse 1.6s ease-in-out infinite;
}
.splash-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes splashPulse { 0%, 100% { transform: scale(.94); opacity: .85; } 50% { transform: scale(1); opacity: 1; } }

/* ---------- nav / footer logo badge ---------- */
.nav-logo {
  display: inline-block; width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  flex-shrink: 0;
}
.nav-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.footer-brand .nav-logo { width: 32px; height: 32px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out);
}
.nav.is-solid { background: rgb(var(--bg-rgb) / .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-brand { display: flex; align-items: center; gap: .6rem; }
.nav-word { font-family: var(--font-display); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-title { display: block; height: 10px; width: auto; }
@media (min-width: 861px) { .nav-title { height: 10.5px; } }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  position: relative; font-size: .82rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cream-2); padding-block: .6rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  position: relative;
  font-size: .75rem; font-weight: 500; letter-spacing: .08em;
  color: var(--cream-2); border: 1px solid var(--line-strong); padding: .45rem .8rem; border-radius: 999px;
  transition: color .2s, border-color .2s;
}
.lang-toggle::before { content: ""; position: absolute; inset: -7px; }
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }
.nav-burger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-right: -9px;
}
.nav-burger span { display: block; width: 24px; height: 1px; background: var(--cream); transition: transform .3s var(--ease-out), opacity .3s; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .btn-sm { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  font-size: .85rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s, border-color .3s, color .3s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); background: #d58c36; box-shadow: 0 14px 24px -14px rgb(0 0 0 / .85); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--cream); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .6rem 1.2rem; font-size: .75rem; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: .95rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
/* El clip tiene fondo negro: "screen" deja ver el resplandor ambar detras y mantiene la copa luminosa */
.hero-bg {
  position: absolute; inset: 0; z-index: -2; will-change: transform;
  background: radial-gradient(75% 85% at 50% 40%, #5c3a10 0%, #33200d 40%, #150d05 72%, var(--bg) 100%);
}
/* La copa del clip esta ~1% a la derecha del centro del cuadro: se compensa con --glass-off (1% del ancho renderizado)
   y el zoom crece desde la copa para que quede centrada y mas grande en pantallas horizontales */
.hero-video {
  --glass-off: calc(max(100vw, 177.78svh) * .0105);
  --hero-zoom: 1;
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transform-origin: calc(50% + var(--glass-off)) 8%;
  transform: translateX(calc(var(--glass-off) * -1)) scale(var(--hero-zoom));
  mix-blend-mode: screen; filter: brightness(.7) contrast(1.1) saturate(1.1);
}
@media (min-aspect-ratio: 5/4) { .hero-video { --hero-zoom: 1.3; } }
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 48%, rgb(var(--bg-rgb) / .45), transparent 75%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / .5) 0%, rgb(var(--bg-rgb) / .2) 38%, rgb(var(--bg-rgb) / .45) 72%, rgb(var(--bg-rgb) / .97) 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; padding-inline: 1.5rem; text-shadow: 0 2px 24px rgb(0 0 0 / .45); will-change: transform, opacity; }
.kicker {
  font-size: .75rem; letter-spacing: .2em; text-wrap: balance;
  color: var(--accent); margin-bottom: 1.4rem; display: block;
}
.kicker-light { color: var(--accent); }
.kicker-stack { display: flex; flex-direction: column; gap: .45rem; }
.hero-title {
  width: clamp(240px, 56vw, 460px); margin-inline: auto; line-height: 0;
  filter: drop-shadow(0 2px 20px rgb(0 0 0 / .45));
}
.hero-title img { display: block; width: 100%; height: auto; }
@media (min-width: 861px) { .hero-title { width: clamp(300px, 27vw, 380px); } }
.hero-sub {
  margin: 1.8rem auto 0; max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--cream-2); font-weight: 300;
}
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 46px; background: var(--line); overflow: hidden;
}
.hero-scroll-cue span { display: block; width: 100%; height: 40%; background: var(--accent); animation: scrollCue 2.2s ease-in-out infinite; }
@keyframes scrollCue { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding-block: 1.1rem; }
.marquee-track { display: flex; gap: 1.2rem; white-space: nowrap; width: max-content; animation: marqueeScroll 340s linear infinite; }
.marquee-track span { font-size: .8rem; letter-spacing: .22em; color: var(--cream-3); }
.marquee-track span:nth-child(odd) { color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section basics ---------- */
.section { position: relative; padding-block: clamp(3.25rem, 6vw, 5.5rem); }
.section-head { max-width: 640px; margin-bottom: 2.25rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: .01em; text-wrap: balance; }
.body-text { color: var(--cream-2); font-size: 1.05rem; max-width: 62ch; margin-bottom: 1.3rem; }

.section-halo {
  position: absolute; inset: -80% -10% -50% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 35% at 50% 20%, rgb(201 130 46 / .16), transparent 75%);
  filter: blur(120px);
}
.section-halo-2 { background: radial-gradient(45% 35% at 50% 60%, rgb(201 130 46 / .14), transparent 75%); }

/* ---------- reveal (hidden only while JS is running, so content survives without it) ---------- */
:where(.js) .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
:where(.js) .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- historia ---------- */
.historia-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.historia-side { position: sticky; top: calc(var(--nav-h) + 2rem); }
.historia-body { container-type: inline-size; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start;
  column-gap: clamp(.75rem, 2.2cqi, 1.5rem);
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: .55rem; min-width: 0; text-align: center; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(1.4rem, 5.1cqi, 2.1rem);
  line-height: 1.1; white-space: nowrap; color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums lining-nums;
}
.stat-label { font-size: .78rem; font-weight: 400; letter-spacing: .05em; line-height: 1.45; text-wrap: balance; text-transform: uppercase; color: var(--cream-3); }
@container (max-width: 459px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .stat-num { font-size: 2rem; }
}

@media (max-width: 860px) {
  .historia-grid { grid-template-columns: 1fr; }
  .historia-side { position: static; }
}

/* ---------- pour (signature effect) ---------- */
/* Texto a la izquierda, botella recortada (fondo transparente) a la derecha sobre un resplandor ambar. */
.pour { position: relative; min-height: min(100svh, 760px); display: flex; align-items: center; overflow: hidden; padding: clamp(3rem, 5vw, 4.5rem) 0; }
.pour-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 55% at 72% 50%, rgb(180 114 31 / .42) 0%, rgb(122 74 20 / .22) 45%, transparent 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%);
}
.pour-grid {
  position: relative; z-index: 1; width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.pour-inner { position: relative; text-align: left; max-width: 560px; }
.pour-visual { display: flex; justify-content: center; }
.pour-visual img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(78svh, 760px); filter: drop-shadow(0 28px 40px rgb(0 0 0 / .55)); }
.pour-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.1; letter-spacing: .01em; text-wrap: balance; color: var(--cream); text-shadow: 0 2px 22px rgb(0 0 0 / .5); }
.pour-gauge {
  width: min(320px, 70%); height: 4px; margin: 2.2rem 0 0;
  border-radius: 999px; background: rgb(243 236 221 / .18); overflow: hidden;
}
.pour-gauge-fill {
  height: 100%; width: var(--pour-progress, 0%);
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--gold));
}
.pour-sub { margin: 1.8rem 0 0; color: var(--cream-2); font-size: 1.05rem; max-width: 44ch; text-shadow: 0 2px 18px rgb(0 0 0 / .5); }
@media (max-width: 760px) {
  .pour { min-height: max(86svh, 560px); padding: 3rem 0; }
  .pour-glow { background: radial-gradient(75% 50% at 50% 55%, rgb(180 114 31 / .4) 0%, rgb(122 74 20 / .2) 55%, transparent 100%), linear-gradient(180deg, var(--bg) 0%, transparent 10%, transparent 90%, var(--bg) 100%); }
  .pour-grid { display: block; position: static; }
  .pour-visual { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
  .pour-visual img { height: 100%; width: auto; max-height: none; max-width: none; object-fit: contain; opacity: .5; }
  .pour-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(85% 55% at 40% 45%, rgb(var(--bg-rgb) / .7) 0%, rgb(var(--bg-rgb) / .4) 65%, transparent 100%); }
  .pour-inner { position: relative; z-index: 1; max-width: none; }
}


/* ---------- variedades: ficha tecnica (botella + jerarquia titulo / notas / datos) ---------- */
.variedades .section-head { margin-inline: auto; text-align: center; }
.variety-list { display: flex; flex-direction: column; gap: clamp(2rem, 4.5vw, 3.5rem); max-width: 860px; margin-inline: auto; }
.variety { display: grid; grid-template-columns: minmax(130px, .36fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.variety + .variety { padding-top: clamp(2rem, 4.5vw, 3.5rem); border-top: 1px solid var(--line); }

/* botella quieta, con sombra de apoyo bajo la base */
.variety-bottle { position: relative; display: flex; justify-content: center; padding-bottom: 14px; }
.variety-bottle img { position: relative; z-index: 1; display: block; width: auto; height: clamp(300px, 36vw, 430px); }
.variety-bottle::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: min(78%, 170px); height: 22px; translate: -50% 0;
  background:
    radial-gradient(closest-side, rgb(0 0 0 / .75), transparent 100%),
    radial-gradient(closest-side, rgb(201 130 46 / .22), transparent 100%);
  background-size: 60% 55%, 100% 100%; background-position: center, center; background-repeat: no-repeat;
}

/* jerarquia: titulo > estilo > notas > datos */
.variety-info h3 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.1; letter-spacing: .1em; text-transform: uppercase; }
.variety-style { margin-top: .45rem; font-family: var(--font-display); font-weight: 500; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.v-rule { display: block; height: 1px; margin-block: 1.35rem; background: var(--line-strong); transform-origin: left center; }
.variety-notes { display: grid; gap: .7rem; }
.variety-notes li { position: relative; padding-left: 1.35rem; color: var(--cream-2); font-size: .95rem; font-weight: 400; line-height: 1.65; max-width: 52ch; }
.variety-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.variety-specs { display: flex; flex-wrap: wrap; align-items: flex-end; margin: 0; }
.variety-specs > div { position: relative; }
.variety-specs > div + div { margin-left: 2.6rem; }
.variety-specs > div + div::before { content: ""; position: absolute; left: -1.5rem; top: 1.45rem; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.variety-specs dt { margin-bottom: .3rem; font-family: var(--font-display); font-weight: 500; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); }
.variety-specs dd { margin: 0; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; color: var(--cream); font-variant-numeric: lining-nums; white-space: nowrap; }

/* entrada escalonada de los datos: la botella solo aparece, el resto sube en cascada y las lineas se dibujan */
:where(.js) .variety .variety-bottle { opacity: 0; transition: opacity .9s var(--ease-out); }
:where(.js) .variety .v-step { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
:where(.js) .variety .v-rule { transform: scaleX(0); transition: transform 1s var(--ease-out); }
:where(.js) .variety.is-visible .variety-bottle { opacity: 1; }
:where(.js) .variety.is-visible .v-step { opacity: 1; transform: none; }
:where(.js) .variety.is-visible .v-rule { transform: scaleX(1); }
:where(.js) .variety.is-visible h3.v-step { transition-delay: .25s; }
:where(.js) .variety.is-visible .variety-style { transition-delay: .35s; }
:where(.js) .variety.is-visible .v-rule:nth-of-type(1) { transition-delay: .45s; }
:where(.js) .variety.is-visible .variety-notes li:nth-child(1) { transition-delay: .6s; }
:where(.js) .variety.is-visible .variety-notes li:nth-child(2) { transition-delay: .72s; }
:where(.js) .variety.is-visible .variety-notes + .v-rule { transition-delay: .85s; }
:where(.js) .variety.is-visible .variety-specs > div:nth-child(1) { transition-delay: 1s; }
:where(.js) .variety.is-visible .variety-specs > div:nth-child(2) { transition-delay: 1.12s; }

.variety:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(130px, .36fr); }
.variety:nth-child(even) .variety-bottle { order: 2; }
.variety-specs dd { color: var(--accent); }
@media (max-width: 760px) {
  .variety { grid-template-columns: minmax(96px, .34fr) minmax(0, 1fr); gap: 1.1rem; }
  .variety:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(96px, .34fr); }
  .variety-bottle img { height: clamp(210px, 52vw, 320px); }
}
@media (max-width: 560px) {
  .variety { gap: .9rem; }
  .variety-bottle img { height: clamp(190px, 56vw, 250px); }
  .variety-info h3 { font-size: 1.25rem; }
  .variety-style { font-size: .72rem; letter-spacing: .14em; }
  .variety-notes { gap: .5rem; }
  .variety-notes li { font-size: .8rem; line-height: 1.5; padding-left: 1rem; }
  .variety-notes li::before { width: 5px; height: 5px; }
  .variety-specs { gap: .7rem 1.2rem; }
  .variety-specs dt { font-size: .68rem; letter-spacing: .1em; }
  .variety-specs dd { font-size: .9rem; }
  .variety-specs > div + div { margin-left: 0; }
  .variety-specs > div + div::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :where(.js) .variety .v-step { transform: none; }
  :where(.js) .variety .v-rule { transform: none; }
}

/* ---------- galeria / carrusel ---------- */
.gallery { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.gallery-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: -2px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-viewport { cursor: grab; touch-action: pan-x pan-y; }
.gallery-viewport.is-dragging { cursor: grabbing; user-select: none; }
.gallery-item img { user-select: none; -webkit-user-drag: none; }
.gallery-track { display: flex; gap: clamp(.6rem, 1.4vw, 1rem); width: max-content; margin: 0; padding: 0; list-style: none; }
.gallery-item { flex: none; }
.gallery-item img { display: block; height: clamp(230px, 34vw, 400px); width: auto; border-radius: 14px; border: 1px solid var(--line); }

/* ---------- proceso ---------- */
.proceso-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.proceso-media { position: sticky; top: 96px; margin: 0; }
.proceso-frame {
  position: relative; aspect-ratio: 9 / 16; max-height: min(74svh, 640px); margin-inline: auto; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: #0b0a08; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 90px -20px rgb(201 130 46 / .28);
}
.proceso-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.06); transform: scale(1.04); transition: transform 1.6s var(--ease-out); }
.proceso-media.is-visible .proceso-video { transform: scale(1); }
.proceso-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(6 6 5 / .55) 100%),
    linear-gradient(180deg, rgb(6 6 5 / .35) 0%, transparent 18%, transparent 78%, rgb(6 6 5 / .5) 100%);
  box-shadow: inset 0 0 0 1px rgb(243 236 221 / .06);
}
@media (max-width: 860px) {
  .proceso-layout { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .proceso-media { position: static; }
  .proceso-frame { aspect-ratio: 4 / 5; max-height: none; width: 100%; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .proceso-video { transform: none; transition: none; } }
.steps { max-width: none; }
.steps { --tl: 2.6rem; position: relative; display: flex; flex-direction: column; max-width: 780px; padding-left: var(--tl); }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 2rem; width: 1px; }
.steps::before { bottom: 2rem; background: var(--line); }
.steps::after { height: calc((100% - 4rem) * var(--steps-progress, 0)); background: linear-gradient(var(--accent-2), var(--accent)); }
.step { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 1.5rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; left: calc(var(--tl) * -1 - 4px); top: calc(2rem + .75rem);
  width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong);
  transition: background .5s var(--ease-out), border-color .5s var(--ease-out), transform .5s var(--ease-out);
}
.step.is-active::before { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
.step-n { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--cream-3); font-variant-numeric: lining-nums; transition: color .5s var(--ease-out); }
.step.is-active .step-n { color: var(--accent); }
.step-body h3 { font-size: 1.4rem; margin-bottom: .5rem; transition: color .5s var(--ease-out); }
.step.is-active .step-body h3 { color: var(--gold); }
.step-body p { color: var(--cream-3); max-width: 56ch; font-size: .95rem; font-weight: 400; }

@media (max-width: 560px) {
  .steps { --tl: 1.7rem; }
  .step { grid-template-columns: 46px 1fr; gap: 1rem; }
}

/* ---------- donde encontrarnos ---------- */
.donde-grid { display: block; max-width: 820px; }
.donde-text .section-title { margin-bottom: 0; }
.venues { margin-top: 2rem; border-top: 1px solid var(--line); }
.venue {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease-out);
}
.venue:hover { padding-left: .6rem; }
.venue-info { display: flex; flex: 1 1 auto; flex-direction: column; gap: .3rem; min-width: 0; }
.venue-name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; color: var(--cream); }
.venue-meta { font-size: .78rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-3); }
.venue-go { font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; flex-shrink: 0; transition: color .3s; }
.venue:hover .venue-go { color: var(--gold); }
.donde-mosaic { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: .9rem; height: 480px; }
.mosaic-tall { grid-row: 1 / 3; }
.mosaic-item { border-radius: var(--radius); overflow: hidden; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.mosaic-item:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
  .donde-grid { grid-template-columns: 1fr; }
  .donde-mosaic { height: 360px; }
}

/* ---------- contacto ---------- */
.contacto-inner { text-align: center; max-width: 640px; }
.contacto-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: .01em; margin-bottom: 1rem; text-wrap: balance; }
.contacto-sub { color: var(--cream-2); font-size: 1.05rem; margin-bottom: 2.2rem; }
.social-row { margin-top: 2.5rem; display: flex; align-items: center; justify-content: center; gap: 1.8rem; flex-wrap: wrap; }
.social-label { font-size: .75rem; letter-spacing: .2em; color: var(--cream-3); }
.social-row a { font-size: .9rem; font-weight: 400; color: var(--cream-2); position: relative; padding-block: .35rem; }
.social-row a::before { content: ""; position: absolute; inset: -10px -8px; }
.social-row a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .3s var(--ease-out); }
.social-row a:hover { color: var(--accent); }
.social-row a:hover::after { right: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem 5.5rem; background: var(--bg-2); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-made { color: var(--cream-2); font-size: .9rem; }
.footer-legal { max-width: 62ch; margin-top: .4rem; font-size: .72rem; font-weight: 400; letter-spacing: .1em; line-height: 1.8; text-transform: uppercase; color: var(--cream-3); }
.footer-rights { color: var(--cream-3); font-size: .8rem; font-weight: 400; }

/* ---------- age gate ---------- */
.age-gate {
  display: none; position: fixed; inset: 0; z-index: 1500; overflow-y: auto;
  align-items: center; justify-content: center; padding: 2rem 1.25rem;
  background: radial-gradient(60% 50% at 50% 30%, rgb(201 130 46 / .13), transparent 70%), var(--bg);
}
:where(.js):not(.age-ok) .age-gate { display: flex; }
html.js:not(.age-ok), html.js:not(.age-ok) body { overflow: hidden; }
.age-gate-inner { width: min(520px, 100%); margin-block: auto; display: flex; flex-direction: column; align-items: center; text-align: center; animation: ageIn .9s var(--ease-out) both; }
@keyframes ageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.age-logo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.age-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.age-brand { margin: 1rem 0 2.4rem; font-family: var(--font-display); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.age-title { margin: 0 0 1rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.12; text-wrap: balance; }
.age-text { max-width: 42ch; margin-bottom: 2.2rem; color: var(--cream-2); }
.age-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.age-actions .btn { min-width: 9rem; }
.age-ask { display: flex; flex-direction: column; align-items: center; }
.age-denied { display: none; flex-direction: column; align-items: center; gap: 1.8rem; outline: none; }
.age-denied-text { max-width: 26ch; font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 1.7rem); line-height: 1.3; color: var(--cream); text-wrap: balance; }
.age-gate[data-state="denied"] .age-ask { display: none; }
.age-gate[data-state="denied"] .age-denied { display: flex; }
.age-legal { max-width: 46ch; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 400; letter-spacing: .1em; line-height: 1.8; text-transform: uppercase; color: var(--cream-3); }
.age-gate .lang-toggle { margin-top: 1.6rem; }

/* ---------- whatsapp floating button ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa); color: var(--bg);
  box-shadow: 0 12px 24px -10px rgb(0 0 0 / .7);
  transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- mobile menu ---------- */
@media (max-width: 860px) {
  .nav-links.is-open {
    display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgb(var(--bg-rgb) / .74);
    backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
    padding: .6rem clamp(1.25rem, 4vw, 3rem) 1.4rem; gap: 0; border-bottom: 1px solid var(--line);
    text-align: center;
    animation: menuPanel .35s var(--ease-out) backwards;
  }
  .nav-links.is-open a {
    padding-block: 1.05rem; font-size: 1rem; letter-spacing: .1em; border-bottom: 1px solid var(--line);
    transform-origin: center; will-change: transform;
    transition: color .25s var(--ease-out), transform .3s var(--ease-out);
    animation: menuItem .5s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 60ms + 60ms);
  }
  .nav-links.is-open a:nth-child(1) { --i: 0; }
  .nav-links.is-open a:nth-child(2) { --i: 1; }
  .nav-links.is-open a:nth-child(3) { --i: 2; }
  .nav-links.is-open a:nth-child(4) { --i: 3; }
  .nav-links.is-open a:nth-child(5) { --i: 4; }
  .nav-links.is-open a::after { display: none; }
  .nav-links.is-open a:last-child { border-bottom: 0; }
  .nav-links.is-open a:active,
  .nav-links.is-open a.is-picked { color: var(--accent); transform: scale(1.07); }
  .nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-burger.is-open span:nth-child(2) { opacity: 0; }
  .nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@keyframes menuPanel { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes menuItem { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- reduced motion: keep state changes, drop travel and ambient loops ---------- */
@media (prefers-reduced-motion: reduce) {
  :where(.js) .reveal { transform: none; transition-duration: .4s; }
  .splash-mark, .hero-scroll-cue span { animation: none; }
  .age-gate-inner { animation-name: ageFade; }
  @keyframes ageFade { from { opacity: 0; } to { opacity: 1; } }
  .marquee-track { animation-duration: 680s; }
  .btn-primary:hover { transform: none; }
  .nav-links.is-open, .nav-links.is-open a { animation: none; }
  .nav-links.is-open a:active, .nav-links.is-open a.is-picked { transform: none; }
}

/* ---------- cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 150; left: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem);
  width: min(380px, calc(100vw - 1.5rem)); padding: 1.1rem 1.2rem 1.1rem;
  background: rgb(14 13 11 / .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 24px 60px -20px rgb(0 0 0 / .8);
  animation: cookieIn .5s var(--ease-out) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cookie-title { font-family: var(--font-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 .45rem; }
.cookie-text { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--cream-2); }
.cookie-actions { display: flex; gap: .6rem; margin-top: .95rem; }
.cookie-btn { flex: 1; padding: .6rem 1rem; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 500; letter-spacing: .06em; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.cookie-btn-ghost { background: transparent; color: var(--cream-2); border: 1px solid var(--line-strong); }
.cookie-btn-ghost:hover { color: var(--cream); border-color: var(--cream-2); }
.cookie-btn-primary { background: var(--accent); color: #140c04; border: 1px solid var(--accent); }
.cookie-btn-primary:hover { background: var(--gold); border-color: var(--gold); }
.cookie-manage { background: none; border: 0; padding: 0; margin-left: .6rem; font: inherit; color: var(--cream-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-manage:hover { color: var(--accent); }
@media (max-width: 560px) {
  .cookie-banner { left: .75rem; right: .75rem; width: auto; bottom: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

.cookie-more { margin: .55rem 0 0; font-size: .78rem; }
.cookie-more a { color: var(--cream-3); text-decoration: underline; text-underline-offset: 3px; }
.cookie-more a:hover { color: var(--accent); }

/* ---------- pagina legal ---------- */
.legal-body { background: var(--bg); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.legal-header .nav-brand { display: inline-flex; align-items: center; gap: .7rem; }
.legal-actions { display: flex; align-items: center; gap: 1rem; }
.legal-back { font-size: .85rem; color: var(--cream-2); }
.legal-back:hover { color: var(--accent); }
.legal-main { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.1rem, 5vw, 2rem) clamp(3rem, 6vw, 5rem); }
.legal-doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.12; margin-bottom: .6rem; }
.legal-doc h2 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin: 2.2rem 0 .7rem; color: var(--gold); letter-spacing: .04em; }
.legal-doc p, .legal-doc li { color: var(--cream-2); font-size: .98rem; line-height: 1.75; font-weight: 300; }
.legal-doc p { margin: 0 0 1rem; }
.legal-doc ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.legal-doc li { margin-bottom: .45rem; }
.legal-doc strong { color: var(--cream); font-weight: 500; }
.legal-doc .legal-meta { color: var(--cream-3); font-size: .85rem; margin-bottom: 1.6rem; }
.legal-doc code { font-size: .85em; color: var(--cream); background: rgb(243 236 221 / .08); padding: .1em .4em; border-radius: 5px; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 12px; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .88rem; }
.legal-table th, .legal-table td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); color: var(--cream-2); vertical-align: top; }
.legal-table th { font-family: var(--font-display); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.legal-table tr:last-child td { border-bottom: 0; }
.ph { color: #140c04; background: var(--accent); padding: .05em .4em; border-radius: 5px; font-weight: 500; font-size: .92em; }
[data-lang="es"] .l-en, [data-lang="en"] .l-es { display: none; }
.legal-actions .lang-toggle, .legal-back { white-space: nowrap; }
@media (max-width: 480px) {
  .legal-header { padding-inline: .9rem; gap: .5rem; }
  .legal-actions { gap: .6rem; }
  .legal-back { font-size: .78rem; }
}
@media (max-width: 480px) { .legal-header .nav-title { display: none; } }

/* ---------- controles de movimiento + objetivos tactiles ---------- */
.motion-btn {
  position: absolute; z-index: 5; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgb(10 9 8 / .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: var(--cream);
  transition: background .25s, border-color .25s, transform .25s;
}
.motion-btn:hover { background: rgb(10 9 8 / .8); border-color: var(--accent); }
.motion-btn:active { transform: scale(.94); }
.motion-btn svg { width: 16px; height: 16px; fill: currentColor; }
.motion-btn .i-play { display: none; }
.motion-btn[aria-pressed="true"] .i-pause { display: none; }
.motion-btn[aria-pressed="true"] .i-play { display: block; }
.motion-btn[hidden] { display: none; }
.motion-btn-hero { left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); }
.motion-btn-frame { right: 12px; top: 12px; }
.gallery { position: relative; }
.motion-btn-gallery { right: clamp(.75rem, 3vw, 2rem); top: clamp(.2rem, 1vw, .6rem); transform: translateY(-100%); }
.motion-btn-gallery:active { transform: translateY(-100%) scale(.94); }
.cookie-manage { display: inline-block; padding: .65rem .5rem; margin-left: 0; }
.footer-rights { line-height: 1.4; }
.social-row a { padding-block: .7rem; }
.lang-toggle { min-height: 40px; }
@media (max-width: 560px) { .motion-btn { width: 42px; height: 42px; } }
