/* ==========================================================================
   CANDELA BRASA · estilos
   Paleta: carbón, rojo brasa (solo pedidos), mostaza (ofertas), naranja fuego (decoración), crema.
   ========================================================================== */

@font-face { font-family: "Bowlby One"; src: url(../assets/fonts/bowlby-one-latin-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 400; src: url(../assets/fonts/poppins-latin-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 600; src: url(../assets/fonts/poppins-latin-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 800; src: url(../assets/fonts/poppins-latin-800.woff2) format("woff2"); font-display: swap; }

:root {
  --carbon: #141110;
  --carbon-2: #211b18;
  --carbon-3: #2e2622;
  --red: #e1261c;
  --red-press: #8f140d;
  --red-hover: #c71d14;
  --mustard: #ffb81c;
  --orange: #ff6b1a;
  --cream: #fff4e3;
  --cream-2: #f9e7c9;
  --paper: #fffaf2;
  --ink: #141110;
  --ink-soft: #5b4a3f;
  --on-dark-soft: #d6c4ad;
  --wa: #0f7a3f;
  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --body: Poppins, "Segoe UI", system-ui, sans-serif;
  --demo-h: 30px;
  --head-h: 64px;
  --status-h: 28px;
  --wrap: 1240px;
  --gut: 16px;
  --sec: clamp(64px, 10vw, 128px);
  --r-card: 22px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--demo-h) + var(--head-h) + var(--status-h) + 64px); }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  padding-top: calc(var(--demo-h) + var(--head-h) + var(--status-h));
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
@media (min-width: 720px) { :root { --gut: 32px; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--mustard); color: var(--carbon); padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 44px; }

/* Foco visible en cualquier fondo: anillo carbón + halo mostaza */
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 2px; box-shadow: 0 0 0 6px var(--mustard); }
.sec-dark :focus-visible, .site-header :focus-visible, .footer :focus-visible, .hero :focus-visible,
.demo-bar :focus-visible, .cta-final :focus-visible, .drawer-head :focus-visible { outline-color: var(--mustard); box-shadow: 0 0 0 6px var(--carbon); }

/* ---------- Tipografía ---------- */
.h2 { font: 400 clamp(2.2rem, 7.2vw, 4.4rem)/.95 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.h3 { font: 400 1.4rem/1.1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.sec-lead { font-size: clamp(1rem, 2.2vw, 1.15rem); max-width: 54ch; margin-top: 14px; }
.fine { font-size: .82rem; margin-top: 14px; }
.sec-dark .fine, .footer .fine { color: var(--on-dark-soft); }
.sec-cream .fine { color: var(--ink-soft); }

/* ---------- Botones ---------- */
.btn-order {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none;
  font: 800 .98rem/1.15 var(--body); letter-spacing: .01em; text-align: center;
  box-shadow: 0 5px 0 var(--red-press), 0 12px 24px -10px rgba(225, 38, 28, .7);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s;
  touch-action: manipulation;
}
.btn-order:hover { background: var(--red-hover); }
.btn-order:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--red-press), 0 6px 14px -8px rgba(225, 38, 28, .7); }
.btn-lg { min-height: 58px; padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border: 2px solid currentColor; border-radius: 999px; font-weight: 600; text-decoration: none; background: transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hero .btn-ghost:hover, .sec-dark .btn-ghost:hover { background: var(--cream); color: var(--carbon); border-color: var(--cream); }
.btn-text { background: none; border: 0; padding: 10px 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--carbon-3); color: var(--cream); }
.round-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--cream); background: transparent; color: var(--cream); transition: background-color .2s, color .2s; }
.round-btn:hover { background: var(--cream); color: var(--carbon); }
.round-btn.flip svg { transform: scaleX(-1); }

/* ---------- Stickers, sellos, burbujas ---------- */
.sticker {
  display: inline-block; padding: 6px 12px 7px; border-radius: 8px;
  background: var(--mustard); color: var(--carbon);
  font: 400 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  transform: rotate(-6deg); box-shadow: 0 6px 0 rgba(0, 0, 0, .18);
}
.sticker-hot { background: var(--red); color: #fff; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 24px); }
.badge {
  padding: 4px 10px 5px; border-radius: 6px; background: var(--mustard); color: var(--carbon);
  font: 800 .74rem/1.1 var(--body); transform: rotate(-3deg); box-shadow: 0 3px 0 rgba(20, 17, 16, .25);
}
.badge:nth-child(2) { background: var(--cream); transform: rotate(2deg); }

/* ---------- Barra de demo + header ---------- */
.demo-bar {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--demo-h);
  display: flex; align-items: center; justify-content: center; padding: 0 12px;
  background: #000; color: var(--on-dark-soft); font-size: .72rem; line-height: 1.25; text-align: center;
}
.demo-bar p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar a { color: var(--mustard); font-weight: 600; }
@media (max-width: 600px) { :root { --demo-h: 38px; } .demo-bar p { white-space: normal; } .demo-bar { font-size: .68rem; } }

