/* ==========================================================================
   Free Crepes — Chascomús
   Dirección de arte: negro cálido + dorado del logo. La foto manda, el texto
   acompaña. El arco de la sonrisa del logo es el único elemento decorativo
   y se repite como firma de marca.
   ========================================================================== */

:root {
  /* Paleta: sale del logo real (negro + dorado) */
  --ink:        #14100b;
  --ink-2:      #1b1610;
  --line:       rgba(231, 184, 79, .18);
  --cream:      #f6eedf;
  --cream-mid:  rgba(246, 238, 223, .74);
  --cream-low:  rgba(246, 238, 223, .58);
  --gold:       #e7b84f;
  --gold-deep:  #c99a2e;

  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(1.15rem, 5vw, 2.5rem);
  --max: 68rem;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* Sin scroll-behavior: smooth: junto con ScrollTrigger hace saltar la página en el celular cuando
   aparece o se va la barra del navegador. El desplazamiento suave de los enlaces lo hace app.js. */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* clip y no hidden: hidden convierte al body en contenedor de scroll y rompe
     position:sticky de la nav de categorías. */
  overflow-x: clip;
}

.sprite { position: absolute; }

/* La nav pegajosa taparía el título de la sección al saltar desde el menú. */
#inicio, #carta, .grp, .acc, .place, .faq, .catnav { scroll-margin-top: calc(var(--topbar-h, 0px) + 3.9rem); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.015em; }
p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

.skiplink {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 60; background: var(--gold); color: var(--ink);
  padding: .7rem 1.1rem; border-radius: 0 0 10px 10px; font-weight: 600;
  text-decoration: none;
}
.skiplink:focus { transform: translate(-50%, 0); }

.ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* La sonrisa del logo, usada como firma ------------------------------------ */
.smile {
  display: block; width: 78px; height: 17px;
  color: var(--gold); opacity: .9; margin: .85rem 0 0;
}
.smile--hero { width: 96px; height: 21px; margin: .7rem auto 0; }

/* Botones ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.4rem;
  font: 600 1rem/1 var(--text); letter-spacing: -.01em;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}
.btn:active { transform: scale(.975); }
.btn--wa { background: var(--gold); color: #120e08; }
.btn--wa:hover { background: #f2c766; }
.btn--dark { background: #17120c; color: var(--cream); }
.btn--dark:hover { background: #241d14; }
.btn--ghost { border-color: var(--line); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); background: rgba(231,184,79,.07); }
/* Acción destacada que no es "pedir": el dorado lleno queda reservado al pedido. */
.btn--line { border-color: var(--gold); color: var(--gold); background: rgba(231,184,79,.06); }
.btn--line:hover { background: rgba(231,184,79,.14); }
.btn--sm { min-height: 42px; padding: .5rem 1rem; font-size: .9375rem; }

/* Barra superior -----------------------------------------------------------
   Solo en pantallas grandes: en mobile el CTA vive en el botón flotante y no
   tiene sentido tener dos botones de WhatsApp compitiendo. */
.topbar {
  display: none;
  position: fixed; inset: 0 0 auto; z-index: 40;
  align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem var(--pad);
  background: #100c07;
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform .28s var(--ease);
}
.topbar[data-visible] { transform: none; }
.topbar__brand {
  display: flex; align-items: center; gap: .6rem; min-height: 44px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; letter-spacing: -.01em;
  flex: 0 1 auto; min-width: 0;
}
.topbar__brand img { width: 34px; height: 34px; border-radius: 50%; }
.topbar__nav {
  display: none; align-items: center; gap: .15rem; margin-left: auto;
}
.topbar__nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  font-size: .9375rem; font-weight: 500; color: var(--cream-mid);
  text-decoration: none; border-radius: 999px;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.topbar__nav a:hover { color: var(--cream); }
.topbar__nav a[aria-current="true"] { color: var(--gold); }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; }
/* clip: la foto hace parallax al scrollear y no tiene que asomar sobre la sección siguiente. */
.hero__visual { position: relative; overflow: clip; }
.hero__media { display: block; }
.hero__media img {
  width: 100%; height: clamp(420px, calc(var(--vh, 1vh) * 62), 720px);
  object-fit: cover; object-position: 50% 56%;
}
.hero__inset {
  position: absolute; z-index: 3; right: var(--pad); bottom: 1rem;
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(231,184,79,.55);
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
  pointer-events: none;
}
.hero__inset-v {
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Scrim funcional: sin esto el texto no es legible sobre la foto */
  background: linear-gradient(178deg, rgba(20,16,11,.42) 0%, rgba(20,16,11,.12) 34%, rgba(20,16,11,.86) 78%, var(--ink) 100%);
}
.hero__body {
  position: relative; z-index: 2;
  margin-top: -8.5rem;
  padding: 0 var(--pad) 2.25rem;
  text-align: center;
}
.hero__logo {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto .9rem;
  border: 1.5px solid rgba(231,184,79,.45);
}
/* 13.5vw y no 15vw: deja aire para que el título no se recorte mientras la
   fuente todavía no cargó y se está usando el fallback, que es más ancho. */
.hero__title { font-size: clamp(2.75rem, 13.5vw, 5rem); }
.hero__eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .35rem;
}
.hero__tagline {
  margin-top: .25rem; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.25rem, 5.5vw, 1.75rem); color: var(--cream-mid);
}
.hero__claim { margin-top: .9rem; color: var(--cream-mid); font-size: 1.0625rem; }
.hero__place {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .7rem; margin-bottom: .1rem; color: var(--gold);
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
}
.hero__hours {
  margin-top: .4rem; font-size: .875rem; font-weight: 500;
  color: var(--cream-mid); letter-spacing: .02em;
}

.flag {
  display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  justify-content: center;
  margin: 1.75rem 0 0; padding: .4rem .95rem .4rem .45rem;
  transform: translateX(.55rem);
  border: 1px solid rgba(231,184,79,.42); border-radius: 999px;
  background: rgba(231,184,79,.08);
  font-size: .9375rem;
}
.flag__new {
  background: var(--gold); color: #120e08; border-radius: 999px;
  padding: .18rem .6rem; font-size: .75rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
}
.flag__txt strong { color: var(--gold); font-weight: 600; }

