/* ==========================================================================
   EL MERCADITO — 85 Talbot St E, Leamington ON

   Su logotipo manda: deco geométrico, negro y blanco, y una sola hoja verde.
   Así que el sitio es monocromo con un único acento. Nada compite con la
   fotografía ni con el café.

   Cafetería colombiana de especialidad: abre a las 8 de la mañana, cierra a
   las 5. Luz de día, mucho aire, tipografía grande.

   MÓVIL PRIMERO. Cada tamaño está declarado desde 320px hacia arriba.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */

:root {
  --ink:      #121211;
  --ink-2:    #3D3C38;
  --ink-3:    #6B6963;
  --ink-4:    #8E8B84;   /* SÓLO decorativo — no llega a 4.5:1 como texto */

  --snow:     #FAF9F6;
  --paper:    #F2F0E9;
  --linen:    #E7E3D8;
  --crema:    #DCD5C4;

  --leaf:     #3D8C4A;
  --leaf-dp:  #2E6B38;   /* el mismo verde COMO TEXTO sobre claro */
  --leaf-l:   #E6F0E6;
  --leaf-br:  #5FB06D;   /* sobre tinta */

  --line:     rgba(18, 18, 17, .12);
  --line-2:   rgba(18, 18, 17, .22);
  --snow-sf:  rgba(250, 249, 246, .78);
  --snow-fn:  rgba(250, 249, 246, .18);

  --display: "Jost", "Futura", "Century Gothic", sans-serif;
  --sans:    "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    "DM Mono", ui-monospace, Menlo, Consolas, monospace;

  --t-hero: clamp(2.6rem, 11vw, 7rem);
  --t-xxl:  clamp(2rem, 6.5vw, 4rem);
  --t-xl:   clamp(1.5rem, 4vw, 2.4rem);
  --t-lg:   clamp(1.14rem, 2.6vw, 1.42rem);
  --t-md:   clamp(1rem, 1.05vw, 1.06rem);
  --t-sm:   .92rem;
  --t-xs:   .69rem;

  --gut:  clamp(1.15rem, 4.5vw, 4.5rem);
  --band: clamp(4rem, 9.5vw, 9rem);
  --band-sm: clamp(2.6rem, 6vw, 4.4rem);
  --maxw: 1320px;
  --text: 900px;

  --r:    4px;
  --r-sm: 3px;
  --pill: 999px;

  --sh:    0 1px 2px rgba(18,18,17,.04), 0 10px 30px rgba(18,18,17,.07);
  --sh-lg: 0 2px 6px rgba(18,18,17,.05), 0 28px 60px rgba(18,18,17,.12);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --pop:  cubic-bezier(.34, 1.4, .64, 1);
  --soft: cubic-bezier(.4, 0, .2, 1);
  --nav-h: 62px;
}

/* ---------------------------------------------------------- 2. CIMIENTOS */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.shell--text { max-width: var(--text); }

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--snow); padding: .8rem 1.2rem; z-index: 999; }
.skip:focus { left: .5rem; top: .5rem; }

/* ------------------------------------------------------ 3. TIPOGRAFÍA */

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  margin: 0 0 1rem; color: var(--leaf-dp);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.ink-bg .kicker, .leaf-bg .kicker { color: var(--leaf-br); }
.leaf-bg .kicker { color: rgba(250,249,246,.9); }

.lede { font-size: clamp(1.06rem, 2vw, 1.32rem); line-height: 1.6; max-width: 46ch; color: var(--ink-2); }
.ink-bg .lede, .leaf-bg .lede { color: rgba(250,249,246,.86); }
.center { text-align: center; }
.center .lede, .center .kicker { margin-inline: auto; }
h1 em, h2 em { font-style: italic; font-weight: 400; }

