/* =====================================================================
   CIRILLO · L'Antica Pizzeria Italiana
   styles.css — organizado por secciones
   ===================================================================== */

/* ---------- 0. TOKENS ---------- */
:root {
  --cream: #fffbf6;
  --paper: #f7ede1;
  --red: #ea091d;
  --red-deep: #b30414;
  --ink: #2a0a0d;
  --ink-soft: #5c3a3c;
  --line: rgba(42, 10, 13, .16);

  --f-display: "Limelight", "Didot", Georgia, serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-tag: "Tilt Warp", "Manrope", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 72px;
}

/* ---------- 1. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.tag {
  font-family: var(--f-tag);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  line-height: 1.3;
}
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .005em;
  font-size: clamp(42px, 7.2vw, 118px);
  margin: 0;
  text-wrap: balance;
}
.display em, .pz-title em { font-style: normal; color: var(--red); }
.lead {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.45;
  font-weight: 500;
  max-width: 34ch;
  margin: 0 0 1.2em;
}
.arr { display: inline-block; transition: transform .35s var(--ease); }

/* ---------- 2. BOTONES ---------- */
.btn {
  --bg: var(--red); --fg: var(--cream);
  position: relative;
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.6em;
  border-radius: 999px;
  border: 1.5px solid var(--bg);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-tag);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), translate .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--ink); }
.btn:hover .arr { transform: translateX(5px); }
.btn-red { --bg: var(--red); --fg: var(--cream); }
.btn-cream { --bg: var(--cream); --fg: var(--red); }
.btn-cream:hover { color: var(--cream); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { color: var(--cream); }
.btn-sm { padding: .8em 1.2em; font-size: 12px; }
.btn-lg { padding: 1.15em 2em; font-size: 15px; }

/* ---------- 3. SPLASH (doble red: CSS 4.5s + JS) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--cream);
  color: var(--red);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-in-out), visibility 0s 1s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }
.splash-inner { display: grid; justify-items: center; gap: 22px; }
.splash-word {
  font-family: var(--f-display);
  font-size: clamp(56px, 13vw, 170px);
  line-height: 1;
  display: flex; overflow: hidden;
  padding: .06em 0;
}
.splash-word span {
  display: inline-block;
  transform: translateY(110%);
  animation: splashLetter .9s var(--ease) forwards;
  animation-delay: calc(.08s + var(--i) * 75ms);
}
@keyframes splashLetter { to { transform: translateY(0); } }
.splash-bar { width: min(280px, 60vw); height: 2px; background: rgba(234, 9, 29, .15); overflow: hidden; }
.splash-bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); animation: splashBar 1.5s .2s var(--ease-in-out) forwards; }
@keyframes splashBar { to { transform: scaleX(1); } }
.splash-note { margin: 0; font-family: var(--f-tag); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: 0; animation: fadeIn .6s .7s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- 4. AURORA + GRANO ---------- */
.aurora {
  position: fixed; inset: -10vmax; z-index: -1;
  pointer-events: none;
  overflow: hidden;
  --mx: 0; --my: 0;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.aurora .a1 {
  width: 60vmax; height: 60vmax; left: -10vmax; top: -12vmax;
  background: radial-gradient(circle, rgba(234, 9, 29, .20), rgba(234, 9, 29, 0) 65%);
  animation: drift1 38s ease-in-out infinite alternate;
  translate: calc(var(--mx) * 60px) calc(var(--my) * 40px);
}
.aurora .a2 {
  width: 55vmax; height: 55vmax; right: -14vmax; top: 20vh;
  background: radial-gradient(circle, rgba(255, 171, 120, .38), rgba(255, 171, 120, 0) 65%);
  animation: drift2 46s ease-in-out infinite alternate;
  translate: calc(var(--mx) * -80px) calc(var(--my) * -50px);
}
.aurora .a3 {
  width: 50vmax; height: 50vmax; left: 25vw; bottom: -20vmax;
  background: radial-gradient(circle, rgba(255, 110, 110, .18), rgba(255, 110, 110, 0) 65%);
  animation: drift3 52s ease-in-out infinite alternate;
  translate: calc(var(--mx) * 40px) calc(var(--my) * 70px);
}
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, 30vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-15vw, -35vh) scale(1.2); } }