.hero__actions {
  display: flex; flex-direction: column; gap: .65rem;
  margin: 1.5rem auto 0; max-width: 22rem;
}
/* Enlace tipográfico: indica que la carta completa está abajo, sin competir
   con los dos CTA principales ni parecer un tercer botón. */
.hero__carta {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: .85rem; padding: .2rem 0;
  font-size: .9375rem; font-weight: 500; color: var(--cream-mid);
  text-decoration: none; border-bottom: 1px solid var(--line);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.hero__carta:hover { color: var(--gold); border-color: var(--gold); }

/* Inicio — variedad -------------------------------------------------------- */
.variety {
  padding: clamp(2.5rem, 8vw, 3.75rem) var(--pad);
  border-top: 1px solid var(--line);
}
.variety__inner { max-width: var(--max); margin: 0 auto; }
.variety__title {
  font-size: clamp(1.5rem, 6vw, 2rem); color: var(--cream);
  max-width: 22rem;
}
.variety__trio {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem;
  margin-top: 1.35rem;
}
.variety__item {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.variety__item:hover { border-color: var(--gold); }
.variety__item:active { transform: scale(.98); }
.variety__item img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
}
.variety__label {
  display: block; padding: .65rem .5rem;
  font-family: var(--display); font-weight: 700; font-size: .9375rem;
  text-align: center; color: var(--gold);
}

/* Inicio — proceso ------------------------------------------------------- */
.proceso {
  padding: clamp(2.25rem, 7vw, 3.5rem) 0 clamp(2.5rem, 8vw, 3.75rem);
  border-top: 1px solid var(--line);
}
.proceso__head { padding: 0 var(--pad); max-width: var(--max); margin: 0 auto; }
.proceso__title { font-size: clamp(1.75rem, 7vw, 2.35rem); }
.proceso__sub { margin-top: .45rem; color: var(--cream-low); font-size: .9375rem; }
.proceso__strip {
  display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 1.35rem var(--pad) .25rem; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.proceso__strip::-webkit-scrollbar { display: none; }
.momento {
  flex: 0 0 min(72vw, 16rem); scroll-snap-align: center;
}
.momento__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-2);
  aspect-ratio: 4 / 5;
}
.momento__video, .momento__fallback img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.momento__video { position: absolute; inset: 0; z-index: 1; }
.momento__fallback { display: block; width: 100%; height: 100%; }
.momento__media[data-playing] .momento__fallback { opacity: 0; pointer-events: none; }
.momento__label {
  margin-top: .65rem; font-size: .875rem; font-weight: 500;
  color: var(--cream-mid); letter-spacing: .01em;
}

/* Inicio — teaser local -------------------------------------------------- */
.local-teaser {
  padding: clamp(2.5rem, 8vw, 3.75rem) var(--pad);
  border-top: 1px solid var(--line);
}
.local-teaser__inner { max-width: var(--max); margin: 0 auto; }
.local-teaser__title { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
.local-teaser__lead { margin-top: .55rem; color: var(--cream-mid); max-width: 28rem; }

.local-reel {
  position: relative;
  margin-top: 1.35rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  max-width: 22.5rem;
  aspect-ratio: 9 / 16;
}
.local-reel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.local-reel__ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(transparent 55%, rgba(20, 16, 11, .55));
}
.local-reel__btn {
  pointer-events: auto;
  appearance: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(20, 16, 11, .78);
  color: var(--cream);
  border: 1px solid rgba(231, 184, 79, .35);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.local-reel__btn:hover {
  background: rgba(20, 16, 11, .92);
  color: var(--gold);
  border-color: var(--gold);
}
.local-reel__btn .ico { width: 1.25rem; height: 1.25rem; }
.local-reel__btn--play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
}
.local-reel[data-playing] .local-reel__btn--play {
  left: .8rem;
  top: auto;
  bottom: .8rem;
  transform: none;
  width: 2.75rem;
  height: 2.75rem;
}
.local-reel__btn--mute {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
}
.local-reel__btn--mute[hidden] { display: none !important; }


/* Inicio — delivery compacto ---------------------------------------------- */
.delivery-compact {
  padding: clamp(2.25rem, 7vw, 3.25rem) var(--pad);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.delivery-compact__inner { max-width: 36rem; margin: 0 auto; }
.delivery-compact__title { font-size: clamp(1.5rem, 6vw, 2rem); margin-top: .25rem; }
.delivery-compact__lead { margin-top: .65rem; color: var(--cream-mid); font-size: 1rem; }
.delivery-compact__steps {
  display: flex; flex-wrap: wrap; gap: .65rem 1.25rem;
  margin-top: 1.25rem; font-size: .9375rem; color: var(--cream);
}
.delivery-compact__steps li { display: flex; align-items: center; gap: .5rem; }
.delivery-compact__n {
  flex: 0 0 auto; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: rgba(231,184,79,.15); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 600;
}
.delivery-compact .facts { margin-top: 1rem; color: var(--cream-mid); }
.delivery-compact__note {
  margin-top: 1rem; font-size: .875rem; color: var(--cream-low);
  border-left: 2px solid var(--line); padding-left: .75rem;
}
.delivery-compact .btn { margin-top: 1.35rem; }

/* Inicio — puente a carta ------------------------------------------------- */
.puente {
  padding: clamp(2.75rem, 9vw, 4rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.puente__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 1.5rem; align-items: center;
}
.puente__thumb {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); max-width: 14rem; margin: 0 auto;
}
.puente__thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.puente__title { font-size: clamp(1.75rem, 7vw, 2.4rem); margin-top: .3rem; }
.puente__lead { margin-top: .55rem; color: var(--cream-mid); max-width: 26rem; }
.puente__body .btn { margin-top: 1.25rem; }
.puente__body .smile { margin-top: 1.1rem; }

/* Franja de delivery (legacy — conservada por si acaso) ------------------- */
.band {
  background: var(--gold); color: #150f06;
  padding: clamp(2.5rem, 8vw, 4rem) var(--pad);
}
.band__inner { max-width: 44rem; margin: 0 auto; }
.band__eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(21,15,6,.78);
}
.band__title { font-size: clamp(2.1rem, 9vw, 3.2rem); margin-top: .3rem; }
.band__lead { margin-top: .8rem; font-size: 1.0625rem; color: rgba(21,15,6,.8); max-width: 32rem; }