.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .38rem .8rem; border-radius: var(--pill);
  background: var(--leaf-l); color: var(--leaf-dp);
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
}
.chip--line { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* --------------------------------------------------------- 4. SUPERFICIES */

.band { padding-block: var(--band); position: relative; }
.band--tight { padding-block: var(--band-sm); }

.snow-bg  { background: var(--snow);  color: var(--ink); }
.paper-bg { background: var(--paper); color: var(--ink); }
.ink-bg   { background: var(--ink);   color: var(--snow); }
.leaf-bg  { background: var(--leaf-dp); color: var(--snow); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------ 5. BOTONES */

.btn {
  --bg: var(--ink); --fg: var(--snow);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; min-height: 52px; padding: .8rem 1.7rem; border-radius: var(--pill);
  background: var(--bg); color: var(--fg);
  font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: .005em;
  transition: transform .22s var(--pop), box-shadow .22s var(--ease), background .22s, color .22s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(18,18,17,.18); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .4; pointer-events: none; }

.btn--leaf  { --bg: var(--leaf-dp); --fg: var(--snow); }
.btn--snow  { --bg: var(--snow);    --fg: var(--ink); }
.btn--line  { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { box-shadow: inset 0 0 0 1px currentColor, 0 10px 26px rgba(18,18,17,.1); }
.ink-bg .btn--line, .leaf-bg .btn--line { box-shadow: inset 0 0 0 1px rgba(250,249,246,.4); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 40px; padding: .45rem 1.05rem; font-size: .88rem; }
.btn--lg { min-height: 60px; padding: 1rem 2.1rem; font-size: 1.1rem; }

.tlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 500; font-size: 1.04rem;
  padding-bottom: .2rem; border-bottom: 1px solid var(--line-2);
  transition: gap .3s var(--ease), border-color .25s;
}
.tlink::after { content: "→"; }
.tlink:hover { gap: .95rem; border-bottom-color: currentColor; }

/* ---------------------------------------------------------------- 6. NAV */

.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 120;
  display: flex; align-items: center;
  background: rgba(250,249,246,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  transition: box-shadow .3s var(--soft), background .3s;
}
.nav.is-stuck { box-shadow: 0 1px 0 var(--line); }
.nav__in { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); display: flex; align-items: center; justify-content: space-between; gap: .6rem; }

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
/* Su logotipo viene en dos versiones y hay que enseñar la que toca:
   la oscura sobre superficies claras, la clara sobre las oscuras.
   Sin esto el pie —que es negro— mostraba el logo negro: invisible. */
.logo { display: block; }
.logo--light { display: none; }
.foot .logo--dark, .drawer .logo--dark, .ink-bg .logo--dark { display: none; }
.foot .logo--light, .drawer .logo--light, .ink-bg .logo--light { display: block; }

.nav__links { display: none; }
.nav__cta { display: flex; align-items: center; gap: .4rem; }

.langsw { display: flex; border-radius: var(--pill); background: var(--linen); color: var(--ink); padding: 2px; }
.langsw button {
  padding: .3rem .55rem; border-radius: var(--pill);
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  transition: background .25s, color .25s;
}
.langsw button.is-on { background: var(--ink); color: var(--snow); }

.burger { width: 42px; height: 42px; display: grid; place-items: center; margin-right: -8px; }
.burger span { display: block; width: 21px; height: 1.5px; background: currentColor; position: relative; transition: transform .35s var(--ease), background .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 21px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
body.menu-open .burger span { transform: rotate(45deg); background: var(--snow); color: var(--snow); }
body.menu-open .burger span::before { transform: translateY(6px) rotate(-90deg); background: var(--snow); color: var(--snow); }
body.menu-open .burger span::after  { opacity: 0; }

.drawer {
  position: fixed; inset: 0; z-index: 110; background: var(--ink); color: var(--snow);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 1.4rem) var(--gut) 1.4rem;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer__link {
  display: flex; align-items: baseline; gap: .9rem; padding-block: .45rem;
  font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 11vw, 4rem); line-height: 1.05;
  letter-spacing: -.03em;
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .2s;
}
body.menu-open .drawer__link { opacity: 1; transform: none; }
body.menu-open .drawer__link:nth-child(1) { transition-delay: .07s; }
body.menu-open .drawer__link:nth-child(2) { transition-delay: .13s; }
body.menu-open .drawer__link:nth-child(3) { transition-delay: .19s; }
.drawer__link:hover, .drawer__link[aria-current="page"] { color: var(--leaf-br); }
.drawer__link i { font-family: var(--mono); font-style: normal; font-size: .7rem; color: var(--leaf-br); }
.drawer__lang { margin: 1.7rem 0 1.3rem; }
.drawer__lang .langsw { width: max-content; background: rgba(250,249,246,.14); color: var(--snow); }
.drawer__lang .langsw button { color: rgba(250,249,246,.78); }
.drawer__lang .langsw button.is-on { background: var(--snow); color: var(--ink); }
.drawer__foot { padding-top: 1.2rem; border-top: 1px solid var(--snow-fn); display: grid; gap: .22rem; font-family: var(--mono); font-size: var(--t-xs); color: rgba(250,249,246,.76); }

/* ------------------------------------------------------------- 7. MARCOS */

.frame { position: relative; overflow: hidden; background: var(--crema) center/cover no-repeat; margin: 0; }
.frame img, .gcell img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .9s var(--ease), transform 1.2s var(--ease);
}
.frame img.ready, .gcell img.ready { opacity: 1; transform: none; }
.frame--zoom img { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.frame--zoom:hover img.ready { transform: scale(1.05); }

.ratio-1-1 { aspect-ratio: 1/1; } .ratio-4-5 { aspect-ratio: 4/5; }
.ratio-3-4 { aspect-ratio: 3/4; } .ratio-4-3 { aspect-ratio: 4/3; }
.ratio-3-2 { aspect-ratio: 3/2; } .ratio-16-9 { aspect-ratio: 16/9; }
.ratio-2-3 { aspect-ratio: 2/3; }

/* ================================================================ 8. HERO */

.hero { position: relative; padding-top: var(--nav-h); overflow: hidden; background: var(--snow); color: var(--ink); }
.hero__in { position: relative; z-index: 2; padding-block: clamp(2.2rem, 6vw, 4rem) clamp(2.4rem, 6vw, 4.5rem); }

.hero__mark { width: min(560px, 92%); margin: 0 0 clamp(1.6rem, 4vw, 2.6rem); height: auto; }
.hero h1 {
  font-size: var(--t-hero); font-weight: 300; letter-spacing: -.035em;
  margin-bottom: 1rem;
}
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.34rem); max-width: 36ch; margin-bottom: 1.9rem; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.7rem; align-items: center; }