.grain {
  position: fixed; inset: -50%; z-index: 900;
  pointer-events: none;
  opacity: .09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.04  0 0 0 0 0.05  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- 5. CURSOR ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 1001;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.cursor.is-ready { opacity: 1; }
.cursor-ring {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.cursor-label {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  font-family: var(--f-tag); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.cursor.is-active .cursor-ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--red); border-color: var(--red); }
.cursor.is-active .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.on-red .cursor-ring { border-color: var(--cream); }
.cursor.on-red.is-active .cursor-ring { background: var(--cream); border-color: var(--cream); }
.cursor.on-red.is-active .cursor-label { color: var(--red); }
.cursor.is-down .cursor-ring { transform: scale(.85); }
@media (hover: none), (pointer: coarse) { .cursor { display: none !important; } }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-cursor] { cursor: none; }
  html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }
  html.has-cursor select { cursor: pointer; }
}

/* ---------- 6. MARCA LATERAL ---------- */
.sidemark {
  position: fixed; right: 14px; top: 50%; z-index: 80;
  display: flex; align-items: center; gap: 10px;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-family: var(--f-tag); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.sidemark b { font-weight: 400; color: var(--red); }
.sidemark-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1faa4b;
  box-shadow: 0 0 0 0 rgba(31, 170, 75, .6);
  animation: pulse 1.8s ease-out infinite;
}
.sidemark.is-closed .sidemark-dot { background: var(--ink-soft); animation: none; }
.sidemark.is-closed b { color: var(--ink-soft); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 170, 75, .55); } 100% { box-shadow: 0 0 0 10px rgba(31, 170, 75, 0); } }