.steps { margin-top: 1.6rem; display: grid; gap: .8rem; }
.steps li { display: flex; align-items: baseline; gap: .75rem; font-size: 1rem; }
.steps__n {
  flex: 0 0 auto; width: 1.65rem; height: 1.65rem; border-radius: 50%;
  background: #150f06; color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8125rem; font-weight: 600; transform: translateY(.15rem);
}

.facts { margin-top: 1.4rem; display: grid; gap: .35rem; font-size: .9375rem; }
.facts li strong { font-weight: 600; }
.band__note {
  margin-top: 1.25rem; font-size: .9375rem; color: rgba(21,15,6,.7);
  border-left: 2px solid rgba(21,15,6,.28); padding-left: .8rem;
}
.band .btn--dark { margin-top: 1.6rem; }

/* Navegación de categorías ------------------------------------------------- */
.catnav {
  position: sticky; top: var(--topbar-h, 0px); z-index: 30;
  background: #100c07;
  border-bottom: 1px solid var(--line);
}
.catnav__list {
  display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none;
  padding: .6rem var(--pad); scroll-snap-type: x proximity;
}
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__list a {
  scroll-snap-align: center;
  display: flex; align-items: center; min-height: 44px;
  white-space: nowrap; text-decoration: none;
  padding: .4rem .95rem; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; color: var(--cream-mid);
  border: 1px solid transparent;
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}
.catnav__list a:hover { color: var(--cream); border-color: var(--line); }
.catnav__list a[aria-current="true"] {
  background: var(--gold); color: #120e08; font-weight: 600;
}
/* Ubicación no es una categoría de la carta: se separa visualmente y queda
   fija a la derecha, para que no se pierda al scrollear los grupos. */
.catnav__item--place {
  /* el right negativo compensa el padding del scroller: sin eso el fondo no
     llega al borde y se ven los pills de abajo asomando. */
  position: sticky; right: calc(-1 * var(--pad)); z-index: 1;
  margin-left: .5rem;
  padding-left: .9rem; padding-right: var(--pad);
  border-left: 1px solid var(--line);
  background: #100c07;
}
.catnav__item--place a { color: var(--gold); }

/* La carta como índice ----------------------------------------------------
   12 categorías cerradas. El estado cerrado es puramente tipográfico, como el
   índice de una carta impresa: nombre, cantidad y un signo dorado. */
.grp { max-width: var(--max); margin: 0 auto; padding: clamp(2.25rem, 7vw, 3.25rem) var(--pad) 0; }
.grp:last-of-type { padding-bottom: clamp(2.5rem, 8vw, 4rem); }
.grp__title {
  font-size: clamp(1.6rem, 6vw, 2.1rem); color: var(--gold);
  letter-spacing: -.01em;
}
.grp__list { margin-top: 1.1rem; }

.eyebrow {
  font-size: .78125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}

.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc__h { margin: 0; font: inherit; }
.acc__btn {
  width: 100%; min-height: 68px;
  display: grid; grid-template-columns: 1fr auto auto; gap: .5rem 1rem; align-items: center;
  padding: 1.15rem .15rem; text-align: left;
  background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1.3125rem;
  letter-spacing: -.015em;
  transition: color .16s var(--ease);
}
.acc__btn:hover { color: var(--gold); }
.acc__name { min-width: 0; }
.acc__count {
  font-family: var(--text); font-weight: 400; font-size: .875rem;
  color: var(--cream-low); letter-spacing: 0; white-space: nowrap;
}

/* El signo: dos trazos finos dorados, sin círculo ni caja. Al abrir se va el
   trazo vertical y queda un guión. */
.acc__sign { position: relative; width: 15px; height: 15px; flex: 0 0 auto; }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px;
  background: var(--gold); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.acc__sign::after { transform: rotate(90deg); }
.acc[data-open] .acc__sign::after { transform: rotate(0deg); opacity: 0; }

/* Colapso con grid: no hace falta medir alturas con JS. */
.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.acc__inner {
  overflow: hidden; visibility: hidden;
  transition: visibility 0s linear .3s;
}
.acc[data-open] .acc__panel { grid-template-rows: 1fr; }
.acc[data-open] .acc__inner { visibility: visible; transition-delay: 0s; }
.acc[data-instant] .acc__panel, .acc[data-instant] .acc__inner { transition: none; }

.acc__grid { padding-bottom: 2.25rem; }
.acc__figure { margin: 0 0 1.5rem; }
.acc__figure img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius);
}
/* Comida / mostrador — fotos landscape */
#crepes-salados .acc__figure img,
#licuados-frutales .acc__figure img {
  aspect-ratio: 16 / 9;
}
/* Producto vertical — vaso o crepe de cerca */
#crepes-dulces .acc__figure img,
#frappuccinos .acc__figure img,
#malteadas .acc__figure img,
#limonadas .acc__figure img {
  aspect-ratio: 3 / 4;
}
#crepes-dulces .acc__figure img { object-position: 50% 70%; }
#frappuccinos .acc__figure img,
#malteadas .acc__figure img,
#limonadas .acc__figure img {
  object-position: 50% 62%;
}
.acc__lead { color: var(--cream-mid); font-size: 1rem; max-width: 32rem; }
.acc__body > .smile { margin-top: .7rem; }

.tag {
  display: inline-block; padding: .18rem .55rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  vertical-align: .12em;
}
.acc__name .tag { vertical-align: .18em; margin-left: .3rem; }

