/* Onawa Coffee — concepto «Amanecer». Tokens en :root. Por fotograma solo transform/opacity. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(fonts/bricolage-latin.woff2) format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/josefin-latin.woff2) format('woff2'); }
:root {
  --ink: #16110d;
  --ink-2: #211912;
  --ink-3: #2c2119;
  /* Fondo oscuro de toda la web: el marrón café (Sergio, 29-11). --ink queda para el texto sobre crema. */
  --dark: #3f2c1f;
  --dark-rgb: 63, 44, 31;
  --dark-2: #4a3526;
  --dark-3: #573f2d;
  --cream: #f3eadf;
  --cream-2: #e9dccb;
  --mute: rgba(243, 234, 223, .64);
  --line: rgba(243, 234, 223, .14);
  --ray: #c9a27a;
  --ray-d: #b48e68;
  --cherry: #e4573f;
  --leaf: #8faa5e;

  --f-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-label: 'Josefin Sans', ui-sans-serif, system-ui, sans-serif;
  --gut: clamp(16px, 4.5vw, 64px);
  --r: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ray); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ray);
}
.h2 {
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: .95;
  letter-spacing: -.035em;
  font-weight: 700;
  margin-top: 18px;
}
.h2 em, .line--accent { font-style: normal; color: var(--ray); font-weight: 500; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  transition: transform .5s var(--ease), background-color .3s, color .3s;
  user-select: none; -webkit-user-select: none;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn--primary { background: var(--cream); color: var(--ink); }
.btn--ghost { box-shadow: inset 0 0 0 1px rgba(243, 234, 223, .32); color: var(--cream); }
.btn--sm { height: 46px; padding: 0 20px; font-size: 15px; }
.btn--ink { background: var(--dark); color: var(--cream); }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .btn:hover svg { transform: translateX(3px); }
}

/* Rayos del logo */
.rays line { stroke: var(--ray); stroke-width: 3.2; stroke-linecap: round; }
.rays .bean path { fill: var(--cream); stroke: none; }   /* el grano del logo va en crema, como en el logo claro */
.motion .rays--intro .bean path { opacity: 0; }

/* ── INTRO ───────────────────────────────────────── */
.intro { display: none; }
.motion .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--dark);
}
.motion.intro-seen .intro { display: none; }
.motion .intro__word, .motion .intro__sub { opacity: 0; }
.motion .rays--intro line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__mark { display: grid; justify-items: center; gap: 6px; }
.rays--intro { width: min(46vw, 220px); overflow: visible; }
.intro__word { font-family: var(--f-label); font-weight: 600; font-size: clamp(40px, 9vw, 72px); letter-spacing: .2em; margin-right: -.2em; line-height: 1; margin-top: 14px; }
.intro__sub { font-family: var(--f-label); font-size: 12px; letter-spacing: .5em; text-transform: uppercase; color: var(--mute); margin-right: -.5em; }

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gut) 14px;
  transition: transform .6s var(--ease), background-color .4s;
}
.nav.is-scrolled { background: var(--dark); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--f-label); font-weight: 600; letter-spacing: .24em; font-size: 19px; }
.nav__logo img { width: 76px; height: 76px; margin: -10px 0; }
@media (max-width: 760px) { .nav__logo img { width: 64px; height: 64px; margin: -8px 0; } }
.nav__links { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(243, 234, 223, .07); box-shadow: inset 0 0 0 1px var(--line); }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .3s; }
.nav__links a:hover { background: rgba(243, 234, 223, .1); }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__cart { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 18px; border: 0; border-radius: 999px; background: var(--cream); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.nav__cart--dates { text-decoration: none; }
.nav__cart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.nav__count { min-width: 20px; height: 20px; padding: 0 6px; margin-left: -2px; border-radius: 10px; display: none; place-items: center; background: var(--cherry); color: #fff; font-size: 11px; font-weight: 700; }
.nav__count.is-on { display: grid; }
.nav__count.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.nav__burger { display: none; align-items: center; gap: 9px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(243, 234, 223, .1); box-shadow: inset 0 0 0 1px var(--line); color: var(--cream); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; position: relative; }
.nav__burger i { position: absolute; left: 15px; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease); }
.nav__burger i:nth-child(1) { transform: translateY(-3.5px); }
.nav__burger i:nth-child(2) { transform: translateY(3.5px); }
.nav__burger span { margin-left: 25px; }
.menu-open .nav__burger i:nth-child(1) { transform: rotate(45deg); }
.menu-open .nav__burger i:nth-child(2) { transform: rotate(-45deg); }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__cart span { display: none; }
  .nav__cart { padding: 0 13px; }
}

/* Menú a pantalla completa (móvil) */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--dark); color: var(--cream); display: grid; grid-template-rows: 1fr auto; padding: calc(clamp(78px, 12.5svh, 104px) + env(safe-area-inset-top)) var(--gut) calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__links { display: grid; align-content: center; }
.menu__links a { display: grid; gap: 2px; padding: clamp(6px, 2svh, 16px) 0; border-top: 1px solid var(--line); font-size: clamp(24px, min(10vw, 5.1svh), 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.menu__links a span { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; color: var(--mute); font-size: 15px; padding-top: 16px; }
.menu__ig { display: inline-flex; align-items: center; gap: 7px; color: var(--cream); }
.menu__ig svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.menu-open .nav { background: var(--dark); transform: none !important; }

/* ── HERO: escena fijada (sticky) ───────────────── */
/* Capas dentro del stage: sol/rayos 0 · foto del tostador 1 · granos 2 · textos 3 · medidor 4 */
.hero { position: relative; height: 430svh; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate; perspective: 1400px;
  --bar: 0px; /* alto de las barras del navegador cuando se ven (lvh - svh) */
}
@supports (height: 100lvh) { .hero__stage { --bar: calc(100lvh - 100svh); } }
.hero__stage > .hero__content, .hero__stage > .roastshow { grid-area: 1 / 1; }
.hero__sun {
  position: absolute; z-index: 0;
  left: 50%; bottom: -50vmax;
  width: 100vmax; height: 100vmax; margin-left: -50vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228, 120, 63, .6), rgba(201, 162, 122, .24) 45%, rgba(var(--dark-rgb), 0) 72%);
  will-change: transform, opacity;
}
.rays--hero {
  position: absolute; z-index: 0; left: 50%; top: 50%;
  width: min(120vw, 1100px); margin-left: calc(min(120vw, 1100px) / -2);
  transform-origin: 50% 91%;
  opacity: .16; overflow: visible; pointer-events: none;
  translate: 0 -35%;
}
.hero__beans { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
/* Velo suave solo en el centro, entre los granos y el texto */
.hero__veil {
  position: absolute; z-index: 2; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 38% 34% at 50% 50%, rgba(var(--dark-rgb), .6) 0%, rgba(var(--dark-rgb), .38) 45%, rgba(var(--dark-rgb), 0) 100%);
}
@media (max-width: 760px) {
  .hero__veil { bottom: var(--bar); background: radial-gradient(ellipse 72% 38% at 50% 50%, rgba(var(--dark-rgb), .74) 0%, rgba(var(--dark-rgb), .5) 45%, rgba(var(--dark-rgb), 0) 100%); }
}
.hero__content { position: relative; z-index: 3; max-width: 1100px; padding: 0 var(--gut); text-align: center; display: grid; justify-items: center; }
.hero__title {
  margin-top: 22px;
  font-size: clamp(64px, 12.5vw, 196px);
  line-height: .86; letter-spacing: -.055em; font-weight: 800;
}
.hero__title .line { display: block; }
.hero__lede { margin-top: 28px; max-width: 34ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--mute); }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Temperatura gigante en el centro durante el tueste */
.roastshow { position: relative; z-index: 3; display: grid; justify-items: center; text-align: center; pointer-events: none; opacity: 0; }
.roastshow__temp { font-size: clamp(110px, 24vw, 330px); font-weight: 800; letter-spacing: -.06em; line-height: .85; font-variant-numeric: tabular-nums; margin-top: 10px; }
.roastshow__temp span { font-size: .32em; font-weight: 600; letter-spacing: -.02em; vertical-align: top; margin-left: .06em; color: var(--ray); }
.roastshow__stage { margin-top: 14px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; color: var(--ray); }