/* ---------- 7. NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 251, 246, .92);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(255, 251, 246, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
}
.nav-logo {
  font-family: var(--f-display);
  font-size: 30px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
  line-height: 1;
  margin-right: auto;
}
.nav-logo span { color: var(--ink); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  position: relative;
  font-family: var(--f-tag); font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-burger { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 85;
  background: var(--red); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-in-out); }
.menu nav { display: grid; gap: 6px; }
.menu a {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(40px, 12vw, 72px); line-height: 1.05;
  text-decoration: none;
  display: flex; align-items: baseline; gap: 14px;
}
.menu a small { font-family: var(--f-tag); font-size: 12px; letter-spacing: .1em; opacity: .7; }
.menu-foot { font-family: var(--f-tag); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 40px; opacity: .85; }
html.menu-open .nav-logo, html.menu-open .nav-logo span { color: var(--cream); }
html.menu-open .nav.is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 18px) var(--gutter) 0;
  overflow: hidden;
}
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.kicker {
  margin: 0;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-tag); text-transform: uppercase; letter-spacing: .12em;
  font-size: clamp(12px, 1.1vw, 15px);
  color: var(--red);
}
.kicker-line { width: 44px; height: 1.5px; background: currentColor; display: inline-block; }
.hero-where { margin: 0; color: var(--ink-soft); }

.hero-title {
  margin: clamp(10px, 2vh, 28px) 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--red);
  line-height: .86;
  font-size: min(19.6vw, 34vh);
  letter-spacing: 0;
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: .04em;
  position: relative; z-index: 2;
}
.hl { display: inline-block; }
.js .hl {
  animation: letterIn 1.1s var(--ease) both;
  animation-delay: calc(var(--d, 1.75s) + var(--i) * 70ms);
}
@keyframes letterIn { from { transform: translateY(105%) rotate(4deg); } to { transform: translateY(0) rotate(0); } }

.hero-bottom {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--gutter);
  align-items: start;
  margin-top: clamp(16px, 3vh, 40px);
  position: relative;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 40px; }
.hero-est {
  display: inline-flex; gap: .5em; margin: 0 0 18px;
  padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 13px;
}
.hero-est span { color: var(--red); }
.hero-lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; font-weight: 500; max-width: 30ch; margin: 0 0 28px; color: var(--red); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-soft); align-items: center; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li:not(:last-child)::before { content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

.js .hero-copy > * { animation: rise 1s var(--ease) both; }
.js .hero-copy > *:nth-child(1) { animation-delay: calc(var(--d, 1.75s) + .35s); }
.js .hero-copy > *:nth-child(2) { animation-delay: calc(var(--d, 1.75s) + .45s); }
.js .hero-copy > *:nth-child(3) { animation-delay: calc(var(--d, 1.75s) + .55s); }
.js .hero-copy > *:nth-child(4) { animation-delay: calc(var(--d, 1.75s) + .65s); }
.js .hero-top { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 1.75s) + .1s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.sound-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0;
  font-family: var(--f-tag); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); cursor: pointer;
}
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; height: 4px; background: currentColor; transition: height .3s; }
.sound-btn.is-on .eq i { animation: eq .8s ease-in-out infinite alternate; }
.sound-btn.is-on .eq i:nth-child(2) { animation-delay: -.3s; }
.sound-btn.is-on .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }

.hero-pizza {
  position: relative;
  justify-self: end;
  width: min(46vw, 70vh);
  aspect-ratio: 1;
  margin-right: calc(var(--gutter) * -.4);
  align-self: start;
}
.js .hero-pizza { animation: pizzaIn 1.6s var(--ease) both; animation-delay: calc(var(--d, 1.75s) + .2s); }
@keyframes pizzaIn { from { opacity: 0; transform: translateY(30%) rotate(-40deg) scale(.9); } to { opacity: 1; transform: none; } }
.hero-pizza::before {
  content: ""; position: absolute; inset: -4%;
  border-radius: 50%;
  border: 1.5px dashed rgba(234, 9, 29, .45);
  animation: spin 60s linear infinite reverse;
}
.hero-pizza-spin {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(90, 10, 10, .55), 0 0 0 10px var(--cream), 0 0 0 11.5px rgba(42, 10, 13, .12);
  animation: spin 70s linear infinite;
}
.hero-pizza-spin img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); }
@keyframes spin { to { transform: rotate(360deg); } }

.stamp { position: absolute; width: clamp(110px, 11vw, 170px); left: -6%; top: 2%; z-index: 3; overflow: visible; }
.stamp-bg { fill: var(--red); }
.stamp text { fill: var(--cream); font-family: var(--f-tag); }
.stamp textPath { font-size: 15.5px; letter-spacing: 2.6px; }
.stamp-rot { transform-origin: 100px 100px; animation: spin 22s linear infinite; }
.stamp-big { font-family: var(--f-display) !important; font-size: 44px; }
.stamp-small { font-size: 10px; letter-spacing: 3px; }

/* ---------- 9. MARQUEES ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-red {
  position: relative; z-index: 3;
  background: var(--red); color: var(--cream);
  padding: 11px 0;
  transform: rotate(-1.6deg) scale(1.04);
  margin: -10px 0 0;
  box-shadow: 0 20px 40px -20px rgba(120, 0, 10, .5);
}
.marquee-red span { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(17px, 1.9vw, 28px); line-height: 1; padding: 0 .55em; }
.marquee-red i { font-style: normal; font-size: clamp(13px, 1.3vw, 19px); }

/* ---------- 10. SECCIONES ---------- */
.section { position: relative; padding: clamp(90px, 13vw, 180px) var(--gutter); }
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 1100px; }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-head-center .lead { margin-inline: auto; }
.sec-num { margin: 0 0 18px; color: var(--ink-soft); }
.sec-num b { font-weight: 400; color: var(--red); }

