/* ═══════════════════════════════════════════════════════════
   Kefi Greek Bogotá
   Brand: royal blue + white (sign, polos, logo), blue floral tile
   (team headscarf), arches (logo + store niches), night-blue neon.
   ═══════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  /* Primitives */
  --blue-950: #0B1747;
  --blue-900: #0F1F5C;
  --blue-800: #142B78;
  --blue-700: #1E3C9C;   /* Kefi blue: logo + letrero */
  --blue-600: #2A4FC4;
  --blue-200: #C9D5F5;
  --blue-100: #E6ECFA;
  --blue-50:  #F4F7FE;
  --white:    #FFFFFF;
  --magenta-700: #A3124B;
  --magenta-600: #C8175D; /* menú de Parfaits */
  --magenta-300: #FF9FC8;
  --magenta-50:  #FDEAF2;
  --wa-700:   #0F7D41;
  --wa-800:   #0B6534;

  /* Semantic */
  --bg: var(--white);
  --surface: var(--white);
  --text: #0E1A4A;
  --text-muted: #4A5578;
  --primary: var(--blue-700);
  --primary-hover: var(--blue-800);
  --on-dark: #FFFFFF;
  --on-dark-muted: #C3CDF0;
  --border: #DCE3F5;
  --ring: var(--blue-600);

  --font-display: "Marcellus", "Optima", "Candara", Georgia, serif;
  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h2: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-y: clamp(80px, 11vw, 144px);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow-1: 0 1px 2px rgb(14 26 74 / .06), 0 6px 20px rgb(14 26 74 / .06);
  --shadow-2: 0 2px 8px rgb(14 26 74 / .08), 0 24px 56px rgb(14 26 74 / .16);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 800ms;

  --z-nav: 40; --z-bar: 50; --z-toast: 1000;
  --nav-h: 72px;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.01em; color: var(--blue-700); }