/* Indicador de scroll: solo al principio, el medidor entra cuando empieza el tueste */
.hero__cue {
  position: absolute; z-index: 4; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom) + var(--bar));
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-family: var(--f-label); font-weight: 600; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--mute); white-space: nowrap; margin-right: -.3em;
}
.hero__cue i { position: relative; width: 1px; height: 38px; background: rgba(243, 234, 223, .18); overflow: hidden; margin-right: .3em; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--ray); animation: cue 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes cue { from { transform: translateY(-14px); } to { transform: translateY(38px); } }
.motion .roastmeter { opacity: 0; }

/* Medidor: ancho fijo, no cambia con el texto */
.roastmeter {
  position: absolute; z-index: 4; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom) + var(--bar));
  width: min(calc(100vw - 32px), 420px); margin-left: calc(min(calc(100vw - 32px), 420px) / -2);
  padding: 14px 18px 16px; border-radius: 20px;
  background: rgba(var(--dark-rgb), .82);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 122, .4), 0 20px 50px -20px rgba(0, 0, 0, .8);
  display: grid; gap: 10px;
}
.roastmeter__row { display: flex; justify-content: space-between; align-items: baseline; }
.roastmeter__label { font-family: var(--f-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 11px; color: var(--ray); }
.roastmeter__temp { font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.roastmeter__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); font-size: 12px; color: rgba(243, 234, 223, .4); text-align: center; }
.roastmeter__steps li { transition: color .4s; }
.roastmeter__steps li.on { color: var(--cream); font-weight: 600; }
.roastmeter__bar { height: 4px; border-radius: 4px; background: rgba(243, 234, 223, .12); overflow: hidden; }
.roastmeter__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--leaf), var(--ray) 50%, var(--cherry)); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 760px) {
  .hero__ctas { flex-direction: column; width: 100%; max-width: 340px; }
  .hero__ctas .btn { justify-content: center; }
  .hero__content { margin-top: calc(-24px - var(--bar)); }
}

/* Foto del tostador: sube y se abre a pantalla completa al final de la escena */
.window__frame {
  position: absolute; z-index: 1; inset: 0;
  border-radius: var(--r); overflow: hidden;
  transform-origin: 50% 50%;
  will-change: transform;
  background: var(--dark-2);
}
.motion .window__frame { opacity: 0; }
.window__frame picture, .window__frame img { width: 100%; height: 100%; }
.window__frame img { object-fit: cover; object-position: 50% 88%; will-change: transform; }  /* más tostadora y menos pared (Sergio, 29-11) */
.window__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--dark-rgb), .1) 30%, rgba(var(--dark-rgb), .85)); }
.window__copy { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(32px, 8vh, 80px); display: grid; gap: 14px; max-width: 760px; }
.window__title { font-size: clamp(38px, 6vw, 92px); line-height: .95; letter-spacing: -.04em; font-weight: 700; }
.window__text { max-width: 44ch; color: var(--mute); }
@media (max-width: 760px) {
  .window__copy { bottom: calc(92px + env(safe-area-inset-bottom) + var(--bar, 0px)); }
  /* la foto es clara justo donde cae el texto: más sombra detrás y letra más clara (Sergio, 29-11) */
  .window__shade { background: linear-gradient(180deg, rgba(var(--dark-rgb), .06) 18%, rgba(var(--dark-rgb), .62) 46%, rgba(var(--dark-rgb), .9) 72%, rgba(var(--dark-rgb), .96)); }
  .window__copy .eyebrow { color: #e8c9a3; text-shadow: 0 1px 12px rgba(22, 17, 13, .8); }
  .window__text { color: rgba(243, 234, 223, .92); text-shadow: 0 1px 14px rgba(22, 17, 13, .7); }
}

/* Sin movimiento: hero normal y foto debajo */
html:not(.motion) .hero { height: auto; }
html:not(.motion) .hero__stage { position: relative; height: auto; min-height: 100svh; padding: 120px 0 200px; }
html:not(.motion) .window__frame { position: relative; transform: none; height: 80svh; margin: 0 var(--gut); grid-area: auto; width: calc(100% - var(--gut) * 2); }
html:not(.motion) .roastshow, html:not(.motion) .hero__beans, html:not(.motion) .hero__cue, html:not(.motion) .roastmeter { display: none; }
html:not(.motion) .nav { position: absolute; }
html:not(.motion) .window__frame { margin-top: 64px; }
html:not(.motion) .hero__content { margin-top: 0; }

/* ── MARQUEE ─────────────────────────────────────── */
.marquee { background: var(--ray); color: var(--ink); overflow: hidden; padding: 26px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.marquee__track span { font-size: clamp(34px, 5vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.marquee__track i { width: 14px; height: 14px; border-radius: 50%; background: var(--dark); flex: none; }

/* ── MANIFIESTO ──────────────────────────────────── */
.manifesto { padding: clamp(100px, 18vh, 200px) var(--gut); max-width: 1320px; margin: 0 auto; }
.manifesto__text { margin-top: 28px; font-size: clamp(30px, 4.6vw, 70px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.manifesto__text .w { display: inline-block; opacity: .16; }
html:not(.motion) .manifesto__text .w { opacity: 1; }

/* ── Piezas compartidas con la ficha ─────────────── */
.notes { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.notes li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; background: rgba(243, 234, 223, .08); font-size: 14px; font-weight: 500; white-space: nowrap; }
.notes li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(243, 234, 223, .07); box-shadow: inset 0 0 0 1px var(--line); max-width: 360px; }
.seg button { position: relative; z-index: 1; height: 46px; border: 0; background: none; color: var(--cream); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: color .4s; border-radius: 999px; }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--cream); transition: transform .55s var(--ease); }
.seg[data-sel="1"] .seg__thumb { transform: translateX(100%); }
.seg--sm { width: 156px; flex: none; }
.seg--sm button { height: 46px; font-size: 14px; }

/* ── ORÍGENES: escaparate 3D a pantalla completa ─── */
/* Capas del pin: fondos 0 · palabra gigante 1 · bolsas y objetos (canvas) 2 · textos 3.
   La bolsa va en el centro; el texto, abajo a los lados; la órbita de bolsas, arriba. */
.show { position: relative; background: var(--dark); }
.show__pin {
  --zone: min(78svh, 46vw); /* ancho del centro: la bolsa y sus objetos */
  position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--zone) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto;
  column-gap: 20px; padding: clamp(84px, 11svh, 104px) var(--gut) clamp(16px, 2.6svh, 26px);
}
.show.is-sticky { height: 440svh; }
.show.is-sticky .show__pin { position: sticky; top: 0; }
.show__bgs, .show__bg { position: absolute; inset: 0; }
.show__bgs { z-index: 0; }
.show__bg { opacity: 0; transition: opacity 1.1s var(--ease); background: var(--t); overflow: hidden; }
.show__bg.is-on { opacity: 1; }
.show__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transform: scale(1.16); transition: transform 2.6s var(--ease); }
.show__bg.is-on img { transform: scale(1.03); }
/* luz del color del origen detrás de la bolsa */
.show__bg::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 47%; width: 104vmin; height: 104vmin; margin: -52vmin 0 0 -52vmin; border-radius: 50%; background: radial-gradient(closest-side, var(--g), var(--g0)); }
.show__bg::after { content: ""; position: absolute; z-index: 2; inset: 0; background:
  linear-gradient(180deg, var(--dark) 0%, rgba(var(--dark-rgb), 0) 20%, rgba(var(--dark-rgb), 0) 52%, rgba(var(--dark-rgb), .5) 78%, var(--dark) 100%),
  linear-gradient(90deg, rgba(var(--dark-rgb), .7) 0%, rgba(var(--dark-rgb), 0) 32%, rgba(var(--dark-rgb), 0) 68%, rgba(var(--dark-rgb), .7) 100%); }
