/* La Comuna Burguer — base */
:root {
  --ink: #141210;
  --ink-soft: #2c2824;
  --paper: #ebe7df;
  --paper-2: #d9d3c8;
  --flame: #e23b1a;
  --flame-deep: #b82e14;
  --gold: #f0b429;
  --smoke: rgba(20, 18, 16, 0.55);
  --line: rgba(20, 18, 16, 0.12);
  --font-display: "Clash Grotesk", system-ui, sans-serif;
  --font-body: "Clash Grotesk", system-ui, sans-serif;
  --font-banner: "Clash Grotesk", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", "VT323", ui-monospace, monospace;
  --font-weight-title: 700; /* Clash Grotesk Bold */
  --space: clamp(1rem, 3vw, 2rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-panel: #c9431f;
  --nav-panel-deep: #b33818;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overscroll-behavior-y: none;
}

html.is-booting,
html.is-booting body {
  overflow: hidden;
  height: 100%;
}

/* La burger se prepara y pinta debajo del overlay negro (sin opacity:0:
   si no, el WebGL no calienta y tarda en salir al cerrar el %) */

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  pointer-events: auto;
  transition: opacity 0.35s steps(6, end);
}

.boot-screen[hidden] {
  display: none;
}

.boot-screen.is-done {
  opacity: 0;
  pointer-events: none;
}

.boot-screen__pct {
  margin: 0;
  font-family: var(--font-pixel), "Press Start 2P", ui-monospace, monospace;
  font-size: clamp(1.35rem, 6vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
}

html.lenis,
html.lenis-smooth {
  height: auto;
}

html.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis-stopped {
  overflow: hidden;
}

html.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(226, 59, 26, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(240, 180, 41, 0.1), transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment: fixed;
}

body:has(.hero) {
  background: #000;
  color: #f5f1ea;
}

/* Bloqueo de scroll durante la animación de agarre del brazo */
img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--flame-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-title);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Logo fijo a la izquierda —— */
.brand {
  position: fixed;
  top: clamp(0.65rem, 1.8vw, 1.1rem);
  left: clamp(0.65rem, 2vw, 1.35rem);
  z-index: 50;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.45s var(--ease),
    opacity 0.35s var(--ease),
    visibility 0.35s var(--ease);
}

.brand-mount {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: none;
  transition: transform 0.45s var(--ease);
}

.brand:hover .brand-mount,
.brand:focus-visible .brand-mount {
  transform: translateY(0.12rem);
}

.brand-plaque {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(4.4rem, 10vw, 5.6rem);
  height: clamp(3.4rem, 8vw, 4.35rem);
  overflow: visible;
}

.brand-stage {
  position: absolute;
  inset: -12% -8% -18% -8%;
  z-index: 1;
  pointer-events: none;
}