/* Chips (rellenos, sabores) ------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.chips li {
  padding: .42rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9375rem; color: var(--cream);
  background: rgba(231,184,79,.05);
}
.subhead {
  margin-top: 2.25rem; font-family: var(--display); font-weight: 700;
  font-size: 1.0625rem; letter-spacing: .01em; color: var(--gold);
}
.subhead--first { margin-top: 1.6rem; }
.fills { margin-top: .85rem; }

/* Filas de la carta ------------------------------------------------------- */
.list { margin-top: 1.75rem; }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem;
  align-items: baseline;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
}
.list > .row:first-child { border-top: 0; padding-top: 0; }
.row__name {
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -.005em;
  hyphens: auto;
}
.row__ref {
  display: inline-block; min-width: 1.5em;
  font-size: .8125rem; font-weight: 600; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.row__price {
  font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row__price--ask { font-size: .875rem; font-weight: 500; color: var(--cream-low); }

/* Los licuados tienen nombres largos (cadena de ingredientes). En mobile el
   nombre se lleva todo el ancho y los precios bajan a la línea siguiente. */
.row--sized { grid-template-columns: 1fr; }
.row--sized .row__sizes { justify-content: flex-end; }
.row__sizes { display: flex; gap: 1.1rem; }
.row__size {
  width: 4.4rem; text-align: right;
  font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums;
}

.sizehead {
  display: flex; justify-content: flex-end; gap: 1.1rem;
  margin-top: 1.5rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}
.sizehead span { width: 4.4rem; text-align: right; }
.sizehead + .list { margin-top: 0; }
.sizehead + .list > .row:first-child { border-top: 0; padding-top: .95rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Rellenos / pastas (crepes dulces) — compacto: pasta + precio base,
   debajo combinaciones con precio final (no adicionales). */
.fill {
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}
.fill:first-child { border-top: 0; padding-top: 0; }
.fill__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem .85rem;
  align-items: baseline;
}
.fill__name {
  font-family: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  min-width: 0;
}
.fill__price {
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  white-space: nowrap;
}
.fill__ings {
  margin-top: .28rem;
  font-size: .875rem;
  line-height: 1.35;
  color: var(--cream-mid);
}
.fill__vars {
  margin-top: .35rem;
  display: grid;
  gap: .18rem;
}
.fill__vars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem .75rem;
  align-items: baseline;
  padding-left: .75rem;
  position: relative;
  font-size: .875rem;
  line-height: 1.35;
  color: var(--cream-mid);
}
.fill__vars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--gold-deep);
}
.fill__var-name {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.fill__var-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  white-space: nowrap;
}

/* Precio único (postres) -------------------------------------------------- */
.solo { margin-top: 1.6rem; }
.solo__price {
  font-family: var(--display); font-weight: 800; color: var(--gold);
  font-size: clamp(3.4rem, 16vw, 5.5rem); line-height: .9;
  font-variant-numeric: tabular-nums;
}
.solo__label { color: var(--cream-mid); font-size: .9375rem; margin-top: .3rem; }

/* Ubicación -------------------------------------------------------------- */
.place { padding: clamp(2.75rem, 9vw, 4.5rem) var(--pad); border-top: 1px solid var(--line); }
.place__inner { max-width: var(--max); margin: 0 auto; }
.place__title { font-size: clamp(1.9rem, 7.5vw, 2.6rem); margin-top: .35rem; }
.place__lead { margin-top: .95rem; color: var(--cream-mid); max-width: 30rem; }
.place__schedule { margin-top: 1.15rem; max-width: 28rem; }
.place__schedule .eyebrow { margin-bottom: .35rem; }
.place__hours {
  font-size: 1.0625rem; color: var(--cream); font-weight: 500;
  letter-spacing: .01em; line-height: 1.45;
}
.place__photos {
  margin-top: 1.35rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); max-width: 36rem;
}
.place__photos img { width: 100%; height: auto; aspect-ratio: auto; object-fit: initial; }
.place__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* Pie -------------------------------------------------------------------- */
.foot {
  text-align: center; padding: 3rem var(--pad) 6.5rem;
  background: #100c07; border-top: 1px solid var(--line);
}
.foot__logo { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 1rem; }
.foot__claim { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.foot__links { display: flex; justify-content: center; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.foot__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem;
  font-size: .9375rem; color: var(--gold); text-decoration: none;
}
.foot__links a:hover { text-decoration: underline; }
.foot__fine { margin-top: 1.6rem; font-size: .8125rem; color: var(--cream-low); }

/* CTA flotante ------------------------------------------------------------ */
.fab {
  position: fixed; z-index: 45;
  right: var(--pad); bottom: max(1rem, calc(env(safe-area-inset-bottom) + .5rem));
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 52px; padding: .85rem 1.35rem;
  background: var(--gold); color: #120e08;
  font: 600 1rem/1 var(--text); text-decoration: none;
  border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.38);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}
.fab[data-visible] { opacity: 1; visibility: visible; transform: none; }
.fab:active { transform: scale(.97); }

.loading { padding: 4rem var(--pad); text-align: center; color: var(--cream-low); }

/* Sin motion: ocultar videos, mostrar fotos -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  [data-motion-media] { display: none !important; }
  .momento__fallback { opacity: 1 !important; }
}

html[data-reduced-motion] [data-motion-media] { display: none !important; }
html[data-reduced-motion] .momento__fallback { opacity: 1 !important; }

/* Escritorio ------------------------------------------------------------- */
@media (min-width: 46rem) {
  .topbar {
    display: flex;
    transform: none;
  }
  body { --topbar-h: 3.85rem; }
  body[data-scrolled] { --topbar-h: 3.85rem; }
  .topbar__nav { display: flex; }
  .hero__media img {
    height: clamp(480px, calc(var(--vh, 1vh) * 68), 780px);
    object-position: 50% 54%;
  }
  .hero__body { margin-top: -10rem; }
  .hero__inset { width: 96px; height: 96px; bottom: 1.25rem; }
  .hero__actions { flex-direction: row; justify-content: center; max-width: none; }
  .variety__trio { gap: 1rem; }
  .variety__label { font-size: 1.0625rem; padding: .75rem; }
  .proceso__strip {
    display: grid; grid-template-columns: repeat(3, 1fr);
    overflow: visible; padding-left: var(--pad); padding-right: var(--pad);
    max-width: var(--max); margin: 1.35rem auto 0;
  }
  .momento { flex: none; }
  .local-reel { max-width: 26rem; }
  .delivery-compact__inner { max-width: var(--max); }
  .delivery-compact__steps { gap: 2rem; }
  .puente__inner { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 2.5rem; }
  .puente__thumb { margin: 0; max-width: none; }
  .acc__btn { font-size: 1.5rem; padding: 1.35rem .15rem; }
  .row--sized { grid-template-columns: 1fr auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .steps li { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .steps__n { transform: none; }
  .band__inner { max-width: var(--max); }
  .fab { display: none; }
}

/* En pantalla ancha el panel abierto usa la foto como columna, en vez de dejar
   una lista angosta con mucho aire al costado. */
@media (min-width: 60rem) {
  .acc__grid--img {
    display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
    gap: 3rem; align-items: start;
  }
  .acc__grid--img .acc__figure { margin: 0; }
  /* En columna: comida un poco más alta que 16:9 para no quedar en franja. */
  #crepes-salados .acc__figure img,
  #licuados-frutales .acc__figure img {
    aspect-ratio: 4 / 3;
  }
  /* Verticales siguen en 3/4 (regla por ID arriba). */
}

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

/* ==========================================================================
   Secciones nuevas: polaroids, cinta, palabras gigantes, FAQ, horarios, visor
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* Alto de pantalla en px, fijado por app.js: en el celular la barra del navegador cambia el
     alto visible al scrollear y con vh las secciones fijas se correrían. */
  --vh: 1vh;
  --intro-d: 0ms;
  --papel: #f7f1e6;
}