.hero__art { position: relative; margin-top: clamp(2rem, 5vw, 0rem); }
.hero__art .frame { box-shadow: var(--sh-lg); }

.status {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--linen); color: var(--ink-2);
  padding: .4rem .85rem; border-radius: var(--pill);
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
.status.is-open { background: var(--leaf-l); color: var(--leaf-dp); }
.ink-bg .status, .phero .status { background: rgba(250,249,246,.16); color: var(--snow); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; animation: pulse 2s ease-in-out infinite; }
.dot--on { background: var(--leaf); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.phero { background: var(--ink); color: var(--snow); padding: calc(var(--nav-h) + clamp(2.2rem,6vw,4rem)) 0 clamp(2.4rem,6vw,3.8rem); }
.phero h1 { font-size: var(--t-xxl); font-weight: 300; margin-bottom: .8rem; }
.phero .lede { color: rgba(250,249,246,.82); }

/* la cinta que corre: sus propias palabras */
.ticker { overflow: hidden; background: var(--ink); color: var(--snow); padding-block: .85rem; }
.ticker__row { display: flex; width: max-content; animation: slide 42s linear infinite; }
.ticker__row span {
  display: inline-flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem;
  font-family: var(--display); font-weight: 300; font-size: clamp(.95rem, 2.4vw, 1.3rem);
  letter-spacing: -.01em; white-space: nowrap;
}
.ticker__row span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--leaf-br); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker__row { animation-play-state: paused; }

/* --------------------------------------------------------------- 9. CIFRAS */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.stat { background: var(--snow); color: var(--ink); padding: clamp(1.2rem,3.4vw,2rem) clamp(1rem,2.4vw,1.6rem); }
.paper-bg .stat { background: var(--paper); color: var(--ink); }
.stat__n { font-family: var(--display); font-weight: 300; font-size: clamp(2.1rem,6.6vw,3.2rem); line-height: 1; letter-spacing: -.04em; margin-bottom: .4rem; }
.stat__l { font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); line-height: 1.55; }

/* ---------------------------------------------------- 10. ENCABEZADOS */

.head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.head h2 { font-size: var(--t-xxl); font-weight: 300; margin-bottom: 1rem; }
.head p { max-width: 50ch; color: var(--ink-2); }
.ink-bg .head p, .leaf-bg .head p { color: rgba(250,249,246,.84); }
.head--split { display: grid; gap: 1.4rem; }
.head--split .head__aside { align-self: end; }
.split { display: grid; gap: clamp(2rem, 5vw, 3.4rem); }
.split > * { min-width: 0; }

