/* =============================================================
   Pizzería Boca a Boca — styles.css
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #FBF4E8;
  --bg-2: #F4E7D1;
  --paper: #FFFDF8;
  --ink: #23140D;
  --ink-soft: #4A362B;
  --ink-mute: #7A6556;
  --red: #D9341F;
  --red-deep: #A8210F;
  --green: #1F6B3A;
  --green-deep: #134A27;
  --flame: #F29A1D;
  --gold: #F4B63F;
  --crust: #E9B872;
  --line: rgba(35, 20, 13, .12);

  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(60, 25, 5, .06), 0 12px 32px -12px rgba(60, 25, 5, .22);
  --shadow-lg: 0 30px 60px -25px rgba(90, 35, 8, .45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 72px;
}

/* 2. Reset & base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 8px; }

/* 3. Utilities ------------------------------------------------- */
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .7rem 1.1rem; background: var(--ink); color: #fff; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* 4. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; line-height: 1.1;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--call { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(217, 52, 31, .8); }
.btn--call:hover { background: var(--red-deep); box-shadow: 0 16px 30px -12px rgba(217, 52, 31, .9); }
.btn--ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn--light:hover { background: rgba(255,255,255,.2); }
.btn--sm { padding: .6rem 1rem; font-size: .95rem; }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.1rem; }
.btn--lg small { display: block; font-size: .72rem; font-weight: 600; opacity: .85; letter-spacing: .02em; margin-bottom: .15rem; }
.btn--lg span { text-align: left; }
.btn--block { width: 100%; }

