/* ============================================================
   PUNTO GARDEL — Pizza Casera
   Cinematic scroll landing: charcoal black, fire orange, cream, gold.
   ============================================================ */

:root {
  --bg: #0c0a08;
  --panel: #15110d;
  --card: #1c1712;
  --line: rgba(247, 236, 217, 0.1);
  --orange: #ff8a1e;
  --orange-deep: #e8590c;
  --orange-soft: rgba(255, 138, 30, 0.14);
  --cream: #f7ecd9;
  --cream-dim: rgba(247, 236, 217, 0.66);
  --ink-on-light: #241c12;
  --ink-btn: #211002;
  --gold: #d9a441;
  --red: #d9382e;
  --red-bright: #ef5348;
  --green: #4fbf6b;
  --wa-dark: #15803d;
  --wa-darker: #166534;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-script: "Yellowtail", cursive;
  --font-body: "Archivo", sans-serif;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-gutter: stable;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Film-grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--orange); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
ol, ul { list-style: none; }

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

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

/* ============ Shared type ============ */

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.script-accent {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--orange);
  transform: rotate(-2deg);
  display: inline-block;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.9em 1.7em;
  border-radius: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: var(--ink-btn);
  box-shadow: 0 8px 26px rgba(232, 89, 12, 0.4);
}
.btn--primary:hover { box-shadow: 0 14px 34px rgba(232, 89, 12, 0.55); }

.btn--ghost {
  border: 1.5px solid rgba(247, 236, 217, 0.28);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

.btn--dark {
  background: var(--bg);
  color: var(--cream);
}
.btn--dark:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }

.btn--wa {
  background: linear-gradient(135deg, var(--wa-dark), var(--wa-darker));
  color: #fff;
  box-shadow: 0 8px 26px rgba(21, 128, 61, 0.4);
}
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(21, 128, 61, 0.55); }

.btn--sm { font-size: 0.88rem; padding: 0.65em 1.2em; border-radius: 11px; }
.btn--block { width: 100%; }

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 0.55rem; }
.nav__hat { width: 32px; color: var(--orange); }
.nav__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
}
.nav__name em { font-style: normal; color: var(--orange); }

.nav__links {
  display: flex;
  gap: 1.6rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav__links a {
  color: var(--cream-dim);
  padding-bottom: 0.2em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover { color: var(--cream); }
.nav__links a.is-active { color: var(--cream); border-color: var(--orange); }

.nav__right { display: flex; align-items: center; gap: 0.9rem; }

.nav__cart {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream);
  transition: border-color 0.2s, color 0.2s;
}
.nav__cart:hover { border-color: var(--orange); color: var(--orange); }
.nav__cart svg { width: 1.3rem; height: 1.3rem; }
.nav__cart.pop { animation: cart-pop 0.4s var(--ease); }
@keyframes cart-pop {
  35% { transform: scale(1.25) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}
.nav__cart-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  padding: 0 0.3em;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: var(--ink-btn);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35em 0.85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream-dim);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cream-dim); }
.status.is-open { color: var(--green); border-color: rgba(79, 191, 107, 0.4); }
.status.is-open .status__dot { background: var(--green); animation: pulse 2s infinite; }
.status.is-closed { color: var(--red-bright); border-color: rgba(239, 83, 72, 0.45); }
.status.is-closed .status__dot { background: var(--red-bright); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 191, 107, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(79, 191, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 191, 107, 0); }
}

/* ============ FILM (scroll-driven pizza story) ============ */

.film {
  position: relative;
  background: #7e211a; /* matches the clip's red backdrop while frames load */
  overflow-anchor: none; /* keep Chrome's scroll anchoring out of the scrub */
}
/* The scroll runway exists only when the film actually plays (GSAP present) */
body.gsap-anim .film { height: 550vh; }

.film__stage {
  /* Native sticky pinning: unbreakable under fast scrolling, no pin-spacer */
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

#film-canvas, #flour-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#flour-canvas { z-index: 3; pointer-events: none; }

/* Flavor slideshow — mobile only */
.film__slides { display: none; }

.film__grad {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.62), transparent 52%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.6), transparent 26%, transparent 62%, rgba(12, 10, 8, 0.82)),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(12, 10, 8, 0.5));
  pointer-events: none;
}