.site-header {
  position: fixed; top: var(--demo-h); inset-inline: 0; z-index: 50; height: var(--head-h);
  background: var(--carbon); color: var(--cream);
  transition: transform .35s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(calc(-100% - var(--status-h))); }
.header-in { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "brand toggle cart"; align-items: center; gap: 8px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; justify-self: start; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font: 400 1.22rem/.92 var(--display); text-transform: uppercase; display: flex; flex-direction: column; }
.brand-name span { font-size: .62em; color: var(--mustard); letter-spacing: .16em; }
.status {
  position: fixed; left: 0; right: 0; top: calc(var(--demo-h) + var(--head-h)); height: var(--status-h);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--carbon-2); font-size: .76rem; font-weight: 600; color: var(--cream);
  border-bottom: 1px solid rgba(255, 244, 227, .08);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #8a7d71; flex: none; }
.status[data-state="open"] .status-dot { background: #3ddc74; box-shadow: 0 0 0 4px rgba(61, 220, 116, .22); }
.status[data-state="closed"] .status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(225, 38, 28, .25); }

.nav { position: fixed; top: calc(var(--demo-h) + var(--head-h) + var(--status-h)); left: 0; right: 0; background: var(--carbon); padding: 4px var(--gut) 20px; display: none; border-bottom: 3px solid var(--red); }
.nav.is-open { display: block; }
.nav a { display: block; padding: 13px 4px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 244, 227, .1); }
.nav a:hover { color: var(--mustard); }
.nav-toggle { grid-area: toggle; width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--cream); position: relative; transition: transform .25s var(--ease-out), background-color .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.cart-btn {
  grid-area: cart; position: relative; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 0; background: var(--red); color: #fff;
}
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--mustard); color: var(--carbon); font: 800 .76rem/20px var(--body); text-align: center;
  border: 2px solid var(--carbon);
}