/* Polaroids pegadas con cinta ---------------------------------------------- */
.mesa {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 1.1rem calc(-1 * var(--pad)) 0; padding: 1.6rem var(--pad) 1.5rem;
  scrollbar-width: none;
}
.mesa::-webkit-scrollbar { display: none; }
.pola { flex: 0 0 min(58vw, 15rem); scroll-snap-align: center; rotate: var(--r, -2deg); }
.pola:nth-child(2) { --r: 2.5deg; }
.pola:nth-child(3) { --r: -1.5deg; }
.pola:nth-child(4) { --r: 3deg; }
.pola:nth-child(5) { --r: -3deg; }
.pola__btn {
  position: relative; display: block; width: 100%;
  padding: .55rem .55rem 0; margin: 0;
  background: var(--papel); color: #2a2016; border: 0; border-radius: 3px;
  box-shadow: 0 12px 26px rgba(0,0,0,.45);
  font: inherit; text-align: center; cursor: zoom-in;
  transition: rotate .3s var(--ease-out), scale .3s var(--ease-out), translate .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.pola__btn img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1px; }
.pola__pie {
  display: block; padding: .6rem .2rem .75rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.1;
}
/* La cinta: papel engomado semitransparente, del dorado de la marca. */
.pola__cinta {
  position: absolute; z-index: 1; top: -11px; left: 50%;
  width: 78px; height: 24px; translate: -50% 0; rotate: -5deg;
  background: rgba(231,184,79,.62);
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.pola:nth-child(even) .pola__cinta { rotate: 4deg; }
.pola__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .pola__btn:hover {
    rotate: calc(var(--r, -2deg) * -1); scale: 1.05; translate: 0 -6px;
    box-shadow: 0 22px 40px rgba(0,0,0,.55);
  }
}

/* Cinta tipo marquesina sobre la foto de la crepera ------------------------ */
.cinta {
  position: relative; display: grid; place-items: center; overflow: hidden;
  height: clamp(170px, 30vw, 260px);
  background: linear-gradient(rgba(20,16,11,.5), rgba(20,16,11,.5)), url(img/home/proceso-mkko.webp) center 40% / cover;
  border-top: 1px solid var(--line);
}
.cinta__tira {
  grid-area: 1 / 1; width: 130%; padding: .7rem 0; overflow: hidden;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.1rem, 4.4vw, 2rem); line-height: 1; letter-spacing: .01em;
  white-space: nowrap;
}
.cinta__tira--oro { z-index: 2; rotate: -4deg; background: var(--gold); color: #120e08; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.cinta__tira--crema { rotate: 3.5deg; background: var(--cream); color: var(--ink); }
.cinta__pista { display: flex; width: max-content; }
.cinta__grupo { display: flex; align-items: center; gap: 1.1rem; padding-right: 1.1rem; }
.cinta__sep { font-size: .65em; opacity: .7; }

/* Palabras gigantes -------------------------------------------------------- */
.manif {
  padding: clamp(3rem, 10vw, 5rem) var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
}
.manif__palabras { display: grid; gap: .08em; }
.manif__p {
  font-family: var(--display); font-weight: 800; line-height: .92; letter-spacing: -.035em;
  font-size: clamp(3.6rem, 19vw, 11rem); color: var(--cream);
}
.manif__p:nth-child(even) { color: var(--gold); }
.manif__p--fin { font-size: clamp(2.7rem, 13.5vw, 8.5rem); color: var(--gold); }
.manif__smile { width: clamp(120px, 30vw, 230px); height: auto; aspect-ratio: 100 / 22; margin: 1.4rem auto 0; }

/* Con GSAP activo: la sección es alta y su contenido queda fijo (sticky, sin pin) mientras las
   palabras se reemplazan. ScrollTrigger solo mide el avance. */
html.anima-scroll .manif { height: calc(var(--vh) * 100 * 4.2); padding: 0; }
html.anima-scroll .manif__fijo {
  position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--pad);
}
html.anima-scroll .manif__palabras { display: grid; }
html.anima-scroll .manif__p { grid-area: 1 / 1; align-self: center; }

/* Preguntas frecuentes ----------------------------------------------------- */
.faq { padding: clamp(2.75rem, 9vw, 4.5rem) var(--pad); border-top: 1px solid var(--line); }
.faq__inner { max-width: var(--max); margin: 0 auto; }
.faq__title { font-size: clamp(1.9rem, 7.5vw, 2.6rem); margin-top: .35rem; }
.faq__list { margin-top: 1.6rem; max-width: 46rem; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  min-height: 60px; padding: 1.05rem .15rem;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2;
  list-style: none; cursor: pointer;
  transition: color .16s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--gold); }
.faq__item[open] .acc__sign::after { transform: rotate(0deg); opacity: 0; }
.faq__a { padding: 0 .15rem 1.3rem; color: var(--cream-mid); max-width: 40rem; }

/* Horarios: una fila por día --------------------------------------------- */
.dias {
  display: grid; grid-template-columns: auto auto; justify-content: start;
  gap: .35rem 2.25rem; margin: .1rem 0 0; font-size: 1rem;
}
.dias dt { color: var(--cream-mid); }
.dias dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dias .dias__cerrado { color: var(--cream-low); }