/* Fixed stage progress */
.film__progress {
  position: absolute;
  left: clamp(1rem, 3vw, 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: grid;
  gap: 1.15rem;
}
.film__progress li {
  display: flex;
  align-items: center;
  gap: 0.65em;
  color: rgba(247, 236, 217, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.35s;
}
.film__progress li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid currentColor;
  transition: background 0.35s, box-shadow 0.35s;
  flex: 0 0 auto;
}
.film__progress li.is-active { color: var(--orange); }
.film__progress li.is-active::before {
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 138, 30, 0.7);
}
.film__progress li.is-done { color: rgba(247, 236, 217, 0.72); }
.film__progress li.is-done::before { background: currentColor; }

/* Copy overlays */
.film__copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Left padding clears the fixed progress rail */
  padding: 0 clamp(1.2rem, 8vw, 8rem) 0 clamp(1.2rem, 16vw, 17rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
  pointer-events: none;
}
.film__copy.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.film__copy.is-on a, .film__copy.is-on .btn { pointer-events: auto; }

.film__copy h1, .film__copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  max-width: 14ch;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.65);
}
.film__copy--hero {
  align-items: center;
  text-align: center;
  padding: 0 clamp(1.2rem, 8vw, 8rem);
}
.film__copy--hero h1 { max-width: 16ch; }

.film__kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.8);
}

.film__stage-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.8);
}

.film__lede {
  margin-top: 1.2rem;
  max-width: 42ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(247, 236, 217, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 0, 0, 0.8);
}

.film__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.film__hint {
  position: absolute;
  bottom: clamp(1.2rem, 4vh, 2.6rem);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  white-space: nowrap;
}
.film__hint .ico { color: var(--orange); animation: hint-bounce 1.8s ease-in-out infinite; }
@keyframes hint-bounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

/* Layer callouts on the last stage */
.film__labels { position: absolute; inset: 0; pointer-events: none; }
.film__label {
  position: absolute;
  top: var(--top);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.3vw, 0.95rem);
  letter-spacing: 0.05em;
  color: var(--cream);
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35em 0.95em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.film__label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(30px, 9vw, 130px);
  border-top: 1.5px dashed rgba(255, 138, 30, 0.65);
}
.film__label[style*="--side: left"] { left: clamp(0.8rem, 9vw, 9rem); }
.film__label[style*="--side: left"]::after { left: 100%; }
.film__label[style*="--side: right"] { right: clamp(0.8rem, 9vw, 9rem); }
.film__label[style*="--side: right"]::after { right: 100%; }

/* Final stage shares the frame with the layer callouts: smaller, anchored low */
.film__copy[data-copy="5"] {
  justify-content: flex-end;
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
}
.film__copy[data-copy="5"] h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  max-width: 22ch;
}

.film__copy.is-on .film__label { opacity: 1; transform: translateY(0); }
.film__copy.is-on .film__label:nth-child(1) { transition-delay: 0.05s; }
.film__copy.is-on .film__label:nth-child(2) { transition-delay: 0.15s; }
.film__copy.is-on .film__label:nth-child(3) { transition-delay: 0.25s; }
.film__copy.is-on .film__label:nth-child(4) { transition-delay: 0.35s; }
.film__copy.is-on .film__label:nth-child(5) { transition-delay: 0.45s; }
.film__copy.is-on .film__label:nth-child(6) { transition-delay: 0.55s; }

/* ============ MENU ============ */

.menu {
  padding: clamp(4rem, 9vh, 6.5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1240px;
  margin-inline: auto;
}

.menu__head { margin-bottom: 2.6rem; }
.menu__note { color: var(--cream-dim); margin-top: 0.8rem; }

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  perspective: 1200px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  border-color: rgba(255, 138, 30, 0.45);
  box-shadow: var(--shadow);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
  flex-grow: 1;
}

.card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card__desc {
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.card__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.card__add {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: var(--ink-btn);
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(232, 89, 12, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card__add:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 24px rgba(232, 89, 12, 0.5); }
.card__add:active { transform: scale(0.94); }

.card__build {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 0.62em 1.05em;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: var(--ink-btn);
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(232, 89, 12, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card__build:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 89, 12, 0.5); }
.card__build:active { transform: scale(0.96); }

.card__badge--build { background: var(--orange-deep); color: var(--ink-btn); }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-radius: 11px;
  padding: 0.2rem;
}
.stepper__btn {
  width: 1.9em;
  height: 1.9em;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-btn);
  border-radius: 8px;
  transition: background 0.15s;
}
.stepper__btn:hover { background: rgba(0, 0, 0, 0.14); }
.stepper__qty {
  min-width: 1.5em;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink-btn);
}

