/* Ollita Gourmet: web pública
   Paleta tomada del logo: rojo olla, ají amarillo de la olla, blanco del letrero,
   y una tinta café profunda (olla de barro) para la carta. */
@font-face { font-family: "Gloock"; src: url("/fonts/gloock.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Kaushan"; src: url("/fonts/kaushan.woff2") format("woff2"); font-display: swap; }

:root {
  --rojo: #D7000F;
  --rojo-hondo: #A8000C;
  --aji: #F6B400;
  --aji-claro: #FFE7A3;
  --aji-luz: #FFD966;      /* dorado legible sobre rojo (textos grandes) */
  --crema-luz: #FFF0C2;    /* dorado claro legible sobre rojo (textos chicos) */
  --vino: #8A0009;         /* rojo oscuro legible sobre amarillo */
  --mantequilla: #FFF7E2;
  --tinta: #2B1611;
  --tinta-suave: #6B4A40;
  --blanco: #FFFFFF;
  --linea: #F0DFC9;
  --ok: #2F7D3A;

  --serif: "Gloock", "Georgia", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Kaushan", "Brush Script MT", cursive;

  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--blanco); color: var(--tinta);
  font: 400 17px/1.6 var(--sans); overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--aji); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.script { font-family: var(--script); font-weight: 400; }
.loading { color: var(--tinta-suave); padding: 24px 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1.02rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-small { min-height: 42px; padding: 0 1.1em; font-size: .95rem; }
.btn-light { background: var(--blanco); color: var(--rojo); }
.btn-light:hover { box-shadow: 0 10px 24px -10px rgba(60, 0, 0, .55); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-gold { background: var(--aji); color: var(--tinta); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn-red { background: var(--rojo); color: #fff; }
.btn-red:hover { background: var(--rojo-hondo); }
.btn-outline { border-color: var(--rojo); color: var(--rojo); }
.btn-outline:hover { background: var(--rojo); color: #fff; }
.btn-wa { background: #1FAF54; color: #fff; flex: 1; }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Cabecera ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--pad); padding-top: max(10px, env(safe-area-inset-top));
  color: #fff; transition: background-color .3s, box-shadow .3s, padding .3s;
}
.top.solid { background: var(--rojo); box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .6); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: background-color .2s; }
.nav a:hover { background: rgba(255, 255, 255, .14); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; background: var(--rojo); color: #fff;
  display: grid; align-items: center; gap: 8px;
  padding: 96px var(--pad) 120px; overflow: hidden; isolation: isolate;
}
.hero::before { /* brillo cálido, como la luz de la cocina */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vmax; height: 70vmax; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 190, 60, .35), transparent 70%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-8%, 10%) scale(1.1); } }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.hero-kicker { font-weight: 600; font-size: clamp(.95rem, 2.6vw, 1.1rem); opacity: .92; }
.hero-script { color: var(--aji-luz); font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1.1; margin-top: 18px; transform: rotate(-3deg); transform-origin: left; }
.hero-dish {
  font-family: var(--serif); font-size: clamp(2.9rem, 12vw, 7rem); line-height: .98; text-wrap: balance; letter-spacing: -.02em;
  min-height: 2em; display: flex; align-items: flex-end; margin: 6px 0 22px;
}
.cycler { display: inline-block; }
.cycler-word { display: inline; }
.cycler-word .w { display: inline-block; white-space: nowrap; }
.cycler-word .ch { display: inline-block; white-space: pre; animation: rise .9s var(--ease) both; }
.cycler-word.out .ch { animation: vapor .6s ease-in both; }
@keyframes rise { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes vapor { to { opacity: 0; transform: translateY(-.5em) scale(1.04); filter: blur(10px); } }
.hero-price { font-size: clamp(1.05rem, 3vw, 1.3rem); max-width: 34ch; }
.hero-price b { font-family: var(--serif); font-weight: 400; font-size: 1.5em; color: var(--aji-luz); margin-right: .2em; }
.hero-promo {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 16px 8px 8px;
  background: rgba(0, 0, 0, .18); border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: background-color .2s;
}
.hero-promo:hover { background: rgba(0, 0, 0, .3); }
.hero-promo i { font-style: normal; background: var(--aji); color: var(--tinta); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: .85rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-olla { position: relative; justify-self: center; width: min(56vw, 300px); order: -1; margin-top: 4px; }
.olla { width: 100%; height: auto; overflow: visible; }
.hero-sign { position: absolute; right: -18%; bottom: 4%; color: #fff; font-size: clamp(1.1rem, 3.4vw, 1.6rem); transform: rotate(-8deg); opacity: 0; animation: fadeIn .8s 1.9s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.pot .p { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s var(--ease) forwards; }
.pot .p-rim { animation-delay: .15s; } .pot .p-knob { animation-delay: .45s; }
.pot .p-body { animation-delay: .25s; } .pot .p-hl, .pot .p-hr { animation-delay: .6s; } .pot .p-shine { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pot { animation: simmer 3.2s 1.6s ease-in-out infinite; transform-origin: 200px 370px; }
@keyframes simmer { 0%, 100% { transform: none; } 50% { transform: translateY(-3px) rotate(-.6deg); } }
.steam .s { stroke-dasharray: 340; stroke-dashoffset: 340; opacity: 0; animation: steam 4.2s 1.2s ease-in-out infinite; }
.steam .s2 { animation-delay: 2.1s; stroke-width: 7; } .steam .s3 { animation-delay: 2.9s; stroke-width: 7; }
@keyframes steam {
  0% { stroke-dashoffset: 340; opacity: 0; transform: translateY(14px); }
  20% { opacity: 1; }
  60% { stroke-dashoffset: 0; opacity: .95; }
  100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-34px); }
}
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }
.wave path { fill: var(--aji); }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 120px; }
  .hero-olla { order: 0; width: min(34vw, 500px); }
  .hero-sign { right: -4%; }
}

