/* Tipografías alojadas en este servidor (sin Google Fonts: no se envía la IP del visitante a terceros).
   Solo el subconjunto latino, suficiente para castellano. */
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/BebasNeue-400.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(assets/fonts/EBGaramond.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(assets/fonts/EBGaramond-italic.woff2) format('woff2'); }

/* Pizzabot — landing. Dirección: póster plano (taste-skill "loud-flat-poster").
   Tokens: una base, una tinta, campos de color plano. Sin degradados, sin sombras en reposo. */

:root {
  --bg: #e2dccf;
  --surface: #d7d0c1;
  --ink: #2a1110;
  --muted: #5e4640;
  --red: #dc1928;
  --maroon: #952625;
  --mustard: #e0a912;
  --slate: #4a6f84;
  --white: #ffffff;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  --step-head: clamp(3.25rem, 1.4rem + 8vw, 8.5rem);
  --step-display: clamp(5.5rem, 1rem + 20vw, 19rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(72px, 10vw, 160px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --text: "EB Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
::selection { background: var(--ink); color: var(--mustard); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.field-bone :focus-visible, .field-mustard :focus-visible { outline-color: var(--ink); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.86;
  text-wrap: balance;
}
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ——— Botón: un solo estilo, cuadrado, relleno mostaza ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--mustard); color: var(--ink);
  font-family: var(--display); font-size: 1.75rem; letter-spacing: 0.01em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:hover { transform: translateY(-3px); background: #f0ba26; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #3d1c1a; }

/* ——— Navegación ——— */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--margin);
  color: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 2rem; letter-spacing: 0.02em; line-height: 1; }
.brand img { width: 44px; height: 44px; }
.nav ul { display: flex; gap: clamp(16px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav a:not(.brand) { text-decoration: none; font-size: var(--step-small); font-weight: 500; letter-spacing: 0.02em; padding: 8px 0; }
.nav a:not(.brand):hover { text-decoration: underline; }

/* ——— Hero ——— */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 82fr 18fr; overflow: hidden; }
.hero-top { background: var(--red); color: var(--white); position: relative; padding: 16svh var(--margin) 0; }
.hero h1 { font-size: var(--step-display); line-height: 0.84; letter-spacing: -0.03em; position: relative; z-index: 1; }
.hero h1 span { display: block; }
.hero-band {
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--margin);
}
.hero-band .btn { position: relative; z-index: 10; }
.hero-band p { font-size: var(--step-lead); line-height: 1.2; max-width: 38ch; }
.hero-pepo {
  position: absolute; z-index: 5;
  right: 5vw; bottom: -28%;
  width: clamp(260px, 33vw, 560px);
  transform: rotate(5deg);
  transform-origin: 50% 90%;
  pointer-events: none;
}
.hero-pepo img { width: 100%; }
.hero-meta { display: none; }

/* Aparición "persiana" de la imagen principal */
.js .hero-pepo { clip-path: inset(0 0 100% 0); animation: shutter 1.1s var(--ease) 0.25s forwards; }
.js .hero-pepo img { transform: scale(1.12); animation: settle 1.1s var(--ease) 0.25s forwards; }
@keyframes shutter { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
.js .hero h1 span { opacity: 0; transform: translateY(32px); animation: rise 0.8s var(--ease) forwards; }
.js .hero h1 span:nth-child(2) { animation-delay: 0.09s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ——— Campos de color ——— */
.field { position: relative; padding: var(--gap-section) var(--margin); }
.field-bone { background: var(--bg); color: var(--ink); }
.field-red { background: var(--red); color: var(--white); }
.field-maroon { background: var(--maroon); color: var(--white); }
.field-mustard { background: var(--mustard); color: var(--ink); }
.field-slate { background: var(--slate); color: var(--white); }
.field-ink { background: var(--ink); color: var(--bg); }

.h-section { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.25; max-width: 34ch; }

/* ——— Cómo funciona: una comanda, cuatro campos ——— */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.step { position: relative; min-height: 84svh; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; }
.step:nth-of-type(1) { background: var(--red); color: var(--white); }
.step:nth-of-type(2) { background: var(--mustard); color: var(--ink); }
.step:nth-of-type(3) { background: var(--slate); color: var(--white); }
.step:nth-of-type(4) { background: var(--maroon); color: var(--white); }
.steps-title { position: absolute; top: 28px; left: 28px; right: 28px; font-size: clamp(3rem, 1.2rem + 3.6vw, 5.5rem); z-index: 2; }
.step .ticket { position: absolute; left: 50%; top: 38%; transform: translate(-50%, 0); transition: transform 150ms var(--ease); }
.step:hover .ticket { transform: translate(-50%, -6px); }
.step p { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem); line-height: 1.12; max-width: 12ch; }
.step p b { font-weight: 500; }
.step-detail { display: block; margin-top: 12px; font-size: var(--step-small); line-height: 1.35; max-width: 26ch; color: inherit; opacity: 0.88; }
.steps-note { grid-column: 1 / -1; padding: 28px; max-width: 70ch; font-size: var(--step-small); color: var(--muted); }

/* Comanda (fragmento de interfaz): sus propios bordes están permitidos */
.ticket {
  width: 260px; background: var(--bg); color: var(--ink);
  padding: 18px 18px 16px; font-size: 0.9375rem; line-height: 1.3;
  border: 2px dashed var(--ink);
}
.ticket-head { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.03em; line-height: 1; display: flex; justify-content: space-between; align-items: baseline; }
.ticket-item { margin: 8px 0 12px; font-weight: 500; }
.ticket ul { list-style: none; margin: 0; padding: 10px 0 0; border-top: 2px dashed var(--ink); display: grid; gap: 7px; }
.ticket li { display: flex; align-items: center; gap: 10px; opacity: 0.72; }
.ticket li::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--ink); flex: none; }
.ticket li.done { opacity: 1; }
.ticket li.done::before { background: var(--red); border-color: var(--ink); }
.ticket-foot { margin-top: 12px; padding-top: 10px; border-top: 2px dashed var(--ink); font-family: var(--display); font-size: 1.375rem; letter-spacing: 0.03em; }

/* ——— Tiendas ——— */
/* Tiendas: una tras otra en un párrafo, separadas por comas; cada una con su color corporativo.
   Fútbol Emotion y Basketball Emotion tienen un logotipo en blanco y negro: se quedan con la tinta. */
.stores-line { font-family: var(--display); text-transform: uppercase; font-size: clamp(3.25rem, 0.8rem + 9vw, 9rem); line-height: 0.95; letter-spacing: 0.01em; }
.stores-line span:not(:last-child)::after { content: ","; color: var(--ink); -webkit-text-stroke: 0; }
.stores-line .s-alcampo { color: #e2001a; }
.stores-line .s-carrefour { color: #004e9f; }
.stores-line .s-eci { color: #007a3d; }
.stores-line .s-game { color: #a8007d; }
.stores-line .s-segons { color: #d6001c; }
.stores-line .s-hm { color: #e50010; }
.stores-line .s-mm { color: #df0000; }
@media (min-width: 901px) { .stores-line span { white-space: nowrap; } }
.stores-line .s-more { color: var(--muted); font-size: 0.4em; letter-spacing: 0.04em; margin-left: 0.2em; }
.stores-note { margin-top: 32px; font-size: var(--step-small); color: var(--muted); max-width: 60ch; }
.stores-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 5vw, 64px); }

/* ——— Qué lleva dentro ——— */
.inside { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.inside-shots { position: relative; min-height: 520px; }
.inside-shots img { position: absolute; width: min(100%, 440px); }
.inside-shots .s1 { left: 0; top: 0; transform: rotate(-3deg); }
.inside-shots .s2 { left: clamp(40px, 12vw, 200px); top: 330px; width: min(80%, 380px); transform: rotate(3deg); }
.inside-shots img { transition: transform 300ms var(--ease); }
.inside-shots .s1:hover { transform: rotate(-3deg) translateY(-6px); }
.inside-shots .s2:hover { transform: rotate(3deg) translateY(-6px); }
.inside-list { display: grid; gap: clamp(28px, 4vw, 48px); }
.inside-list h3 { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.5rem); margin-bottom: 8px; }
.inside-list p { max-width: 40ch; font-size: var(--step-body); }

/* ——— Precios: dos planes, dos campos ——— */
.pricing { display: grid; grid-template-columns: 5fr 7fr; min-height: 90svh; }
.plan { padding: 40px var(--margin) 48px; display: flex; flex-direction: column; min-height: 90svh; }
.plan-m { background: var(--maroon); color: var(--white); }
.plan-a { background: var(--red); color: var(--white); }
.plan h2, .plan h3 { font-size: clamp(3.5rem, 1rem + 6.5vw, 8.5rem); }
.plan .who { margin-top: 20px; font-size: var(--step-lead); line-height: 1.2; max-width: 26ch; }
.plan .incl { margin-top: 24px; max-width: 44ch; font-size: var(--step-body); }
.plan-foot { margin-top: auto; padding-top: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.price { font-family: var(--display); font-size: clamp(5rem, 1rem + 10vw, 11rem); line-height: 0.85; letter-spacing: -0.02em; }
.price small { font-family: var(--text); font-size: 1.125rem; letter-spacing: 0; margin-left: 8px; }
.plan-note { font-size: var(--step-small); margin-top: 10px; min-height: 1.4em; }
.pricing-fine { padding: 20px var(--margin); background: var(--ink); color: var(--bg); font-size: var(--step-small); }

/* ——— Dudas ——— */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq h2 { font-size: clamp(3.5rem, 1.4rem + 6.5vw, 8rem); position: sticky; top: 96px; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--surface); transition: background-color 200ms var(--ease); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 1.3125rem; font-weight: 500; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; background: currentColor; transition: transform 220ms var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq summary { position: relative; padding-right: 64px; }
.faq details[open] { background: var(--red); color: var(--white); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 54ch; font-size: 1.125rem; }
.faq summary:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ——— Cierre invertido ——— */
.cta { min-height: 90svh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(48px, 8vw, 120px) var(--margin) 40px; }
.cta h2 { font-size: clamp(5rem, 1rem + 19vw, 17rem); line-height: 0.86; letter-spacing: -0.03em; }
.cta-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; }
.cta-row p { font-size: var(--step-lead); max-width: 34ch; line-height: 1.2; }
.cta .btn { background: var(--mustard); }

/* ——— Pie ——— */
.footer { display: grid; grid-template-columns: 6fr 6fr; min-height: 100svh; margin-top: 160px; }
.footer-art { background: var(--mustard); position: relative; overflow: hidden; }
.footer-art img { position: absolute; left: -6%; bottom: -8%; width: 120%; max-width: none; transform: rotate(-4deg); transform-origin: 50% 100%; }
.footer-main { background: var(--bg); padding: 40px var(--margin) 32px; display: flex; flex-direction: column; }
.footer-main .brand { color: var(--ink); font-size: 1.75rem; align-self: flex-start; }
.footer-main .brand img { width: 36px; height: 36px; }
.menu { list-style: none; margin: 80px 0 0; padding: 0; display: grid; gap: 28px; }
.menu a { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.5rem, 1rem + 3.8vw, 4.75rem); line-height: 0.95; text-decoration: none; display: inline-block; transition: transform 200ms var(--ease), color 200ms var(--ease); }
.menu:hover a { color: var(--muted); }
.menu a:hover { transform: translateX(12px); color: var(--red); }
.contact { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; font-size: 1.0625rem; }
.contact b { display: block; font-weight: 500; font-style: italic; margin-bottom: 4px; }
.legal { margin-top: auto; padding-top: 48px; font-size: var(--step-small); color: var(--muted); max-width: 60ch; }

/* ——— Páginas legales ——— */
.doc { max-width: 760px; margin: 0 auto; padding: 120px var(--margin) 96px; }
.doc h1 { font-size: clamp(4rem, 2rem + 8vw, 8rem); margin-bottom: 40px; }
.doc h2 { font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); margin: 56px 0 12px; line-height: 0.95; }
.doc p, .doc li { font-size: 1.1875rem; margin-bottom: 12px; }
.doc ul { padding-left: 1.25em; margin-bottom: 12px; list-style: disc; }
.doc .meta { color: var(--muted); font-size: var(--step-small); margin-top: -24px; }
.doc .todo { background: var(--mustard); padding: 0 4px; }
.doc .warn { background: var(--surface); padding: 16px 20px; margin-bottom: 32px; }

/* ——— Entrada por secciones (solo con JS) ——— */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ——— Móvil ——— */
@media (max-width: 900px) {
  .nav ul { gap: 16px; }
  .nav ul li:not(:last-child) { display: none; }
  .nav a:not(.brand) { white-space: nowrap; font-size: 1rem; }
  .hero { grid-template-rows: 78fr 22fr; min-height: 100svh; }
  .hero-top { padding-top: 14svh; }
  .hero h1 { font-size: clamp(5.5rem, 27vw, 9rem); }
  .hero-pepo { width: 62%; right: -6%; bottom: -10%; }
  .hero-band { flex-direction: column; align-items: stretch; justify-content: center; gap: 14px; padding: 14px var(--margin); }
  .hero-band p { font-size: 1.25rem; max-width: none; }
  .hero-band .btn { width: 100%; }

  .steps { grid-template-columns: 1fr; }
  .step { min-height: 64svh; justify-content: flex-start; padding: 20px var(--margin) 28px; }
  .step p { order: 1; max-width: none; font-size: 1.75rem; }
  .step .ticket { position: static; transform: none; margin-top: 28px; order: 2; width: min(100%, 300px); }
  .step:hover .ticket { transform: none; }
  .step:nth-of-type(1) { padding-top: 96px; }
  .steps-title { position: absolute; top: 20px; left: var(--margin); font-size: 2.75rem; }

  .inside { grid-template-columns: 1fr; }
  .inside-shots { min-height: 640px; }
  .inside-shots .s1 { width: min(78%, 340px); }
  .inside-shots .s2 { left: 18%; top: 300px; width: min(72%, 300px); }

  .pricing { grid-template-columns: 1fr; }
  .plan { min-height: 70svh; padding-top: 28px; }
  .plan-a { order: -1; }
  .plan h2, .plan h3 { font-size: 22vw; }
  .price { font-size: 24vw; }
  .plan-foot { flex-direction: column; align-items: stretch; }
  .plan-foot .btn { width: 100%; }

  .faq { grid-template-columns: 1fr; }
  .faq h2 { position: static; font-size: 22vw; }
  .faq summary { font-size: 1.1875rem; min-height: 64px; padding: 12px 20px; }
  .faq details p { padding: 0 20px 20px; font-size: 1.0625rem; }

  .cta { min-height: 80svh; }
  .cta h2 { font-size: 24vw; }
  .cta-row .btn { width: 100%; }

  .footer { grid-template-columns: 1fr; min-height: 0; margin-top: 96px; }
  .footer-art { height: 50svh; }
  .footer-art img { width: 120%; left: -10%; bottom: -12%; }
  .menu { margin-top: 40px; gap: 20px; }
  .menu a { font-size: 8vw; }
  .contact { grid-template-columns: 1fr; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-pepo, .js .hero-pepo img, .js .hero h1 span { animation: none; clip-path: none; opacity: 1; transform: none; }
  .js .hero-pepo { transform: rotate(5deg); }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .step .ticket, .menu a, .inside-shots img { transition: none; }
}