/* reveal genérico: la clase .rv la pone main.js, así que si el JS no carga todo queda visible */
.rv .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rv .reveal.is-visible { opacity: 1; transform: none; }
/* defensivo: los que usan split-text nunca quedan invisibles */
.reveal[data-split], .rv .reveal[data-split] { opacity: 1; transform: none; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.swi { display: inline-block; will-change: transform; }

/* ---------- 11. EL LOCAL ---------- */
.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .62fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.collage { position: relative; aspect-ratio: 1 / 1.05; }
.ph {
  position: absolute; margin: 0;
  padding: 10px 10px 34px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(60, 5, 10, .45), 0 2px 6px rgba(60, 5, 10, .08);
  transition: rotate .6s var(--ease), scale .6s var(--ease), box-shadow .6s var(--ease);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-1 { width: 72%; aspect-ratio: 4 / 3; left: 0; top: 4%; rotate: -5deg; z-index: 2; }
.ph-2 { width: 56%; aspect-ratio: 3 / 2; right: 0; top: 44%; rotate: 4deg; z-index: 3; }
.ph-3 { width: 34%; aspect-ratio: 3 / 5; right: 4%; top: -4%; rotate: 7deg; z-index: 1; }
.ph:hover { rotate: 0deg; scale: 1.03; z-index: 5; box-shadow: 0 40px 70px -30px rgba(60, 5, 10, .6); }
.tape {
  position: absolute; left: 4%; bottom: 24%; z-index: 6;
  background: var(--red); color: var(--cream);
  font-family: var(--f-tag); text-transform: uppercase; letter-spacing: .12em; font-size: clamp(12px, 1.1vw, 15px);
  padding: 10px 22px;
  rotate: -8deg;
  box-shadow: 0 10px 20px -10px rgba(120, 0, 10, .6);
  clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 1% 96%, 0 50%);
}
.local-text .lead { color: var(--red); }
.local-text .body { color: var(--red); max-width: 44ch; margin: 0 0 36px; }
.stats { list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 4vw, 60px); color: var(--red); line-height: 1; }
.stats span { display: block; margin-top: 8px; font-family: var(--f-tag); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.3; }
.local-aside { border-top: 3px solid var(--red); padding-top: 20px; position: sticky; top: calc(var(--nav-h) + 30px); }
.aside-kicker { margin: 0 0 14px; color: var(--red); }
.local-aside blockquote { margin: 0 0 14px; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; }
.aside-sign { margin: 0 0 26px; color: var(--ink-soft); font-size: 15px; }
.aside-link { font-family: var(--f-tag); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.aside-link:hover .arr { transform: translateX(5px); }

/* ---------- 12. PIZZAS ---------- */
.pizzas {
  position: relative;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: calc(var(--nav-h) + 10px);
  overflow: hidden;
}
.pz-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding: 0 var(--gutter) 10px;
  position: relative; z-index: 2;
}
.pz-head .sec-num { margin-bottom: 6px; }
.pz-title { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 4.2vw, 64px); line-height: 1; }
.pz-progress { min-width: min(260px, 40vw); text-align: right; }
.pz-count { margin: 0 0 8px; font-size: 14px; }
.pz-count b { font-weight: 400; color: var(--red); font-size: 26px; }
.pz-bar { height: 2px; background: var(--line); overflow: hidden; }
.pz-bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(.1); transition: transform .2s linear; }
.pz-hint { margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; }
.hint-desk { display: none; }
.pizzas.is-pinned .hint-desk { display: inline; }
.pizzas.is-pinned .hint-touch { display: none; }

/* Base (móvil / sin GSAP): swipe nativo con scroll-snap */
.pz-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pz-viewport::-webkit-scrollbar { display: none; }
.pz-track { display: flex; width: max-content; padding: 10px var(--gutter) 30px; gap: 18px; }
.pz-card {
  scroll-snap-align: center;
  width: min(86vw, 520px);
  flex-shrink: 0;
  display: grid;
  gap: 18px;
  align-content: start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
}
.pz-media { position: relative; display: grid; place-items: center; padding: 8px 0; }
.pz-big {
  position: absolute; left: 0; bottom: 2%; z-index: 2;
  font-family: var(--f-display); font-size: clamp(64px, 18vw, 96px); line-height: .8;
  color: var(--red);
  text-shadow: 0 0 0 var(--cream), 4px 4px 0 var(--cream);
}
.pz-plate {
  position: relative;
  width: 66%; aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 50px -25px rgba(70, 8, 10, .6), 0 0 0 8px var(--cream), 0 0 0 9.5px rgba(42, 10, 13, .12);
}
.pz-plate img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.pz-serie { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; font-size: 11px; }
.pz-card[data-serie="casa"] .pz-serie { background: var(--red); color: var(--cream); }
.pz-card[data-serie="temporada"] .pz-serie { border: 1.5px solid var(--red); color: var(--red); }
.pz-name { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 9vw, 54px); line-height: .95; color: var(--ink); }
.pz-sub { margin: 8px 0 16px; font-style: italic; font-size: 18px; color: var(--red); }
.pz-ing { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pz-ing li { font-family: var(--f-tag); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .5); }
.pz-desc { margin: 0; color: var(--ink-soft); font-size: 16px; max-width: 46ch; }