/* Extra flavors */
.extras { margin-top: 3rem; }
.extras__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.extras__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.7rem;
}
.extras__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.25s;
}
.extras__item:hover { border-color: rgba(255, 138, 30, 0.4); }
.extras__info { flex: 1; min-width: 0; }
.extras__badge {
  display: inline-block;
  vertical-align: 0.15em;
  margin-left: 0.4rem;
  padding: 0.25em 0.7em;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.extras__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
}
.extras__desc { color: var(--cream-dim); font-size: 0.82rem; }
.extras__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--gold);
}
.extras__item .card__add { width: 2.2rem; height: 2.2rem; font-size: 1.25rem; }
.extras__item .stepper { padding: 0.14rem; }
.extras__item .stepper__btn { width: 1.7em; height: 1.7em; font-size: 0.9rem; }

/* ============ ORDER / STEPS / PAYMENTS ============ */

.order {
  padding: clamp(3.5rem, 8vh, 5.5rem) clamp(1rem, 4vw, 3rem);
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.order__head, .steps, .payments { max-width: 1140px; margin-inline: auto; }
.order__head { margin-bottom: 2.4rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-bottom: 3.2rem;
}

.step {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.step p { color: var(--cream-dim); font-size: 0.92rem; }

.payments__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.payments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}

.pay-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.pay-card:hover { border-color: rgba(255, 138, 30, 0.45); transform: translateY(-4px); }
.pay-card__ico {
  width: 3rem;
  height: 3rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  margin-bottom: 1rem;
}
.pay-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.pay-card p { color: var(--cream-dim); font-size: 0.92rem; }

/* ============ LOCAL INFO ============ */

.info { padding: clamp(3.5rem, 8vh, 5.5rem) clamp(1rem, 4vw, 3rem); }

.info__grid {
  max-width: 1140px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.info__block {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.info__block:hover { border-color: rgba(255, 138, 30, 0.45); transform: translateY(-4px); }
.info__ico {
  width: 3rem;
  height: 3rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  margin-bottom: 1rem;
}
.info__block h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.3rem;
}
.info__big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.info__block p:last-child { color: var(--cream-dim); font-size: 0.9rem; }

/* ============ FINAL CTA ============ */

.cta { padding: 0 clamp(1rem, 4vw, 3rem) clamp(3.5rem, 8vh, 5.5rem); }

.cta__inner {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  background: linear-gradient(100deg, #a3260f, var(--orange-deep) 55%, var(--orange));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.cta__img {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  width: clamp(220px, 30%, 380px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
}

/* Slow steam rising behind the copy */
.cta__steam { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta__steam span {
  position: absolute;
  bottom: -30%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 236, 217, 0.16), transparent 70%);
  filter: blur(18px);
  animation: steam-rise 9s ease-in-out infinite;
}
.cta__steam span:nth-child(1) { left: 12%; animation-delay: 0s; }
.cta__steam span:nth-child(2) { left: 42%; animation-delay: 3s; width: 170px; height: 170px; }
.cta__steam span:nth-child(3) { left: 70%; animation-delay: 6s; }
@keyframes steam-rise {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-130vh) scale(1.5); opacity: 0; }
}

.cta__copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #fff;
  max-width: 16ch;
}
.cta__copy em { font-style: normal; color: #ffd9a8; }
.cta__copy p { color: rgba(255, 255, 255, 0.88); margin-top: 0.6rem; font-size: 1.05rem; }

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(12, 10, 8, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.5em 1.15em;
  transition: background 0.2s;
}
.cta__link:hover { background: rgba(12, 10, 8, 0.78); }

/* ============ FOOTER ============ */

.footer {
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1rem, 4vw, 3rem) 7rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.footer__grid {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.footer__col h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.footer__col p { color: var(--cream-dim); font-size: 0.92rem; }
.footer__col a { color: var(--cream); font-weight: 600; }
.footer__col a:hover { color: var(--orange); }

.footer__script {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--orange);
  transform: rotate(-2deg);
  margin-top: 0.8rem;
}

.footer__legal {
  max-width: 1200px;
  margin-inline: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.82rem;
}

.footer__credit {
  max-width: 1200px;
  margin: 0.9rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--cream-dim);
}
.footer__credit img { display: block; }
.footer__credit a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__credit a:hover { color: var(--orange); }