/* ---------- Cinta ---------- */
.ribbon { background: var(--aji); color: var(--vino); overflow: hidden; padding: 6px 0 16px; }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon-track span { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2.2rem); white-space: nowrap; padding-right: .9em; }
.ribbon-track span::after { content: "✦"; font-family: var(--sans); font-size: .55em; margin-left: .9em; vertical-align: .35em; color: var(--rojo); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Promos ---------- */
.promos { padding: clamp(56px, 9vw, 110px) 0 40px; }
.promos-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.promo-arrows { display: none; gap: 10px; }
@media (min-width: 900px) { .promo-arrows { display: flex; } }
.round { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--tinta); background: none; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.round svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { background: var(--tinta); color: #fff; }
.promo-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--pad) 24px; scrollbar-width: none;
  scroll-padding: 0 var(--pad);
}
.promo-track::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) { .promo-track { padding-left: calc((100vw - var(--wrap)) / 2 + var(--pad)); scroll-padding-left: calc((100vw - var(--wrap)) / 2 + var(--pad)); } }
.promo {
  --bg: var(--rojo); --fg: #fff; --accent: var(--aji-luz);
  position: relative; scroll-snap-align: start; width: min(84vw, 420px); min-height: min(105vw, 525px); border-radius: 28px; overflow: hidden;
  background: var(--bg); color: var(--fg); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.promo[data-theme="ají"] { --bg: var(--aji); --fg: var(--tinta); --accent: var(--vino); }
.promo[data-theme="tinta"] { --bg: var(--tinta); --fg: #fff; --accent: var(--aji); }
.promo[data-theme="blanco"] { --bg: #fff; --fg: var(--tinta); --accent: var(--rojo); box-shadow: inset 0 0 0 2px var(--linea); }
.promo.featured { grid-column: span 1; }
@media (min-width: 900px) { .promo.featured { width: min(64vw, 640px); } }
.promo-img { position: absolute; inset: 0; z-index: -1; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s ease; }
.promo:hover .promo-img img { transform: scale(1.12); }
.promo-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20, 6, 3, .82)); }
.promo.has-img { --fg: #fff; }
.promo-tag { position: absolute; top: 24px; left: 24px; font-family: var(--script); font-size: 1.4rem; color: var(--accent); transform: rotate(-4deg); }
.promo h3 { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3rem); line-height: 1; letter-spacing: -.01em; max-width: 12ch; }
.promo p { margin-top: 10px; max-width: 34ch; opacity: .9; }
.promo .sello {
  position: absolute; top: 20px; right: 20px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--accent); color: var(--bg); display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-size: 1.7rem; line-height: 1; transform: rotate(10deg);
}
.promo[data-theme="ají"] .sello { color: #fff; }
.promo.has-img .sello, .promo[data-theme="rojo"] .sello { color: var(--tinta); background: var(--aji); }
.promo .sello::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .6; }
.promo-motif { position: absolute; right: -40px; bottom: 30%; width: 220px; opacity: .14; z-index: -1; }
.promo-dots { display: flex; justify-content: center; gap: 8px; }
.promo-dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--linea); transition: width .3s, background-color .3s; }
.promo-dots i.on { width: 26px; background: var(--rojo); }