/* 5. Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 232, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(60, 25, 5, .35); }
.header-in { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo-mark { width: 44px; height: 44px; transition: transform .8s var(--ease-out); }
.brand:hover .logo-mark { transform: rotate(-30deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-logo { height: 58px; width: auto; transition: transform .5s var(--ease-out); }
.brand:hover .brand-logo { transform: scale(1.05) rotate(-2deg); }
.brand--footer { background: var(--bg); padding: .7rem 1.1rem; border-radius: 18px; }
.brand--footer .brand-logo { height: 76px; }
.brand-name { font-family: var(--script); color: var(--red); font-size: 1.6rem; line-height: 1; }
.brand-sub { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.brand-sub + .brand-sub { margin-top: .25rem; }
.brand-sub--town { color: var(--red); }
.nav { display: none; gap: .3rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .98rem; padding: .5rem .8rem; border-radius: 999px;
  transition: background-color .25s, color .25s;
}
.nav a:hover { background: var(--bg-2); }
.nav a.is-active { color: var(--red); }
.header-call { display: none; }

/* 6. Hero ------------------------------------------------------ */
.hero { position: relative; padding: 2.5rem 0 2rem; overflow: clip; }
.hero-arch {
  position: absolute; z-index: 0; pointer-events: none;
  width: 900px; height: 900px; right: -420px; top: 40px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 54%, rgba(242,154,29,.16) 54.2%, rgba(242,154,29,.16) 62%, transparent 62.2%),
    radial-gradient(circle, transparent 66%, rgba(217,52,31,.10) 66.2%, rgba(217,52,31,.10) 74%, transparent 74.2%),
    radial-gradient(circle, rgba(244,182,63,.35), rgba(244,182,63,0) 52%);
}
.hero-in { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow);
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 4px rgba(242,154,29,.2); }
.status.is-open .status-dot { background: #22A04B; box-shadow: 0 0 0 4px rgba(34,160,75,.18); animation: pulse 2s ease-in-out infinite; }
.status.is-closed .status-dot { background: #B9A595; box-shadow: none; }
.hero-title { margin-top: 1.1rem; display: flex; flex-direction: column; }
.hero-kicker {
  font-family: var(--display); font-weight: 800; color: var(--green);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); letter-spacing: .02em; text-transform: uppercase;
}
.hero-script {
  font-family: var(--script); font-weight: 400; color: var(--red);
  font-size: clamp(3.6rem, 2rem + 8vw, 7.4rem); line-height: .95; letter-spacing: 0;
  margin-top: .1em; padding-bottom: .08em;
  text-shadow: 0 2px 0 rgba(168,33,15,.15);
}
.hero-lead { margin-top: 1.2rem; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; }
.hero-lead strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-alt { margin-top: 1rem; color: var(--ink-mute); font-size: .98rem; }
.hero-alt a { color: var(--ink); font-weight: 700; }

.hero-visual { position: relative; justify-self: center; width: min(480px, 92vw); aspect-ratio: 1; }
.pizza-wrap { width: 100%; height: 100%; transition: transform .6s var(--ease-out); transform-style: preserve-3d; }
.pizza-svg { width: 100%; height: 100%; overflow: visible; }
.pizza-spin { transform-origin: 300px 300px; animation: spin 90s linear infinite; }
.hero-badge {
  position: absolute; display: flex; flex-direction: column; gap: .15rem;
  padding: .8rem 1rem; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-lg);
  font-size: .82rem; line-height: 1.2; color: var(--ink-soft);
  animation: float 6s ease-in-out infinite;
}
.hero-badge strong { font-family: var(--display); font-size: 1.35rem; color: var(--red); line-height: 1; }
.hero-badge--a { left: -4%; bottom: 10%; }
.hero-badge--b { right: -2%; top: 6%; animation-delay: -3s; background: var(--green); color: rgba(255,255,255,.85); }
.hero-badge--b strong { color: #fff; }

.facts {
  position: relative; z-index: 1; margin-top: 2.5rem;
  display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.facts li { background: var(--paper); padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .15rem; }
.fact-k { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.fact-v { font-weight: 700; font-size: 1.05rem; }

/* 7. Sections -------------------------------------------------- */
.section { padding: 5rem 0; }
.section-head { margin-bottom: 2.4rem; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--light { color: var(--gold); }
.section-title { margin-top: .7rem; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; }
.section-title--light { color: #fff; }
.section-sub { margin-top: .8rem; font-size: 1.1rem; color: var(--ink-soft); }
.note { margin-top: 1.6rem; font-size: .95rem; color: var(--ink-mute); }

/* Cómo pedir */
.howto { padding: 3.5rem 0 1rem; }
.eyebrow-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 800; text-align: center; }
.steps { margin-top: 1.8rem; display: grid; gap: 1rem; counter-reset: s; }
.step {
  position: relative; padding: 1.6rem 1.5rem 1.5rem 5.2rem; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
}
.step-n {
  position: absolute; left: 1.4rem; top: 1.4rem; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
}
.step h3 { font-size: 1.35rem; font-weight: 800; }
.step p { margin-top: .3rem; color: var(--ink-soft); }
.step a { font-weight: 700; color: var(--red); text-decoration: none; white-space: nowrap; }

/* Ofertas */
.offer-grid { display: grid; gap: 1.2rem; }
.offer {
  position: relative; overflow: hidden; padding: 2rem 1.8rem; border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .8rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.offer::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0 40%, transparent 41% 55%, rgba(255,255,255,.1) 56% 62%, transparent 63%);
  pointer-events: none;
}
.offer-photo {
  position: absolute; z-index: 1; right: -18px; bottom: -18px; width: 130px; height: 130px; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,.25), var(--shadow-lg); transform: rotate(-12deg);
  transition: transform .8s var(--ease-out);
}
.offer:hover .offer-photo { transform: rotate(8deg) scale(1.05); }
.offer--red .offer-fine { padding-right: 110px; }
.offer-label { font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.offer-big { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); font-weight: 800; }
.offer-big span { display: block; }
.offer-fine { font-size: .9rem; opacity: .8; margin-top: auto; }
.offer-list { display: grid; gap: .5rem; }
.offer-list li { padding-left: 1.4rem; position: relative; }
.offer-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.offer--red { background: var(--red); color: #fff; }
.offer--red .offer-photo {
  position: absolute; z-index: 1; right: -18px; bottom: -18px; width: 130px; height: 130px; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,.25), var(--shadow-lg); transform: rotate(-12deg);
  transition: transform .8s var(--ease-out);
}
.offer:hover .offer-photo { transform: rotate(8deg) scale(1.05); }
.offer--red .offer-fine { padding-right: 110px; }
.offer-label { color: var(--gold); }
.offer--cream { background: var(--paper); color: var(--ink); }
.offer--cream .offer-photo {
  position: absolute; z-index: 1; right: -18px; bottom: -18px; width: 130px; height: 130px; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,.25), var(--shadow-lg); transform: rotate(-12deg);
  transition: transform .8s var(--ease-out);
}
.offer:hover .offer-photo { transform: rotate(8deg) scale(1.05); }
.offer--red .offer-fine { padding-right: 110px; }
.offer-label { color: var(--red); }
.offer--cream .offer-big span { color: var(--red); }
.offer--cream::after { background: radial-gradient(circle, rgba(242,154,29,.18) 0 40%, transparent 41% 55%, rgba(242,154,29,.12) 56% 62%, transparent 63%); }
.offer--green { background: var(--green); color: #fff; }
.offer--green .offer-photo {
  position: absolute; z-index: 1; right: -18px; bottom: -18px; width: 130px; height: 130px; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,.25), var(--shadow-lg); transform: rotate(-12deg);
  transition: transform .8s var(--ease-out);
}
.offer:hover .offer-photo { transform: rotate(8deg) scale(1.05); }
.offer--red .offer-fine { padding-right: 110px; }
.offer-label { color: var(--gold); }

/* Carta */
.menu { background: var(--paper); border-radius: 40px 40px 0 0; }
.tabs-wrap {
  position: sticky; top: var(--header-h); z-index: 20;
  margin: 0 -1.25rem 1.6rem; padding: .7rem 1.25rem;
  background: rgba(255, 253, 248, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tabs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .2rem 0; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start;
  padding: .7rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  background: var(--bg); color: var(--ink-soft); border: 1.5px solid var(--line);
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out);
}
.tab { display: inline-flex; align-items: center; gap: .5rem; }
.tab-img { width: 30px; height: 30px; border-radius: 50%; margin: -.3rem 0 -.3rem -.6rem; box-shadow: 0 0 0 2px #fff; background: #fff; }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.panel + .panel { margin-top: 3.5rem; }
.js .panel + .panel { margin-top: 0; }
.js .panel[hidden] { display: none; }
.js .panel.is-entering { animation: panelIn .5s var(--ease-out); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin-bottom: 1.2rem; }
.panel-id { display: flex; align-items: center; gap: 1rem; }
.panel-img { width: 72px; height: 72px; border-radius: 50%; flex: none; background: #fff; box-shadow: 0 0 0 4px #fff, var(--shadow); }
.panel-title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 800; }
.panel-legend { color: var(--ink-mute); font-size: .95rem; }

.dish-list { display: grid; gap: 0 3rem; }
.dish { padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.dish-main { display: flex; align-items: baseline; gap: .6rem; }
.dish-name { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.dish-dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted rgba(35,20,13,.2); transform: translateY(-.3em); }
.dish-desc { margin-top: .2rem; color: var(--ink-mute); font-size: .95rem; line-height: 1.45; max-width: 52ch; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--red); white-space: nowrap; }
.price--ask { font-family: var(--sans); font-size: .9rem; color: var(--ink-mute); font-weight: 600; }
.prices { display: inline-flex; gap: 1rem; }
.prices .price { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.prices .price small { font-family: var(--sans); font-size: .68rem; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; }
.dish-sub { margin-top: .6rem; padding: .6rem .8rem; border-radius: 10px; background: var(--bg); }
.dish-sub-name { font-weight: 700; font-size: .98rem; color: var(--ink-soft); }
.price--sub { font-size: 1rem; }
.dish-list--single { margin-top: 1rem; }

.cp-table {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1.4rem;
}
.cp-cell { background: var(--bg); padding: .9rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.cp-size { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.cp-val { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--red); }
.pz-grid { display: grid; gap: 1rem; }
.pz-card {
  position: relative; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--radius-sm);
  background: var(--bg); border: 1.5px solid var(--line);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.pz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pz-card--sig { background: var(--red); color: #fff; border-color: var(--red); }
.pz-card--sig .pz-desc { color: rgba(255,255,255,.88); }
.pz-card--sig .pz-num { color: rgba(255,255,255,.5); }
.pz-top { display: flex; justify-content: space-between; align-items: center; min-height: 1.6rem; }
.pz-tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: .25rem .6rem; border-radius: 999px; }
.pz-num { font-family: var(--display); font-weight: 800; color: var(--crust); margin-left: auto; }
.pz-name { margin-top: .5rem; font-size: 1.5rem; font-weight: 800; }
.pz-desc { margin-top: .4rem; color: var(--ink-soft); font-size: .97rem; line-height: 1.5; }
.pz-prices {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 1rem;
  background: var(--line); border-radius: 12px; overflow: hidden;
}
.pz-prices div { background: var(--paper); padding: .5rem .2rem; text-align: center; display: flex; flex-direction: column; gap: .1rem; }
.pz-prices dt { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.pz-prices dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--red); white-space: nowrap; }
.pz-card--sig .pz-prices { background: rgba(255,255,255,.25); }
.pz-card--sig .pz-prices div { background: rgba(255,255,255,.12); }
.pz-card--sig .pz-prices dt { color: var(--gold); }
.pz-card--sig .pz-prices dd { color: #fff; }
.pz-card { display: flex; flex-direction: column; }
.pz-card .pz-prices { margin-top: auto; }
.pz-card .pz-desc { margin-bottom: 1rem; }
.link-arrow {
  display: inline-flex; gap: .4rem; align-items: center; margin-top: 1.6rem;
  font-weight: 700; color: var(--green); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: .1rem;
}
.link-arrow span { transition: transform .3s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }
.note--allergens { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--bg-2); color: var(--ink-soft); margin-top: 2.5rem; }
.note--allergens .ico { color: var(--green); margin-top: .15rem; }

/* Crea tu pizza */
.builder { background: var(--paper); padding-top: 2rem; }
.builder-grid { display: none; }
.js .builder-grid { display: grid; gap: 2rem; }
.js .builder-static { display: none; }
.b-step { display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; font-weight: 800; margin: 0 0 1rem; }
.b-step:not(:first-child) { margin-top: 2.2rem; }
.b-step span { width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.b-hint { color: var(--ink-mute); margin: -.4rem 0 1rem; }
.b-hint.is-warn { color: var(--red); font-weight: 700; }
.sizes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.size {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 1rem .6rem; border-radius: var(--radius-sm); background: var(--bg); border: 2px solid var(--line);
  transition: border-color .25s, background-color .25s, transform .35s var(--ease-out);
}
.size:hover { border-color: var(--ink-mute); }
.size[aria-pressed="true"] { border-color: var(--red); background: #FFF0EA; }
.size-ico { border-radius: 50%; background: radial-gradient(circle, #F6D27C 0 58%, #E0A04A 60% 100%); box-shadow: inset 0 0 0 2px rgba(168,90,28,.25); transition: transform .4s var(--ease-bounce); }
.size[aria-pressed="true"] .size-ico { transform: scale(1.08) rotate(20deg); }
.size-ico--pequena { width: 30px; height: 30px; }
.size-ico--mediana { width: 40px; height: 40px; }
.size-ico--grande { width: 50px; height: 50px; }
.size-ico--dobladillo { width: 50px; height: 26px; border-radius: 50px 50px 8px 8px; margin-top: 12px; margin-bottom: 12px; }
.size-name { font-weight: 800; }
.size-base { font-size: .9rem; color: var(--ink-mute); }
.ing-group + .ing-group { margin-top: 1.2rem; }
.ing-title { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 800; margin-bottom: .6rem; }
.ing-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.ing {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .95rem; border-radius: 999px;
  background: var(--bg); border: 1.5px solid var(--line); font-weight: 600; font-size: .97rem;
  transition: background-color .2s, border-color .2s, color .2s, transform .3s var(--ease-bounce);
}
.ing small { font-size: .74rem; color: var(--ink-mute); font-weight: 600; }
.ing:hover { border-color: var(--ink-mute); }
.ing-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(35,20,13,.3); display: grid; place-items: center; transition: all .2s; }
.ing[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.03); }
.ing[aria-pressed="true"] small { color: rgba(255,255,255,.8); }
.ing[aria-pressed="true"] .ing-check { border-color: #fff; background: #fff; }
.ing[aria-pressed="true"] .ing-check::after { content: ""; width: 8px; height: 5px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }

.ticket { align-self: start; position: sticky; top: calc(var(--header-h) + 1rem); }
.ticket-in {
  position: relative; padding: 1.8rem 1.6rem 1.5rem; background: var(--bg); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.ticket-k { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.ticket-size { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.1; margin-top: .2rem; }
.ticket-lines { margin-top: 1rem; display: grid; gap: .4rem; font-size: .97rem; }
.ticket-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.ticket-lines li span:last-child { font-weight: 700; white-space: nowrap; }
.ticket-list { margin-top: .8rem; font-size: .92rem; color: var(--ink-mute); line-height: 1.45; }
.ticket-total {
  display: flex; justify-content: space-between; align-items: baseline; margin: 1.2rem 0 1.2rem;
  padding-top: 1rem; border-top: 2px dashed var(--line);
}
.ticket-total span { font-weight: 800; font-size: 1.1rem; }
.ticket-total strong { font-family: var(--display); font-size: 2.4rem; color: var(--red); line-height: 1; }
.ticket-total strong.bump { animation: bump .45s var(--ease-bounce); }
.ticket-reset { display: block; margin: .9rem auto 0; font-weight: 700; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; font-size: .92rem; }
.ticket-reset:hover { color: var(--ink); }
.ticket-fine { margin-top: .8rem; font-size: .82rem; color: var(--ink-mute); text-align: center; }

.price-table { width: 100%; max-width: 640px; border-collapse: collapse; background: var(--bg); border-radius: var(--radius-sm); overflow: hidden; }
.price-table caption { text-align: left; font-weight: 800; font-family: var(--display); font-size: 1.3rem; margin-bottom: .8rem; }
.price-table th, .price-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.price-table td { font-weight: 700; color: var(--red); }

.mini-total {
  position: fixed; z-index: 55; left: 50%; bottom: calc(5.4rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 160%); opacity: 0;
  display: flex; align-items: center; gap: .8rem; padding: .7rem 1.2rem; border-radius: 999px;
  background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-lg);
  border: 2px solid var(--red); font-weight: 700; white-space: nowrap;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.mini-total strong { font-family: var(--display); color: var(--red); font-size: 1.25rem; }
.mini-total em { font-style: normal; font-size: .82rem; color: var(--ink-mute); }
.mini-total.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Menús */
.menu-grid { display: grid; gap: 1rem; }
.menu-card {
  padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--radius); background: var(--paper);
  box-shadow: var(--shadow); border-top: 5px solid var(--gold);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.menu-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-name { font-size: 1.4rem; font-weight: 800; }
.menu-price { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--red); white-space: nowrap; }
.menu-what { margin-top: .5rem; font-weight: 600; font-size: 1.05rem; }
.menu-note { margin-top: .6rem; font-size: .88rem; color: var(--ink-mute); }

/* Reparto */
.delivery { background: var(--green-deep); color: #fff; position: relative; overflow: clip; }
.delivery::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -300px; bottom: -380px; border-radius: 50%;
  background: radial-gradient(circle, transparent 50%, rgba(255,255,255,.05) 50.3% 60%, transparent 60.3% 68%, rgba(255,255,255,.04) 68.3% 76%, transparent 76.3%);
  pointer-events: none;
}
.delivery-grid { position: relative; display: grid; gap: 2.5rem; align-items: start; }
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.zone { padding: 1.4rem 1.3rem; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.zone-min { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); color: var(--gold); line-height: 1; }
.zone-k { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; opacity: .7; margin-top: .3rem; }
.zone-places { margin-top: .8rem; font-weight: 700; font-size: 1.1rem; }
.tips { margin-top: 1.8rem; display: grid; gap: .8rem; }
.tips li { position: relative; padding-left: 1.8rem; color: rgba(255,255,255,.88); }
.tips li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.tips strong { color: #fff; }
.hours-card { padding: 2rem 1.7rem; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); display: grid; gap: .8rem; }
.hours-title { font-size: 1.6rem; font-weight: 800; }
.hours { display: grid; gap: .4rem; margin: .4rem 0 .8rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: 12px; background: var(--bg); }
.hours dt { font-weight: 600; }
.hours dd { font-weight: 800; white-space: nowrap; }
.hours div.is-today { background: #FFF0EA; box-shadow: inset 0 0 0 2px var(--red); }
.hours div.is-today dt::after { content: " · hoy"; color: var(--red); font-weight: 800; }

/* Contacto */
.contact-grid { display: grid; gap: 2.5rem; align-items: center; }
.addr { font-style: normal; margin-top: 1.4rem; font-size: 1.15rem; line-height: 1.6; }
.addr strong { display: block; font-family: var(--display); font-size: 1.3rem; }
.contact-list { margin: 1.4rem 0 1.8rem; display: grid; gap: .5rem; max-width: 380px; }
.contact-list li { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--ink-mute); }
.contact-list a { font-weight: 800; color: var(--red); text-decoration: none; font-size: 1.1rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 3rem 0 7rem; }
.footer-in { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.footer-in a { color: #fff; text-decoration: none; font-weight: 700; }
.brand--footer .brand-sub { color: var(--gold); }
.footer-fine { font-size: .85rem; opacity: .7; }

/* Barra móvil */
.mobile-bar {
  position: fixed; z-index: 60; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1.6fr; gap: .5rem; padding: .45rem;
  background: rgba(35,20,13,.92); border-radius: 999px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem; border-radius: 999px; text-decoration: none; font-weight: 800; }
.mb-carta { color: #fff; }
.mb-call { background: var(--red); color: #fff; }

/* 8. Effects --------------------------------------------------- */
[data-reveal] { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(34,160,75,.18); } 50% { box-shadow: 0 0 0 8px rgba(34,160,75,.06); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.hero-copy > * { animation: heroIn 1s var(--ease-out) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-visual { animation: pizzaIn 1.4s var(--ease-out) both .1s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pizzaIn { from { opacity: 0; transform: scale(.85) rotate(-40deg); } to { opacity: 1; transform: none; } }

/* 9. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .cp-table { grid-template-columns: repeat(4, 1fr); }
  .sizes { grid-template-columns: repeat(4, 1fr); }
  .pz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .offer--red { grid-row: span 2; justify-content: center; }
  .offer--red .offer-big { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); }
  .offer-photo { width: 190px; height: 190px; right: -24px; bottom: -24px; }
  .offer--red .offer-fine { padding-right: 160px; }
  .panel-img { width: 88px; height: 88px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .dish-list { grid-template-columns: 1fr 1fr; }
  .dish-list--single { grid-template-columns: 1fr; max-width: 50%; }
}
@media (min-width: 960px) {
  :root { --header-h: 96px; }
  .nav { display: flex; }
  .header-call { display: inline-flex; }
  .brand-logo { height: 80px; }
  .mobile-bar, .mini-total { display: none; }
  .site-footer { padding-bottom: 3rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-in { grid-template-columns: 1.05fr 1fr; }
  .hero-arch { right: -260px; top: -60px; width: 1000px; height: 1000px; }
  .pz-grid { grid-template-columns: repeat(3, 1fr); }
  .js .builder-grid { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .delivery-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
  .section { padding: 6.5rem 0; }
  .tabs-wrap { margin-inline: 0; padding-inline: 0; }
  .tabs { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1280px) {
  .hero-visual { width: 540px; }
}

/* 10. Reduced motion: only intrusive loops -------------------- */
@media (prefers-reduced-motion: reduce) {
  .pizza-spin, .hero-badge { animation: none; }
  .status.is-open .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}