/* ============ CART BAR ============ */

.cart-bar {
  position: fixed;
  right: 1.4rem;
  bottom: 1.2rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: var(--ink-btn);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(232, 89, 12, 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  white-space: nowrap;
}
.cart-bar:hover { transform: translateY(-3px); }
.cart-bar.bump { animation: bump 0.35s var(--ease); }
@keyframes bump {
  30% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.cart-bar__count {
  display: grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.7em;
  background: rgba(0, 0, 0, 0.78);
  color: var(--cream);
  border-radius: 50%;
  font-size: 0.9rem;
  padding: 0 0.3em;
}
.cart-bar__total { opacity: 0.9; }

/* ============ DRAWER ============ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}
.overlay.is-visible { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(440px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.drawer__close {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.drawer__close:hover { color: var(--orange); border-color: var(--orange); transform: rotate(90deg); }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.3rem 1.5rem;
}

.drawer__items { display: grid; gap: 0.7rem; margin-bottom: 1.5rem; }

.drawer__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.6rem 0.8rem 0.6rem 0.6rem;
}
.drawer__item-img {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
.drawer__item-info { flex: 1; min-width: 0; }
.drawer__item-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.drawer__item-detail { font-size: 0.78rem; line-height: 1.3; color: var(--orange); }
.drawer__item-price { font-size: 0.8rem; color: var(--cream-dim); }
.drawer__item-total {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--gold);
  min-width: 3.2em;
  text-align: right;
}
.drawer__item .stepper { padding: 0.12rem; border-radius: 9px; }
.drawer__item .stepper__btn { width: 1.6em; height: 1.6em; font-size: 0.88rem; border-radius: 6px; }
.drawer__item .stepper__qty { font-size: 1rem; }

.drawer__empty {
  color: var(--cream-dim);
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

/* Form */
.drawer__form { display: grid; gap: 1.05rem; }

.field { display: grid; gap: 0.4rem; border: 0; }
.field label, .field legend {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.field label small, .field legend small { text-transform: none; letter-spacing: 0; font-weight: 400; }

.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream);
  font: inherit;
  padding: 0.7em 0.9em;
  transition: border-color 0.2s;
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { resize: vertical; }

.field.has-error input { border-color: var(--red); }
.field__error { display: none; color: var(--red-bright); font-size: 0.82rem; }
.field.has-error .field__error { display: block; }

.field__hint { font-size: 0.85rem; color: var(--cream-dim); margin-top: 0.3rem; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.3rem;
}
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5em 0.5em;
  border-radius: 10px;
  color: var(--cream-dim);
  transition: background 0.2s, color 0.2s;
}
.segmented input:checked + span {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: var(--ink-btn);
}
.segmented input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.drawer__foot {
  padding: 1.1rem 1.5rem 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.drawer__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.drawer__total span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.drawer__total strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.drawer__error {
  color: var(--red-bright);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.8rem;
}

/* ============ Fly-to-cart ============ */

.fly-pizza {
  position: fixed;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--orange);
}

/* ============ Reveal-on-scroll ============ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

body.gsap-anim .reveal { transition: none; }

/* ============ Responsive ============ */

/* The rail's text labels need ~200px of clear left margin — dots only below 1240px */
@media (max-width: 1240px) {
  .film__progress li span { display: none; }
  .film__copy { padding-left: clamp(1.2rem, 9vw, 8rem); }
}

/* Static fallback (no GSAP / reduced motion): hide the film chrome that can't work */
.film--static .film__hint,
.film--static .film__progress { display: none; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .status { display: none; }
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { padding-inline: 0.9rem; }
  .drawer { width: 100vw; border-left: 0; }
  .footer { padding-bottom: 8rem; }
  .cta__actions { align-items: stretch; width: 100%; }
  .cta__actions .btn { justify-content: center; }

  /* Film: progress becomes a bottom dot bar; copy centers */
  .film__progress {
    left: 50%;
    top: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.9rem;
  }
  .film__progress li span { display: none; }
  .film__copy { padding: 0 1.2rem; align-items: center; text-align: center; }
  .film__copy h1, .film__copy h2 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .film__hint { bottom: 3rem; }
  .film__label::after { width: 20px; }
  .film__label[style*="--side: left"] { left: 0.5rem; }
  .film__label[style*="--side: right"] { right: 0.5rem; }
  /* Portrait shows the frame as a centered band: cluster the callouts
     around it and keep only the essential ones */
  .film__label:nth-of-type(4), .film__label:nth-of-type(5) { display: none; }
  .film__label[style*="--top: 15%"] { top: 30%; }
  .film__label[style*="--top: 26%"] { top: 39%; }
  .film__label[style*="--top: 41%"] { top: 48%; }
  .film__label[style*="--top: 80%"] { top: 64%; }
}

@media (max-width: 520px) {
  /* Keep "Ordenar ahora" reachable — it's the only nav route to the menu */
  .nav { gap: 0.5rem; }
  .nav__right { gap: 0.5rem; }
  .nav__right .btn--sm { font-size: 0.8rem; padding: 0.6em 1em; }
}

/* ============ Mobile film: ambient loop instead of scroll scrub ============ */
/* Last in the sheet so it outranks every earlier chrome rule */
@media (max-width: 820px) {
  body.gsap-anim .film { height: auto; }
  .film__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 45%, #a83227, #701c15 78%);
  }
  #film-canvas, #flour-canvas, .film__progress, .film__hint { display: none; }
  /* Full-bleed crossfading flavor slideshow (4 slides × 4s, gentle Ken Burns) */
  .film__slides {
    display: block;
    position: absolute;
    inset: 0;
  }
  .film__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slide-cycle 16s linear infinite;
  }
  .film__slide:nth-child(2) { animation-delay: 4s; }
  .film__slide:nth-child(3) { animation-delay: 8s; }
  .film__slide:nth-child(4) { animation-delay: 12s; }
}