h3 { font-size: 1.3125rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.ico { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: var(--z-toast); background: var(--blue-700); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ───────── Buttons ───────── */
.btn {
  --bg: var(--primary); --fg: var(--white); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur), color var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.btn:active { transform: scale(.97); }
.btn--primary:hover { --bg: var(--primary-hover); box-shadow: 0 10px 24px -10px rgb(30 60 156 / .7); }
.btn--ghost { --bg: transparent; --fg: var(--blue-700); --bd: var(--blue-200); }
.btn--ghost:hover { --bd: var(--blue-700); --bg: var(--blue-50); }
.btn--light { --bg: var(--white); --fg: var(--blue-700); }
.btn--light:hover { --bg: var(--blue-50); box-shadow: 0 12px 30px -12px rgb(0 0 0 / .5); }
.btn--outline-light { --bg: transparent; --fg: var(--white); --bd: rgb(255 255 255 / .5); }
.btn--outline-light:hover { --bg: rgb(255 255 255 / .1); --bd: var(--white); }
.btn--wa { --bg: var(--wa-700); }
.btn--wa:hover { --bg: var(--wa-800); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 16px 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn .ico { transition: transform var(--dur) var(--ease-out); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue-50); color: var(--blue-700); cursor: pointer; transition: background-color var(--dur), transform var(--dur-fast); }
.icon-btn:hover { background: var(--blue-100); }
.icon-btn:active { transform: scale(.94); }
.link-btn { background: none; border: 0; padding: 12px; color: var(--text-muted); text-decoration: underline; cursor: pointer; min-height: 44px; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #22A85A; animation: live 2.4s var(--ease-out) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(34 168 90 / .5); } 70%, 100% { box-shadow: 0 0 0 9px rgb(34 168 90 / 0); } }

/* ───────── Logo ───────── */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; color: var(--blue-700); transition: color var(--dur); }
.logo__mark { width: 30px; height: 35px; --mark-fg: #fff; }
.logo__word { font-family: var(--font-display); font-size: 1.0625rem; line-height: .95; letter-spacing: .06em; }
.logo--light { color: var(--white); }
.logo--light .logo__mark { --mark-fg: var(--blue-900); }

/* ───────── Nav ───────── */
.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-nav); padding-top: env(safe-area-inset-top); transition: background-color var(--dur), box-shadow var(--dur), color var(--dur); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.nav__links { display: none; }
.nav__cta span { display: none; }
@media (min-width: 480px) { .nav__cta span { display: inline; } }
@media (min-width: 960px) {
  .nav__links { display: flex; gap: 2px; }
  .nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color var(--dur), background-color var(--dur); }
  .nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--blue-700); background: var(--blue-50); }
}
/* Over the opened arch (dark) */
.nav.is-dark .logo { color: var(--white); }
.nav.is-dark .logo__mark { --mark-fg: var(--blue-800); }
.nav.is-dark .nav__links a { color: var(--on-dark-muted); }
.nav.is-dark .nav__links a:hover { color: #fff; background: rgb(255 255 255 / .1); }
.nav.is-dark .nav__cta { --bg: var(--white); --fg: var(--blue-700); }
/* After the hero */
.nav.is-solid { background: rgb(255 255 255 / .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--border); }

/* ═══════════ HERO STAGE ═══════════
   --p (0→1) is set by JS from scroll. The arch scales from a
   small doorway to full height: "entering" the store. */
.stage { --aw: 100vw; --p: 0; --s: .56; --ty: 40svh; --r: 999px; --night: 0; --cap: 0; position: relative; background: var(--white); }
.js .stage { height: 230svh; }
.stage__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.stage__night {
  position: absolute; inset: 0; opacity: var(--night);
  background:
    linear-gradient(180deg, rgb(30 60 156 / .9), rgb(15 31 92 / .96)),
    url("assets/img/tile-night.svg") 0 0 / 96px 96px;
}
.stage__intro {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top) + 1.5svh);
  display: grid; justify-items: center; gap: 10px; padding-inline: 16px; text-align: center;
  opacity: calc(1 - var(--p) * 2.4);
  transform: translateY(calc(var(--p) * -80px));
}
.stage__title { line-height: 1; }
.stage__word {
  display: inline-flex; font-family: var(--font-display); color: var(--blue-700);
  font-size: clamp(3.25rem, 14.5vw, 10.5rem); letter-spacing: .02em; line-height: .9;
  white-space: nowrap;
}
.stage__word > span { display: inline-block; }
.js .stage__word > span { animation: letter 900ms var(--ease-out) both; }
.stage__word > span:nth-child(2) { animation-delay: 40ms; } .stage__word > span:nth-child(3) { animation-delay: 80ms; }
.stage__word > span:nth-child(4) { animation-delay: 120ms; } .stage__word > span:nth-child(5) { animation-delay: 200ms; }
.stage__word > span:nth-child(6) { animation-delay: 240ms; } .stage__word > span:nth-child(7) { animation-delay: 280ms; }
.stage__word > span:nth-child(8) { animation-delay: 320ms; } .stage__word > span:nth-child(9) { animation-delay: 360ms; }
@keyframes letter { from { opacity: 0; transform: translateY(.35em); } }
.stage__tag { white-space: nowrap; font-size: min(1.1875rem, calc((100vw - 32px) / 27)); font-weight: 500; line-height: 1.4; color: var(--text-muted); }
.stage__tag i { font-style: normal; color: var(--blue-600); padding-inline: 4px; }