.brand-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* —— Acciones fijas: carrito + menú —— */
.chrome-actions {
  position: fixed;
  top: clamp(0.85rem, 2vw, 1.35rem);
  right: clamp(0.75rem, 2.5vw, 1.75rem);
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  transition:
    transform 0.82s cubic-bezier(0.33, 0.1, 0.2, 1),
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.cart-btn {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: calc(1.1rem + 0.78rem + 3px);
  margin: 0;
  padding: 0 0.1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.cart-btn:hover,
.cart-btn:focus-visible {
  background: transparent;
  color: #fff;
  opacity: 0.72;
  outline: none;
}

.cart-btn__icon {
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.nav-open .cart-btn,
.nav-morph.is-open ~ .cart-btn,
.chrome-actions:has(.nav-morph.is-open) .cart-btn,
.chrome-actions:has(.nav-morph.is-closing) .cart-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.88);
}

body.nav-open .cart-btn {
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease;
}

/* —— Menú morfismo líquido (botón ↔ panel) —— */
.nav-morph {
  --nav-liquid: cubic-bezier(0.33, 0.1, 0.2, 1);
  --nav-squish: cubic-bezier(0.4, 0.05, 0.15, 1);
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 7.1rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  overflow: hidden;
  box-shadow: none;
  transform-origin: top right;
  transition:
    width 0.82s var(--nav-liquid),
    border-radius 0.86s var(--nav-squish),
    background 0.45s ease,
    border-color 0.45s ease,
    color 0.4s ease,
    box-shadow 0.7s var(--nav-liquid),
    transform 0.82s var(--nav-squish);
}

/* Logo + chrome: se esconden al bajar y vuelven al subir */
body.chrome-hidden:not(.nav-open) .brand {
  transform: translateY(calc(-100% - 1.25rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.chrome-hidden:not(.nav-open) .chrome-actions {
  transform: translateY(calc(-100% - 1.5rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:not(.nav-open) .nav-morph:not(.is-open):not(.is-closing):hover,
body:not(.nav-open) .nav-morph:not(.is-open):not(.is-closing):focus-within {
  background: var(--nav-panel);
  border-color: var(--nav-panel);
  color: #fff;
}

body.nav-open .nav-morph,
.nav-morph.is-open {
  width: min(19rem, calc(100vw - 1.5rem));
  border-radius: 1.65rem;
  background: var(--nav-panel);
  border-color: var(--nav-panel);
  color: #fff;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    0 4px 14px rgba(180, 48, 18, 0.25);
  transform: scale(1);
}

/* Deformación suave al abrir/cerrar */
body.nav-open .nav-morph {
  animation: nav-liquid-open 0.86s var(--nav-squish) both;
}

body:not(.nav-open) .nav-morph.is-closing {
  animation: nav-liquid-close 0.8s var(--nav-squish) both;
}

@keyframes nav-liquid-open {
  0% {
    transform: scale(1);
    border-radius: 999px;
  }
  45% {
    transform: scaleX(1.02) scaleY(0.985);
    border-radius: 1.9rem;
  }
  100% {
    transform: scale(1);
    border-radius: 1.65rem;
  }
}

@keyframes nav-liquid-close {
  0% {
    transform: scale(1);
    border-radius: 1.65rem;
  }
  50% {
    transform: scaleX(0.99) scaleY(1.02);
    border-radius: 2.4rem;
  }
  100% {
    transform: scale(1);
    border-radius: 999px;
  }
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.85rem 0.55rem 1rem;
  border: none;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-weight: var(--font-weight-title);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  opacity: 1;
}

.nav-toggle__label {
  line-height: 1;
}

.nav-toggle__label-close {
  display: none;
}

.nav-morph.is-open .nav-toggle__label-open,
body.nav-open .nav-toggle__label-open {
  display: none;
}

.nav-morph.is-open .nav-toggle__label-close,
body.nav-open .nav-toggle__label-close {
  display: none;
}

.nav-toggle__icon {
  position: relative;
  width: 1.05rem;
  height: 0.72rem;
  display: block;
  flex-shrink: 0;
}

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease), top 0.35s var(--ease);
}

.nav-toggle__icon span:nth-child(1) {
  top: 0;
}

.nav-toggle__icon span:nth-child(2) {
  top: calc(50% - 1px);
}

.nav-toggle__icon span:nth-child(3) {
  top: calc(100% - 2px);
}

.nav-morph.is-open .nav-toggle__icon span:nth-child(1),
body.nav-open .nav-toggle__icon span:nth-child(1) {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.nav-morph.is-open .nav-toggle__icon span:nth-child(2),
body.nav-open .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.nav-morph.is-open .nav-toggle__icon span:nth-child(3),
body.nav-open .nav-toggle__icon span:nth-child(3) {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

.nav-morph__expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.82s var(--nav-liquid);
}

.nav-morph.is-open .nav-morph__expand,
body.nav-open .nav-morph__expand {
  grid-template-rows: 1fr;
}

.nav-morph__expand-inner {
  overflow: hidden;
  min-height: 0;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgba(12, 10, 8, 0.28);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 1.35rem 0.7rem;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition:
    opacity 0.4s ease 0.18s,
    transform 0.7s var(--nav-liquid) 0.12s;
}

.nav-morph.is-open .site-nav,
body.nav-open .site-nav {
  opacity: 1;
  transform: translateY(0);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

.nav-tools {
  margin-top: 0;
  width: 100%;
}

.nav-tools__rule {
  height: 1px;
  margin: 0 0 0.35rem;
  background: rgba(255, 255, 255, 0.35);
}

.nav-tools__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.nav-tools__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-tools__btn:hover,
.nav-tools__btn:focus-visible {
  opacity: 0.75;
  outline: none;
  transform: translateY(-1px);
}

.nav-tools__btn .fi {
  display: inline-flex;
  font-size: 1.15rem;
  line-height: 1;
}

.nav-tools__svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}

.nav-morph.is-open .nav-toggle,
body.nav-open .nav-toggle {
  justify-content: flex-end;
  padding-inline: 1rem 1.15rem;
  gap: 0;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--font-weight-title);
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
  display: block;
  padding: 0.1rem 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  opacity: 0.88;
  transform: translateY(-0.08rem);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}

/* —— Layout —— */
.page {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

body:not(:has(.hero)) .page {
  padding-top: clamp(5.25rem, 12vw, 6.75rem);
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 0.65rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* —— Hero (inicio) —— */
/* Recorrido de scroll que desmonta la burger (el hero queda sticky mientras) */
.hero-pin {
  --hero-scroll: 120vh;
  position: relative;
  height: calc(100svh + var(--hero-scroll));
}

.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #f5f1ea;
  background: #000;
}

/* Cuadros fotográficos detrás de las letras */
.hero-frames {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-frame {
  position: absolute;
  display: block;
  width: clamp(10rem, 30vw, 20rem);
  height: auto;
  object-fit: cover;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.35);
  filter: saturate(1.05) contrast(1.04);
}

@media (max-width: 859px) {
  .hero-frame {
    filter: none;
  }
}

.hero-frame--tr {
  top: clamp(4rem, 8vh, 5.2rem);
  right: clamp(1.5rem, 10vw, 9rem);
  width: clamp(12rem, 36vw, 24rem);
  transform: rotate(10deg);
  transform-origin: center center;
}

.hero-frame--bl {
  left: clamp(2rem, 10vw, 9rem);
  bottom: clamp(2.5rem, 7vh, 5.5rem);
  width: clamp(11rem, 34vw, 22rem);
  transform: rotate(-10deg);
  transform-origin: center center;
}

@media (max-width: 767px) {
  .hero-frame--tr {
    top: clamp(4rem, 7.5vh, 4.9rem);
    right: clamp(0.4rem, 5vw, 1.5rem);
    width: clamp(9.5rem, 58vw, 14.5rem);
    transform: rotate(8deg);
  }

  .hero-frame--bl {
    left: clamp(0.5rem, 5vw, 1.5rem);
    /* Sube el cuadro para dejar franja libre a los botones */
    bottom: clamp(5.75rem, 15vh, 7.75rem);
    width: clamp(8.5rem, 52vw, 13rem);
    transform: rotate(-9deg);
  }

  .hero-brand img {
    max-width: 52%;
    max-height: 62%;
  }
}

@media (min-width: 1100px) {
  .hero-frame--tr {
    top: clamp(4.2rem, 8vh, 5.4rem);
    right: clamp(4rem, 11vw, 11rem);
    width: clamp(18rem, 30vw, 26rem);
  }

  .hero-frame--bl {
    left: clamp(4rem, 12vw, 11rem);
    bottom: clamp(2.8rem, 7vh, 5.2rem);
    width: clamp(17rem, 28vw, 24rem);
  }
}

/* Canvas / burger por ENCIMA del texto → solapamiento 3D */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Sin velo: la burger se lee limpia sobre negro */
.hero-stage::after {
  display: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  animation: rise 0.9s var(--ease) both;
  pointer-events: none;
}

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.55);
  pointer-events: none;
  animation: hint-pulse 2.2s var(--ease) infinite;
}

.hero-actions {
  position: absolute;
  left: auto;
  right: clamp(1.25rem, 9vw, 8rem);
  top: auto;
  bottom: clamp(3.1rem, 7vh, 4.2rem);
  transform: none;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  width: max-content;
  max-width: min(22rem, calc(100% - 2rem));
  pointer-events: auto;
}

.btn-3d {
  --cut: 0.55rem;
  --btn-3d-x: 0.32rem;
  --btn-3d-y: 0.36rem;
  --btn-3d-layer: #c4c4c4;
  --brutal-clip: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  isolation: isolate;
}

.btn-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: var(--btn-3d-x) var(--btn-3d-y);
  background: var(--btn-3d-layer);
  clip-path: var(--brutal-clip);
  z-index: 0;
  pointer-events: none;
  transition: translate 0.25s var(--ease);
}

.btn-3d > .hero-btn {
  position: relative;
  z-index: 1;
}

.btn-3d--light {
  --btn-3d-layer: #c4c4c4;
}

.btn-3d--flame {
  --btn-3d-layer: var(--flame-deep);
}

.btn-3d:hover::before {
  translate: calc(var(--btn-3d-x) * 0.35) calc(var(--btn-3d-y) * 0.35);
}

.btn-3d:hover > .hero-btn {
  transform: translate(calc(var(--btn-3d-x) * 0.55), calc(var(--btn-3d-y) * 0.55));
}

.btn-3d:active::before {
  translate: calc(var(--btn-3d-x) * 0.12) calc(var(--btn-3d-y) * 0.12);
}

.btn-3d:active > .hero-btn {
  transform: translate(calc(var(--btn-3d-x) * 0.8), calc(var(--btn-3d-y) * 0.8));
}

.hero-btn {
  --cut: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.2rem;
  border-radius: 0;
  border: none;
  font-family: var(--font-display);
  font-weight: var(--font-weight-title);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  clip-path: var(--brutal-clip);
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s;
}

.hero-btn:hover {
  color: inherit;
}

.hero-btn--solid {
  background: var(--flame);
  color: #fff;
}

.hero-btn--solid:hover {
  background: var(--flame-deep);
  color: #fff;
}

.hero-btn--ghost {
  background: #fff;
  color: #0a0a0a;
}

.hero-btn--ghost:hover {
  background: #f2f2f2;
  color: #0a0a0a;
}

/* Tablet / escritorio: centrados en el hueco libre a la derecha de las letras */
@media (min-width: 768px) {
  .hero-actions {
    /* Empieza más allá del bloque de letras para no solaparlo */
    left: max(62%, calc(50% + min(22vw, 14rem)));
    right: 0;
    width: auto;
    max-width: none;
    justify-content: center;
    padding-inline: clamp(0.6rem, 2vw, 1.5rem);
  }
}

@media (min-width: 1100px) {
  .hero-actions {
    left: max(64%, calc(50% + min(20vw, 16rem)));
    padding-inline: clamp(0.8rem, 2.5vw, 2rem);
  }
}

@media (max-width: 767px) {
  .hero-actions {
    left: 50%;
    right: auto;
    top: auto;
    /* Justo bajo el cuadro del abuelo, sin solaparlo */
    bottom: clamp(1rem, 2.8vh, 1.4rem);
    transform: translateX(-50%);
    gap: 0.4rem;
    width: max-content;
    max-width: calc(100% - 1.5rem);
    justify-content: center;
  }

  .hero-btn {
    padding: 0.72rem 1.35rem;
    font-size: 0.84rem;
  }
}

.hero-hint.is-hidden {
  opacity: 0;
  animation: none;
  transition: opacity 0.5s var(--ease);
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.85; transform: translateX(-50%) translateY(4px); }
}

.hero-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  --hero-sauce: 0;
  --sauce-t: 0;
}

.hero-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* Salpicaduras de salsa sobre las letras (explosión) */
.sauce-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
  contain: layout style;
}