/* ------------------------------------------------------- 11. DESTACADOS */

.picks { display: grid; gap: clamp(1.4rem, 3.5vw, 2.2rem); }
.pick { display: block; }
.pick .frame { margin-bottom: 1rem; }
.pick__t { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.pick__n { font-family: var(--display); font-weight: 500; font-size: var(--t-lg); letter-spacing: -.02em; }
.pick__p { font-family: var(--mono); font-size: .88rem; color: var(--ink-3); flex: none; }
.pick__d { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; }

/* -------------------------------------------------------- 12. LA HISTORIA */

.story { display: grid; gap: 1px; background: var(--line); }
.story__c { background: var(--snow); color: var(--ink); padding: clamp(1.5rem,4vw,2.4rem); }
.ink-bg .story { background: rgba(250,249,246,.16); }
.ink-bg .story__c { background: var(--ink); }
.story__n { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; color: var(--leaf-dp); margin-bottom: .9rem; display: block; }
.ink-bg .story__n { color: var(--leaf-br); }
.story__c h3 { font-size: var(--t-lg); font-weight: 500; margin-bottom: .55rem; }
.story__c p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.62; }
.ink-bg .story__c p { color: rgba(250,249,246,.8); }

/* ------------------------------------------------------- 13. RESEÑAS */