/* Foto que sigue al cursor en la carta (solo mouse) ----------------------- */
.sigue {
  position: fixed; left: 0; top: 0; z-index: 35; width: 210px;
  padding: .5rem .5rem 1.5rem; background: var(--papel); border-radius: 3px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  pointer-events: none; opacity: 0; scale: .8;
  transition: opacity .2s var(--ease-out), scale .3s var(--ease-out);
}
.sigue[data-on] { opacity: 1; scale: 1; }
.sigue img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Visor de fotos ---------------------------------------------------------- */
.visor {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--cream);
}
.visor[open] { display: grid; place-items: center; }
.visor::backdrop { background: rgba(10,8,5,.92); }
.visor__fig { margin: 0; display: grid; gap: .8rem; justify-items: center; padding: 4.5rem 1rem; max-width: min(100%, 64rem); }
.visor__img {
  width: auto; max-width: 100%; max-height: calc(var(--vh) * 100 - 11rem);
  object-fit: contain; border-radius: 6px;
}
.visor__pie { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-align: center; }
.visor__cuenta { margin-left: .4rem; font-family: var(--text); font-weight: 500; font-size: .875rem; color: var(--cream-low); }
.visor__btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(20,16,11,.85); color: var(--cream);
  cursor: pointer; transition: border-color .16s var(--ease), color .16s var(--ease);
}
.visor__btn:hover { border-color: var(--gold); color: var(--gold); }
.visor__btn .ico { width: 1.3rem; height: 1.3rem; }
.visor__cerrar { top: 1rem; right: 1rem; }
.visor__ant { left: 1rem; top: 50%; translate: 0 -50%; }
.visor__sig { right: 1rem; top: 50%; translate: 0 -50%; }
.visor__btn[hidden] { display: none; }
@media (max-width: 45.99rem) {
  .visor__ant, .visor__sig { top: auto; bottom: 1rem; translate: none; }
}

@media (min-width: 46rem) {
  .mesa {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem;
    overflow: visible; margin: 1.75rem 0 0; padding: 1.5rem 0 1rem;
  }
  .pola:nth-child(even) { margin-top: 2.25rem; }
}

/* ==========================================================================
   Movimiento — referencia: la capa de movimiento del reel de la web de Matt's
   (intro de marca, palabras gigantes con la sección fija, cinta, polaroids, foto
   que sigue al cursor), traducida a Free Crepes. Los estados iniciales ocultos
   solo existen con JS (html.js / html.anima) y sin "reducir movimiento": sin eso
   la página se ve completa y quieta.
   ========================================================================== */

.intro { display: none; }

@media (prefers-reduced-motion: no-preference) {

  /* Intro de marca (una vez por sesión) ---------------------------------- */
  html.js:not(.sin-intro) { --intro-d: 1500ms; }
  html.js:not(.sin-intro) .intro {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center;
    background: var(--ink);
    box-shadow: 0 6px 0 var(--gold);
    animation: intro-sube .9s cubic-bezier(.7, 0, .25, 1) 1.3s forwards;
  }
  html.intro-salta .intro { animation-delay: 0s; animation-duration: .6s; }
  /* El logo arranca visible (solo crece, sin fundido): así el navegador registra el primer pintado
     al instante y la intro no retrasa las métricas de carga (FCP/LCP). */
  .intro__logo { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto; animation: crece .8s var(--ease-out) both; }
  .intro__smile {
    display: block; width: 124px; height: 27px; margin: 1.1rem auto 0; color: var(--gold);
    stroke-dasharray: 100 200; stroke-dashoffset: 106;
    animation: trazo .65s var(--ease-out) .5s forwards;
  }
  .intro__bajada {
    margin-top: .8rem; text-align: center;
    font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--cream-mid);
    animation: aparece-sube .6s var(--ease-out) .8s both;
  }

  /* Hero: la foto se asienta, el título sube letra por letra, el resto aparece en cascada */
  html.js .hero__media img { animation: asienta 1.8s var(--ease-out) var(--intro-d) both; }
  .hero__palabra { display: inline-block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
  html.js .hero__palabra > span {
    display: inline-block;
    animation: sube .9s var(--ease-out) both;
    animation-delay: calc(var(--intro-d) + 150ms + (var(--n, 0) + var(--o, 0)) * 45ms);
  }
  .hero__palabra + .hero__palabra { --o: 4; }
  .hero__palabra > span:nth-child(2) { --n: 1; }
  .hero__palabra > span:nth-child(3) { --n: 2; }
  .hero__palabra > span:nth-child(4) { --n: 3; }
  .hero__palabra > span:nth-child(5) { --n: 4; }
  .hero__palabra > span:nth-child(6) { --n: 5; }
  html.js .hero__logo { animation: pop .8s var(--ease-out) var(--intro-d) both; }
  html.js .hero__eyebrow,
  html.js .hero__tagline,
  html.js .hero__place,
  html.js .hero__hours,
  html.js .flag,
  html.js .hero__actions,
  html.js .hero__carta {
    animation: aparece-sube .8s var(--ease-out) both;
    animation-delay: calc(var(--intro-d) + 450ms + var(--k, 0) * 70ms);
  }
  html.js .hero__eyebrow { --k: -3; }
  html.js .hero__tagline { --k: 1; }
  html.js .hero__place { --k: 2; }
  html.js .hero__hours { --k: 3; }
  html.js .flag { --k: 4; }
  html.js .hero__actions { --k: 5; }
  html.js .hero__carta { --k: 6; }
  html.js .smile--hero {
    stroke-dasharray: 100 200; stroke-dashoffset: 106;
    animation: trazo .8s var(--ease-out) calc(var(--intro-d) + 650ms) forwards;
  }
  html.js .hero__inset { animation: pop .9s var(--ease-out) calc(var(--intro-d) + 900ms) both; }

  /* Apariciones al scrollear (app.js agrega html.anima y .visto) ----------- */
  html.anima [data-reveal] {
    opacity: 0; translate: 0 28px;
    transition: opacity .85s var(--ease-out), translate .85s var(--ease-out);
    transition-delay: var(--delay, 0ms);
  }
  html.anima [data-reveal].visto { opacity: 1; translate: none; }
  /* Las polaroids caen sobre la mesa */
  html.anima .pola[data-reveal] { translate: 0 -46px; scale: 1.12; transition-property: opacity, translate, scale; }
  html.anima .pola[data-reveal].visto { translate: none; scale: 1; }

  /* La sonrisa del logo se dibuja cuando entra en pantalla */
  html.anima .smile[data-draw] { stroke-dasharray: 100 200; stroke-dashoffset: 106; transition: stroke-dashoffset 1s var(--ease-out) .2s; }
  html.anima .smile[data-draw].visto { stroke-dashoffset: 0; }

  .cinta__pista { animation: cinta 30s linear infinite; }
  .cinta__tira--crema .cinta__pista { animation-duration: 36s; animation-direction: reverse; }

  .variety__item img { transition: scale .6s var(--ease-out); }
  .btn--wa .ico { transition: rotate .3s var(--ease-out), scale .3s var(--ease-out); }

  /* La FAQ abre con altura animada donde el navegador lo soporta */
  @supports (interpolate-size: allow-keywords) {
    .faq__item { interpolate-size: allow-keywords; }
    .faq__item::details-content { height: 0; overflow: clip; transition: height .32s var(--ease), content-visibility .32s allow-discrete; }
    .faq__item[open]::details-content { height: auto; }
  }

  .visor[open] { animation: aparece .25s var(--ease-out); }
  .visor[open] .visor__img { animation: visor-in .45s var(--ease-out); }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .variety__item:hover img { scale: 1.06; }
  .btn--wa:hover .ico { rotate: -12deg; scale: 1.12; }
}