@keyframes slide-cycle {
  0% { opacity: 0; transform: scale(1.07); }
  5% { opacity: 1; }
  25% { opacity: 1; transform: scale(1); }
  31% { opacity: 0; }
  100% { opacity: 0; transform: scale(1.07); }
}

/* ============ Pizza builder ============ */

.builder {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 50%;
  width: min(460px, calc(100vw - 2rem));
  max-height: min(640px, calc(100vh - 3rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.builder.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.builder__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
}
.builder__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.builder__sub {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.builder__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
}

.builder__gustos {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.gusto {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, opacity 0.2s;
}
.gusto:hover:not(:disabled) { border-color: rgba(255, 138, 30, 0.55); transform: translateY(-1px); }
.gusto:active:not(:disabled) { transform: scale(0.97); }
.gusto:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.gusto:disabled { opacity: 0.32; cursor: not-allowed; }

.gusto__mark {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.gusto__mark::after {
  content: "";
  width: 0.55rem;
  height: 0.28rem;
  margin-top: -0.15rem;
  border-left: 2px solid var(--ink-btn);
  border-bottom: 2px solid var(--ink-btn);
  transform: rotate(-45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.gusto.is-on { background: var(--orange-soft); border-color: var(--orange); }
.gusto.is-on .gusto__mark {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-color: transparent;
}
.gusto.is-on .gusto__mark::after { transform: rotate(-45deg) scale(1); }

.builder__hint {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  color: var(--cream-dim);
}

.builder__foot {
  padding: 1.1rem 1.4rem 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.builder__foot .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 760px) {
  .builder {
    left: 0;
    top: auto;
    bottom: 0;
    width: 100vw;
    max-height: 88vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-inline: 0;
    border-bottom: 0;
    opacity: 1;
    transform: translateY(100%);
  }
  .builder.is-open { opacity: 1; transform: translateY(0); }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .pay-card, .btn, .cart-bar, .drawer, .card__media img, .info__block { transition: none; }
  .builder, .gusto, .gusto__mark, .gusto__mark::after, .card__build { transition: none; }
  .status.is-open .status__dot { animation: none; }
  .film__hint .ico { animation: none; }
  .film__label { transition: none; }
  .cta__steam span { animation: none; opacity: 0; }
  .nav__cart.pop { animation: none; }
  .cart-bar.bump { animation: none; }
  .drawer__close { transition: none; }
  .film__slide { animation: none; }
  .film__slide:first-child { opacity: 1; transform: none; }
}