.sauce-drop {
  position: absolute;
  left: var(--ox, 50%);
  top: var(--oy, 46%);
  width: var(--w, 1rem);
  height: var(--h, 1rem);
  margin: 0;
  border-radius: var(--r, 50%);
  /* Pintura densa pegada a la pared: opaca, borde irregular, poco brillo */
  background:
    radial-gradient(ellipse 55% 45% at 28% 24%, #ff9a52 0%, #f05a22 42%, transparent 68%),
    radial-gradient(ellipse 100% 100% at 55% 62%, #e23b1a 0%, #c4280c 52%, #7a1606 100%);
  /*
   * Cada gota tiene --lag / --span → sale desordenada.
   * --sauce-t (scroll) se suaviza en JS; aquí solo el progreso local.
   */
  --lt: clamp(0, (var(--sauce-t, 0) - var(--lag, 0)) / var(--span, 0.6), 1);
  opacity: calc(var(--a, 1) * var(--lt));
  transform:
    translate(
      calc(-50% + var(--dx, 0) * 1px * var(--lt)),
      calc(-50% + var(--dy, 0) * 1px * var(--lt))
    )
    rotate(calc(var(--rot, 0deg) * (0.25 + 0.75 * var(--lt))))
    scale(calc(0.08 + 0.92 * var(--lt)));
  box-shadow:
    0 0.06rem 0.1rem rgba(40, 8, 0, 0.45),
    inset 0.06rem 0.08rem 0.1rem rgba(255, 170, 100, 0.28),
    inset -0.1rem -0.12rem 0.16rem rgba(40, 4, 0, 0.55);
  will-change: transform, opacity;
}

@media (max-width: 859px) {
  .sauce-drop {
    will-change: auto;
    box-shadow: 0 0.05rem 0.08rem rgba(40, 8, 0, 0.4);
  }

  .sauce-drop--big,
  .sauce-drop--flat,
  .sauce-drop--drip,
  .sauce-drop--micro {
    box-shadow: 0 0.05rem 0.08rem rgba(40, 8, 0, 0.4);
  }
}

.sauce-drop[data-tone="1"] {
  background:
    radial-gradient(ellipse 50% 40% at 32% 22%, #ff8a3c 0%, #e84818 40%, transparent 65%),
    radial-gradient(ellipse 100% 100% at 50% 58%, #d4320c 0%, #a82008 55%, #5c1004 100%);
}

.sauce-drop[data-tone="2"] {
  background:
    radial-gradient(ellipse 58% 48% at 26% 26%, #ff7a28 0%, #f04a16 38%, transparent 66%),
    radial-gradient(ellipse 100% 100% at 58% 55%, #ff5a20 0%, #c83010 50%, #6e1404 100%);
}

.sauce-drop--big {
  box-shadow:
    0 0.08rem 0.14rem rgba(40, 8, 0, 0.5),
    inset 0.08rem 0.1rem 0.14rem rgba(255, 170, 100, 0.3),
    inset -0.14rem -0.16rem 0.2rem rgba(40, 4, 0, 0.58);
}

/* Mancha aplastada / rastrillo en la pared */
.sauce-drop--flat {
  box-shadow:
    0 0.04rem 0.08rem rgba(40, 8, 0, 0.42),
    inset 0.05rem 0.04rem 0.08rem rgba(255, 170, 100, 0.22),
    inset -0.08rem -0.08rem 0.12rem rgba(40, 4, 0, 0.5);
}

.sauce-drop--drip {
  box-shadow:
    0 0.1rem 0.14rem rgba(40, 8, 0, 0.4),
    inset 0.05rem 0.06rem 0.1rem rgba(255, 160, 90, 0.22),
    inset -0.1rem -0.18rem 0.2rem rgba(35, 4, 0, 0.58);
}

.sauce-drop--micro {
  box-shadow:
    0 0.04rem 0.06rem rgba(40, 8, 0, 0.4),
    inset 0.03rem 0.03rem 0.06rem rgba(255, 160, 90, 0.2);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-weight: var(--font-weight-title);
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn-primary {
  background: var(--flame);
  color: #fff;
  border-color: var(--flame);
}

.btn-primary:hover {
  background: var(--flame-deep);
  border-color: var(--flame-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #f5f1ea;
  border-color: rgba(245, 241, 234, 0.55);
}

.btn-ghost:hover {
  border-color: #f5f1ea;
  color: #f5f1ea;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-ink:hover {
  background: var(--ink-soft);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* —— Carrusel flotante de hamburguesas —— */
.burgers-float {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(0.65rem, 1.8vw, 1.15rem);
  overflow: hidden;
  background: #000;
  color: #f5f1ea;
}

.burgers-float__head {
  --burgers-title-size: clamp(1.85rem, 8vw, 5.2rem);
  --burgers-title-lh: 0.92;
  --burgers-title-h: calc(var(--burgers-title-size) * var(--burgers-title-lh));
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-sizing: border-box;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  padding: 0 var(--space);
  width: 100%;
  max-width: none;
}

.burgers-float__title {
  margin: 0 0 0 auto;
  text-align: right;
  font-family: var(--font-banner);
  font-weight: var(--font-weight-title);
  font-size: var(--burgers-title-size);
  line-height: var(--burgers-title-lh);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  flex: 0 1 auto;
  min-width: 0;
}

.burgers-float__tabs {
  --cut: calc(var(--burgers-title-size) * 0.11);
  --brutal-clip: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  flex-shrink: 0;
  height: var(--burgers-title-h);
  border: none;
  border-radius: 0;
  background: #0a0a0a;
  overflow: hidden;
  clip-path: var(--brutal-clip);
}

.burgers-float__tab {
  appearance: none;
  margin: 0;
  box-sizing: border-box;
  width: calc(var(--burgers-title-size) * 0.95);
  height: 100%;
  padding: 0 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  background: #fff;
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: var(--font-weight-title);
  font-size: clamp(0.52rem, calc(var(--burgers-title-size) * 0.145), 0.9rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.burgers-float__tab:hover {
  background: #f2f2f2;
}

.burgers-float__tab.is-active {
  background: var(--flame);
  color: #fff;
}

.burgers-float__tab.is-active:hover {
  background: var(--flame-deep);
  color: #fff;
}

.burgers-float__tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
  z-index: 1;
}

@media (max-width: 767px) {
  .burgers-float__tab {
    width: calc(var(--burgers-title-size) * 1.42);
    padding: 0 0.5rem;
  }
}

@media (min-width: 768px) {
  .burgers-float__tabs {
    --cut: 0.55rem;
    height: clamp(2.4rem, 4.2vw, 3rem);
  }

  .burgers-float__tab {
    width: clamp(5.2rem, 8vw, 6.4rem);
    font-size: clamp(0.68rem, 1.1vw, 0.82rem);
    padding: 0 0.55rem;
  }
}

.burgers-float__panel[hidden] {
  display: none;
}

/* Carrusel Burgers: celdas uniformes + nombres alineados */
#panel-burgers .burgers-float__rail {
  --burger-gap: clamp(1.35rem, 3.45vw, 2.35rem);
  padding-bottom: 0.35rem;
}

@media (min-width: 860px) {
  #panel-burgers .burgers-float__rail {
    margin-top: -1.5rem;
  }

  #panel-burgers .burger-card {
    width: clamp(16.5rem, 22vw, 20.5rem);
  }
}

.burgers-float__rail {
  --burger-gap: clamp(1.1rem, 3vw, 2rem);
  position: relative;
  width: 100%;
  overflow: hidden;
  contain: layout paint style;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.burgers-float__rail.is-dragging {
  cursor: grabbing;
  touch-action: none;
}

.burgers-float__track {
  display: flex;
  align-items: flex-start;
  gap: var(--burger-gap);
  width: max-content;
  touch-action: inherit;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  /* Capa de composición estable al deslizar */
  will-change: transform;
}

@media (max-width: 859px) {
  .burgers-float__rail.is-dragging .burger-card__media::after {
    display: none;
  }
}

.burger-card {
  flex: 0 0 auto;
  width: clamp(11.5rem, 30vw, 17rem);
  display: grid;
  grid-template-rows: auto minmax(2.6em, auto);
  justify-items: center;
  align-content: start;
  gap: 0.7rem;
  padding: 0.25rem 0.45rem 0.35rem;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  /* Sin content-visibility: con la pista en movimiento re-renderizaba cada
     tarjeta al cruzar el borde (jank) */
}

.burger-card__media {
  position: relative;
  width: 100%;
  /* Más alto que ancho: las fotos son verticales y no se cortan arriba/abajo */
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  contain: layout paint;
}

/* Sombra estática (sin filter en la img = menos coste al animar el rail) */
.burger-card__media::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 4%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
  z-index: 0;
}

.burger-card__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.burger-card__name {
  --cut: 0.42rem;
  --brutal-clip: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  margin: 0.15rem 0 0;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.78rem 0.38rem;
  font-family: var(--font-banner);
  font-weight: var(--font-weight-title);
  font-size: clamp(0.92rem, 2.4vw, 1.18rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
  background: #fff;
  clip-path: var(--brutal-clip);
  box-shadow: 0 1px 0 rgba(20, 18, 16, 0.06);
  rotate: -1.1deg;
}

#panel-mas .burger-card__name {
  font-size: clamp(0.72rem, 1.9vw, 0.95rem);
  letter-spacing: 0.05em;
  padding: 0.4rem 0.7rem 0.36rem;
}

.burger-card:nth-child(2n) .burger-card__name {
  rotate: 1deg;
}

.burger-card:nth-child(3n) .burger-card__name {
  rotate: -0.55deg;
}

.burger-card:nth-child(4n) .burger-card__name {
  rotate: 1.35deg;
}

/* —— Historia / banner con pin de scroll —— */
.story-pin {
  position: relative;
  height: 320vh;
  background: #000;
}

.story {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #000;
  --story-photo-scale: 0.4;
}

.story__words {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 8vh 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.story__marquee {
  overflow: hidden;
  width: 100%;
  line-height: 1;
}

.story__marquee-track {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: max-content;
  will-change: transform;
}

.story__words span {
  flex: 0 0 auto;
  font-family: var(--font-banner);
  font-weight: var(--font-weight-title);
  font-size: clamp(1.05rem, 3.4vw, 2.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  opacity: 0.22;
}

.story__words span:nth-child(3n) { opacity: 0.12; }
.story__words span:nth-child(4n) { opacity: 0.32; }
.story__words span:nth-child(5n) { opacity: 0.08; }

.story__stickers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.story__sticker {
  display: block;
  position: absolute;
  width: clamp(7.5rem, 14vw, 12.5rem);
  height: auto;
  filter: drop-shadow(0.12rem 0.16rem 0 rgba(0, 0, 0, 0.55));
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.story__sticker.is-dragging {
  z-index: 6;
  cursor: grabbing;
  filter: drop-shadow(0.22rem 0.28rem 0.1rem rgba(0, 0, 0, 0.5));
}

.story__sticker--left {
  top: 11%;
  left: 3%;
  width: clamp(9rem, 17vw, 15.5rem);
  rotate: -11deg;
}

.story__sticker--right {
  right: 3.5%;
  bottom: 2%;
  top: auto;
  width: clamp(9.5rem, 18vw, 16.5rem);
  rotate: 9deg;
}

.story__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  pointer-events: none;
}

.story__photo picture,
.story__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.story__photo img {
  object-fit: cover;
  object-position: center;
  transform: scale(var(--story-photo-scale, 0.42));
  transform-origin: center center;
  filter: grayscale(1);
  will-change: transform;
}

.story__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 3rem) var(--space);
  pointer-events: none;
  /* Mismo scale/origen que la foto: el texto queda pegado a la imagen */
  transform: scale(var(--story-photo-scale, 0.4));
  transform-origin: center center;
  will-change: transform;
}

.story__text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 30rem;
  font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.6deg);
}

.story__text .story-word {
  display: inline;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(0.35em);
  transition: none;
}

.story__text .story-word.is-on {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.story__burger {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  /* Compensa el scale del stage para que el 3D no se encoja con la foto */
  transform: scale(calc(1 / var(--story-photo-scale, 0.4)));
  transform-origin: center center;
}

.story__burger canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.story__burger.is-falling {
  position: fixed !important;
  inset: 0 !important;
  z-index: 8;
  width: 100% !important;
  height: 100svh !important;
  overflow: visible;
  pointer-events: none;
  transform: none !important;
}

.story__burger.is-gone {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 859px) {
  .burgers-float {
    padding-bottom: 0.2rem;
  }

  .story__photo img {
    object-position: center 32%;
    transform-origin: center 28%;
  }

  .story__words {
    justify-content: center;
    padding: 0;
    gap: 0.7rem;
    /* Centro del bloque = centro visual de la foto (origin 28%) */
    transform: translateY(calc(22% * (var(--story-photo-scale, 0.4) - 1)));
  }

  .story__stage {
    align-items: start;
    padding: calc(7rem + env(safe-area-inset-top, 0px)) 1rem 0 0.95rem;
    transform-origin: center 28%;
  }

  .story__burger {
    transform-origin: center 28%;
  }

  .story__text {
    max-width: none;
    font-size: clamp(1.55rem, 5.2vw, 1.85rem);
    line-height: 1.28;
  }

  /* Móvil: sin blur por palabra (muy caro en GPU); solo opacidad */
  .story__text .story-word {
    filter: none;
    transform: none;
  }

  .story__text .story-word.is-on {
    filter: none;
    transform: none;
  }

  /* Pegatinas adaptadas alrededor de la foto que crece */
  .story__sticker {
    pointer-events: none;
    cursor: default;
    touch-action: auto;
    filter: drop-shadow(0.08rem 0.1rem 0 rgba(0, 0, 0, 0.5));
  }

  .story__sticker--left {
    top: 14%;
    left: 1.5%;
    width: clamp(4.6rem, 30vw, 6.75rem);
    rotate: -12deg;
  }

  .story__sticker--right {
    right: 0.5%;
    bottom: 22%;
    top: auto;
    width: clamp(6.1rem, 40vw, 8.6rem);
    rotate: 10deg;
  }
}

@media (min-width: 860px) {
  .story__stage {
    grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 0.9fr);
    padding-inline: clamp(2rem, 7vw, 6rem);
    will-change: transform;
  }

  .story__text {
    max-width: 36rem;
    font-size: clamp(1.95rem, 3vw, 2.85rem);
    line-height: 1.28;
  }
}

/* —— Tres en raya —— */
.ttt-pin {
  position: relative;
  height: 300vh;
  background: #000;
}

.ttt {
  --px: 4px;
  --pixel-clip: polygon(
    var(--px) 0,
    calc(100% - var(--px)) 0,
    calc(100% - var(--px)) var(--px),
    100% var(--px),
    100% calc(100% - var(--px)),
    calc(100% - var(--px)) calc(100% - var(--px)),
    calc(100% - var(--px)) 100%,
    var(--px) 100%,
    var(--px) calc(100% - var(--px)),
    0 calc(100% - var(--px)),
    0 var(--px),
    var(--px) var(--px)
  );
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 3.5vh, 2.75rem) var(--space);
  background: #000;
  color: #f5f1ea;
  overflow: hidden;
  font-family: var(--font-pixel);
  -webkit-font-smoothing: none;
}

.ttt__tapes {
  display: none;
}

.ttt__stickers {
  display: none;
}

.ttt__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(0.55rem, 1.6vh, 1.25rem);
  width: min(100%, 28rem);
  max-height: 100%;
  margin: 0 auto;
  text-align: center;
}

/* Móvil: solo alien + mando, mismas anclas que escritorio */
@media (max-width: 859px) {
  .ttt__stickers {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
  }

  .ttt__sticker {
    display: none;
    position: absolute;
    height: auto;
    filter: drop-shadow(0.08rem 0.1rem 0 rgba(0, 0, 0, 0.5));
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .ttt__sticker--invader {
    display: block;
    bottom: 2%;
    left: 4%;
    top: auto;
    right: auto;
    width: clamp(5.6rem, 34vw, 7.8rem);
    rotate: -6deg;
  }

  .ttt__sticker--pad {
    display: block;
    top: 4%;
    right: 5%;
    bottom: auto;
    left: auto;
    width: clamp(5.8rem, 34vw, 8.25rem);
    rotate: 22deg;
  }
}

@media (min-width: 860px) {
  .ttt__stickers {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
  }

  .ttt__sticker {
    position: absolute;
    width: clamp(7.5rem, 13vw, 12rem);
    height: auto;
    filter: drop-shadow(0.12rem 0.16rem 0 rgba(0, 0, 0, 0.55));
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .ttt__sticker.is-dragging {
    z-index: 6;
    cursor: grabbing;
    filter: drop-shadow(0.22rem 0.28rem 0.1rem rgba(0, 0, 0, 0.5));
  }

  .ttt__sticker--ghost {
    top: 34%;
    left: 4%;
    width: clamp(8.5rem, 14.5vw, 13.5rem);
    rotate: -8deg;
  }

  .ttt__sticker--invader {
    bottom: 12%;
    left: 9%;
    top: auto;
    right: auto;
    width: clamp(8.5rem, 14.5vw, 13.25rem);
    rotate: -6deg;
  }

  .ttt__sticker--pad {
    top: 22%;
    right: 5%;
    bottom: auto;
    left: auto;
    width: clamp(11.5rem, 19vw, 17.5rem);
    rotate: 22deg;
  }

  .ttt__tapes {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }

  .ttt__tape {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 3.75rem;
    width: min(62vw, 50rem);
    padding: 0.45rem 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%),
      #f4f1ea;
    color: #12100e;
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    transform-origin: center;
    opacity: 1;
    --tape-stick: 0%;
    -webkit-mask-image: linear-gradient(
      90deg,
      #000 0%,
      #000 max(0%, calc(var(--tape-stick) - 12%)),
      transparent var(--tape-stick)
    );
    mask-image: linear-gradient(
      90deg,
      #000 0%,
      #000 max(0%, calc(var(--tape-stick) - 12%)),
      transparent var(--tape-stick)
    );
    will-change: --tape-stick;
    transition: --tape-stick 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ttt__tape span {
    flex: 0 0 auto;
    font-family: var(--font-pixel);
    font-weight: 400;
    font-size: clamp(0.72rem, 1.6vw, 1.05rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
  }

  .ttt__tape span::after {
    content: none;
  }

  .ttt__tape--tl {
    top: 11%;
    left: -22%;
    width: min(78vw, 58rem);
    transform: rotate(-33deg);
    transition-delay: 0.05s;
  }

  .ttt__tape--br {
    right: -14%;
    bottom: 8%;
    transform: rotate(-33deg);
    transition-delay: 0.28s;
  }

  .ttt.is-taped .ttt__tape {
    --tape-stick: 112%;
  }
}

@property --tape-stick {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@media (min-width: 860px) and (prefers-reduced-motion: reduce) {
  .ttt__tape {
    -webkit-mask-image: none;
    mask-image: none;
    transition: none;
  }
}

.ttt__play {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  width: 100%;
}

.ttt__play.is-gated .ttt__status,
.ttt__play.is-gated .ttt__board {
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

.ttt__gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.28);
}

.ttt__gate[hidden] {
  display: none;
}

.ttt__gate-panel {
  position: relative;
  width: min(100%, 16.5rem);
  box-sizing: border-box;
  padding: 1.15rem 1.1rem 1.55rem;
  background: linear-gradient(180deg, #f3efe6 0%, #ebe4d6 100%);
  color: #1a1714;
  border: none;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  /* Arriba limpio, abajo papel/comanda roto */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 14px),
    96.5% calc(100% - 3px),
    93% calc(100% - 15px),
    89% calc(100% - 5px),
    85% 100%,
    80.5% calc(100% - 12px),
    76% calc(100% - 2px),
    71.5% calc(100% - 14px),
    67% calc(100% - 4px),
    62% 100%,
    57.5% calc(100% - 11px),
    53% calc(100% - 1px),
    48% calc(100% - 15px),
    43.5% calc(100% - 5px),
    39% 100%,
    34% calc(100% - 12px),
    29.5% calc(100% - 2px),
    25% calc(100% - 14px),
    20% calc(100% - 4px),
    15.5% 100%,
    11% calc(100% - 11px),
    6.5% calc(100% - 1px),
    3% calc(100% - 13px),
    0 calc(100% - 5px)
  );
  text-align: center;
  transform: rotate(-0.6deg);
}

.ttt__gate-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(0.58rem, 2.2vw, 0.72rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #141210;
}

.ttt__gate-step[data-ttt-step="intro"] .ttt__gate-title {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(0.62rem, 2.4vw, 0.78rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1714;
  transform: none;
}

.ttt__gate-tease {
  margin: 0 0 0.85rem;
  font-family: var(--font-pixel);
  font-size: clamp(0.48rem, 1.8vw, 0.55rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(20, 18, 16, 0.68);
}

.ttt__gate-step {
  display: none;
  gap: 0.7rem;
}

.ttt__gate-step.is-active {
  display: grid;
}

.ttt__gate-step[data-ttt-step="intro"],
.ttt__gate-step[data-ttt-step="result"] {
  justify-items: center;
  text-align: center;
}

.ttt__gate-form {
  justify-items: stretch;
  text-align: left;
}

.ttt__gate-field {
  display: grid;
  gap: 0.28rem;
}

.ttt__gate-field[hidden] {
  display: none !important;
}

.ttt__gate-label {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(20, 18, 16, 0.5);
}

.ttt__gate-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.58rem 0.7rem;
  border: 3px solid #141210;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.7);
  color: #141210;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  line-height: 1.4;
  clip-path: var(--pixel-clip);
}

/* iOS hace zoom al enfocar inputs < 16px */
@media (max-width: 859px) {
  .ttt__gate-input {
    font-size: 16px;
  }
}

.ttt__gate-input::placeholder {
  color: rgba(20, 18, 16, 0.35);
}

.ttt__gate-input:focus {
  outline: none;
  border-color: var(--flame);
}

.ttt__gate-submit-wrap {
  justify-self: center;
  margin-top: 0.15rem;
  --cut: var(--px);
  --btn-3d-x: 4px;
  --btn-3d-y: 4px;
  --brutal-clip: var(--pixel-clip);
}

.ttt__gate-submit-wrap .hero-btn {
  padding: 0.62rem 0.95rem;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  clip-path: var(--pixel-clip);
  image-rendering: pixelated;
  transition: transform 0.08s steps(2, end);
}

.ttt__gate-submit-wrap::before {
  clip-path: var(--pixel-clip);
  transition: translate 0.08s steps(2, end);
}

.ttt__gate-form .ttt__gate-title {
  margin-bottom: 0.3rem;
}

.ttt__gate-form .ttt__gate-tease {
  margin-bottom: 0.45rem;
}

.ttt__gate-form .ttt__gate-submit-wrap {
  margin-top: 0.1rem;
}

.ttt__title {
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(0.62rem, 2.4vw, 0.95rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.ttt__modes {
  display: inline-flex;
  gap: 1rem;
  background: transparent;
  padding: 0 6px 8px 0;
}

.ttt__mode-3d {
  --btn-3d-x: 6px;
  --btn-3d-y: 6px;
  position: relative;
  display: inline-flex;
  isolation: isolate;
}

.ttt__mode-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  translate: var(--btn-3d-x) var(--btn-3d-y);
  background: #5c5c5c;
  clip-path: var(--pixel-clip);
  pointer-events: none;
  transition: translate 0.08s steps(2, end), background 0.08s steps(2, end);
}

.ttt__mode {
  appearance: none;
  position: relative;
  z-index: 1;
  margin: 0;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: none;
  border-radius: 0;
  background: #2a2a2a;
  color: #8a8a8a;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(0.42rem, 1.5vw, 0.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  clip-path: var(--pixel-clip);
  image-rendering: pixelated;
  transition:
    transform 0.08s steps(2, end),
    background 0.08s steps(2, end),
    color 0.08s steps(2, end);
}

.ttt__mode-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.ttt__mode-3d:hover::before {
  translate: calc(var(--btn-3d-x) * 0.4) calc(var(--btn-3d-y) * 0.4);
}

.ttt__mode-3d:hover > .ttt__mode {
  transform: translate(calc(var(--btn-3d-x) * 0.55), calc(var(--btn-3d-y) * 0.55));
}

.ttt__mode-3d:active::before {
  translate: calc(var(--btn-3d-x) * 0.15) calc(var(--btn-3d-y) * 0.15);
}

.ttt__mode-3d:active > .ttt__mode {
  transform: translate(calc(var(--btn-3d-x) * 0.82), calc(var(--btn-3d-y) * 0.82));
}

.ttt__mode.is-active {
  background: #fff;
  color: #0a0a0a;
}

.ttt__mode-3d:has(.ttt__mode.is-active)::before {
  background: #9a9a9a;
}

.ttt__mode:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  z-index: 1;
}

.ttt__status {
  margin: 0.15rem 0 0;
  min-height: 1.25em;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(0.48rem, 1.7vw, 0.58rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--flame);
}

.ttt__status.is-win {
  color: var(--gold);
}

.ttt__status.is-lose {
  color: rgba(245, 241, 234, 0.55);
}

.ttt__status.is-draw {
  color: #fff;
}

.ttt__board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  width: min(100%, 20.5rem, 48svh);
  aspect-ratio: 1;
  margin: 0.2rem 0;
  padding: 0.35rem;
  background: transparent;
  box-shadow: none;
  border: none;
}

@media (min-width: 768px) {
  .ttt__board {
    width: min(100%, 28rem, 52svh);
  }

  .ttt__mark {
    width: 64%;
    height: 64%;
  }
}

.ttt__chalk {
  position: absolute;
  inset: 0.2rem;
  width: calc(100% - 0.4rem);
  height: calc(100% - 0.4rem);
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  background: transparent;
  opacity: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.ttt__mark {
  width: 56%;
  height: 56%;
  overflow: visible;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.ttt__mark--x {
  color: var(--flame);
}

.ttt__mark--o {
  color: #f5f1ea;
}

.ttt__cell {
  appearance: none;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ttt__cell:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.ttt__cell:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  z-index: 3;
}

.ttt__cell:disabled {
  cursor: default;
}

.ttt__cell.is-win {
  background: rgba(226, 59, 26, 0.22);
}

/* —— Carta —— */
.menu-cat {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.menu-cat h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}

.menu-cat > p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s var(--ease) both;
}

.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-item:nth-child(5) { animation-delay: 0.25s; }

.menu-item h3 {
  margin: 0;
  font-size: 1.15rem;
  grid-column: 1;
}

.menu-item .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--flame-deep);
  grid-column: 2;
  grid-row: 1;
}

.menu-item p {
  margin: 0;
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 42rem;
}

/* —— Ubicación / Contacto (fondo papel en B/N) —— */
/* Negro debajo del papel: al final / rebote se ve igual que el footer */
html:has(.page--location),
html:has(.page--contact) {
  background-color: #000;
}

body:has(.page--location),
body:has(.page--contact) {
  position: relative;
  background: transparent;
}

/* Papel pegado al documento (no fixed): al bajar al footer en iOS no deja
   franjas negras ni pegatinas flotando sobre el vacío */
body:has(.page--location)::before,
body:has(.page--contact)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #9a9a9a;
  background-image: url("../media/fondos-ubicacion/vertical.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.06);
}

@media (min-width: 768px) {
  body:has(.page--location)::before,
  body:has(.page--contact)::before {
    background-image: url("../media/fondos-ubicacion/horizontal.png");
  }
}

.section-head--center {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.location-stage {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.15rem);
}

.location-stage__collage {
  position: relative;
  width: 100%;
}

.location-stage__map {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: min(72svh, 28rem);
  background: var(--ink);
  overflow: hidden;
  border: 2.5px solid var(--ink);
}

.location-stage__map iframe,
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.18) contrast(1.04);
}

.location-sticker {
  display: none;
  position: absolute;
  z-index: 3;
  margin: 0;
  width: clamp(5.5rem, 13vw, 9.25rem);
  pointer-events: none;
  filter: drop-shadow(0.18rem 0.22rem 0 rgba(20, 18, 16, 0.28));
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.location-sticker img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.location-sticker.is-dragging {
  z-index: 6;
  cursor: grabbing;
  filter: drop-shadow(0.28rem 0.34rem 0.12rem rgba(20, 18, 16, 0.35));
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.85rem 1rem;
  width: min(100%, 40rem);
  margin-inline: auto;
  padding-bottom: 0.35rem;
}

.location-actions .btn-3d {
  --btn-3d-x: 0.26rem;
  --btn-3d-y: 0.28rem;
  --cut: 0.42rem;
  flex: 0 0 auto;
  width: 9.75rem;
}

.location-actions__btn {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.55rem;
  padding: 0.58rem 0.85rem;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.location-actions > .btn-3d > .hero-btn {
  width: 100%;
  min-height: 2.55rem;
}

.location-paper {
  align-self: flex-start;
  width: 9.75rem;
  max-width: none;
}

.location-paper__face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  color: #0a0a0a;
  clip-path: var(--brutal-clip);
  overflow: hidden;
}

.location-paper__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: var(--font-weight-title);
  text-transform: uppercase;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

.location-paper__toggle:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: -3px;
}

.location-paper__fold {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.48s var(--ease);
}

.location-paper.is-open .location-paper__fold {
  grid-template-rows: 1fr;
}

.location-paper__body {
  overflow: hidden;
  display: grid;
  gap: 0.7rem;
  padding: 0 1.05rem;
  min-height: 0;
}

.location-paper.is-open .location-paper__body {
  padding-bottom: 0.95rem;
}

.location-paper__ink {
  margin: 0;
  font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #141210;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.location-paper__maps {
  justify-self: center;
  width: 100%;
  margin-top: 0.1rem;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  color: #141210;
}

.location-paper__maps:hover,
.location-paper__maps:focus-visible {
  color: #000;
  outline: none;
}

.map-wrap {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--paper);
  background:
    linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
}

.map-fallback a {
  color: var(--gold);
}

/* Móvil: mapa un poco más pequeño + pegatinas + 3 botones en línea */
@media (max-width: 767px) {
  /* Sin desplazamiento lateral: las pegatinas no pueden ensanchar la página */
  html:has(.page--location),
  body:has(.page--location) {
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
    max-width: 100%;
  }

  body:has(.page--location) {
    touch-action: pan-y;
  }

  body:has(.page--location) .site-footer {
    padding-bottom: calc(clamp(1.25rem, 3vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  }

  body:not(:has(.hero)) .page.page--location {
    --loc-top: calc(4.6rem + env(safe-area-inset-top, 0px));
    --loc-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    --loc-actions: 2.15rem;
    --loc-gap: 0.85rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 1.1rem);
    min-height: 100svh;
    margin-inline: auto;
    padding-top: var(--loc-top);
    padding-bottom: var(--loc-bottom);
  }

  .page--location .location-stage {
    gap: var(--loc-gap);
    width: 100%;
  }

  .location-stage__collage {
    width: 100%;
    margin-inline: auto;
    aspect-ratio: auto;
    height: min(
      calc(100svh - var(--loc-top) - var(--loc-bottom) - var(--loc-actions) - var(--loc-gap)),
      145vw,
      38rem
    );
    max-height: none;
  }

  .location-stage__map {
    position: absolute;
    inset: 16% 12%;
    width: auto;
    min-height: 0;
  }

  .location-sticker {
    display: block;
    pointer-events: none;
    filter: drop-shadow(0.1rem 0.12rem 0 rgba(20, 18, 16, 0.28));
  }

  .location-sticker--1 {
    top: 1%;
    left: 1%;
    rotate: -14deg;
    width: clamp(4.2rem, 22vw, 5.8rem);
  }

  .location-sticker--2 {
    top: 0;
    right: 1.5%;
    rotate: 11deg;
    width: clamp(5.8rem, 32vw, 8rem);
  }

  .location-sticker--3 {
    bottom: 0;
    left: 1%;
    top: auto;
    rotate: 9deg;
    width: clamp(4.8rem, 26vw, 6.6rem);
  }

  .location-sticker--4 {
    top: 34%;
    right: 1.5%;
    rotate: 13deg;
    width: clamp(3.4rem, 18vw, 4.8rem);
  }

  .location-sticker--5 {
    top: 36%;
    left: 0.5%;
    bottom: auto;
    rotate: -8deg;
    width: clamp(3.8rem, 20vw, 5.2rem);
  }

  .location-sticker--6 {
    bottom: 8%;
    right: 6%;
    rotate: -12deg;
    width: clamp(4rem, 22vw, 5.6rem);
  }

  .location-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    max-width: none;
    margin-top: 0.15rem;
    padding-inline: 0.1rem;
  }

  .location-actions .btn-3d,
  .location-paper {
    width: 100%;
    min-width: 0;
    --btn-3d-x: 0.18rem;
    --btn-3d-y: 0.2rem;
    --cut: 0.32rem;
  }

  .location-actions__btn,
  .location-actions > .btn-3d > .hero-btn {
    min-height: 2.15rem;
    padding: 0.42rem 0.35rem;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }

  .location-paper.is-open .location-paper__body {
    padding-bottom: 0.7rem;
  }

  .location-paper__body {
    padding: 0 0.55rem;
    gap: 0.45rem;
  }

  .location-paper__ink {
    font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  }
}

/* Tablet / escritorio: mapa centrado rodeado de pegatinas */
@media (min-width: 768px) {
  .page--location {
    width: min(100% - 2 * var(--space), 86rem);
  }

  .location-stage__collage {
    width: min(100%, 76rem);
    margin-inline: auto;
    aspect-ratio: 1 / 0.88;
    max-height: min(92svh, 62rem);
  }

  .location-stage__map {
    position: absolute;
    inset: 12% 14%;
    width: auto;
    min-height: 0;
  }

  .location-sticker {
    display: block;
    pointer-events: auto;
    cursor: grab;
  }

  .location-sticker--1 {
    top: 1%;
    left: 2%;
    rotate: -14deg;
    width: clamp(7.5rem, 15vw, 11.5rem);
  }

  .location-sticker--2 {
    top: -3%;
    right: -2%;
    rotate: 11deg;
    width: clamp(12.5rem, 24vw, 18rem);
  }

  .location-sticker--3 {
    bottom: 0;
    left: 2%;
    top: auto;
    rotate: 9deg;
    width: clamp(9rem, 17.5vw, 13.25rem);
  }

  .location-sticker--4 {
    top: 34%;
    right: -2%;
    rotate: 13deg;
    width: clamp(5.8rem, 11.5vw, 8.75rem);
  }

  .location-sticker--5 {
    top: 36%;
    left: -2%;
    bottom: auto;
    rotate: -8deg;
    width: clamp(6.8rem, 13.5vw, 10.25rem);
  }

  .location-sticker--6 {
    bottom: 9%;
    right: 9%;
    rotate: -12deg;
    width: clamp(7.1rem, 14.5vw, 10.75rem);
  }

  .location-actions {
    width: min(100%, 52rem);
    gap: 1.1rem 1.35rem;
    margin-top: -2.25rem;
  }

  .location-actions .btn-3d,
  .location-paper {
    width: 11.5rem;
  }

  .location-actions .btn-3d {
    --btn-3d-x: 0.32rem;
    --btn-3d-y: 0.34rem;
    --cut: 0.5rem;
  }

  .location-actions__btn,
  .location-actions > .btn-3d > .hero-btn {
    min-height: 2.85rem;
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
  }
}

/* —— Contacto —— */
.page--contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 8rem);
}