@media (min-width: 980px) {
  :root { --status-h: 0px; }
  .header-in { grid-template-columns: auto auto 1fr auto; grid-template-areas: "brand status nav cart"; gap: 24px; }
  .status { position: static; grid-area: status; height: auto; background: rgba(255, 244, 227, .08); padding: 7px 14px; border-radius: 999px; border: 0; justify-self: start; }
  .nav { grid-area: nav; position: static; display: block; padding: 0; background: none; border: 0; justify-self: end; }
  .nav ul { display: flex; gap: 4px; }
  .nav a { border: 0; padding: 8px 14px; border-radius: 999px; }
  .nav a:hover { background: rgba(255, 244, 227, .08); color: var(--cream); }
  .nav-toggle { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60% 50% at 72% 46%, rgba(255, 107, 26, .36), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(225, 38, 28, .22), transparent 70%),
    var(--carbon);
  color: var(--cream);
  padding: 22px 0 72px;
}
.hero::before { /* textura de carbón sutil */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(rgba(255, 244, 227, .05) 1px, transparent 1.4px), radial-gradient(rgba(0, 0, 0, .4) 1px, transparent 1.6px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px;
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-areas: "title" "plate" "lead" "cta" "facts"; gap: 18px; }
.hero-copy { display: contents; }
.hero-title { grid-area: title; font: 400 clamp(2.6rem, 12.2vw, 6.4rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -.015em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero-title .w { display: inline-block; }
.hero-lead { grid-area: lead; font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--on-dark-soft); max-width: 44ch; }
.hero-cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .hero-cta .btn-order { flex: 1 1 auto; }
.hero-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--on-dark-soft); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.hero-plate { grid-area: plate; position: relative; width: min(88%, 560px); justify-self: center; margin: 8px 0 12px; }
.plate-tilt { position: relative; aspect-ratio: 1; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 244, 227, .06), 0 0 0 22px rgba(255, 184, 28, .07), 0 40px 90px -20px rgba(255, 107, 26, .65);
}
.steam { position: absolute; left: 25%; top: -10%; width: 50%; height: auto; overflow: visible; pointer-events: none; }
.steam path { fill: none; stroke: rgba(255, 244, 227, .5); stroke-width: 7; stroke-linecap: round; opacity: 0; }
.hero-plate .sticker-hot { position: absolute; left: -6%; top: 6%; font-size: clamp(.95rem, 3.6vw, 1.25rem); }
.price-bubble {
  position: absolute; right: -8%; bottom: 4%; width: clamp(108px, 30vw, 150px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; padding: 12px;
  background: var(--mustard); color: var(--carbon); transform: rotate(8deg);
  box-shadow: 0 10px 0 rgba(0, 0, 0, .25);
}
.price-bubble span { font-size: .66rem; font-weight: 600; line-height: 1.2; }
.price-bubble strong { font: 400 clamp(1.25rem, 5vw, 1.7rem)/1 var(--display); }
.seal { position: absolute; left: -4%; bottom: 0; width: clamp(80px, 22vw, 116px); height: auto; }
.seal text { font: 400 9.4px var(--display); fill: var(--carbon); letter-spacing: .06em; }

@media (min-width: 960px) {
  .hero { padding: 48px 0 104px; min-height: calc(100svh - var(--demo-h) - var(--head-h)); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero-in { grid-template-columns: 1.08fr .92fr; grid-template-areas: "title plate" "lead plate" "cta plate" "facts plate"; column-gap: 56px; row-gap: 22px; align-content: center; }
  .hero-plate { align-self: center; margin: 0; width: 100%; }
  .hero-title { align-self: end; }
  .hero .hero-cta .btn-order { flex: 0 0 auto; }
}

/* ---------- Cinta (marquee) ---------- */
.ribbon { position: relative; z-index: 2; overflow: hidden; margin: -40px 0 -16px; padding: 26px 0; pointer-events: none; }
.ribbon-band { background: var(--mustard); color: var(--carbon); transform: rotate(-3deg); width: 112%; margin-left: -6%; padding: 14px 0; box-shadow: 0 8px 0 var(--red); overflow: hidden; }
.ribbon-track { display: flex; width: max-content; font: 400 clamp(1.1rem, 3.6vw, 1.7rem)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.ribbon-track span { display: flex; align-items: center; }
.ribbon-track span::after { content: ""; width: .5em; height: .5em; margin: 0 .8em; border-radius: 50%; background: var(--red); }

/* ---------- Secciones ---------- */
.sec { position: relative; padding-block: var(--sec); }
.sec-dark { background: var(--carbon); color: var(--cream); }
.sec-cream { background: var(--cream); color: var(--ink); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 5vw, 48px); }
.splash { position: absolute; width: 280px; height: 170px; color: var(--red); opacity: .1; pointer-events: none; }
.splash-carta { right: -70px; top: 30px; transform: rotate(18deg); }

/* ---------- Promos ---------- */
.promos-sec { padding-top: calc(var(--sec) + 8px); }
.countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; color: var(--on-dark-soft); }
.cd-time { display: inline-flex; align-items: center; gap: 4px; font: 400 1.5rem/1 var(--display); color: var(--mustard); }
.cd-time span { background: var(--mustard); color: var(--carbon); padding: 8px 8px 6px; border-radius: 8px; min-width: 2.3ch; text-align: center; font-variant-numeric: tabular-nums; }
.promos-wrap { position: relative; min-width: 0; }
.promos {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px 4px 18px; margin: 0 -4px; scrollbar-width: none;
}
.promos::-webkit-scrollbar { display: none; }
.promo {
  scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; overflow: hidden; min-width: 0;
  background: var(--carbon-2); border-radius: var(--r-card); border: 1px solid rgba(255, 244, 227, .08);
}
.promo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.promo-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.promo-tag { font-size: .74rem; font-weight: 600; color: var(--on-dark-soft); border: 1px dashed rgba(255, 244, 227, .4); border-radius: 6px; padding: 2px 8px; }
.promo-title { font: 400 1.9rem/1 var(--display); text-transform: uppercase; }
.promo-text { color: var(--on-dark-soft); font-size: .95rem; }
.promo-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 10px; }
.bubble { background: var(--mustard); color: var(--carbon); font: 400 1.35rem/1 var(--display); padding: 10px 14px 8px; border-radius: 999px; transform: rotate(-3deg); display: inline-block; }
.promo-price s { color: var(--on-dark-soft); }
.save { font-size: .8rem; font-weight: 800; color: var(--mustard); }
.promos-nav { display: none; gap: 10px; justify-content: flex-end; margin-top: 8px; }
@media (min-width: 720px) { .promos { grid-auto-columns: calc((100% - 16px) / 2); } .promos-nav { display: flex; } }
@media (min-width: 1100px) { .promos { grid-auto-columns: calc((100% - 32px) / 3); } .promos-nav { display: none; } }

/* ---------- Carta ---------- */
.carta-sec { overflow: clip; }
.tabs { display: none; }
.js .tabs {
  position: sticky; top: calc(var(--demo-h) + var(--head-h) + var(--status-h)); z-index: 5;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gut) 12px; margin: 0 calc(-1 * var(--gut)) 28px;
  background: var(--cream); border-bottom: 2px solid var(--cream-2);
  transition: top .35s var(--ease-out);
}
.js .tabs[hidden] { display: none; }
.js .tabs::-webkit-scrollbar { display: none; }
.header-hidden .js .tabs, .js.header-hidden .tabs { top: var(--demo-h); }
.tab {
  flex: none; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--carbon); background: transparent;
  font-weight: 800; font-size: .92rem; color: var(--carbon); transition: background-color .25s, color .25s;
}
.tab[aria-selected="true"] { background: var(--carbon); color: var(--cream); }
.tab-ink { position: absolute; left: 0; bottom: 0; width: 100px; height: 4px; background: var(--red); border-radius: 2px; transform-origin: 0 50%; transition: transform .45s var(--ease-out); }