/* The arch */
.arch {
  position: absolute; top: 0; left: 50%; margin: 0;
  width: var(--aw); height: 100svh;
  transform: translate(-50%, var(--ty)) scale(var(--s));
  transform-origin: 50% 0;
  clip-path: inset(0 round var(--r) var(--r) 0 0);
  background: var(--blue-800) url("assets/img/papa-poster.webp") center 30% / cover no-repeat;
  will-change: transform;
}
@media (min-width: 960px) { .stage { --aw: min(100vw, 56.25svh); } }
.js .arch { animation: archIn 1100ms var(--ease-out) 150ms both; }
@keyframes archIn { from { opacity: 0; } }
.arch__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.arch__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 23 71 / .35) 0%, transparent 25%, transparent 45%, rgb(11 23 71 / .9) 100%); }
.arch__caption {
  position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 13svh);
  display: grid; justify-items: center; gap: 14px; padding: 0 24px; text-align: center; color: var(--white);
}
.arch__badge {
  font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; background: var(--magenta-600); color: var(--white);
  transform: scale(calc(1 / var(--s)));  /* stays readable while the arch is small */
  transform-origin: 50% 100%;
  transition: transform 80ms linear;
}
.arch__msg {
  font-family: var(--font-display); font-size: clamp(2.25rem, 9vw, 3.5rem); line-height: 1.02;
  text-shadow: 0 2px 24px rgb(0 0 0 / .35);
  opacity: var(--cap); transform: translateY(calc((1 - var(--cap)) * 24px));
}
.arch__msg em { font-style: normal; background: var(--magenta-600); padding: 0 .22em .04em; border-radius: .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-shadow: none; }
@media (min-width: 960px) { .arch__msg { font-size: clamp(2rem, 4.2svh, 3rem); } }
.arch__toggle {
  position: absolute; right: 16px; top: calc(var(--nav-h) + env(safe-area-inset-top) + 8px);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(11 23 71 / .4); color: var(--white); backdrop-filter: blur(6px);
  transition: background-color var(--dur);
}
.arch__toggle:hover { background: rgb(11 23 71 / .65); }
.arch__toggle .ico { width: 18px; height: 18px; }
@media (min-width: 960px) { .arch__toggle { top: auto; bottom: 24px; right: 24px; } }

/* "0% sin azúcar añadida" block, as on the in-store menus */
.zero {
  position: absolute; z-index: 2; display: grid; place-items: center; align-content: center;
  width: 92px; height: 92px; padding: 8px; border-radius: 14px; text-align: center;
  background: var(--blue-700); color: var(--white); box-shadow: var(--shadow-2);
  top: calc(var(--ty) + 6svh);
  left: calc(50% + var(--aw) * var(--s) / 2 - 46px);
  transform: rotate(8deg); opacity: calc(1 - var(--p) * 4);
}
.zero b { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: .9; }
.zero small { font-size: .5625rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; margin-top: 4px; }
@media (min-width: 960px) { .zero { width: 112px; height: 112px; left: calc(50% + var(--aw) * var(--s) / 2 - 36px); } .zero b { font-size: 3rem; } .zero small { font-size: .625rem; } }
.js .zero { animation: zeroIn 700ms var(--ease-out) 900ms both; }
@keyframes zeroIn { from { opacity: 0; transform: rotate(-12deg) scale(.6); } }

/* Desktop side columns */
.stage__side { display: none; }
@media (min-width: 960px) {
  .stage__side {
    display: grid; gap: var(--s-4); position: absolute; top: 50%; width: min(30vw, 360px);
    color: var(--white); opacity: var(--cap);
    transition: none;
  }
  .stage__side--l { left: max(32px, calc(50% - 600px)); transform: translate(calc((1 - var(--cap)) * -40px), -50%); }
  .stage__side--r { right: max(32px, calc(50% - 600px)); transform: translate(calc((1 - var(--cap)) * 40px), -50%); justify-items: stretch; }
  .stage__side[aria-hidden] { pointer-events: none; }
  .side__big { font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1.05; }
  .side__big em { font-style: normal; color: var(--magenta-300); }
  .side__small { color: var(--on-dark-muted); max-width: 32ch; }
}
.stage[data-done] .stage__side--r { pointer-events: auto; }
.stage:not([data-done]) .stage__side--r { pointer-events: none; }

.stage__hint {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--white);
  opacity: calc(1 - var(--p) * 5); text-shadow: 0 1px 8px rgb(0 0 0 / .4);
}
.stage__hint .ico { animation: nudge 1.8s var(--ease-out) infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }
@media (min-width: 960px) { .stage__hint { bottom: 28px; } }

/* ───────── Tile band ───────── */
.tileband { height: 64px; overflow: hidden; background: var(--white); border-block: 2px solid var(--blue-700); }
.tileband__track { height: 100%; width: calc(100% + 64px); background: url("assets/img/tile.svg") 0 0 / 64px 64px repeat-x; }

/* ───────── Sections ───────── */
.section { padding-block: var(--section-y); position: relative; }
.section__head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); display: grid; gap: var(--s-4); }
.section__head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section__head.split { max-width: none; }
.section__aside { color: var(--text-muted); max-width: 40ch; }
@media (min-width: 900px) { .section__head.split { grid-template-columns: 1fr auto; align-items: end; } }