.contact-stage {
  display: grid;
  justify-items: center;
  width: 100%;
  padding-block: clamp(1rem, 4vw, 2rem);
}

.contact-actions.location-actions {
  margin-inline: auto;
}

.contact-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.contact-actions__icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  display: block;
}

.contact-actions__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pads de contacto: mismo estilo móvil / escritorio */
.page--contact .contact-actions.location-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  gap: 0.7rem;
  width: min(100%, 17.5rem);
  max-width: none;
  padding-block: 0.55rem 0.85rem;
}

.page--contact .contact-actions .btn-3d.contact-pad {
  width: 82%;
  --btn-3d-x: 0;
  --btn-3d-y: 0;
  --cut: 0;
  isolation: auto;
}

.page--contact .contact-actions .btn-3d.contact-pad::before {
  display: none;
}

.page--contact .contact-pad--phone {
  transform: translateY(0.55rem) rotate(-4deg);
}

.page--contact .contact-pad--whatsapp {
  transform: translateY(-0.45rem) rotate(3deg);
}

.page--contact .contact-pad--mail {
  transform: translateY(0.75rem) rotate(5deg);
}

.page--contact .contact-actions .contact-pad .contact-actions__btn.hero-btn--ghost {
  aspect-ratio: 1;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 0;
  gap: 0;
  border: 2.5px solid #0a0a0a;
  border-radius: 1.05rem;
  clip-path: none;
  color: #fff;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    filter 0.18s var(--ease);
}