/* Palabra gigante: el país, de lado a lado, detrás de la bolsa */
.show__giant { position: absolute; z-index: 1; left: 0; right: 0; top: 37%; margin: 0; transform: translateY(-50%); display: flex; justify-content: center; pointer-events: none; white-space: nowrap; font-size: min(24vw, calc(150vw / var(--n, 9)), 27svh); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--gw, rgba(243, 234, 223, .2)); }
.show__giant span { display: inline-block; }
.show__canvas { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); }
.is-3d .show__canvas { opacity: 1; }
.show__head, .show__info, .show__side, .show__foot, .show__flavors { position: relative; z-index: 3; }
.show__head { grid-column: 1; grid-row: 1; }
.show__head .h2 { font-size: clamp(24px, 2.4vw, 38px); margin-top: 10px; line-height: 1; }
.show__flavors { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; max-width: 340px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.show__flavors span { flex-basis: 100%; text-align: right; font-family: var(--f-label); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.show__flavors button { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(var(--dark-rgb), .5); box-shadow: inset 0 0 0 1px rgba(243, 234, 223, .22); color: var(--cream); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background-color .35s, color .35s, box-shadow .35s; }
.show__flavors button[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: none; }
@media (hover: hover) { .show__flavors button:hover { background: rgba(243, 234, 223, .16); } .show__flavors button[aria-pressed="true"]:hover { background: var(--cream); } }
.show__info { grid-column: 1; grid-row: 3; align-self: end; max-width: 420px; padding-bottom: clamp(14px, 3svh, 30px); }
.show__count { font-family: var(--f-label); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.show__count b { color: var(--cream); font-weight: 600; }
.show__count span { display: block; margin-top: 6px; color: var(--ray); line-height: 1.5; }
.show__name { margin-top: 12px; font-size: clamp(38px, 3.9vw, 78px); line-height: .9; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; }
/* Aviso de que se desliza (solo táctil, hasta el primer cambio) */
.show__swipe { display: none; position: absolute; right: 0; top: -2px; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(243, 234, 223, .1); font-size: 12px; font-weight: 600; color: var(--cream); transition: opacity .5s; }
.show__swipe svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.show__swipe.is-gone { opacity: 0; }
.show__lede { margin-top: 16px; max-width: 34ch; color: rgba(243, 234, 223, .8); }
.show__info .notes { margin-top: 16px; }
.show__side { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; width: min(100%, 372px); padding-bottom: clamp(14px, 3svh, 30px); }
.show__specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.show__specs div { min-width: 0; }
.show__specs dt { font-family: var(--f-label); font-weight: 600; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.show__specs dd { margin: 3px 0 0; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.show__buy { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.show__buy .seg { width: 100%; max-width: none; }
.show__buy .btn { min-width: 0; padding: 0 14px; justify-content: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.show__more { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; font-weight: 600; font-size: 15px; }
.show__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
@media (hover: hover) { .show__more:hover svg { transform: translateX(3px); } }
.show__foot { grid-column: 1 / -1; grid-row: 4; display: flex; align-items: flex-end; gap: 24px; }
.show__arrows { display: flex; gap: 8px; flex: none; }
.show__arrows button { width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(var(--dark-rgb), .5); box-shadow: inset 0 0 0 1px rgba(243, 234, 223, .26); color: var(--cream); cursor: pointer; display: grid; place-items: center; transition: background-color .35s, color .35s, transform .35s var(--ease), opacity .35s; }
.show__arrows button:disabled { opacity: .35; cursor: default; }
/* Línea de tiempo única (solo móvil y tablet): se llena (--show-ms, lo pone main.js) y pasa al siguiente café */
.show__bar { display: none; position: relative; flex: 1; min-width: 0; height: 2px; border-radius: 2px; background: rgba(243, 234, 223, .2); overflow: hidden; }
.show__bar i { position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.show.is-timing .show__bar i { animation: showTimer var(--show-ms, 5s) linear both; }
.show__arrows svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.show__arrows button:active { transform: scale(.94); }
@media (hover: hover) { .show__arrows button:not(:disabled):hover { background: var(--cream); color: var(--ink); } }
/* La lista de cafés: con 3D es el carril de abajo; sin 3D, una rejilla de tarjetas */
.show__list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }  /* tantas columnas como cafés */
.show__list a { display: grid; gap: 3px; padding: 12px 10px 0 0; border-top: 1px solid rgba(243, 234, 223, .2); color: rgba(243, 234, 223, .5); transition: color .4s, border-color .4s; position: relative; }
.show__list a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--cream); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; transition: opacity .3s, transform 0s .3s; }
.show__list a.is-on { color: var(--cream); }
.show__list a.is-on::before { transform: scaleX(1); opacity: 1; transition: transform .7s var(--ease), opacity 0s; }
.show__list a.is-dim { opacity: .35; }
.show__list img, .show__li-notes, .show__li-price { display: none; }
.show__li-country { font-family: var(--f-label); font-weight: 600; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show__list h3 { font-size: 15px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .show__list a:hover { color: var(--cream); } }
/* Pantallas bajas o estrechas: menos texto a los lados para que no pise la órbita de bolsas */
@media (max-height: 800px) and (min-width: 1025px) { .show__lede, .show__specs div:nth-child(n+3) { display: none; } }
@media (max-width: 1240px) and (min-width: 1025px) {
  .show__list h3 { font-size: 13px; } .show__specs dd { font-size: 15px; } .show__lede, .show__specs div:nth-child(n+3) { display: none; }
  .show__flavors button { height: 32px; padding: 0 11px; font-size: 12.5px; }
}
@media (max-width: 1024px) {
  /* Móvil y tablet: todo apilado. La bolsa ocupa el hueco entre los sabores y el texto. */
  /* Toda la pantalla (Sergio, 29-11): mide la pantalla entera, con la barra del navegador ya recogida (lvh), y arriba no
     guarda sitio para el menú, que al bajar está escondido. Así la bolsa es bastante más grande. */
  .show__pin { height: 100vh; height: 100lvh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; padding: calc(22px + env(safe-area-inset-top)) var(--gut) calc(14px + env(safe-area-inset-bottom)); }
  .show__head .eyebrow { display: none; }
  .show__head .h2 { font-size: 23px; margin: 0; letter-spacing: -.03em; }
  .show__head .h2 br { display: none; }
  .show__flavors { grid-column: 1; grid-row: 2; justify-self: stretch; max-width: none; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 10px calc(-1 * var(--gut)) 0; padding: 2px var(--gut); scrollbar-width: none; }
  .show__flavors::-webkit-scrollbar { display: none; }
  .show__flavors span { display: none; }
  .show__flavors button { flex: none; height: 40px; }
  .show__info { grid-row: 4; align-self: end; max-width: none; padding: 0; }
  .show__name { font-size: clamp(34px, 10.5vw, 58px); margin-top: 8px; }
  .show__lede, .show__specs { display: none; }
  .show__count span { display: inline; margin: 0 0 0 12px; }
  .show__count { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .show__info .notes { margin: 12px calc(-1 * var(--gut)) 0; padding: 0 var(--gut); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .show__info .notes::-webkit-scrollbar { display: none; }
  /* las filas que se deslizan de lado se funden a la derecha: se ve que siguen */
  .show__info .notes, .show__flavors { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); padding-right: 44px; }
  .show__info .notes li { height: 30px; font-size: 13px; padding: 0 11px 0 8px; }
  .show__side { grid-column: 1; grid-row: 5; justify-self: stretch; width: auto; padding: 0; }
  .show__buy { margin-top: 14px; grid-template-columns: 132px minmax(0, 1fr); gap: 8px 10px; }
  .show__buy .btn { padding: 0 12px; max-width: 420px; }
  .show__more { grid-column: 1 / -1; }
  .show__more { height: 30px; font-size: 14px; }
  .show__foot { grid-row: 6; margin-top: 0; }
  /* Móvil y tablet (Sergio, 26-11): flecha, una sola línea de tiempo entera y flecha. La lista queda para lectores de pantalla. */
  .show__foot { align-items: center; gap: 14px; margin-top: 6px; }
  .show__arrows { display: contents; }
  .show__arrows button { width: 46px; height: 46px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .show__arrows [data-s-prev] { order: 0; }
  .show__bar { display: block; order: 1; }
  .show__arrows [data-s-next] { order: 2; }
  .show__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .show__giant { top: 36%; font-size: min(30vw, calc(170vw / var(--n, 9))); }
  .show__swipe { display: inline-flex; }
  .show__bg::before { top: 40%; }
  .show__bg::after { background:
    linear-gradient(180deg, var(--dark) 0%, rgba(var(--dark-rgb), .1) 24%, rgba(var(--dark-rgb), 0) 50%, rgba(var(--dark-rgb), .86) 70%, var(--dark) 100%); }
}
/* Sin movimiento o sin WebGL: rejilla de tarjetas */
html:not(.motion) .show__pin, .show.no-3d .show__pin { height: auto; display: block; padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(60px, 10vh, 120px); }
html:not(.motion) .show__canvas, html:not(.motion) .show__giant, html:not(.motion) .show__info, html:not(.motion) .show__side, html:not(.motion) .show__arrows, html:not(.motion) .show__bar, html:not(.motion) .show__flavors, html:not(.motion) .show__bgs,
.show.no-3d .show__canvas, .show.no-3d .show__giant, .show.no-3d .show__info, .show.no-3d .show__side, .show.no-3d .show__arrows, .show.no-3d .show__bar, .show.no-3d .show__flavors, .show.no-3d .show__bgs { display: none; }
html:not(.motion) .show__head .h2, .show.no-3d .show__head .h2 { font-size: clamp(36px, 5.2vw, 80px); }
html:not(.motion) .show__foot, .show.no-3d .show__foot { display: block; margin-top: 40px; }
html:not(.motion) .show__list, .show.no-3d .show__list { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
html:not(.motion) .show__list a, .show.no-3d .show__list a { border: 0; padding: 0 0 6px; color: var(--cream); height: auto; }
html:not(.motion) .show__list img, .show.no-3d .show__list img { display: block; width: 100%; height: auto; border-radius: 16px; margin-bottom: 10px; }
html:not(.motion) .show__list span, html:not(.motion) .show__list h3, .show.no-3d .show__list span, .show.no-3d .show__list h3 { display: block; white-space: normal; }
html:not(.motion) .show__list h3, .show.no-3d .show__list h3 { font-size: 22px; letter-spacing: -.03em; }
html:not(.motion) .show__li-notes, .show.no-3d .show__li-notes { color: var(--mute); font-size: 14px; }
html:not(.motion) .show__li-price, .show.no-3d .show__li-price { color: var(--ray); font-weight: 600; }
.show.no-3d { height: auto !important; }
@media (max-width: 760px) { html:not(.motion) .show__list, .show.no-3d .show__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .show__giant { display: none; } .show__info:has(.show__swipe:not(.is-gone)) .show__count { padding-right: 96px; } }

/* ── PROCESO ─────────────────────────────────────── */
.process { padding: clamp(100px, 16vh, 180px) var(--gut); }
.process__head { max-width: 1320px; margin: 0 auto 60px; }
.process__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 100px); }
.process__media { position: relative; }
.process__stack { position: sticky; top: 10vh; height: 80vh; border-radius: var(--r); overflow: hidden; background: var(--dark-2); }
.process__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.1s var(--ease), transform 1.7s var(--ease); z-index: 0; }
.process__stack img.is-prev { opacity: 1; clip-path: inset(0); transform: scale(1); transition: none; z-index: 1; }
.process__stack img.is-on { opacity: 1; clip-path: inset(0); transform: scale(1); z-index: 2; }
.process__stack::after { content: ""; position: absolute; z-index: 3; inset: 50% 0 0; background: linear-gradient(180deg, rgba(var(--dark-rgb), 0), rgba(var(--dark-rgb), .7)); pointer-events: none; }
.process__num { position: absolute; z-index: 4; left: 28px; bottom: 20px; display: flex; align-items: baseline; gap: 10px; font-family: var(--f-label); color: var(--cream); }
.process__num b { font-family: var(--f-display); font-size: clamp(72px, 8vw, 132px); font-weight: 800; letter-spacing: -.06em; line-height: .8; font-variant-numeric: tabular-nums; }
.process__num span { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--mute); }
.process__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 76vh; display: grid; align-content: center; gap: 14px; border-top: 1px solid var(--line); padding: 40px 0; opacity: .3; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step__img { display: none; }
.step__n { font-family: var(--f-label); font-weight: 600; letter-spacing: .2em; color: var(--ray); font-size: 13px; }
.step h3 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.step p { color: var(--mute); max-width: 42ch; font-size: 18px; }
html:not(.motion) .step { opacity: 1; min-height: 0; padding: 28px 0 44px; }
html:not(.motion) .process__grid { grid-template-columns: 1fr; max-width: 760px; }
html:not(.motion) .process__media { display: none; }
html:not(.motion) .step__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; margin-bottom: 10px; }
/* Tablet en vertical: la foto no ocupa toda la altura (salía una tira estrecha con media cara) */
@media (min-width: 861px) and (orientation: portrait) {
  .process__stack { height: auto; aspect-ratio: 4 / 5; top: 18vh; }
  .step { min-height: 52vh; }
}
@media (max-width: 860px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__media { display: none; }
  .step { min-height: 0; opacity: 1; padding: 28px 0 44px; }
  .step__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; margin-bottom: 10px; }
  /* las fotos con gente van más altas y encuadradas arriba: antes se cortaba la cabeza (David en la tolva, la cata) */
  .step__img[src*="p-tolva"], .step__img[src*="p-quality"], .step__img[src*="p-cata"], .step__img[src*="p-envasado"] { aspect-ratio: 1 / 1; }
}
.step__img[src*="p-tolva"], [data-step-img][src*="p-tolva"] { object-position: 50% 10%; }
.step__img[src*="p-quality"], [data-step-img][src*="p-quality"] { object-position: 50% 26%; }
.step__img[src*="p-cata"], [data-step-img][src*="p-cata"] { object-position: 50% 100%; }

/* ── PACKS (sección clara) ───────────────────────── */
.packs { background: var(--cream); color: var(--ink); padding: clamp(100px, 16vh, 180px) var(--gut) clamp(56px, 9vh, 110px); border-radius: 36px 36px 0 0; position: relative; z-index: 1; }
.packs .eyebrow { color: var(--ray-d); }
.packs .h2 em { color: var(--ray-d); }
.packs__head { max-width: 1320px; margin: 0 auto 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px 48px; align-items: end; }
.packs__lede { color: rgba(22, 17, 13, .7); max-width: 40ch; padding-bottom: 8px; }
.packs__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.pack { display: grid; grid-template-rows: auto 1fr; gap: 20px; perspective: 1100px; }
.pack__img { position: relative; aspect-ratio: 4 / 4.7; border-radius: var(--r); overflow: hidden; background: var(--cream-2); will-change: transform; }
.pack__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease), opacity .8s var(--ease); }
/* Con 3D: las bolsas del pack sobre fondo oscuro; la foto queda debajo, oculta */
.pack__3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease), scale 1.2s var(--ease); }
.pack__img.is-3d { background: radial-gradient(78% 60% at 50% 46%, #3b2718 0%, #24170e 58%, #1a110a 100%); }
.pack__img.is-3d .pack__3d { opacity: 1; }
.pack__img.is-3d img { opacity: 0; }
@media (hover: hover) { .pack:hover .pack__3d { scale: 1.04; } }
.pack__n { z-index: 1; position: absolute; left: 14px; top: 14px; height: 34px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.pack__body { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-content: start; align-items: baseline; }
.pack h3 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.04em; line-height: 1; font-weight: 700; }
.pack__price { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pack__desc { grid-column: 1 / -1; color: rgba(22, 17, 13, .66); max-width: 34ch; }
.pack__body .btn { grid-column: 1 / -1; justify-self: start; margin-top: 12px; background: var(--dark); color: var(--cream); }
@media (hover: hover) {
  .pack:hover .pack__img img { scale: 1.05; }
}
.perks { list-style: none; padding: 0; margin: 64px auto 0; max-width: 1320px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid rgba(22, 17, 13, .14); padding-top: 28px; }
.perks li { display: grid; gap: 2px; align-content: start; }
.perks b { font-size: 20px; letter-spacing: -.02em; }
.perks span { color: rgba(22, 17, 13, .6); font-size: 15px; }
@media (max-width: 960px) {
  .packs__head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .packs__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 360px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 10px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .packs__grid::-webkit-scrollbar { display: none; }
  .pack { scroll-snap-align: start; }
  .perks { grid-template-columns: 1fr 1fr; row-gap: 24px; margin-top: 44px; }
  .packs { border-radius: 28px 28px 0 0; }
}

/* ── RAIL (experiencias) ─────────────────────────── */
.rail { background: var(--cream); color: var(--ink); position: relative; z-index: 1; }
.rail__pin { min-height: 100svh; display: grid; align-content: center; gap: 44px; padding: 80px 0; overflow: hidden; }
.rail__head { padding: 0 var(--gut); }
.rail .eyebrow, .rail .h2 em { color: var(--ray-d); }
.rail__track { display: flex; gap: 20px; padding: 0 var(--gut); width: max-content; }
.xp { width: clamp(270px, 28vw, 400px); display: grid; gap: 8px; align-content: start; }
.xp__img { aspect-ratio: 3 / 3.6; border-radius: 22px; overflow: hidden; margin-bottom: 10px; background: var(--cream-2); }
.xp__img img { width: 118%; max-width: none; height: 100%; object-fit: cover; margin-left: -9%; }
@media (min-width: 761px) {
  .rail__track, .xp__img img { will-change: transform; }
  /* La escena fijada mide una pantalla: la foto se ajusta al alto para que el texto quepa debajo */
  .rail__pin { height: 100svh; min-height: 0; padding: clamp(72px, 11svh, 110px) 0 clamp(24px, 5svh, 56px); gap: clamp(20px, 4svh, 44px); align-content: center; }
  .rail .h2 { font-size: clamp(36px, min(5.4vw, 8svh), 84px); }
  .xp { width: clamp(260px, 24vw, 360px); }
  .xp__img { aspect-ratio: auto; height: clamp(180px, 40svh, 440px); }
}
.xp__price { font-family: var(--f-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--ray-d); }
.xp h3 { font-size: 28px; letter-spacing: -.03em; line-height: 1.05; font-weight: 700; }
.xp p:not(.xp__price) { color: rgba(22, 17, 13, .66); }
.xp a { font-weight: 600; margin-top: 6px; }
@media (max-width: 760px) {
  .rail__pin { min-height: 0; padding: 40px 0 90px; }
  .rail__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 6px; }
  .rail__track::-webkit-scrollbar { display: none; }
  .xp { width: 78vw; flex: none; scroll-snap-align: start; }
  .xp__img img { width: 100%; margin-left: 0; }
}

/* ── VISÍTANOS ───────────────────────────────────── */
.visit { background: var(--cream); color: var(--ink); padding: 40px var(--gut) clamp(100px, 16vh, 160px); position: relative; z-index: 1; }
.visit > header { max-width: 1320px; margin: 0 auto 44px; }
.visit .eyebrow, .visit .h2 em { color: var(--ray-d); }
.visit__wrap { max-width: 1320px; margin: 0 auto; display: grid; gap: 16px; }
.place__kind { font-family: var(--f-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 11px; color: var(--ray-d); }
.place__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 6px; }
.place__go svg, .btn--ink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
/* El tostador: foto a un lado, texto sobre oscuro */
.roaster { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: clamp(340px, 34vw, 480px); border-radius: var(--r); overflow: hidden; background: var(--dark); color: var(--cream); }
.roaster__img { position: relative; overflow: hidden; }
.roaster__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.roaster__body { display: grid; gap: 12px; align-content: center; padding: clamp(28px, 4.4vw, 64px); }
.roaster .place__kind { color: var(--ray); }
.roaster h3 { font-size: clamp(32px, 3.8vw, 56px); letter-spacing: -.04em; line-height: .98; }
.roaster p:not(.place__kind) { color: var(--mute); }
.roaster__note { max-width: 34ch; }
@media (hover: hover) { .roaster:hover .roaster__img img { scale: 1.04; } .roaster:hover .place__go svg, .btn--ink:hover svg { transform: translateX(3px); } }
/* Las cinco cafeterías Veintiuno */
.v21__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin: clamp(40px, 6vw, 72px) 0 12px; }
.v21__title { margin-top: 10px; font-size: clamp(26px, 3vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; max-width: 20ch; }
.v21__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.shop { display: grid; gap: 6px; align-content: start; }
.shop__img { aspect-ratio: 4 / 4.6; border-radius: 20px; overflow: hidden; background: var(--cream-2); margin-bottom: 8px; }
.shop__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.shop h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.03em; line-height: 1.05; }
a.shop p { color: rgba(22, 17, 13, .66); font-size: 14.5px; }  /* solo las tarjetas de Veintiuno de la portada: sin la «a» encogía los párrafos de /tienda/ (main.shop) */
.shop__hours { font-size: 13px !important; }
@media (hover: hover) { .shop:hover .shop__img img { scale: 1.05; } }
@media (max-width: 1000px) {
  .v21__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 280px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 8px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .v21__row::-webkit-scrollbar { display: none; }
  .shop { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .roaster { grid-template-columns: 1fr; min-height: 0; }
  .roaster__img { aspect-ratio: 16 / 11; }
}

/* ── CIERRE ──────────────────────────────────────── */
.closing { background: var(--cream); padding: 0 var(--gut) calc(var(--gut) + 36px); position: relative; z-index: 1; }
.closing__frame { position: relative; height: min(88svh, 820px); border-radius: var(--r); overflow: hidden; background: var(--dark); will-change: transform; }
.closing__frame picture { display: block; width: 100%; height: 100%; }
.closing__frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.closing__beans { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.closing__shade { position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 70%, rgba(var(--dark-rgb), .45), rgba(var(--dark-rgb), .85)); }
@media (max-width: 760px) { .closing__shade { background: rgba(var(--dark-rgb), .76); } }
.closing__copy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 28px; padding: var(--gut); color: var(--cream); }
.rays--close { width: min(60vw, 280px); overflow: visible; margin-bottom: -10px; }
.closing__title { font-size: clamp(54px, 10vw, 160px); line-height: .88; letter-spacing: -.055em; font-weight: 800; }

/* ── FOOTER ──────────────────────────────────────── */
.foot { background: var(--dark); color: var(--cream); position: relative; z-index: 2; margin-top: -36px; border-radius: 36px 36px 0 0; padding: clamp(56px, 8vw, 110px) var(--gut) 0; overflow: hidden; }
.foot__top { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px clamp(32px, 6vw, 110px); align-items: start; }
.foot__brand { display: grid; gap: 14px; max-width: 30ch; color: var(--mute); }
.foot__brand img { width: 96px; height: 96px; margin: -12px 0 0 -12px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 28px 24px; }
.foot__cols div { display: grid; gap: 8px; align-content: start; }
.foot__h { font-family: var(--f-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 11px; color: var(--ray); margin-bottom: 6px; }
.foot__cols a { color: rgba(243, 234, 223, .82); transition: color .3s; overflow-wrap: break-word; }
.foot__cols a:hover { color: var(--ray); }
/* El nombre de lado a lado, recortado un poco por abajo */
.foot__word { margin: clamp(8px, 2vw, 30px) 0 -0.19em; display: flex; justify-content: space-between; font-family: var(--f-label); font-weight: 600; font-size: calc((100vw - var(--gut) * 2) * .232); line-height: 1.04; user-select: none; -webkit-user-select: none; }
.foot__word span { display: block; background: linear-gradient(180deg, #d9b48c 8%, rgba(201, 162, 122, .16) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; will-change: transform; }
.foot__legal { max-width: 1320px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) 0 0; font-size: 12.5px; color: rgba(243, 234, 223, .6); }
.foot__legal > a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243, 234, 223, .4); }
.foot__demo { display: inline-block; margin-top: 6px; color: rgba(243, 234, 223, .42); }
.foot__demo a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1180px) { .foot__cols { grid-template-columns: repeat(2, auto); } }
@media (max-width: 900px) { .foot__top { grid-template-columns: 1fr; } .foot__cols { grid-template-columns: repeat(4, auto); } }
@media (forced-colors: active) { .foot__word span { color: CanvasText; background: none; } }
@media (max-width: 760px) {
  .foot { border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .foot__top { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: minmax(min-content, 1fr) minmax(0, 1fr); gap: 28px 16px; }
  .foot__legal { padding: 34px 0 0; }
  .foot__word { margin-top: 30px; }
}

/* ── BARRA DE COMPRA (móvil) ─────────────────────── */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 10px 10px 10px 18px; border-radius: 999px;
    background: var(--dark); color: var(--cream);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 122, .3), 0 18px 40px -12px rgba(0, 0, 0, .6);
    transform: translateY(calc(100% + 60px + env(safe-area-inset-bottom))); visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s;
  }
  .buybar.is-on { transform: none; visibility: visible; transition: transform .7s var(--ease), visibility 0s; }
  .buybar div { display: grid; line-height: 1.2; }
  .buybar b { font-size: 15px; }
  .buybar div span { font-size: 12px; color: var(--mute); }
  .buybar .btn { height: 44px; white-space: nowrap; background: var(--cream); color: var(--ink); }
}