@keyframes intro-sube {
  0%   { translate: 0 0; border-radius: 0 0 50% 50% / 0 0 0 0; }
  30%  { border-radius: 0 0 50% 50% / 0 0 120px 120px; }
  100% { translate: 0 -118%; border-radius: 0 0 50% 50% / 0 0 120px 120px; visibility: hidden; }
}
@keyframes pop { from { opacity: 0; scale: .6; } }
@keyframes crece { from { scale: .72; } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes aparece { from { opacity: 0; } }
@keyframes aparece-sube { from { opacity: 0; translate: 0 16px; } }
@keyframes sube { from { translate: 0 108%; rotate: 8deg; } }
@keyframes asienta { from { scale: 1.16; } }
@keyframes cinta { to { translate: -50% 0; } }
@keyframes visor-in { from { opacity: 0; scale: .94; } }

/* ==========================================================================
   Pedido desde la carta (pedido.js)
   Los botones + solo se ven en horario de pedidos: html[data-pedidos="abierto"].
   Sin JS, sin número de WhatsApp o fuera de horario, la carta queda como antes.
   ========================================================================== */

.add, .sizehead__add, .extras__nota { display: none; }
html[data-pedidos="abierto"] .add { display: inline-grid; }
html[data-pedidos="abierto"] .sizehead__add { display: block; width: 44px; }
html[data-pedidos="abierto"] .extras__nota { display: block; }
html[data-pedidos="abierto"] .row--add { grid-template-columns: 1fr auto auto; }
html[data-pedidos="abierto"] .fill__head { grid-template-columns: minmax(0, 1fr) auto auto; }

.add {
  position: relative; place-items: center; align-self: center; flex: 0 0 auto;
  width: 44px; height: 44px; margin: -6px 0; padding: 0;
  border: 1.5px solid var(--gold); border-radius: 50%;
  background: transparent; color: var(--gold); cursor: pointer;
  font: 700 .9375rem/1 var(--text); font-variant-numeric: tabular-nums;
  transition: background-color .16s var(--ease), color .16s var(--ease), scale .16s var(--ease);
}
.add::before, .add::after {
  content: ""; position: absolute; width: 14px; height: 2px; border-radius: 2px; background: currentColor;
}
.add::after { rotate: 90deg; }
.add:hover { background: rgba(231,184,79,.14); }
.add:active { scale: .9; }
/* Con cantidad: el + se convierte en el número de unidades pedidas */
.add[data-qty] { background: var(--gold); color: #120e08; }
.add[data-qty]::before, .add[data-qty]::after { display: none; }
.chips .add { width: 36px; height: 36px; margin: 0 0 0 .35rem; vertical-align: middle; }
.extras__nota { margin-top: .35rem; font-size: .875rem; color: var(--cream-low); }

/* Aviso arriba de la carta */
.aviso-wrap { padding: 0 var(--pad); }
.aviso-pedidos {
  display: flex; gap: .7rem; align-items: baseline;
  max-width: var(--max); margin: 1.5rem auto 0; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(231,184,79,.06); color: var(--cream-mid); font-size: .9375rem;
}
.aviso-pedidos[hidden] { display: none; }
.aviso-pedidos strong { color: var(--cream); font-weight: 600; }
.aviso-pedidos__punto {
  flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(231,184,79,.18); translate: 0 -1px;
}
.aviso-pedidos[data-estado="cerrado"] { background: transparent; }
.aviso-pedidos[data-estado="cerrado"] .aviso-pedidos__punto { background: var(--cream-low); box-shadow: none; }

/* Hojas (producto y pedido): suben desde abajo en el celular, centradas en escritorio */
html.con-dialogo { overflow: hidden; }
.hoja {
  inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 34rem;
  max-height: calc(var(--vh, 1vh) * 100 - 1.5rem);
  padding: 0; border: 0; border-radius: 18px 18px 0 0;
  background: var(--ink-2); color: var(--cream);
  box-shadow: 0 -10px 40px rgba(0,0,0,.45);
}
.hoja[open] { display: flex; flex-direction: column; }
.hoja::backdrop { background: rgba(10,8,5,.72); }
.hoja__form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.hoja__head {
  position: relative; padding: 1.35rem 4rem .9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.hoja__cat { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hoja__t { margin-top: .25rem; font-size: 1.5rem; }
.hoja__ings { margin-top: .35rem; color: var(--cream-mid); font-size: .9375rem; }
.hoja__ings[hidden] { display: none; }
.hoja__cerrar {
  position: absolute; top: .9rem; right: .9rem; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--cream); cursor: pointer;
}
.hoja__cerrar:hover { border-color: var(--gold); color: var(--gold); }
.hoja__body { overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1.25rem 1.25rem; display: grid; gap: 1.25rem; }
.hoja__pie {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--ink-2);
}
.hoja__pie--col { flex-direction: column; align-items: stretch; gap: .35rem; }
.hoja__ok { flex: 1 1 auto; min-width: 0; padding-inline: 1rem; white-space: nowrap; }
@media (max-width: 22rem) { .hoja__pie .cant button { width: 38px; } .hoja__pie { gap: .5rem; padding-inline: 1rem; } }
.hoja__pista { margin-top: -.6rem; font-size: .875rem; color: var(--gold); }
.hoja__pista[hidden] { display: none; }

.opc { margin: 0; padding: 0; border: 0; display: grid; gap: .45rem; min-width: 0; }
.opc__t { padding: 0; margin-bottom: .45rem; font-size: .78125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.opc__sub { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--cream-low); }
.opc__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center;
  min-height: 52px; padding: .65rem .9rem;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.opc__item:hover { border-color: rgba(231,184,79,.45); }
.opc__item:has(input:checked) { border-color: var(--gold); background: rgba(231,184,79,.08); }
.opc__item input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.opc__txt { font-size: .9375rem; line-height: 1.3; }
.opc__precio { font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }

.campo { display: grid; gap: .4rem; }
.campo[hidden] { display: none; }
.campo__t { font-size: .875rem; font-weight: 500; color: var(--cream-mid); }
.campo input, .campo textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: 400 16px/1.4 var(--text); /* 16px: iOS no hace zoom al enfocar */
  color: var(--cream); background: var(--ink); border: 1px solid var(--line); border-radius: 10px;
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231,184,79,.22); }
.campo input::placeholder, .campo textarea::placeholder { color: var(--cream-low); }