/* Desktop con pin (GSAP activo) */
.pizzas.is-pinned { height: 100vh; padding-top: calc(var(--nav-h) + 6px); display: flex; flex-direction: column; }
.pizzas.is-pinned .pz-viewport { overflow: hidden; scroll-snap-type: none; flex: 1; min-height: 0; }
.pizzas.is-pinned .pz-track { height: 100%; padding: 0; gap: 0; will-change: transform; }
.pizzas.is-pinned .pz-card {
  width: 100vw; height: 100%;
  border: 0; border-radius: 0; background: transparent;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; align-content: center;
  gap: clamp(30px, 5vw, 90px);
  padding: 0 calc(var(--gutter) + 30px) 0 var(--gutter);
}
.pizzas.is-pinned .pz-media { height: 100%; padding: 0; }
.pizzas.is-pinned .pz-plate { width: auto; height: min(62vh, 40vw); }
.pizzas.is-pinned .pz-big { font-size: min(20vh, 12vw); left: 4%; bottom: 10%; text-shadow: 6px 6px 0 var(--paper); }
.pizzas.is-pinned .pz-name { font-size: clamp(48px, 6.4vw, 108px); }
.pizzas.is-pinned .pz-sub { font-size: clamp(18px, 1.6vw, 24px); }
.pizzas.is-pinned .pz-desc { font-size: 18px; }
.pizzas.is-pinned .pz-ing li { font-size: 12px; padding: 7px 12px; }

.marquee-ing { border-top: 1px solid var(--line); padding: 14px 0; background: var(--cream); position: relative; z-index: 2; }
.marquee-ing .marquee-track { animation-duration: 40s; animation-direction: reverse; }
.marquee-ing span { font-family: var(--f-tag); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; padding: 0 1.2em; }
.marquee-ing i { font-style: normal; color: var(--red); }
.marquee-shift { will-change: transform; }

/* ---------- 13. PEDIDOS ---------- */
.pedidos {
  background: var(--red); color: var(--cream);
  overflow: hidden;
}
.pedidos::before {
  content: "PIZZA"; position: absolute; right: -2vw; bottom: -6vw;
  font-family: var(--f-display); font-size: 30vw; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 251, 246, .18);
  pointer-events: none;
}
.pedidos .sec-num, .pedidos .sec-num b { color: var(--cream); }
.pedidos .display em { color: var(--ink); }
.pedidos-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 100px); align-items: center; position: relative; }
.pedidos-text .display { margin-bottom: 30px; }
.pedidos-note { margin: 20px 0 0; opacity: .85; }
.pedidos .btn-cream:hover { border-color: var(--ink); }

.comanda { position: relative; justify-self: center; width: min(360px, 100%); }
.comanda-paper {
  background: var(--cream); color: var(--ink);
  padding: 30px 28px 34px;
  rotate: 3deg;
  box-shadow: 0 40px 70px -30px rgba(40, 0, 5, .7);
  font-family: var(--f-tag);
  text-transform: uppercase;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) 50% 100% / 18px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) 50% 100% / 18px 100% repeat-x;
  transition: rotate .6s var(--ease);
}
.comanda:hover .comanda-paper { rotate: 0deg; }
.comanda-head { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 13px; letter-spacing: .08em; }
.comanda-head span:first-child { font-family: var(--f-display); font-size: 30px; color: var(--red); letter-spacing: 0; }
.comanda-kicker { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line); color: var(--ink-soft); }
.comanda ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; font-size: 14px; letter-spacing: .04em; }
.comanda li { display: flex; align-items: baseline; gap: 8px; }
.comanda li i { flex: 1; border-bottom: 1.5px dotted var(--ink-soft); transform: translateY(-4px); }
.comanda li span:last-child { color: var(--red); }
.comanda-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px dashed var(--line); padding-top: 14px; margin: 0 0 12px; font-size: 13px; }
.comanda-foot b { font-family: var(--f-display); font-weight: 400; font-size: 34px; color: var(--red); }
.comanda-thanks { margin: 0; text-align: center; font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); }
.stamp-sm { width: 120px; left: auto; right: -40px; top: -40px; }
.stamp-sm .stamp-bg { fill: var(--ink); }