/* ── CARRITO ─────────────────────────────────────── */
.cart { position: fixed; inset: 0; z-index: 80; }
.cart[hidden] { display: none; }
.cart__scrim { position: absolute; inset: 0; background: rgba(10, 8, 6, .55); }
.cart__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--cream); color: var(--ink); padding: calc(22px + env(safe-area-inset-top)) 24px calc(22px + env(safe-area-inset-bottom)); box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .5); }
.cart__head { display: flex; justify-content: space-between; align-items: center; }
.cart__title { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.035em; }
.cart__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(22, 17, 13, .06); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.ship { margin-top: 18px; display: grid; gap: 8px; font-size: 14.5px; color: rgba(22, 17, 13, .74); }
.ship[hidden] { display: none; }
.ship b { color: var(--ink); }
.ship__bar { height: 5px; border-radius: 5px; background: rgba(22, 17, 13, .1); overflow: hidden; }
.ship__bar i { display: block; height: 100%; background: var(--ray-d); transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s var(--ease), background-color .4s; }
.ship.is-free .ship__bar i { background: #3f7a3a; }
.cart__items { list-style: none; padding: 0; margin: 18px 0 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 12px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: #fff; }
.item img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--cream-2); }
.item b { display: block; font-size: 16px; letter-spacing: -.02em; line-height: 1.2; }
.item small { display: block; color: rgba(22, 17, 13, .6); font-size: 13px; }
.item__grind { display: block; margin-top: 6px; }
.item__grind select { height: 32px; max-width: 100%; padding: 0 28px 0 10px; border: 0; border-radius: 10px; background: rgba(22, 17, 13, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2316110d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 11px; color: var(--ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; cursor: pointer; }
@media (pointer: fine) { .item__grind select { font-size: 13.5px; } }
.item__qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.item__qty button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(22, 17, 13, .07); cursor: pointer; font-size: 16px; color: var(--ink); }
.item__price { font-weight: 700; font-variant-numeric: tabular-nums; align-self: start; padding-top: 2px; }
.cart__empty { margin-top: 30px; color: rgba(22, 17, 13, .6); flex: 1; display: grid; gap: 16px; align-content: start; justify-items: start; }
.cart__empty[hidden], .cart__foot[hidden], .upsell[hidden] { display: none; }
.cart__browse { background: var(--dark); color: var(--cream); }
.upsell { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border: 0; border-radius: 18px; font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background-color .3s; }
.upsell img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.upsell b { font-weight: 600; margin-right: 4px; }
.upsell em { font-style: normal; font-weight: 700; white-space: nowrap; }
.upsell--cart { margin: 14px 0 0; background: #fff; color: rgba(22, 17, 13, .66); }
.upsell--cart b { color: var(--ink); }
.upsell--cart em { color: var(--ray-d); }
.cart__foot { margin-top: 16px; border-top: 1px solid rgba(22, 17, 13, .12); padding-top: 16px; display: grid; gap: 12px; }
.cart__sub { display: flex; justify-content: space-between; font-size: 18px; }
.cart__sub b { font-size: 22px; font-variant-numeric: tabular-nums; }
.cart__go { justify-content: center; background: var(--dark) !important; color: var(--cream) !important; }
.cart__pay { text-align: center; font-size: 12px; color: rgba(22, 17, 13, .55); }
.toast { position: fixed; z-index: 95; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); width: max-content; max-width: min(92vw, 460px); padding: 14px 20px; border-radius: 18px; background: var(--dark); color: var(--cream); font-size: 14px; text-align: center; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(201, 162, 122, .3); transform: translate(-50%, 220%); transition: transform .6s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }
.fly { position: fixed; z-index: 90; left: 0; top: 0; width: 64px; border-radius: 8px; pointer-events: none; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); will-change: transform; }
.cart-open .buybar { transform: translateY(calc(100% + 60px + env(safe-area-inset-bottom))) !important; }
@media (max-width: 860px) { .cart__panel { top: auto; width: 100%; max-height: 88svh; border-radius: 26px 26px 0 0; } }