.score { display: grid; gap: 1.2rem; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.score__n { font-family: var(--display); font-weight: 300; font-size: clamp(3.2rem,12vw,5.5rem); line-height: .88; letter-spacing: -.05em; }
.score__meta { font-size: .93rem; color: var(--ink-2); line-height: 1.6; }
.stars { display: flex; gap: .16rem; color: var(--leaf-dp); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

.revs { display: grid; gap: 1px; background: var(--line); }
.rev { background: var(--snow); color: var(--ink); padding: clamp(1.4rem,3.5vw,2rem); display: flex; flex-direction: column; gap: .9rem; }
.paper-bg .rev { background: var(--paper); color: var(--ink); }
.rev__stars { display: flex; gap: .12rem; color: var(--leaf-dp); }
.rev__stars svg { width: 13px; height: 13px; fill: currentColor; }
.rev__t { font-size: 1.02rem; line-height: 1.62; flex: 1; }
.rev__by { font-family: var(--mono); font-size: .63rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }

/* ========================================================= 14. LA CARTA */

.cats { position: sticky; top: var(--nav-h); z-index: 60; background: rgba(250,249,246,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.cats__scroll { display: flex; gap: .35rem; overflow-x: auto; overscroll-behavior-x: contain; overscroll-behavior-y: none; padding: .65rem var(--gut); scrollbar-width: none; }
.cats__scroll::-webkit-scrollbar { display: none; }
.cat { flex: none; padding: .45rem .95rem; border-radius: var(--pill); background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--display); font-weight: 500; font-size: .88rem; white-space: nowrap; transition: background .22s, color .22s, box-shadow .22s; }
.cat.is-on { background: var(--ink); color: var(--snow); box-shadow: none; }

.mgroup { padding-top: clamp(2rem,5vw,3.4rem); scroll-margin-top: calc(var(--nav-h) + 54px); }
.mgroup__head { margin-bottom: 1.2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem; }
.mgroup__head h2 { font-size: var(--t-xl); font-weight: 400; }
.mgroup__head p { font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
/* El acento existía en los datos pero no pintaba nada. Ahora el verde marca
   el desayuno y sólo el desayuno: es lo que hacen mejor que nadie, así que
   es la única sección que se separa del resto. */
.mgroup--leaf .mgroup__head { border-bottom-width: 2px; border-bottom-color: var(--leaf-dp); }
.mgroup--ink  .mgroup__head { border-bottom-color: var(--ink); }

.items { display: grid; gap: 0; }
.item {
  background: transparent; color: var(--ink);
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: .2rem .9rem; align-items: center;
  transition: opacity .25s;
}
.item__name { font-family: var(--display); font-weight: 500; font-size: 1.08rem; line-height: 1.28; letter-spacing: -.015em; }
.item__note { grid-column: 1; font-size: .84rem; line-height: 1.55; color: var(--ink-3); max-width: 46ch; }
.item__price { grid-column: 1; font-family: var(--mono); font-size: .88rem; color: var(--ink-2); padding-top: .3rem; }
.item__side { grid-row: 1/4; grid-column: 2; display: flex; align-items: center; }
.item__tag { display: inline-block; margin-left: .5rem; vertical-align: middle; padding: .1rem .45rem; border-radius: var(--pill); background: var(--leaf-l); color: var(--leaf-dp); font-family: var(--mono); font-size: .54rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.item.sold-out { opacity: .42; }
.item.sold-out .item__side { display: none; }
.item__so { display: none; padding: .16rem .5rem; border-radius: var(--pill); background: var(--linen); color: var(--ink-2); font-family: var(--mono); font-size: .56rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.item.sold-out .item__so { display: inline-block; grid-row: 1/4; grid-column: 2; align-self: center; }

.add { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--snow); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: background .22s, transform .18s var(--pop); }
.add:hover { background: var(--leaf-dp); }
.add:active { transform: scale(.9); }
.add.pop { animation: popped .42s var(--pop); }
@keyframes popped { 0% { transform: scale(1); } 45% { transform: scale(1.22); background: var(--leaf-dp); } 100% { transform: scale(1); } }

.stepper { display: flex; align-items: center; border-radius: var(--pill); background: var(--linen); color: var(--ink); }
.stepper button { width: 36px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; transition: background .18s; }
.stepper button:hover { background: rgba(18,18,17,.1); }
.stepper output { min-width: 24px; text-align: center; font-family: var(--mono); font-size: .84rem; font-variant-numeric: tabular-nums; }

.mnote { background: var(--leaf-l); color: var(--ink); border-radius: var(--r); padding: .95rem 1.05rem; margin-top: 1rem; font-size: .89rem; line-height: 1.58; }
.mnote b { color: var(--leaf-dp); }

.cartbar {
  position: fixed; left: var(--gut); right: var(--gut); bottom: 1rem; z-index: 90;
  background: var(--ink); color: var(--snow); border-radius: var(--pill);
  padding: .65rem .7rem .65rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: var(--sh-lg);
  transform: translateY(180%); transition: transform .5s var(--pop);
}
.cartbar.is-up { transform: none; }
.cartbar__l { display: flex; align-items: center; gap: .7rem; min-width: 0; }
/* el verde de marca con blanco encima se queda en 3.95:1; el oscuro
   da 6.09:1 y el círculo es tan pequeño que la diferencia no se nota */
.cartbar__n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--leaf-dp); color: var(--snow); font-family: var(--mono); font-size: .8rem; }
.cartbar__n.bump { animation: bumped .42s var(--pop); }
@keyframes bumped { 0%,100% { transform: scale(1); } 40% { transform: scale(1.3); } }
.cartbar__t { font-family: var(--display); font-weight: 500; font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartbar__go { flex: none; padding: .48rem 1.1rem; border-radius: var(--pill); background: var(--snow); color: var(--ink); font-family: var(--display); font-weight: 500; font-size: .88rem; }

.scrim { position: fixed; inset: 0; z-index: 130; background: rgba(18,18,17,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s var(--soft); }
.scrim.is-on { opacity: 1; pointer-events: auto; }

.checkout {
  position: fixed; z-index: 140; inset: auto 0 0 0; height: 94svh;
  display: flex; flex-direction: column; background: var(--snow); color: var(--ink);
  overflow: hidden;
  transform: translateY(101%); transition: transform .5s var(--ease), background .4s var(--ease), color .3s var(--soft);
}
.checkout.is-open { transform: none; }
.checkout[data-room="2"] { background: var(--ink); color: var(--snow); }

.co__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gut) .5rem; }
.co__step { font-family: var(--display); font-weight: 500; font-size: 1.06rem; }
.co__x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(18,18,17,.07); font-size: 1.15rem; transition: background .22s; }
.checkout[data-room="2"] .co__x { background: rgba(250,249,246,.16); }

.rail { flex: none; display: flex; gap: 4px; padding: 0 var(--gut) .6rem; }
.rail span { height: 2px; flex: 1; background: currentColor; opacity: .18; transition: opacity .4s var(--soft); }
.rail span.on { opacity: 1; }

.rooms { flex: 1; display: flex; width: 300%; min-height: 0; transition: transform .55s var(--ease); }
.room { width: 33.3333%; flex: none; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: .8rem var(--gut) 1.4rem; display: flex; flex-direction: column; }
.room h2 { font-size: clamp(1.7rem,5.6vw,2.3rem); font-weight: 300; margin-bottom: 1.1rem; }

.lines { margin-bottom: 1.1rem; }
.line { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding-block: .85rem; border-bottom: 1px solid var(--line); align-items: center; }
.checkout[data-room="2"] .line { border-bottom-color: var(--snow-fn); }
.line__name { font-family: var(--display); font-weight: 500; font-size: 1rem; }
.line__p { font-family: var(--mono); font-size: .86rem; font-variant-numeric: tabular-nums; }
.line__c { grid-column: 1; }
.empty { padding: 3rem 0; text-align: center; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

.tally { margin-top: auto; padding-top: 1rem; }
.tally__r { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .83rem; font-variant-numeric: tabular-nums; padding-block: .28rem; color: var(--ink-2); }
.checkout[data-room="2"] .tally__r { color: rgba(250,249,246,.82); }
.tally__r--tot { color: inherit; font-family: var(--display); font-weight: 500; font-size: 1.45rem; padding-top: .8rem; margin-top: .4rem; border-top: 1px solid var(--line-2); }

.tips { display: flex; gap: .35rem; margin: .8rem 0 1.1rem; }
.tip { flex: 1; padding: .7rem .3rem; border-radius: var(--pill); background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--display); font-weight: 500; font-size: .9rem; text-align: center; transition: background .22s, color .22s, box-shadow .22s; }
.tip.is-on { background: var(--ink); color: var(--snow); box-shadow: none; }

.field { margin-bottom: .95rem; }
.field label { display: block; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .4rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: .8rem 1rem; border: 0; border-radius: var(--r); background: var(--paper); color: var(--ink); font-size: 1rem; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .22s var(--soft); }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--leaf-dp); }
/* el placeholder es texto y hay que poder leerlo: --ink-4 se queda
   en 2.98:1 sobre el campo, --ink-3 da 4.81:1 */
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }

.room__foot { margin-top: auto; padding-top: 1rem; }

.done { text-align: center; justify-content: center; }
.done__seal { width: 74px; height: 74px; margin: 0 auto 1.4rem; }
.done__seal circle { fill: none; stroke: var(--leaf-br); stroke-width: 2; }
.done__seal path { fill: none; stroke: var(--snow); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.checkout[data-room="2"] .done__seal path { animation: draw .5s var(--ease) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-size: clamp(1.9rem,7vw,2.7rem); }
.done__sub { max-width: 30ch; margin-inline: auto; color: rgba(250,249,246,.82); }
.ticket { margin: 1.6rem auto 0; max-width: 340px; width: 100%; background: rgba(250,249,246,.09); box-shadow: inset 0 0 0 1px var(--snow-fn); padding: 1.05rem 1.15rem; font-family: var(--mono); font-size: .8rem; text-align: left; }
.ticket div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .34rem; }
.ticket div + div { border-top: 1px solid var(--snow-fn); }
.ticket b { font-weight: 500; color: var(--leaf-br); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.confetti i { position: absolute; width: 7px; height: 7px; border-radius: 50%; top: -22px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(106vh) rotate(720deg); opacity: 0; } }

/* ======================================================== 15. VISÍTANOS */

.info { display: grid; gap: 1px; background: var(--line); }
.info__c { background: var(--snow); color: var(--ink); padding: clamp(1.4rem,3.5vw,2rem); min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.paper-bg .info__c { background: var(--paper); color: var(--ink); }
.info__c h3 { font-size: 1.16rem; font-weight: 500; margin-bottom: .4rem; }
.info__c p { font-size: var(--t-sm); color: var(--ink-3); }
.info__v { font-family: var(--mono); font-size: .96rem; color: var(--leaf-dp); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .82rem 0; border-bottom: 1px solid var(--line); font-weight: 400; font-size: 1rem; }
.ink-bg .hours th, .ink-bg .hours td, .leaf-bg .hours th, .leaf-bg .hours td { border-bottom-color: var(--snow-fn); }
.hours td { text-align: right; font-family: var(--mono); font-size: .86rem; font-variant-numeric: tabular-nums; }
.hours tr.now th, .hours tr.now td { color: var(--leaf-dp); }
.ink-bg .hours tr.now th, .ink-bg .hours tr.now td,
.leaf-bg .hours tr.now th, .leaf-bg .hours tr.now td { color: var(--leaf-br); }
.hours tr.shut td { color: var(--ink-3); }
.ink-bg .hours tr.shut td { color: rgba(250,249,246,.55); }

.mapbox { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 4/3; }
.mapbox svg { width: 100%; height: 100%; }
.pin { position: absolute; left: 56%; top: 44%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--leaf-br); box-shadow: 0 0 0 3px var(--ink); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 3px var(--ink), 0 0 0 0 rgba(95,176,109,.5); } 70% { box-shadow: 0 0 0 3px var(--ink), 0 0 0 28px rgba(95,176,109,0); } 100% { box-shadow: 0 0 0 3px var(--ink), 0 0 0 0 rgba(95,176,109,0); } }