/* Essence pillars */
.pillars { display: grid; gap: var(--s-6); counter-reset: p; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.pillar { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: 0 8px; }
.pillar__arch {
  display: grid; place-items: center; width: 96px; height: 120px; margin-bottom: var(--s-3);
  border-radius: var(--arch); background: var(--blue-700); color: var(--white);
  box-shadow: inset 0 0 0 6px var(--white), 0 0 0 2px var(--blue-700);
  transition: transform 500ms var(--ease-out);
}
.pillar:hover .pillar__arch { transform: translateY(-6px); }
.pillar__arch .ico { width: 32px; height: 32px; }
.pillar__n { font-family: var(--font-display); font-size: 1rem; color: var(--blue-600); letter-spacing: .1em; }
.pillar h3 { color: var(--blue-700); }
.pillar p { color: var(--text-muted); max-width: 32ch; }

/* Menu */
.menu { background: var(--blue-50); overflow: clip; }
.menu__tile { position: absolute; width: 420px; height: 420px; right: -140px; top: -120px; color: var(--blue-100); --tile-bg: var(--blue-50); pointer-events: none; }
.menu .container { position: relative; }
.stepper { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: var(--blue-700); color: var(--white); padding: 2px; }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; transition: background-color var(--dur-fast), transform var(--dur-fast); }
.stepper button:hover { background: rgb(255 255 255 / .14); }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 20px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.menu__note { margin-top: var(--s-5); font-size: .875rem; color: var(--text-muted); }

/* ───────── Menu builders ───────── */
.zero-tag { display: inline-block; vertical-align: .1em; margin-left: 4px; padding: 2px 6px; border-radius: 6px; background: var(--magenta-600); color: var(--white); font-size: .6875rem; font-weight: 800; letter-spacing: .04em; line-height: 1.3; }
.btn--pink { --bg: var(--magenta-600); }
.btn--pink:hover { --bg: var(--magenta-700); box-shadow: 0 10px 24px -10px rgb(200 23 93 / .7); }
.btn[aria-disabled="true"] { --bg: var(--accent-soft, var(--blue-100)); --fg: var(--accent, var(--blue-700)); cursor: not-allowed; box-shadow: none; }
.btn[aria-disabled="true"]:active { transform: none; }

.mtabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-6); max-width: 560px; }
.mtab {
  display: grid; gap: 2px; justify-items: start; text-align: left; min-height: 72px; padding: 14px 20px; cursor: pointer;
  border-radius: var(--radius); border: 2px solid var(--blue-200); background: var(--white); color: var(--blue-700);
  transition: background-color var(--dur), color var(--dur), border-color var(--dur), transform var(--dur-fast);
}
.mtab:active { transform: scale(.98); }
.mtab__k { font-family: var(--font-display); font-size: 1.625rem; line-height: 1; }
.mtab__p { font-size: .875rem; color: var(--text-muted); }
.mtab__p b { color: inherit; }
.mtab[aria-selected="true"] { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.mtab[aria-selected="true"] .mtab__p { color: var(--blue-100); }
.mtab--pink { color: var(--magenta-600); border-color: #F6C4D8; }
.mtab--pink[aria-selected="true"] { background: var(--magenta-600); border-color: var(--magenta-600); }
.mtab--pink[aria-selected="true"] .mtab__p { color: #FFE1EE; }

.builder { --accent: var(--blue-700); --accent-soft: var(--blue-100); display: grid; gap: var(--s-5); align-items: start; }
.builder--pink { --accent: var(--magenta-600); --accent-soft: var(--magenta-50); }
.builder[hidden] { display: none; }
.builder.is-entering { animation: itemIn 460ms var(--ease-out) both; }
@keyframes itemIn { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 960px) { .builder { grid-template-columns: 1fr 340px; gap: var(--s-6); } }
.builder__steps { display: grid; gap: var(--s-4); min-width: 0; }
.step { margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); min-width: 0; }
@media (min-width: 768px) { .step { padding: 24px 28px; } }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 0; font-weight: 700; font-size: 1.125rem; color: var(--text); }
.step legend + * { clear: both; }
.step legend small { font-weight: 500; color: var(--text-muted); font-size: .875rem; }
.step__n { display: grid; place-items: center; flex: none; width: 34px; height: 40px; border-radius: 999px 999px 8px 8px; background: var(--accent); color: var(--white); font-family: var(--font-display); font-size: 1.125rem; }
.step__tier { clear: both; display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.step legend + .step__tier { margin-top: 0; }
.step__tier b { color: var(--accent); letter-spacing: 0; font-size: .9375rem; }

.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt {
  display: grid; gap: 4px; justify-items: start; align-content: center; text-align: left; min-height: 72px; padding: 14px 16px; cursor: pointer;
  border-radius: 16px; border: 2px solid var(--border); background: var(--white);
  transition: border-color var(--dur), background-color var(--dur), transform var(--dur-fast);
}
.opt:hover { border-color: var(--accent); }
.opt:active { transform: scale(.98); }
.opt__t { font-weight: 700; font-size: 1.0625rem; color: var(--text); }
.opt__s { font-size: .9375rem; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 14px 4px 4px; cursor: pointer;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--white); color: var(--text); font-weight: 600; font-size: .9375rem; text-align: left;
  transition: border-color var(--dur), background-color var(--dur), color var(--dur), transform var(--dur-fast);
}
.chip img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); flex: none; }
.chip small { color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.chip[aria-pressed="true"] small { color: rgb(255 255 255 / .8); }
.chip[aria-pressed="true"] .zero-tag { background: var(--white); color: var(--accent); }
.chip[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--white); }