.panel-title { font: 400 1.8rem/1 var(--display); text-transform: uppercase; margin: 8px 0 18px; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.carta-panel + .carta-panel { margin-top: 48px; }
.js .carta-panel + .carta-panel { margin-top: 0; }
.carta-panel[hidden] { display: none; }
.carta-panel:focus-visible { box-shadow: none; outline-offset: 8px; }
.grid-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-card);
  box-shadow: 0 2px 0 var(--cream-2), 0 18px 40px -26px rgba(84, 40, 10, .55); overflow: hidden;
}
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--carbon-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card::after { /* brillo que sigue al cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 220, 160, .35), transparent 60%);
}
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-title { font: 800 1.12rem/1.25 var(--body); }
.card-desc { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: 400 1.3rem/1 var(--display); background: var(--mustard); padding: 9px 13px 7px; border-radius: 999px; transform: rotate(-3deg); white-space: nowrap; }
.card .btn-order { min-height: 46px; padding: 10px 16px; font-size: .9rem; }
.sizes { border: 0; padding: 0; margin: 2px 0 0; display: flex; gap: 6px; }
.size, .pick, .chip, .seg-opt, .zona-opt, .pay-opt { position: relative; }
.size input, .pick input, .chip input, .seg-opt input, .zona-opt input, .pay-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.size span { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 2px solid #e2cfae; font-weight: 600; font-size: .85rem; cursor: pointer; }
.size input:checked + span { border-color: var(--carbon); background: var(--carbon); color: var(--cream); }
.size input:focus-visible + span, .chip input:focus-visible + span,
.seg-opt input:focus-visible + span, .zona-opt input:focus-visible + span, .pay-opt input:focus-visible + span { outline: 3px solid var(--carbon); outline-offset: 2px; box-shadow: 0 0 0 6px var(--mustard); }
.pick:has(input:focus-visible) { outline: 3px solid var(--mustard); outline-offset: 2px; }
.sec-dark .chip input:focus-visible + span { outline-color: var(--mustard); box-shadow: 0 0 0 6px var(--carbon); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media img { transform: scale(1.08); }
  .card:hover::after { opacity: 1; }
}
.noscript { background: var(--mustard); padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }

/* ---------- Arma tu combo ---------- */
.combo-sec { background: radial-gradient(50% 40% at 80% 30%, rgba(255, 107, 26, .22), transparent 70%), var(--carbon); }
.combo-in { display: grid; gap: 26px; }
.combo-copy, .combo-stage { display: contents; }
.combo-copy > .h2 { order: 1; }
.combo-copy > .sec-lead { order: 2; margin-top: -12px; color: var(--on-dark-soft); }
.plate-wrap { order: 3; position: relative; width: min(100%, 400px); justify-self: center; }
.combo-form { order: 4; display: grid; gap: 24px; }
.combo-total { order: 5; }
.plate-svg { width: 100%; height: auto; overflow: visible; }
.plate-svg .layer { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6) translateY(-20px); transition: opacity .35s var(--ease-out), transform .55s var(--ease-back); }
.plate-svg .layer.is-on { opacity: 1; transform: none; }
.plate-svg .cup { animation: cup-in .45s var(--ease-back) both; }
@keyframes cup-in { from { opacity: 0; translate: 0 -24px; } }
.plate-badge { position: absolute; right: 2%; top: 4%; }
.step-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-set legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.step-set legend small { font-weight: 400; color: var(--on-dark-soft); font-size: .8rem; }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font: 400 .95rem/1 var(--display); flex: none; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 2px solid rgba(255, 244, 227, .2); background: var(--carbon-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.pick:hover { border-color: rgba(255, 244, 227, .5); }
.pick:has(input:checked) { border-color: var(--mustard); background: #2f2416; }
.pick:has(input:checked)::after { content: ""; position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--mustard); }
.pick-name { font-weight: 600; font-size: .95rem; line-height: 1.25; padding-right: 16px; }
.pick-price { font-size: .8rem; color: var(--on-dark-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid rgba(255, 244, 227, .3); font-weight: 600; font-size: .88rem; transition: background-color .2s, border-color .2s, color .2s; }
.chip input:checked + span { background: var(--mustard); border-color: var(--mustard); color: var(--carbon); }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 800; }
.combo-total { background: var(--carbon-2); border: 1px solid rgba(255, 244, 227, .1); border-radius: var(--r-card); padding: 18px; display: grid; gap: 10px; }
.combo-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 600; }
.combo-sum strong { font: 400 2.2rem/1 var(--display); color: var(--mustard); font-variant-numeric: tabular-nums; }
.combo-desc { font-size: .88rem; color: var(--on-dark-soft); }
@media (min-width: 960px) {
  .combo-in { grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; }
  .combo-copy { display: block; }
  .combo-copy > .sec-lead { margin: 14px 0 32px; }
  .combo-stage { display: grid; gap: 18px; position: sticky; top: calc(var(--demo-h) + var(--head-h) + 24px); }
  .plate-wrap { width: 100%; }
}