.cant { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; flex: 0 0 auto; }
.cant button {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent;
  color: var(--gold); font: 600 1.35rem/1 var(--text); cursor: pointer;
}
.cant button:hover:not(:disabled) { background: rgba(231,184,79,.12); }
.cant button:disabled { color: var(--cream-low); cursor: default; }
.cant output { min-width: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cant--sm button { width: 38px; height: 38px; font-size: 1.15rem; }

/* Panel del pedido */
.pedido__aviso { padding: .75rem .9rem; border-left: 2px solid var(--gold); background: rgba(231,184,79,.08); font-size: .9375rem; }
.pedido__aviso[hidden] { display: none; }
.pedido__lineas { display: grid; }
.linea {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem 1rem; align-items: center;
  padding: .85rem 0; border-top: 1px solid var(--line);
}
.linea:first-child { border-top: 0; padding-top: 0; }
.linea__info { grid-column: 1 / -1; }
.linea__t { font-weight: 500; line-height: 1.35; }
.linea__det { margin-top: .2rem; font-size: .875rem; color: var(--cream-mid); }
.linea__p { font-weight: 600; font-variant-numeric: tabular-nums; }
.linea .cant { justify-self: end; }
.linea--vacia { display: block; color: var(--cream-mid); }
.pedido__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-top: .9rem; border-top: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
}
.pedido__total strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.pedido__fine { margin-top: -.85rem; font-size: .8125rem; color: var(--cream-low); }
.pedido__datos { display: grid; gap: 1rem; }
.seg { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg .opc__t { grid-column: 1 / -1; }
.seg__op { position: relative; }
.seg__op input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__op span {
  display: grid; place-items: center; min-height: 48px; padding: .5rem; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; font-weight: 500;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.seg__op input:checked + span { border-color: var(--gold); background: var(--gold); color: #120e08; font-weight: 600; }
.seg__op input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check[hidden] { display: none; }
.check input { flex: 0 0 auto; margin-top: .1rem; }
.pedido__error { min-height: 1.2em; color: #ffb4a2; font-size: .9375rem; font-weight: 500; }
.pedido__error:empty { min-height: 0; }
.pedido__enviar { width: 100%; }
.pedido__enviar[aria-disabled="true"] { opacity: .55; }
.pedido__vaciar {
  align-self: center; min-height: 44px; padding: 0 .9rem; border: 0; background: none;
  color: var(--cream-low); font: 500 .875rem/1 var(--text); text-decoration: underline; cursor: pointer;
}
.pedido__vaciar:hover { color: var(--cream); }

/* Barra del pedido */
.barra-pedido {
  position: fixed; z-index: 46; left: 50%; translate: -50% 0;
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + .5rem));
  display: flex; align-items: center; gap: .75rem;
  width: min(calc(100% - 2 * var(--pad)), 26rem); min-height: 56px;
  padding: .45rem 1.25rem .45rem .5rem; border: 0; border-radius: 999px;
  background: var(--gold); color: #120e08; font: 600 1rem/1 var(--text);
  box-shadow: 0 8px 26px rgba(0,0,0,.5); cursor: pointer;
}
.barra-pedido[hidden] { display: none; }
.barra-pedido__n {
  display: grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .4rem;
  border-radius: 999px; background: #120e08; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums;
}
.barra-pedido__total { margin-left: auto; font-variant-numeric: tabular-nums; }
html[data-pedidos="cerrado"] .barra-pedido { background: var(--cream); }
html[data-con-pedido] .fab { display: none; }
html[data-pedidos="abierto"][data-en-carta] .fab { display: none; }
/* Con la barra del pedido abajo, el foco de teclado no queda escondido debajo de ella. */
html[data-con-pedido] { scroll-padding-bottom: 6rem; }

.vuela {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  padding: .35rem .6rem; border-radius: 999px;
  background: var(--gold); color: #120e08; font: 700 .9375rem/1 var(--text);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}

@media (min-width: 46rem) {
  .hoja { inset: 0; margin: auto; border-radius: 18px; max-height: min(calc(var(--vh, 1vh) * 90), 48rem); }
  .barra-pedido { left: auto; right: var(--pad); translate: none; width: 24rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hoja[open] { animation: hoja-sube .38s var(--ease-out); }
  .hoja[open]::backdrop { animation: aparece .3s var(--ease-out); }
  @media (min-width: 46rem) {
    .hoja[open] { animation: visor-in .3s var(--ease-out); }
  }
}
@keyframes hoja-sube { from { translate: 0 100%; } }