/* ---------- 14. GALERÍA ---------- */
.galeria { padding-left: 0; padding-right: 0; }
.galeria .sec-head { padding: 0 var(--gutter); }
.lanes { display: grid; gap: 14px; transform: rotate(-2deg) scale(1.06); }
.lane { overflow: hidden; }
.lane-track { display: flex; width: max-content; animation: marquee linear infinite; }
.lane-fast .lane-track { animation-duration: 38s; }
.lane-slow .lane-track { animation-duration: 80s; }
.lane-rev .lane-track { animation-duration: 55s; animation-direction: reverse; }
.lane:hover .lane-track { animation-play-state: paused; }
.lane-item { margin: 0 14px 0 0; flex-shrink: 0; height: clamp(150px, 20vw, 290px); overflow: hidden; border-radius: 6px; background: var(--ink); }
.lane-item img { height: 100%; width: auto; object-fit: cover; transition: transform .8s var(--ease), filter .6s var(--ease); }
.lane-item:hover img { transform: scale(1.06); filter: contrast(1.1); }
.lane-slow .lane-item { height: clamp(190px, 26vw, 380px); }

/* ---------- 15. RESERVA ---------- */
.reserva-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.form .lead { margin-bottom: 40px; }
.field { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: end; column-gap: 12px; padding: 22px 0 10px; border-bottom: 1.5px solid var(--ink); transition: border-color .3s var(--ease); }
.field:focus-within { border-color: var(--red); }
.field-n { grid-row: 1 / span 2; align-self: center; font-family: var(--f-tag); font-size: 32px; line-height: 1; color: var(--red); }
.field-l { display: block; font-family: var(--f-tag); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field-l small { font-size: inherit; opacity: .7; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 0; background: transparent;
  padding: 8px 0 4px;
  font-family: var(--f-sans); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--ink);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 48px; line-height: 1.4; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%), linear-gradient(135deg, var(--red) 50%, transparent 50%);
  background-position: calc(100% - 12px) 58%, calc(100% - 6px) 58%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 24px;
}
.field ::placeholder { color: rgba(42, 10, 13, .32); }
.field-split { grid-template-columns: 64px 1.3fr .9fr .9fr; }
.field-split .field-n { grid-row: auto; }
.field-split label { display: block; }
.field-split label + label { border-left: 1px solid var(--line); padding-left: 14px; }
.field.is-error { border-color: var(--red); }
.field.is-error .field-l { color: var(--red); }
.form-msg { min-height: 1.6em; margin: 18px 0 0; font-size: 15px; color: var(--red); font-weight: 600; }
.form-msg.is-ok { color: #16813a; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 18px; }
.form-alt { font-family: var(--f-tag); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--red); text-decoration: none; border-bottom: 1.5px solid transparent; transition: border-color .3s; }
.form-alt:hover { border-color: currentColor; }

.panel {
  position: sticky; top: calc(var(--nav-h) + 30px);
  background: var(--red); color: var(--cream);
  padding: clamp(26px, 3vw, 40px);
  border-radius: 28px;
  box-shadow: 0 40px 80px -40px rgba(120, 0, 10, .65);
}
.panel-kicker { margin: 0 0 24px; opacity: .85; }
.panel dl { margin: 0; display: grid; gap: 0; }
.panel dl > div { padding: 16px 0; border-top: 1px solid rgba(255, 251, 246, .3); display: grid; gap: 4px; }
.panel dt { opacity: .75; }
.panel dd { margin: 0; font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; line-height: 1.35; }
.panel dd a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.panel dd a:hover { background-size: 100% 1.5px; }
.panel dd small { display: block; font-size: 13px; font-weight: 500; opacity: .8; margin-top: 2px; }
.panel-foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 251, 246, .3); font-size: 14px; opacity: .9; }