.summary {
  display: grid; gap: 12px; padding: 24px; border-radius: var(--radius-lg); background: var(--white);
  border: 2px solid var(--accent); box-shadow: var(--shadow-2);
}
@media (min-width: 960px) { .summary { position: sticky; top: calc(var(--nav-h) + 16px); } }
.summary__k { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.summary__t { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--text); }
.summary__lines { display: grid; gap: 8px; padding: 12px 0; border-block: 1px solid var(--border); }
.summary__lines li { display: grid; grid-template-columns: 88px 1fr; gap: 8px; font-size: .9375rem; }
.summary__lines span { color: var(--text-muted); }
.summary__lines b { font-weight: 600; }
.summary__lines .dim { color: var(--text-muted); font-style: normal; font-weight: 400; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.125rem; font-weight: 700; }
.summary__total strong { font-size: 1.75rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.summary__hint { min-height: 1.4em; font-size: .875rem; color: var(--text-muted); text-align: center; }

/* Mobile: compact total that sticks while choosing */
.peek {
  position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px; background: rgb(255 255 255 / .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-2), 0 0 0 1.5px var(--accent);
}
.peek__t { font-weight: 600; color: var(--text-muted); }
.peek__t b { color: var(--accent); font-size: 1.25rem; font-variant-numeric: tabular-nums; margin-left: 4px; }
.has-order .peek { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .peek { display: none; } }

/* The total reacts to every change: cause → effect */
.tick { animation: tick 380ms var(--ease-out); }
@keyframes tick { 0% { transform: translateY(0); } 35% { transform: translateY(-4px) scale(1.06); } 100% { transform: none; } }
.summary__total strong, .peek__t b { display: inline-block; }

/* ───────── Toppings gallery ───────── */
.section__lead { color: var(--text-muted); max-width: 60ch; font-size: 1.0625rem; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px var(--s-6); padding: 4px 16px; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .filters { justify-content: center; flex-wrap: wrap; overflow: visible; margin-inline: 0; } }
.filter { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--blue-200); background: var(--white); color: var(--blue-700); font-weight: 700; cursor: pointer; transition: background-color var(--dur), color var(--dur), border-color var(--dur); }
.filter span { font-weight: 500; color: var(--text-muted); margin-left: 2px; }
.filter[aria-pressed="true"] span { color: var(--blue-100); }
.filter:hover { border-color: var(--blue-700); }
.filter[aria-pressed="true"] { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }

.ingr__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .ingr__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .ingr__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.ing { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--blue-100) url("assets/img/tile.svg") 0 0 / 64px 64px; isolation: isolate; }
.ing[hidden] { display: none; }
.ing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.ing:hover img { transform: scale(1.08); }
.ing__win {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%);
  width: 62%; aspect-ratio: 4 / 4.4; border-radius: 999px 999px 14px 14px;
  display: grid; justify-items: center; align-content: center; gap: 4px; padding: 14% 8% 8%; text-align: center;
  background: rgb(255 255 255 / .94); box-shadow: 0 10px 30px -8px rgb(11 23 71 / .45);
  transition: transform 500ms var(--ease-out);
}
.ing:hover .ing__win { transform: translate(-50%, -52%); }
.ing__mark { width: 18px; height: 21px; color: var(--blue-700); margin-bottom: 2px; }
.ing__name { font-family: var(--font-display); font-size: clamp(.875rem, .76rem + .6vw, 1.1875rem); line-height: 1.1; color: var(--blue-700); text-wrap: balance; }
.ing__meta { font-size: clamp(.6875rem, .62rem + .2vw, .8125rem); font-weight: 700; color: var(--blue-600); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 420px) { .ing__win { padding: 16% 6% 6%; } .ing__mark { width: 14px; height: 17px; } }
.ing__zero { position: absolute; top: 10px; right: 10px; display: grid; justify-items: center; padding: 6px 8px; border-radius: 10px; background: var(--magenta-600); color: var(--white); font-size: .5625rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; box-shadow: var(--shadow-1); }
.ing__zero b { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; letter-spacing: 0; }
.ingr__more { display: flex; justify-content: center; margin-top: var(--s-6); }
.ingr__more [hidden] { display: none; }

/* Long option lists fold on phones; picked items always stay visible */
.more {
  display: none; margin-top: 10px; min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px dashed var(--accent); background: transparent; color: var(--accent); font-weight: 700;
}
@media (max-width: 767px) {
  [data-fold]:not(.is-open) > .chip:nth-child(n+7):not([aria-pressed="true"]) { display: none; }
  .more { display: inline-flex; align-items: center; }
}

/* Gallery tiles are buttons that feed the builders */
.ing__btn {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: none; cursor: pointer; border-radius: inherit; -webkit-tap-highlight-color: transparent;
}
.ing__btn:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; }
.ing__btn:active .ing__win { transform: translate(-50%, -50%) scale(.97); }
.ing__plus {
  position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--white); color: var(--blue-700); box-shadow: var(--shadow-1);
  transition: background-color var(--dur), color var(--dur), transform 300ms var(--ease-out);
}
.ing__plus .ico { width: 18px; height: 18px; transition: transform 300ms var(--ease-out); }
.ing__btn:hover .ing__plus { transform: scale(1.08); }
.ing__btn[aria-pressed="true"] .ing__plus { background: var(--blue-700); color: var(--white); }
.ing__btn[aria-pressed="true"] .ing__plus .ico { transform: rotate(45deg); }
.ing__btn[aria-pressed="true"] .ing__win { box-shadow: 0 0 0 3px var(--blue-700), 0 10px 30px -8px rgb(11 23 71 / .45); }
.ing__zero { pointer-events: none; }