.page--contact .contact-pad--phone .contact-actions__btn.hero-btn--ghost {
  background: #1a2332;
  box-shadow:
    0 0.32rem 0 #0a0a0a,
    0 0.45rem 0.75rem rgba(16, 18, 22, 0.2);
}

.page--contact .contact-pad--whatsapp .contact-actions__btn.hero-btn--ghost {
  background: #25d366;
  box-shadow:
    0 0.32rem 0 #0a0a0a,
    0 0.45rem 0.75rem rgba(16, 18, 22, 0.2);
}

.page--contact .contact-pad--mail .contact-actions__btn.hero-btn--ghost {
  background: #e23b1a;
  box-shadow:
    0 0.32rem 0 #0a0a0a,
    0 0.45rem 0.75rem rgba(16, 18, 22, 0.2);
}

.page--contact .contact-actions .btn-3d:hover > .contact-actions__btn.hero-btn--ghost,
.page--contact .contact-actions .btn-3d:active > .contact-actions__btn.hero-btn--ghost {
  transform: translateY(0.14rem);
  color: #fff;
  filter: brightness(1.06);
}

.page--contact .contact-pad--phone:hover .contact-actions__btn.hero-btn--ghost,
.page--contact .contact-pad--phone:active .contact-actions__btn.hero-btn--ghost {
  background: #1a2332;
  box-shadow:
    0 0.16rem 0 #0a0a0a,
    0 0.25rem 0.45rem rgba(16, 18, 22, 0.16);
}