/* ── Estados iniciales con movimiento ────────────── */
/* La entrada del hero solo en escritorio: en el móvil la primera pantalla sale ya pintada. */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) { .motion [data-load] { opacity: 0; } }
.motion [data-reveal] { opacity: 0; transform: translateY(36px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── VISÍTANOS (versión final): la visita y los cursos del tostador ── */
.visit__more { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.xpv { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: var(--r); overflow: hidden; background: var(--cream-2); }
.xpv__img { position: relative; min-height: 280px; }
.xpv__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xpv__body { display: grid; gap: 10px; align-content: center; padding: clamp(22px, 3vw, 40px); }
.xpv h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.035em; line-height: 1.02; }
.xpv p:not(.place__kind) { color: rgba(22, 17, 13, .72); }
.xpv__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.acts { display: grid; align-content: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(22, 17, 13, .14); }
.acts ul { list-style: none; margin: 10px 0 14px; padding: 0; }
.acts li a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(22, 17, 13, .12); font-weight: 600; }
.acts li a span { color: rgba(22, 17, 13, .6); font-weight: 500; white-space: nowrap; }
@media (hover: hover) { .acts li a:hover { color: var(--ray-d); } }
.acts__tel { color: rgba(22, 17, 13, .72); font-size: 15px; }
.acts__tel a { font-weight: 600; color: var(--ink); }
@media (max-width: 1000px) { .visit__more { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .xpv { grid-template-columns: 1fr; } .xpv__img { aspect-ratio: 16 / 11; min-height: 0; } }

/* ── DÓNDE TOMAR ONAWA (portada) ── */
.donde { background: var(--cream); color: var(--ink); padding: 0 var(--gut) clamp(100px, 16vh, 160px); position: relative; z-index: 1; }
.donde__wrap { max-width: 1320px; margin: 0 auto; border-top: 1px solid rgba(22, 17, 13, .14); }
.donde .eyebrow, .donde .h2 em { color: var(--ray-d); }
.donde__head { margin-top: clamp(56px, 8vw, 96px); }
.donde__lede { color: rgba(22, 17, 13, .7); max-width: 52ch; margin-bottom: 24px; }
.shop__kind { font-family: var(--f-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 10.5px; color: var(--ray-d); }
/* la lista cambia: con pocos locales, columnas de 5; con más, carril horizontal */
.donde__row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Escaparate sin secuestrar el scroll (23-11): la raya del café activo se llena en 3 s y pasa al siguiente */
.show.is-timing .show__list a.is-on::before { transition: none; animation: showTimer var(--show-ms, 5s) linear both; }
@keyframes showTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.show__count .show__total { display: inline; font-style: normal; }

/* Portada, «Dónde tomar Onawa»: las 5 Veintiuno y una tarjeta final con los demás locales (25-11) */
/* 6 columnas solo en pantalla ancha; en móvil y tablet es el carril que se desliza (antes esta regla lo pisaba y se montaban) */
@media (min-width: 1001px) { .donde__row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .donde__row { grid-template-columns: none; grid-auto-columns: min(58vw, 250px); }
  .donde__row .shop { opacity: 1 !important; transform: none !important; }  /* en el carril no hay entrada escalonada: las de la derecha no salen a medias */
}
.shop__img--more { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; }
.shop__img--more img { width: 100%; height: 100%; object-fit: cover; }

/* Café agotado u oculto en el panel (cart.js → main.js, catálogo en vivo) */
/* En el carril: el país arriba y «Agotado» en lugar del nombre (con 10 columnas, «Perú · Agotado» se cortaba) */
.show__list a.is-out h3 { font-size: 0; }
.show__list a.is-out h3::before { content: "Agotado"; font-size: 15px; color: var(--ray); }
@media (max-width: 1240px) { .show__list a.is-out h3::before { font-size: 13px; } }
html:not(.motion) .show__list a.is-out h3, .show.no-3d .show__list a.is-out h3 { font-size: 22px; opacity: .6; }
html:not(.motion) .show__list a.is-out h3::before, .show.no-3d .show__list a.is-out h3::before { content: none; }
html:not(.motion) .show__list a.is-out .show__li-country::after, .show.no-3d .show__list a.is-out .show__li-country::after { content: " · Agotado"; color: var(--ray); }
html:not(.motion) .show__list a.is-out img, .show.no-3d .show__list a.is-out img { opacity: .55; }
.btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.pack__lleva { grid-column: 1 / -1; font-size: 14px; line-height: 1.45; color: rgba(22, 17, 13, .78); max-width: 40ch; }
.xpv__img img[src*="f-visita"] { object-position: 50% 14%; }  /* grupo en el tostador: que no corte las cabezas */
@media (max-width: 560px) { .xpv__img { aspect-ratio: 16 / 12; } .xpv__img img[src*="f-visita"] { object-position: 50% 26%; } }  /* móvil: menos aire arriba y más del chico agachado */
.xp__img img[src*="x-cata"] { object-position: 50% 100%; }  /* la chica oliendo el café: manda la parte de abajo */

/* Enlace a la tienda (accesorios, tés y Oatly) bajo los packs */
.packs__more { margin-top: clamp(22px, 3vw, 36px); font-size: clamp(16px, 1.4vw, 19px); color: rgba(22, 17, 13, .66); }
.packs__more a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(var(--dark-rgb), .35); white-space: nowrap; }
.packs__more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
@media (hover: hover) { .packs__more a:hover svg { transform: translateX(3px); } }

/* ── Portada: fondo más oscuro y con degradado (Sergio, 29-11) ──
   El marrón de la marca (--dark) sigue en menú, barra, pie y botones. Dentro del hero y del escaparate
   --dark pasa a ser el fondo de la portada, para que sus velos y bordes se fundan con él. */
.home { --home: #1c120b; background: var(--home); }
.home .hero, .home .show, .home .intro { --dark: var(--home); --dark-rgb: 28, 18, 11; }
.home .intro { background: var(--home); }
.home .hero__stage { background:
  radial-gradient(ellipse 85% 60% at 50% -12%, rgba(132, 86, 50, .42), rgba(132, 86, 50, 0) 68%),
  radial-gradient(ellipse 60% 50% at -5% 100%, rgba(104, 64, 36, .34), rgba(104, 64, 36, 0) 70%),
  radial-gradient(ellipse 55% 45% at 105% 80%, rgba(104, 64, 36, .26), rgba(104, 64, 36, 0) 70%),
  linear-gradient(180deg, #23170e, var(--home)); }
.home .manifesto { position: relative; }
.home .manifesto::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 82% 45%, rgba(126, 80, 46, .26), rgba(126, 80, 46, 0) 70%),
    radial-gradient(ellipse 45% 55% at 12% 70%, rgba(96, 60, 34, .22), rgba(96, 60, 34, 0) 70%); }
.home .process { position: relative; isolation: isolate; }
.home .process::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 8% 22%, rgba(126, 80, 46, .26), rgba(126, 80, 46, 0) 70%),
    radial-gradient(ellipse 50% 40% at 95% 70%, rgba(104, 64, 36, .24), rgba(104, 64, 36, 0) 70%); }

/* Botones: al pasar el ratón o al pulsar, marrón oscuro y texto blanco, en toda la web (Sergio, 30-11).
   Manda sobre los colores de cada página (tienda, formaciones, packs…). Los selectores (sabores, formato, molienda) no son botones. */
:root { --btn-on: #1c120b; }
.btn:not([disabled]):not([aria-disabled="true"]):active { background: var(--btn-on); color: #fff; }
@media (hover: hover) { .btn:not([disabled]):not([aria-disabled="true"]):hover { background: var(--btn-on); color: #fff; } }
/* Donde el fondo ya es ese marrón (portada: hero, escaparate, intro), un filo claro para que se siga viendo el botón. */
.home :is(.hero, .show, .intro) .btn:not([disabled]):active { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
@media (hover: hover) { .home :is(.hero, .show, .intro) .btn:not([disabled]):hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); } }
/* El botón «Carrito» del menú, igual (va siempre sobre fondo oscuro: con filo claro). */
.nav__cart { transition: background-color .3s, color .3s, box-shadow .3s; }
.nav__cart:active { background: var(--btn-on); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
@media (hover: hover) { .nav__cart:hover { background: var(--btn-on); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); } }