/* ---------- Del horno a tu mesa ---------- */
.proceso { position: relative; }
.pasos { display: grid; gap: 34px; position: relative; padding-left: 68px; }
.proceso-line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 4px; background: var(--cream-2); border-radius: 2px; overflow: hidden; }
.proceso-fill { position: absolute; inset: 0; background: linear-gradient(var(--mustard), var(--orange), var(--red)); transform-origin: top; }
.paso { position: relative; }
.paso-n {
  position: absolute; left: -68px; top: -6px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--carbon); color: var(--mustard); font: 400 1.3rem/1 var(--display); box-shadow: 0 0 0 6px var(--cream);
}
.paso h3 { font: 400 1.5rem/1.05 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.paso p { color: var(--ink-soft); max-width: 34ch; }
@media (min-width: 900px) {
  .pasos { grid-template-columns: repeat(4, 1fr); padding: 80px 0 0; gap: 28px; }
  .proceso-line { left: 25px; right: 25px; top: 23px; bottom: auto; width: auto; height: 4px; }
  .proceso-fill { background: linear-gradient(90deg, var(--mustard), var(--orange), var(--red)); transform-origin: left; }
  .paso-n { left: 0; top: -80px; }
}

/* ---------- Delivery y horario ---------- */
.delivery-in { display: grid; gap: 48px; }
.delivery-in .sec-lead { color: var(--on-dark-soft); }
.delivery-in .sec-lead strong { color: var(--cream); }
.zonas { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: .92rem; }
.zonas th, .zonas td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255, 244, 227, .12); }
.zonas thead th { font-size: .78rem; color: var(--on-dark-soft); font-weight: 600; }
.zonas tbody th { font-weight: 800; }
.zonas td:last-child { font-weight: 800; color: var(--mustard); white-space: nowrap; }
.horario li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; }
.horario li:nth-child(odd) { background: var(--carbon-2); }
.horario li.is-today { background: var(--mustard); color: var(--carbon); font-weight: 800; }
@media (max-width: 520px) { .zonas th:nth-child(2), .zonas td:nth-child(2) { display: none; } }
@media (min-width: 900px) { .delivery-in { grid-template-columns: 1.4fr 1fr; gap: 72px; } .delivery-in > div:last-child { padding-top: 12px; } }

/* ---------- Local ---------- */
.local-in { display: grid; gap: 28px; align-items: center; }
.local-in p:not(.sec-lead) { color: var(--ink-soft); margin-top: 12px; max-width: 46ch; }
.local-in .sec-lead { font-weight: 800; }
.map { border-radius: var(--r-card); overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 18px 40px -26px rgba(84, 40, 10, .55); background: var(--cream-2); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) { .local-in { grid-template-columns: 1fr 1.2fr; gap: 64px; } }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--cream-2); }
.faq-in { display: grid; gap: 32px; }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--paper); border-radius: 16px; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; min-height: 58px; border-radius: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--carbon); flex: none; transition: transform .35s var(--ease-out), background-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 8px; top: 12.75px; width: 12px; height: 2.5px; background: var(--cream); border-radius: 2px; }
.faq-icon::after { transform: rotate(90deg); transition: transform .35s var(--ease-out); }
.faq-item[open] .faq-icon { background: var(--red); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-body { padding: 0 20px 20px; color: var(--ink-soft); max-width: 64ch; }
@media (min-width: 900px) { .faq-in { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; } }

/* ---------- CTA final ---------- */
.cta-final { position: relative; isolation: isolate; overflow: hidden; background: var(--carbon); color: var(--cream); text-align: center; padding-block: clamp(96px, 16vw, 180px); }
.cta-final picture, .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(20, 17, 16, .55), rgba(20, 17, 16, .92)); }
.cta-in { display: grid; justify-items: center; gap: 18px; }
.cta-title { font: 400 clamp(3rem, 13vw, 8rem)/.88 var(--display); text-transform: uppercase; }
.cta-in p { font-size: 1.1rem; }
.cta-in .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: #0b0908; color: var(--cream); padding: 64px 0 120px; font-size: .92rem; }
.footer-in { display: grid; gap: 40px; }
.slogan { font: 400 1.4rem/1.1 var(--display); text-transform: uppercase; color: var(--mustard); margin-top: 16px; }
.foot-h { font: 800 .95rem/1.2 var(--body); margin-bottom: 10px; }
.creditos { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 8px; font-size: .82rem; color: var(--on-dark-soft); }
.creditos li:not(:last-child)::after { content: ","; margin-right: 6px; }
.libro { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 2px solid rgba(255, 244, 227, .3); border-radius: 12px; text-decoration: none; font-weight: 600; }
.libro small { font-weight: 400; color: var(--on-dark-soft); }
.made { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 244, 227, .12); font-size: .85rem; color: var(--on-dark-soft); }
.made a { color: var(--mustard); font-weight: 600; }
@media (min-width: 900px) { .footer-in { grid-template-columns: 1.1fr 1.4fr 1fr; gap: 56px; } .footer { padding-bottom: 64px; } }