/* Papá */
.papa__grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 900px) { .papa__grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.papa__frames { position: relative; height: clamp(440px, 62vw, 620px); max-width: 520px; width: 100%; margin-inline: auto; }
.frame { position: absolute; width: 60%; aspect-ratio: 3 / 4.4; border-radius: var(--arch); overflow: hidden; background: var(--blue-100); box-shadow: var(--shadow-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--a { left: 0; top: 0; }
.frame--a img { object-position: 35% 60%; }
.frame--b { right: 0; bottom: 0; outline: 8px solid var(--white); }
.frame--b img { object-position: 50% 30%; }
.papa__mark { position: absolute; width: 72px; height: 84px; left: 34%; top: 44%; color: var(--blue-700); --mark-fg: #fff; filter: drop-shadow(0 8px 20px rgb(14 26 74 / .3)); }
.papa__copy { display: grid; gap: var(--s-4); max-width: 560px; }
.papa__copy > p:not(.kicker):not(.papa__line) { color: var(--text-muted); font-size: 1.125rem; }
.papa__line { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; color: var(--blue-700); padding: var(--s-4) 0 var(--s-4) var(--s-5); border-left: 3px solid var(--blue-700); margin-block: var(--s-2); }
.papa__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }

/* Link hub */
.hub { background: var(--blue-800) url("assets/img/tile-night.svg") 0 0 / 88px 88px; }
.hub__wrap { display: grid; place-items: center; }
.hub__card {
  width: 100%; max-width: 480px; display: grid; justify-items: center; gap: var(--s-2); text-align: center;
  background: var(--white); border-radius: 240px 240px var(--radius-lg) var(--radius-lg); padding: 56px 20px 24px;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6);
}
.hub__logo { width: 64px; height: 75px; color: var(--blue-700); }
.hub__title { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem); margin-top: var(--s-3); }
.hub__sub { color: var(--text-muted); font-weight: 500; }
.hub__links { width: 100%; display: grid; gap: 10px; margin-top: var(--s-5); }
.hublink {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px; border-radius: 18px;
  text-decoration: none; text-align: left; background: var(--blue-50); color: var(--blue-700); border: 1.5px solid transparent;
  transition: background-color var(--dur), border-color var(--dur), transform var(--dur) var(--ease-out);
}
.hublink:hover { border-color: var(--blue-700); transform: translateY(-2px); }
.hublink:active { transform: scale(.98); }
.hublink > .ico:first-child { width: 24px; height: 24px; }
.hublink span { display: grid; flex: 1; line-height: 1.25; }
.hublink strong { font-weight: 700; color: var(--text); }
.hublink small { color: var(--text-muted); font-size: .875rem; }
.hublink__go { opacity: .5; transition: transform var(--dur) var(--ease-out), opacity var(--dur); }
.hublink:hover .hublink__go { opacity: 1; transform: translateX(4px); }
.hublink--wa { background: var(--wa-700); color: var(--white); }
.hublink--wa strong { color: var(--white); }
.hublink--wa small { color: var(--white); }
.hublink--wa:hover { background: var(--wa-800); border-color: var(--wa-800); }

/* Visit */
.visit__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: .85fr 1.15fr; gap: var(--s-9); } }
.visit__mosaic { position: relative; max-width: 440px; width: 100%; margin-inline: auto; padding: 0 9% 14%; }
.visit__frame { padding: 10px; border-radius: var(--arch); border: 2px solid var(--blue-700); background: var(--white); }
.visit__thumb { position: absolute; width: 36%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--arch); border: 6px solid var(--white); box-shadow: var(--shadow-2); background: var(--blue-100); }
.visit__thumb--a { left: 0; bottom: 4%; }
.visit__thumb--b { right: 0; bottom: 0; }
.visit__frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%; border-radius: var(--arch); background: var(--blue-100); }
.visit__copy { display: grid; gap: var(--s-4); }
.visit__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pet { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9375rem; background: var(--blue-50); color: var(--blue-700); }
.status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9375rem; background: #E3F5EA; color: #0B5F31; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open .status__dot { animation: live 2.4s var(--ease-out) infinite; color: #22A85A; }
.status.is-closed { background: #FCE4EC; color: #8E1843; }
.visit__info { display: grid; gap: var(--s-5); margin: var(--s-2) 0; }
.visit__info > div { display: grid; gap: 6px; padding-bottom: var(--s-5); border-bottom: 1px solid var(--border); }
.visit__info dt { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); }
.visit__info dd { margin: 0; color: var(--text-muted); }
.visit__info dd strong { color: var(--text); }
.hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s-4); max-width: 420px; padding: 2px 0; }
.hours li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 500; }
@media (max-width: 479px) { .hours li { display: grid; padding: 6px 0; } }
.hours li.is-today span { color: var(--blue-700); font-weight: 700; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Footer */
.footer { position: relative; background: var(--blue-900); color: var(--on-dark-muted); padding: 0 0 calc(var(--s-7) + 76px + env(safe-area-inset-bottom)); text-align: center; }
@media (min-width: 960px) { .footer { padding-bottom: var(--s-7); } }
.footer__tile { height: 56px; background: url("assets/img/tile-night.svg") 0 0 / 56px 56px repeat-x; }
.footer__inner { display: grid; justify-items: center; gap: var(--s-6); padding-top: var(--section-y); }
.footer__cta { font-family: var(--font-display); font-size: clamp(2.5rem, 1.5rem + 5vw, 5.5rem); line-height: 1; color: var(--white); }
.footer__bottom { width: 100%; display: grid; justify-items: center; gap: var(--s-5); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid rgb(255 255 255 / .12); }
@media (min-width: 768px) { .footer__bottom { grid-template-columns: 1fr auto; justify-items: start; text-align: left; } .footer__legal { grid-column: 1 / -1; } }
.footer__social { display: flex; gap: var(--s-2); }
.footer__social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--white); background: rgb(255 255 255 / .08); transition: background-color var(--dur); }
.footer__social a:hover { background: rgb(255 255 255 / .18); }
.footer__legal { font-size: .875rem; }