.page--contact .contact-pad--whatsapp:hover .contact-actions__btn.hero-btn--ghost,
.page--contact .contact-pad--whatsapp:active .contact-actions__btn.hero-btn--ghost {
  background: #25d366;
  box-shadow:
    0 0.16rem 0 #0a0a0a,
    0 0.25rem 0.45rem rgba(16, 18, 22, 0.16);
}

.page--contact .contact-pad--mail:hover .contact-actions__btn.hero-btn--ghost,
.page--contact .contact-pad--mail:active .contact-actions__btn.hero-btn--ghost {
  background: #e23b1a;
  box-shadow:
    0 0.16rem 0 #0a0a0a,
    0 0.25rem 0.45rem rgba(16, 18, 22, 0.16);
}

.page--contact .contact-actions__icon {
  width: clamp(1.55rem, 8vw, 2rem);
  height: clamp(1.55rem, 8vw, 2rem);
}

@media (max-width: 767px) {
  .page--contact {
    width: min(100% - 1.1rem, 100%);
    margin-inline: auto;
    min-height: calc(100svh - 6.5rem);
  }
}

@media (min-width: 768px) {
  .page--contact {
    width: min(100% - 2 * var(--space), 86rem);
  }

  .page--contact .contact-actions.location-actions {
    gap: 1.35rem;
    width: min(100%, 28rem);
    padding-block: 0.85rem 1.25rem;
  }

  .page--contact .contact-actions .btn-3d.contact-pad {
    width: 78%;
  }

  .page--contact .contact-pad--phone {
    transform: translateY(0.75rem) rotate(-5deg);
  }

  .page--contact .contact-pad--whatsapp {
    transform: translateY(-0.65rem) rotate(3.5deg);
  }

  .page--contact .contact-pad--mail {
    transform: translateY(0.95rem) rotate(6deg);
  }

  .page--contact .contact-actions .contact-pad .contact-actions__btn.hero-btn--ghost {
    border-width: 3px;
    border-radius: 1.25rem;
  }

  .page--contact .contact-pad--phone .contact-actions__btn.hero-btn--ghost,
  .page--contact .contact-pad--whatsapp .contact-actions__btn.hero-btn--ghost,
  .page--contact .contact-pad--mail .contact-actions__btn.hero-btn--ghost {
    box-shadow:
      0 0.42rem 0 #0a0a0a,
      0 0.6rem 1rem rgba(16, 18, 22, 0.22);
  }

  .page--contact .contact-pad--phone:hover .contact-actions__btn.hero-btn--ghost,
  .page--contact .contact-pad--phone:active .contact-actions__btn.hero-btn--ghost,
  .page--contact .contact-pad--whatsapp:hover .contact-actions__btn.hero-btn--ghost,
  .page--contact .contact-pad--whatsapp:active .contact-actions__btn.hero-btn--ghost,
  .page--contact .contact-pad--mail:hover .contact-actions__btn.hero-btn--ghost,
  .page--contact .contact-pad--mail:active .contact-actions__btn.hero-btn--ghost {
    box-shadow:
      0 0.2rem 0 #0a0a0a,
      0 0.35rem 0.55rem rgba(16, 18, 22, 0.16);
  }

  .page--contact .contact-actions__icon {
    width: clamp(2.1rem, 3.2vw, 2.75rem);
    height: clamp(2.1rem, 3.2vw, 2.75rem);
  }
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid var(--line);
  transition: border-color 0.25s, background 0.25s;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--flame);
  background: #fff;
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.form-success {
  display: none;
  padding: 1rem 1.15rem;
  background: rgba(34, 120, 60, 0.12);
  border-left: 3px solid #22783c;
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
  animation: rise 0.5s var(--ease);
}