.faq__i { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.2rem 0; font-family: var(--display); font-weight: 500; font-size: var(--t-lg); letter-spacing: -.015em; transition: color .2s; }
.faq__q:hover { color: var(--leaf-dp); }
.faq__q i { font-style: normal; font-size: 1.3rem; flex: none; color: var(--ink-3); transition: transform .35s var(--pop); }
.faq__i.open .faq__q i { transform: rotate(135deg); color: var(--leaf-dp); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq__a p { padding-bottom: 1.2rem; color: var(--ink-2); max-width: 62ch; font-size: var(--t-sm); }

.toast { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 310; background: var(--ink); color: var(--snow); border-radius: var(--r); padding: 1rem 1.1rem; font-weight: 500; font-size: .9rem; box-shadow: var(--sh-lg); transform: translateY(180%); transition: transform .45s var(--pop); }
.toast.is-up { transform: none; }

.notice { position: relative; z-index: 121; background: var(--leaf-dp); color: var(--snow); padding: .7rem var(--gut); text-align: center; font-family: var(--display); font-weight: 500; font-size: .94rem; }
.notice[hidden] { display: none; }

/* ---------------------------------------- 16. SEGUIMIENTO DEL PEDIDO */

.track {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  display: flex; align-items: center; gap: .85rem;
  background: var(--ink); color: var(--snow);
  border-radius: var(--r); padding: .85rem 1rem;
  box-shadow: var(--sh-lg);
  transform: translateY(180%); transition: transform .5s var(--pop), background .3s;
}
.track.is-up { transform: none; }
.track__dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--leaf-br); animation: pulse 1.8s ease-in-out infinite; }
.track__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; }
.track__head { font-family: var(--mono); font-size: .61rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf-br); }
.track__t { font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 6vw, 2rem); line-height: 1.04; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.track__sub { font-size: .79rem; color: rgba(250,249,246,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__x { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; background: rgba(250,249,246,.14); color: var(--snow); transition: background .2s; }
.track__x:hover { background: rgba(250,249,246,.28); }
.track--ready { background: var(--leaf-dp); }
.track--ready .track__head { color: rgba(250,249,246,.86); }
.track--ready .track__dot { background: var(--snow); animation: none; }
.track.is-up ~ .cartbar { bottom: 5.6rem; }

/* ------------------------------------------------------------- 17. PIE */

.foot { background: var(--ink); color: var(--snow); padding-block: clamp(3rem,6vw,4.5rem) 1.5rem; }
.foot__top { display: grid; gap: 1.6rem; padding-bottom: 2rem; border-bottom: 1px solid var(--snow-fn); }
.foot__mark { margin-bottom: 1rem; }
.foot__mark img { width: min(280px, 76%); height: auto; }
.foot__grid { display: grid; gap: 1.6rem; padding-top: 2rem; }
.foot h4 { font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf-br); margin-bottom: .8rem; }
.foot__line { display: block; margin-bottom: .32rem; font-size: var(--t-sm); color: rgba(250,249,246,.82); }
.foot a:hover { color: var(--leaf-br); }
.foot__bar { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; margin-top: 1.9rem; padding-top: 1.2rem; border-top: 1px solid var(--snow-fn); font-family: var(--mono); font-size: var(--t-xs); color: rgba(250,249,246,.62); }

/* ======================================================= 18. REVELADOS */

[data-rise] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-rise]:not(.seen) { opacity: 0; transform: translateY(22px); }
[data-rise] > .rev, [data-rise] > .stat, [data-rise] > .info__c,
[data-rise] > .pick, [data-rise] > .story__c { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js [data-rise]:not(.seen) > .rev, .js [data-rise]:not(.seen) > .stat,
.js [data-rise]:not(.seen) > .info__c, .js [data-rise]:not(.seen) > .pick,
.js [data-rise]:not(.seen) > .story__c { opacity: 0; transform: translateY(14px); }
[data-rise].seen > *:nth-child(1) { transition-delay: .05s; }
[data-rise].seen > *:nth-child(2) { transition-delay: .11s; }
[data-rise].seen > *:nth-child(3) { transition-delay: .17s; }
[data-rise].seen > *:nth-child(4) { transition-delay: .23s; }
[data-rise].seen > *:nth-child(5) { transition-delay: .29s; }
[data-rise].seen > *:nth-child(6) { transition-delay: .35s; }

/* ==================================================== 19. BREAKPOINTS

   Móvil primero. Cada regla de abajo AÑADE a la base, nunca la sustituye,
   así que un tamaño intermedio nunca se queda sin estilo. */

/* --- teléfonos (hasta 619) ---

   El logotipo es muy ancho (4.36:1), así que en un teléfono de 375 o 390px
   la barra no daba de sí: el logo, el idioma y el botón de pedir sumaban
   más que la pantalla. El interruptor de idioma baja al menú lateral, que
   ya lo lleva — y el botón que gana dinero se queda donde está. */
@media (max-width: 619px) {
  .nav .langsw { display: none; }
  .brand img { height: 26px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cats__scroll { padding-inline: var(--gut); }
}

/* --- teléfonos muy estrechos (320–359) --- */
@media (max-width: 359px) {
  .brand img { height: 23px; }
}

/* --- tabletas verticales y teléfonos grandes (620+) --- */
@media (min-width: 620px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .info  { grid-template-columns: repeat(2, 1fr); }
  .items { grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.6rem, 4vw, 3rem); }
  .revs  { grid-template-columns: repeat(2, 1fr); }
  .picks { grid-template-columns: repeat(3, 1fr); }
  .story { grid-template-columns: repeat(3, 1fr); }
  .foot__grid { grid-template-columns: repeat(2, 1fr); }
  .score { grid-template-columns: auto 1fr; align-items: end; gap: 2rem; }
  .toast, .track { left: auto; right: 1.4rem; width: 370px; }
  .track.is-up ~ .cartbar { bottom: 1rem; }
  .brand img { height: 30px; }
  .hero__mark { width: min(560px, 74%); }
}

/* --- tabletas horizontales (860+) --- */
@media (min-width: 860px) {
  .hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
  .hero__art { margin-top: 0; }
  .head--split { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* --- escritorio (1020+) --- */
@media (min-width: 1020px) {
  :root { --nav-h: 76px; }
  .brand img { height: 34px; }
  .nav__links { display: flex; gap: 2rem; font-family: var(--display); font-weight: 500; font-size: 1rem; }
  .nav__links a { position: relative; padding-block: .3rem; color: var(--ink-2); transition: color .2s; }
  .nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
  .nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--leaf-dp); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
  .nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .burger { display: none; }

  .info { grid-template-columns: repeat(4, 1fr); }
  .foot__grid { grid-template-columns: repeat(4, 1fr); }
  .foot__top { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .revs { grid-template-columns: repeat(3, 1fr); }
  .items { grid-template-columns: repeat(3, 1fr); }

  .checkout { inset: 0 0 0 auto; height: 100%; width: min(480px,100%); transform: translateX(101%); }
  .checkout.is-open { transform: none; }
  .room, .co__bar, .rail { padding-inline: 2.6rem; }
  .cartbar { left: auto; right: 1.5rem; bottom: 1.5rem; width: 340px; }
  .track.is-up ~ .cartbar { bottom: 8.4rem; }
  .track { right: 1.5rem; bottom: 1.5rem; }
}

/* ================================================ 20. MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-rise]:not(.seen), .js [data-rise]:not(.seen) > * { opacity: 1 !important; transform: none !important; }
  .frame img, .gcell img { opacity: 1; transform: none; }
  .ticker__row { animation: none; }
}