/* ---------- Barra inferior + WhatsApp ---------- */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px 10px 20px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 800; box-shadow: 0 5px 0 var(--red-press), 0 16px 30px -10px rgba(0, 0, 0, .5);
}
.cart-bar[hidden] { display: none; }
.cart-bar-label { font: 400 1.02rem/1 var(--display); text-transform: uppercase; }
.cart-bar-count { flex: 1; font-size: .85rem; font-weight: 600; text-align: left; }
.cart-bar-count::before { content: "· "; }
.cart-bar-total { background: #fff; color: var(--red-press); border-radius: 999px; padding: 8px 12px; font-variant-numeric: tabular-nums; }
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 41;
  width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55);
  transition: transform .3s var(--ease-out), bottom .3s var(--ease-out);
}
.has-cart .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (min-width: 980px) { .cart-bar { display: none !important; } .wa-float, .has-cart .wa-float { right: 24px; bottom: 24px; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--demo-h) + var(--head-h) + var(--status-h) + 14px); z-index: 70;
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--carbon); color: var(--cream); border: 2px solid var(--mustard); border-radius: 999px;
  padding: 10px 20px; font-weight: 800; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  transition: transform .35s var(--ease-back), opacity .25s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Carrito (dialog) ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  padding: 0; border: 0; background: var(--cream); color: var(--ink); overflow: hidden;
}
.drawer[open] { animation: drawer-in .4s var(--ease-out); }
.drawer::backdrop { background: rgba(20, 17, 16, .66); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer-in { height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.drawer-head { position: sticky; top: 0; z-index: 2; background: var(--carbon); color: var(--cream); padding: 16px 16px 14px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.drawer-title { font: 400 1.6rem/1 var(--display); text-transform: uppercase; }
.steps { grid-column: 1 / -1; display: flex; gap: 6px; }
.steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--on-dark-soft); padding-top: 8px; border-top: 3px solid var(--carbon-3); }
.steps li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--carbon-3); font-size: .7rem; color: var(--cream); }
.steps li[aria-current="step"] { color: var(--cream); border-color: var(--mustard); }
.steps li[aria-current="step"] span { background: var(--mustard); color: var(--carbon); }
.steps li.is-done { border-color: var(--mustard); }
.view { flex: 1; display: flex; flex-direction: column; padding: 8px 16px 0; }
.view[hidden] { display: none; }
.lines { flex: 1; }
.lines > .line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px dashed #d9c3a0; }
.lines > .line img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.line-main { min-width: 0; }
.line-name { font-weight: 800; line-height: 1.25; }
.line-detail { font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
.line-cremas { margin-top: 6px; font-size: .82rem; }
.line-cremas summary { cursor: pointer; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.line-cremas summary span { color: var(--ink); font-weight: 600; }
.line-cremas em { color: var(--red-press); font-style: normal; font-weight: 800; }
.line-cremas fieldset { border: 0; padding: 8px 0 0; margin: 0; min-width: 0; }
.line-cremas .chip span { min-height: 36px; padding: 4px 12px; border-color: #d9c3a0; font-size: .8rem; }
.line-cremas .fine { margin-top: 6px; color: var(--ink-soft); font-size: .76rem; }
.line-note { display: block; margin-top: 8px; }
.line-note input { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid #c9b08a; background: var(--paper); font-size: .85rem; }
.line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-price { font-weight: 800; white-space: nowrap; }
.qty { display: flex; align-items: center; background: var(--paper); border-radius: 999px; border: 1.5px solid #c9b08a; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.2rem; font-weight: 800; border-radius: 50%; }
.qty output { min-width: 22px; text-align: center; font-weight: 800; }
.btn-del { font-size: .78rem; padding: 4px; min-height: 32px; color: var(--ink-soft); }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 56px 12px; color: var(--ink-soft); }
.empty[hidden] { display: none; }
.empty svg { width: 64px; height: 64px; margin-bottom: 8px; }
.empty strong { color: var(--ink); font-size: 1.1rem; }
.empty .btn-ghost { margin-top: 12px; color: var(--carbon); }
.drawer-foot { position: sticky; bottom: 0; margin: 16px -16px 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid #ecdcc0; display: grid; gap: 6px; }
.drawer-foot[hidden] { display: none; }
.drawer-foot .fine { margin: 0 0 6px; color: var(--ink-soft); }
.drawer-foot .btn-text { justify-self: center; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row-total { font-size: 1.15rem; padding-top: 6px; border-top: 1px dashed #d9c3a0; margin-bottom: 8px; }

/* Formulario */
.fs { border: 0; padding: 0; margin: 14px 0 6px; min-width: 0; }
.fs legend { font: 400 1.05rem/1.2 var(--display); text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.fs[hidden], .field[hidden] { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-opt, .zona-opt, .pay-opt { cursor: pointer; }
.seg-opt span, .zona-opt span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid #e2cfae; background: var(--paper); transition: border-color .2s, background-color .2s; }
.seg-opt small, .zona-opt small { font-size: .78rem; color: var(--ink-soft); }
.seg-opt input:checked + span, .zona-opt input:checked + span, .pay-opt input:checked + span { border-color: var(--carbon); background: #fff; box-shadow: inset 0 0 0 1px var(--carbon); }
.seg-opt input:disabled + span { opacity: .5; cursor: not-allowed; }
.zona-opts { display: grid; gap: 8px; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-opt span { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 2px solid #e2cfae; background: var(--paper); font-weight: 600; font-size: .9rem; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid #c9b08a; background: #fff; font-size: 1rem; }
.field input:focus-visible { border-color: var(--carbon); }
.field input[aria-invalid="true"] { border-color: #a3150d; background: #fff3f1; }
.help { font-size: .8rem; color: var(--ink-soft); }
.err { color: #a3150d; font-size: .84rem; font-weight: 600; }
.err::before { content: "⚠ "; }
.err[hidden] { display: none; }
.form-alert { background: #a3150d; color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 600; margin-top: 8px; }
.closed-note { background: var(--mustard); padding: 10px 14px; border-radius: 12px; font-weight: 600; margin-top: 8px; }
.form-alert[hidden], .closed-note[hidden] { display: none; }

/* Comanda (ticket de cocina impreso) */
.ticket {
  position: relative; margin: 16px 4px 8px; padding: 22px 20px 34px; background: #fffdf7; color: #1d1714;
  font: 500 .9rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace;
  filter: drop-shadow(0 12px 14px rgba(84, 40, 10, .25));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
}
.tk-head { display: grid; justify-items: center; text-align: center; gap: 4px; padding-bottom: 14px; border-bottom: 2px dashed #bfae94; }
.tk-head svg { width: 40px; height: 40px; }
.tk-brand { font: 400 1.3rem/1 var(--display); text-transform: uppercase; }
.tk-code strong { font-size: 1.15rem; background: var(--mustard); padding: 0 6px; }
.tk-items { padding: 12px 0; border-bottom: 2px dashed #bfae94; display: grid; gap: 10px; }
.tk-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
.tk-items small { display: block; color: #5b4a3f; font-size: .78rem; }
.tk-q { font-weight: 800; }
.tk-tot, .tk-data { padding: 12px 0; display: grid; gap: 4px; }
.tk-tot div, .tk-data div { display: flex; justify-content: space-between; gap: 12px; }
.tk-tot dd, .tk-data dd { text-align: right; }
.tk-total { font-size: 1.1rem; font-weight: 800; border-top: 1px solid #1d1714; padding-top: 6px; margin-top: 4px; }
.tk-data { border-top: 2px dashed #bfae94; }
.tk-data dt { color: #5b4a3f; }
.btn-wa { background: var(--wa); box-shadow: 0 5px 0 #07471f; }
.btn-wa:hover { background: #0c6a36; }

/* Modal de demo */
.modal { width: min(560px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--cream); color: var(--ink); overflow: hidden; }
.modal[open] { animation: pop .35s var(--ease-back); }
.modal::backdrop { background: rgba(20, 17, 16, .72); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.modal-in { position: relative; padding: 26px 22px 22px; max-height: calc(100dvh - 24px); overflow-y: auto; display: grid; gap: 12px; }
.modal-x { position: absolute; right: 14px; top: 14px; }
.modal-in > .sticker { justify-self: start; }
.modal-title { font: 400 clamp(1.7rem, 6vw, 2.2rem)/1 var(--display); text-transform: uppercase; padding-right: 48px; }
.wa-preview { margin: 0; padding: 14px 16px; border-radius: 14px; background: #e7f6dc; border: 1px solid #c4e4ad; color: #102a12; white-space: pre-wrap; font: .8rem/1.5 ui-monospace, Consolas, monospace; max-height: 34vh; overflow: auto; }
.wa-preview[hidden] { display: none; }
.modal-actions { display: grid; gap: 4px; margin-top: 6px; }
.modal-actions .btn-text { justify-self: center; }
.modal-actions .btn-text[hidden] { display: none; }

html.drawer-open { overflow: hidden; }

/* ---------- 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; }
  .embers, .steam { display: none; }
}

/* ---------- Ajustes tras revisión visual ---------- */
.splash { width: 190px; height: 190px; opacity: .9; }
.splash-carta { right: -48px; top: 26px; transform: rotate(-14deg); }
@media (max-width: 719px) { .splash-carta { width: 130px; height: 130px; right: -40px; top: 18px; } }
.carta-sec .sec-head { position: relative; z-index: 1; }
.card-foot { flex-wrap: wrap; }
.card-foot .btn-order { flex: 1 1 auto; }
.cta-in .hero-cta { grid-area: auto; }
@media (min-width: 960px) { .hero-title { font-size: clamp(3.4rem, 5.6vw, 5.6rem); } }
main > *, .sec { overflow-x: clip; }
.hero-title .line { overflow: visible; }
.price-bubble strong { white-space: nowrap; font-size: clamp(1.1rem, 4.4vw, 1.6rem); }
@media (max-width: 959px) {
  .hero-in { grid-template-areas: "title" "plate" "cta" "lead" "facts"; gap: 16px; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 4.4rem); }
  .hero-plate { width: min(80%, 460px); }
}

/* ---------- Etapa D: soporte de animaciones ---------- */
/* El titular espera a GSAP (o al respaldo de 3 s de head.js) para entrar palabra por palabra */

/* Estado de abierto/cerrado viaja con el header al ocultarse */
@media (max-width: 979px) { .status { position: absolute; top: 100%; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); } }

/* Producto que vuela al carrito */
.fly { position: fixed; left: 0; top: 0; z-index: 80; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 0 0 4px var(--mustard), 0 14px 30px rgba(0, 0, 0, .45); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
[data-lenis-prevent] { overscroll-behavior: contain; }

/* Cursor de llama (solo escritorio con mouse) */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url(../assets/icons/cursor-llama.svg) 8 2, auto; }
  a, button, label, summary, [role="tab"] { cursor: url(../assets/icons/cursor-llama-on.svg) 8 2, pointer; }
  input[type="text"], input[type="tel"], input[type="number"], input[type="time"] { cursor: text; }
}

/* ---------- Páginas simples (404, Libro de Reclamaciones) ---------- */
.page-simple { padding-top: var(--demo-h); background: var(--cream); }
.simple { min-height: calc(100svh - var(--demo-h)); display: grid; justify-items: center; align-content: center; gap: 18px; padding: 48px var(--gut); text-align: center; max-width: 720px; margin: 0 auto; }
.simple-left { justify-items: stretch; text-align: left; align-content: start; }
.simple-left > .btn-text { justify-self: start; }
.simple-title { font: 400 clamp(2.2rem, 8vw, 3.6rem)/.95 var(--display); text-transform: uppercase; }
.note-demo { background: var(--mustard); padding: 14px 16px; border-radius: 14px; }
.libro-form { display: grid; gap: 18px; }
.libro-form fieldset { border: 2px solid #e2cfae; border-radius: 16px; padding: 16px; margin: 0; min-width: 0; }
.libro-form legend { font: 400 1.05rem/1.2 var(--display); text-transform: uppercase; padding: 0 6px; }
.libro-form select, .libro-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid #c9b08a; background: #fff; font-size: 1rem; }
.libro-form :disabled { opacity: .75; cursor: not-allowed; }
.libro-form .btn-order:disabled { background: #6e5a4d; box-shadow: none; }

/* ---------- Entrada del hero en CSS (no espera a ninguna librería) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line { overflow: hidden; }
  .js .hero-title .w { animation: word-in .9s cubic-bezier(.3, 1.6, .5, 1) backwards; }
  .js .hero-title .line:first-child .w:nth-child(1) { animation-delay: .05s; }
  .js .hero-title .line:first-child .w:nth-child(2) { animation-delay: .12s; }
  .js .hero-title .line:first-child .w:nth-child(3) { animation-delay: .19s; }
  .js .hero-title .line:last-child .w:nth-child(1) { animation-delay: .3s; }
  .js .hero-title .line:last-child .w:nth-child(2) { animation-delay: .37s; }
  .js .hero-title .line:last-child .w:nth-child(3) { animation-delay: .44s; }
  .js .hero-plate .sticker-hot { animation: pop-in .6s var(--ease-back) .6s backwards; }
  .js .price-bubble { animation: pop-in .6s var(--ease-back) .72s backwards; }
  .js .seal { animation: pop-in .5s var(--ease-back) .85s backwards, spin 22s linear 1.4s infinite; }
  .js .hero-cta > * { animation: rise-in .5s var(--ease-out) backwards; }
  .js .hero-cta > :first-child { animation-delay: .55s; } .js .hero-cta > :last-child { animation-delay: .62s; }
  .js .hero-lead, .js .hero-facts { animation: fade-in .6s ease .7s backwards; }
  .steam path { animation: steam 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
  .steam path:nth-child(2) { animation-delay: 1s; } .steam path:nth-child(3) { animation-delay: 2s; }
  .hero.is-off .seal, .hero.is-off .steam path { animation-play-state: paused; }
}
@keyframes word-in { from { translate: 0 115%; rotate: 7deg; } }
@keyframes pop-in { from { scale: 0; } }
@keyframes rise-in { from { opacity: 0; translate: 0 18px; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes steam {
  0% { opacity: 0; translate: 0 30px; scale: 1 .8; }
  45% { opacity: .85; translate: 0 -40px; scale: 1 1.1; }
  100% { opacity: 0; translate: 0 -80px; scale: 1 1.1; }
}