/* —— Políticas —— */
.legal {
  max-width: 42rem;
}

.legal h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.65rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal .placeholder {
  background: rgba(226, 59, 26, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 2px;
  font-style: italic;
  color: var(--flame-deep);
}

/* —— Footer —— */
.site-footer {
  position: relative;
  margin-top: auto;
  background: #000;
  color: rgba(245, 241, 234, 0.88);
  /* Espacio superior = cinta + margen bajo ella */
  padding: clamp(3.85rem, 8vw, 5.8rem) 0 clamp(1.25rem, 3vw, 1.75rem);
  overflow: visible;
}

/* Cinta en el filo: delimita el inicio del pie */
.footer-tape {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 0;
  width: 100%;
  max-width: 100%;
  pointer-events: none;
  overflow: visible;
}

.footer-tape__strip {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 3.75rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(0.55rem, 1.4vw, 0.72rem) 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%),
    #f4f1ea;
  color: #12100e;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  overflow: hidden;
}

.footer-tape__strip span {
  flex: 0 0 auto;
  font-family: var(--font-banner);
  font-weight: var(--font-weight-title);
  font-size: clamp(1.05rem, 3.4vw, 2.35rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
  display: grid;
  gap: clamp(1.35rem, 3.5vw, 2rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  width: 100%;
  column-gap: clamp(0.65rem, 3.5vw, 3rem);
  row-gap: 0;
}

.footer-grid > div {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.footer-grid h2 {
  font-size: clamp(0.78rem, 2.4vw, 1.28rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
  margin: 0 0 clamp(0.45rem, 1.4vw, 0.75rem);
  font-weight: 700;
  text-align: center;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(0.28rem, 1vw, 0.45rem);
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 2.1vw, 0.95rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.footer-grid li {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.footer-grid a {
  text-decoration: none;
  color: rgba(245, 241, 234, 0.8);
  font-family: inherit;
  font-size: inherit;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  padding-top: clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid rgba(245, 241, 234, 0.12);
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(245, 241, 234, 0.5);
  text-align: center;
}

.footer-copy__by {
  font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 1.28em;
  font-weight: 500;
}

@media (max-width: 859px) {
  .footer-copy__rights {
    display: none;
  }
}

.footer-copy a {
  color: rgba(245, 241, 234, 0.72);
  text-decoration: none;
}

.footer-copy a:hover {
  color: #fff;
}

.footer-copy__ig {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  vertical-align: baseline;
}

.footer-copy__ig-icon {
  width: 0.72em;
  height: 0.72em;
  flex: 0 0 auto;
  display: block;
}

/* —— Animations —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* —— Portal de pedidos (AccioFood, separado de la web Comuna) —— */
.pedidos-portal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #0f0e0c;
  color: #f5f1ea;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s var(--ease);
}

body.cart-open .pedidos-portal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pedidos-portal__chrome {
  position: sticky;
  top: 0;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 1.5rem) calc(0.75rem + 0.26rem);
  background: var(--ink);
  border-bottom: none;
}

.pedidos-portal__chrome-main {
  display: flex;
  align-items: center;
  min-width: 0;
}

.pedidos-portal__title {
  position: relative;
  display: block;
  width: 2.55rem;
  height: 1.55rem;
  margin: 0;
  line-height: 0;
}

.pedidos-portal__logo-stage {
  position: absolute;
  left: -0.45rem;
  top: 50%;
  translate: 0 -50%;
  display: block;
  width: 3.45rem;
  height: 2.15rem;
  overflow: visible;
  pointer-events: none;
}

.pedidos-portal__logo-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.pedidos-portal__back-wrap {
  --cut: 0.4rem;
  --btn-3d-x: 0.24rem;
  --btn-3d-y: 0.26rem;
  flex: 0 0 auto;
}

.pedidos-portal__back {
  margin: 0;
  padding: 0.48rem 0.95rem;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.pedidos-portal__back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.pedidos-portal__stage {
  flex: 0 0 auto;
  overflow: visible;
  background: #0f0e0c;
}

.pedidos-portal__host {
  width: min(100%, 1280px);
  margin-inline: auto;
}

.pedidos-portal__foot {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 0.85rem clamp(1rem, 3vw, 1.5rem);
  background: var(--ink);
  color: rgba(245, 241, 234, 0.62);
  text-align: center;
}

.pedidos-portal__foot p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.pedidos-portal__foot a {
  color: rgba(245, 241, 234, 0.88);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.pedidos-portal__foot a:hover,
.pedidos-portal__foot a:focus-visible {
  color: #fff;
  outline: none;
}

.pedidos-portal__missing {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  max-width: 28rem;
  margin: clamp(2.5rem, 8vh, 4.5rem) auto;
  padding: 0 1.25rem;
  color: var(--ink);
}

.pedidos-portal__missing[hidden] {
  display: none;
}

.pedidos-portal__missing-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-title);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.pedidos-portal__missing p {
  margin: 0;
  color: rgba(245, 241, 234, 0.72);
  font-size: 0.98rem;
  line-height: 1.45;
}

body.cart-open .brand,
body.cart-open .chrome-actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .pedidos-portal {
    transition: none;
  }
}