/* ---------- Menú del día ---------- */
.menu { background: var(--mantequilla); padding: clamp(56px, 9vw, 110px) 0; }
.menu-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.menu-head h2 { color: var(--rojo); }
.menu-date { font-size: 1.15rem; font-weight: 600; margin-top: 10px; color: var(--tinta-suave); }
.stamp {
  position: relative; width: 150px; height: 150px; border-radius: 50%; background: var(--rojo); color: #fff;
  display: grid; place-content: center; text-align: center; transform: rotate(-8deg); flex: none;
}
.stamp::before { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(255, 255, 255, .55); border-radius: 50%; }
.stamp.in { animation: stamp .7s var(--ease) both; }
@keyframes stamp { from { transform: rotate(-40deg) scale(1.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.stamp-price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.stamp-text { font-size: .78rem; font-weight: 600; line-height: 1.25; max-width: 15ch; margin: 6px auto 0; }
.menu-includes { margin-top: 18px; font-size: 1.15rem; font-weight: 700; }
.menu-includes:empty { display: none; }
.menu-hint { margin: 12px 0 8px; color: var(--tinta-suave); }
.tiers { display: grid; gap: 22px; margin-top: 44px; }
@media (min-width: 860px) { .tiers { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.tier { border-radius: 28px; padding: 26px 24px 14px; position: relative; overflow: hidden; }
.tier header { margin-bottom: 6px; }
.tier h3 { font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.7rem); line-height: 1; }
.tier-price { font-weight: 800; font-size: 1.1rem; margin-top: 8px; }
.tier-inc { font-family: var(--script); font-size: 1.35rem; margin-top: 4px; }
.tier-especial { background: var(--rojo); color: #fff; }
.tier-especial .tier-inc { color: var(--crema-luz); }
.tier-pobre { background: var(--tinta); color: #fff; }
.tier-pobre .tier-price { color: var(--aji); }
.tier .dish { border-bottom-color: rgba(255, 255, 255, .22); }
.tier .dish-desc { color: #FFF1EF; }
.tier .qty button { background: var(--aji); color: var(--tinta); }
.tier .qty .minus { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.tier .dish-photo { box-shadow: 0 0 0 3px var(--aji); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 56px; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.plato { margin: 0; transform: rotate(var(--r)); transition: transform .5s var(--ease); }
.js .plato.reveal.in { transform: rotate(var(--r)); }
.plato:hover { transform: rotate(0) scale(1.04); }
.plato img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 0 0 10px var(--linea), 0 24px 40px -20px rgba(60, 20, 0, .55); }
.plato figcaption { font-family: var(--serif); font-size: 1.15rem; line-height: 1.15; margin-top: 18px; text-align: center; }
.menu-hint b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--rojo); color: #fff; font-size: .9rem; }
.menu-grid { display: grid; gap: 34px 48px; margin-top: 22px; }
@media (min-width: 860px) { .menu-grid { grid-template-columns: 1fr 1fr; } .menu-grid .g-segundo { grid-row: span 3; } }
.group h3 { font-family: var(--script); font-size: 2rem; color: var(--rojo); line-height: 1.1; margin-bottom: 6px; transform: rotate(-2deg); transform-origin: left; }
.dish {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1.5px dashed var(--linea);
}
.dish:last-child { border-bottom: 0; }
.dish.has-photo { grid-template-columns: auto 1fr auto; }
.dish-name { margin: 0; }
.dish-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgba(0, 0, 0, .4); }
.dish-name { font-family: var(--serif); font-size: clamp(1.3rem, 3.6vw, 1.6rem); line-height: 1.1; }
.dish-desc { font-size: .95rem; color: var(--tinta-suave); margin-top: 3px; line-height: 1.45; }
.dish-price { font-weight: 700; color: var(--rojo); margin-top: 4px; }
.dish.soldout .dish-name { text-decoration: line-through; text-decoration-color: var(--rojo); text-decoration-thickness: 2px; color: var(--tinta-suave); }
.tier .dish.soldout .dish-name { color: rgba(255, 255, 255, .8); }
.soldout-chip { display: inline-block; margin-left: 8px; font-family: var(--sans); font-size: .78rem; font-weight: 700; color: #fff; background: var(--tinta); border-radius: 999px; padding: 2px 9px; vertical-align: .3em; text-decoration: none; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--rojo); color: #fff;
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center; transition: transform .2s var(--ease), background-color .2s;
}
.qty button:active { transform: scale(.88); }
.qty .minus { background: #fff; color: var(--rojo); box-shadow: inset 0 0 0 2px var(--rojo); }
.qty output { min-width: 1.4em; text-align: center; font-weight: 800; font-size: 1.1rem; }
.qty:not(.has) .minus, .qty:not(.has) output { display: none; }
.qty.bump output { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.5); color: var(--rojo); } }
.menu-note { margin-top: 26px; padding: 16px 20px; background: #fff; border-radius: 16px; border-left: 5px solid var(--aji); }
.empty { background: #fff; border-radius: 24px; padding: 32px; max-width: 620px; }
.empty p { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; margin-bottom: 16px; }

/* ---------- Carta ---------- */
.carta { background: var(--tinta); color: #fff; padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.carta-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.carta-head h2 { color: var(--aji); }
.carta-head p { color: rgba(255, 255, 255, .75); }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 28px calc(var(--pad) * -1) 8px; padding: 4px var(--pad); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; border: 1.5px solid rgba(255, 255, 255, .3); background: none; color: #fff; border-radius: 999px;
  padding: 10px 18px; font-weight: 700; transition: background-color .2s, color .2s, border-color .2s;
}
.tabs button[aria-selected="true"] { background: var(--aji); color: var(--tinta); border-color: var(--aji); }
.carta-list { display: grid; gap: 4px 56px; margin-top: 18px; }
@media (min-width: 860px) { .carta-list { grid-template-columns: 1fr 1fr; } }
.carta-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); animation: rise .5s var(--ease) both; }
.carta-line { display: flex; align-items: baseline; gap: 10px; }
.carta-line .name { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; }
.carta-line .dots { flex: 1; border-bottom: 2px dotted rgba(255, 255, 255, .3); transform: translateY(-5px); min-width: 20px; }
.carta-line .price { font-weight: 800; color: var(--aji); white-space: nowrap; }
.carta-item .dish-desc { color: rgba(255, 255, 255, .68); grid-column: 1; }
.carta-item .qty { grid-row: 1 / span 2; grid-column: 2; }
.carta-item .qty .minus { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }

/* ---------- La casa ---------- */
.casa { padding: clamp(64px, 11vw, 140px) 0; text-align: center; }
.casa-inner { max-width: 900px; }
.casa-quote { font-family: var(--serif); font-size: clamp(1.9rem, 5.2vw, 3.4rem); line-height: 1.12; color: var(--rojo); text-wrap: balance; }
.casa-text { max-width: 58ch; margin: 24px auto 0; font-size: 1.1rem; color: var(--tinta-suave); }
.casa-sign { font-size: 1.8rem; margin-top: 18px; color: var(--tinta); }

/* ---------- App ---------- */
.app { background: var(--rojo); color: #fff; padding: clamp(56px, 9vw, 110px) 0; overflow: hidden; }
.app-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .app-grid { grid-template-columns: 1.2fr .8fr; } }
.app-lead { font-size: 1.15rem; margin-top: 18px; max-width: 46ch; }
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.app-status { flex-basis: 100%; font-weight: 600; min-height: 1.6em; color: var(--crema-luz); }
.howto { margin-top: 26px; background: rgba(0, 0, 0, .16); border-radius: 24px; padding: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(0, 0, 0, .2); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; color: #fff; border-radius: 999px; padding: 10px 8px; font-weight: 700; font-size: .95rem; transition: background-color .25s, color .25s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--rojo); }
.steps { list-style: none; counter-reset: s; margin: 18px 0 4px; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; min-height: 38px; padding-top: 6px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--aji); color: var(--tinta);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.25rem;
}
.kbd { display: inline-block; background: #fff; color: var(--tinta); border-radius: 6px; padding: 0 7px; font-weight: 800; }

.phone {
  justify-self: center; width: min(62vw, 300px); aspect-ratio: 9 / 18.5; border-radius: 44px;
  background: var(--tinta); padding: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transform: rotate(4deg);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden; padding: 56px 12px 12px;
  background: radial-gradient(120% 70% at 50% 0%, #ff4b3a, var(--rojo-hondo) 70%);
}
.phone-clock { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-weight: 300; font-size: 2.4rem; letter-spacing: .02em; }
.notif {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; margin-top: 34px;
  background: rgba(255, 255, 255, .94); color: var(--tinta); border-radius: 18px; padding: 10px 12px;
  font-size: .82rem; line-height: 1.35; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
  animation: notif 6s var(--ease) infinite;
}
.notif img { border-radius: 9px; }
.notif b { display: block; font-size: .85rem; }
.notif-2 { margin-top: 10px; animation-delay: .5s; }
@keyframes notif { 0% { opacity: 0; transform: translateY(-16px) scale(.96); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.phone-logo { position: absolute; bottom: 26px; left: 50%; width: 46%; transform: translateX(-50%); opacity: .95; }

.join {
  max-width: var(--wrap); margin: 56px auto 0; padding: 26px; border-radius: 28px; background: #fff; color: var(--tinta);
  display: grid; gap: 16px; width: calc(100% - var(--pad) * 2);
}
@media (min-width: 900px) { .join { grid-template-columns: 1.3fr 1fr 1fr auto; align-items: end; padding: 30px 34px; } }
.join h3 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; color: var(--rojo); }
.join p { color: var(--tinta-suave); margin-top: 4px; }
.join label span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.join input {
  width: 100%; min-height: 52px; border-radius: 14px; border: 2px solid var(--linea); padding: 0 14px;
  font: inherit; background: var(--mantequilla); color: var(--tinta);
}
.join input:focus { outline: none; border-color: var(--rojo); }
.join-msg { grid-column: 1 / -1; font-weight: 600; color: var(--ok); min-height: 0; }
.join-msg:empty { display: none; }

/* ---------- Visítanos ---------- */
.visita { padding: clamp(56px, 9vw, 110px) 0; }
.visita-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .visita-grid { grid-template-columns: .9fr 1.1fr; } }
.visita h2 { color: var(--rojo); }
.info { margin: 26px 0 0; display: grid; gap: 16px; }
.info dt { font-family: var(--script); color: var(--rojo); font-size: 1.3rem; line-height: 1; }
.info dd { margin: 4px 0 0; font-size: 1.2rem; font-weight: 600; }
.info a { text-decoration: none; }
.visita-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.map { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mantequilla); box-shadow: 0 0 0 6px var(--aji); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Pie ---------- */
.foot { background: var(--tinta); color: #fff; padding: 56px 0 120px; text-align: center; }
.foot-inner { display: grid; justify-items: center; gap: 10px; }
.foot img { border-radius: 50%; }
.foot .script { font-size: 1.6rem; color: var(--aji); }
.foot-social { display: flex; gap: 16px; }
.foot-social a { font-weight: 700; }
.foot-credit { font-size: .9rem; opacity: .7; margin-top: 16px; }

/* ---------- Barra de pedido ---------- */
.orderbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0 12px max(12px, env(safe-area-inset-bottom));
  transform: translateY(120%); transition: transform .45s var(--ease);
}
.orderbar.show { transform: none; }
.orderbar-inner {
  max-width: 560px; margin: 0 auto; background: var(--tinta); color: #fff; border-radius: 26px; padding: 12px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); display: grid; gap: 10px;
}
.orderbar-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.orderbar-mode input { position: absolute; opacity: 0; pointer-events: none; }
.orderbar-mode span { display: block; text-align: center; padding: 8px 4px; border-radius: 12px; font-weight: 700; font-size: .88rem; background: rgba(255, 255, 255, .08); cursor: pointer; transition: background-color .2s, color .2s; }
.orderbar-mode input:checked + span { background: var(--aji); color: var(--tinta); }
.orderbar-mode input:focus-visible + span { outline: 3px solid #fff; }
.orderbar-row { display: flex; gap: 10px; }
.orderbar-clear { border: 0; background: none; color: rgba(255, 255, 255, .7); font-weight: 600; padding: 0 8px; }

.wa-float {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45; width: 60px; height: 60px;
  border-radius: 50%; background: #1FAF54; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .55); transition: transform .3s var(--ease), opacity .3s;
}
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); }
body.ordering .wa-float { opacity: 0; pointer-events: none; transform: scale(.6); }

.toast {
  position: fixed; left: 50%; top: 18px; z-index: 80; transform: translate(-50%, -150%);
  background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600;
  transition: transform .4s var(--ease); max-width: calc(100vw - 32px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Apariciones al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .dish.reveal { transition-duration: .6s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pot .p, .steam .s { stroke-dashoffset: 0; opacity: 1; }
  .ribbon-track { animation: none; }
}
.promo[data-theme="rojo"] .promo-tag { color: var(--crema-luz); }

/* Pagos, delivery y datos legales */
.join-legal { grid-column: 1 / -1; font-size: .85rem; color: var(--tinta-suave); line-height: 1.45; }
.join-legal a { color: var(--rojo); }
.foot-legal { font-size: .88rem; opacity: .85; }
.foot-legal:empty { display: none; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: .92rem; }
.foot-links a { color: #fff; }
.orderbar-info { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .86); text-align: center; line-height: 1.35; }
.orderbar-info:empty { display: none; }
.cents { font-size: .55em; vertical-align: .62em; margin-left: .04em; }
.btn-wa svg, .btn svg { flex: none; }
.stamp { width: 168px; height: 168px; }
.stamp-text { white-space: nowrap; font-size: .74rem; }

.panel-back { position: fixed; left: 12px; top: max(12px, env(safe-area-inset-top)); z-index: 999; background: #2B1611; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