/* ---------- 16. FOOTER ---------- */
.footer { background: var(--red); color: var(--cream); padding: 0 0 26px; overflow: hidden; }
.footer-display { padding: clamp(30px, 5vw, 60px) 0 clamp(20px, 3vw, 40px); border-bottom: 1px solid rgba(255, 251, 246, .3); }
.footer-display .marquee-track { animation-duration: 28s; }
.footer-display span { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(30px, 4vw, 60px); line-height: 1; padding-right: .5em; }
.footer-display i { font-style: normal; font-size: clamp(16px, 1.8vw, 26px); padding-right: .9em; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(40px, 5vw, 70px) var(--gutter);
}
.f-h { margin: 0 0 16px; opacity: .8; }
.f-big { margin: 0 0 8px; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(28px, 2.8vw, 42px); line-height: 1; }
.f-sm { margin: 0 0 18px; font-size: 15px; opacity: .9; max-width: 34ch; }
.f-link { font-family: var(--f-tag); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.f-list { list-style: none; margin: 0 0 26px; padding: 0; }
.f-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 251, 246, .3); }
.f-list li:last-child { border-bottom: 1px solid rgba(255, 251, 246, .3); }
.f-list a { font-size: 18px; font-weight: 600; text-decoration: none; }
.f-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 20px var(--gutter) 0; margin: 0 var(--gutter);
  padding-inline: 0;
  border-top: 1px solid rgba(255, 251, 246, .3);
  font-family: var(--f-tag); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.footer-legal p { margin: 0; }
.footer-legal a { text-decoration: none; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.credits { border: 0; border-radius: 24px; padding: 30px; max-width: 460px; width: calc(100% - 32px); background: var(--cream); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(40, 0, 5, .6); }
.credits::backdrop { background: rgba(42, 10, 13, .55); backdrop-filter: blur(4px); }
.credits .tag { color: var(--red); margin: 0 0 14px; }
.credits ul { margin: 0 0 22px; padding-left: 18px; color: var(--ink-soft); }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .local-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .local-aside { grid-column: 1 / -1; position: static; max-width: 640px; }
  .nav-links { gap: 18px; }
}

@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-logo { font-size: 26px; }
  .nav-links { display: none; }
  .nav-cta { padding: .75em 1em; font-size: 11px; }
  .nav-burger {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid var(--ink); background: transparent; cursor: pointer; padding: 0;
  }
  .nav-burger i { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), background-color .3s; }
  html.menu-open .nav-burger { border-color: var(--cream); }
  html.menu-open .nav-burger i { background: var(--cream); }
  html.menu-open .nav-burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
  html.menu-open .nav-burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  html.menu-open .nav-cta { background: var(--cream); color: var(--red); border-color: var(--cream); }

  .sidemark { right: 4px; font-size: 9px; gap: 7px; }
  .sidemark-dot { width: 6px; height: 6px; }

  .hero { padding-top: calc(var(--nav-h) + 14px); }
  .hero-where { display: none; }
  .hero-title { font-size: 19vw; margin-top: 44px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 0; margin-top: 18px; }
  .hero-copy { padding-bottom: 0; }
  .hero-lead { max-width: 36ch; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero-pizza { width: 92vw; justify-self: center; margin: 34px 0 -38vw; }
  .stamp { width: 104px; left: 0; top: -6%; }

  .local-grid { grid-template-columns: 1fr; }
  .collage { width: 100%; max-width: 520px; margin: 0 auto 20px; }
  .stats b { font-size: 36px; }

  .pz-head { flex-direction: column; align-items: flex-start; }
  .pz-progress { text-align: left; width: 100%; }

  .pedidos-grid { grid-template-columns: 1fr; }
  .comanda { margin-top: 20px; }
  .stamp-sm { right: -10px; width: 96px; }

  .reserva-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .field { grid-template-columns: 44px 1fr; }
  .field-n { font-size: 24px; }
  .field-split { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .field-split .field-n { grid-column: 1 / -1; }
  .field-split label:first-of-type { grid-column: 1 / -1; }
  .field-split label + label { border-left: 0; padding-left: 0; }
  .field-split label:last-of-type { border-left: 1px solid var(--line); padding-left: 14px; }
  .form-actions .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero-facts { gap: 8px 16px; }
  .marquee-red { padding: 9px 0; }
}

/* Solo efectos intrusivos se desactivan con reduced-motion (Windows lo trae activo) */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}