/* ───────── Quick bar + order bar ───────── */
.quickbar, .orderbar { position: fixed; z-index: var(--z-bar); left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transition: transform 320ms var(--ease-out), opacity 320ms var(--ease-out); }
.quickbar { display: grid; grid-template-columns: auto 1fr; gap: 6px; padding: 6px; background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; box-shadow: var(--shadow-2), 0 0 0 1px var(--border); }
.quickbar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.quickbar__item { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; color: var(--blue-700); text-decoration: none; font-weight: 700; }
.quickbar__item--wa { background: var(--wa-700); color: var(--white); }
@media (min-width: 960px) { .quickbar { display: none; } }
.orderbar { display: flex; justify-content: center; pointer-events: none; }
.orderbar[hidden] { display: none; }
.orderbar__btn { pointer-events: auto; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 440px; min-height: 60px; padding: 8px 22px 8px 8px; border: 0; border-radius: 999px; cursor: pointer; background: var(--blue-700); color: var(--white); font-weight: 700; box-shadow: var(--shadow-2); animation: barIn 420ms var(--ease-out); transition: transform var(--dur-fast); }
.orderbar__btn:active { transform: scale(.98); }
.orderbar__btn strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.orderbar__count { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 999px; background: var(--white); color: var(--blue-700); font-variant-numeric: tabular-nums; }
.orderbar__count.bump { animation: bump 360ms var(--ease-out); }
@keyframes barIn { from { transform: translateY(120%); } }
@keyframes bump { 40% { transform: scale(1.18); } }

/* ───────── Order sheet ───────── */
.sheet { width: min(100% - 24px, 480px); max-height: min(86svh, 720px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); display: none; flex-direction: column; }
.sheet[open] { display: flex; animation: sheetIn 320ms var(--ease-out); }
.sheet::backdrop { background: rgb(11 23 71 / .55); backdrop-filter: blur(2px); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@media (max-width: 599px) {
  .sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet[open] { animation-name: sheetUp; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px 24px; }
.sheet__head h2 { font-size: 2rem; }
.sheet__list { overflow-y: auto; padding: 0 24px; flex: 1 1 auto; }
.sheet__list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.sheet__list .name { font-weight: 700; }
.sheet__list .sub { grid-column: 1; color: var(--text-muted); font-size: .875rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.sheet__list .sub b { color: var(--text); }
.sheet__list .stepper { grid-row: span 2; }
.sheet__field { padding: 16px 24px 0; display: grid; gap: 6px; }
.sheet__field label { font-weight: 700; font-size: .9375rem; }
.sheet__field label span { font-weight: 400; color: var(--text-muted); }
.sheet__field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--blue-50); resize: vertical; min-height: 64px; }
.sheet__field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgb(42 79 196 / .18); }
.sheet__help { font-size: .875rem; color: var(--text-muted); }
.sheet__foot { padding: 16px 24px 20px; display: grid; gap: 8px; justify-items: center; }
.sheet__total { width: 100%; display: flex; justify-content: space-between; font-size: 1.125rem; margin-bottom: 4px; }
.sheet__total strong { font-variant-numeric: tabular-nums; color: var(--blue-700); }

.toast { position: fixed; z-index: var(--z-toast); left: 50%; top: calc(var(--nav-h) + env(safe-area-inset-top) + 8px); transform: translate(-50%, -16px); opacity: 0; pointer-events: none; background: var(--blue-700); color: var(--white); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .9375rem; box-shadow: var(--shadow-2); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Reduced motion: static doorway, everything readable ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js .stage { height: auto; }
  .stage { --cap: 1; }
  .stage__hint { display: none; }
}
