/* ============================================================
   Pink Predictions — sistema de diseño
   Carbón cálido + fucsia profundo + coral. Tipografía display
   Archivo Black, UI Space Grotesk. Textura de grano sutil.
   ============================================================ */
:root {
  --bg: #0f0d11;
  --bg-soft: #141117;
  --panel: #18141c;
  --line: #292230;
  --line-soft: #1f1a25;
  --pink: #f01d6f;
  --pink-deep: #a80c4e;
  --coral: #ff5348;
  --cream: #f4ede4;
  --muted: #a2929e;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --side-w: 250px;
  --topbar-h: 58px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Grano sutil sobre todo (textura, no decoración) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }

svg { display: block; }
.side-cat svg, .tile svg, .feat-icon, .feat-watermark {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn svg, .link-arrow svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  font-weight: 400;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--pink);
  display: block;
}
@supports not (-webkit-text-stroke: 1px black) {
  .outline { color: var(--pink); }
}

a { color: var(--pink); }

::selection { background: var(--pink); color: #16060d; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ Piezas comunes ============ */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 18px;
}
.tick { width: 22px; height: 2px; background: var(--pink); flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 14px 26px;
  border-radius: 3px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.btn-primary {
  background: var(--pink);
  color: #16060d;
  box-shadow: 5px 5px 0 var(--pink-deep);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--pink-deep); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--pink-deep); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

.btn-sm { padding: 9px 16px; font-size: 0.74rem; }
.btn-lg { padding: 17px 34px; font-size: 0.92rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--cream);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--pink); color: var(--pink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 4px;
}
.link-arrow svg { transform: rotate(90deg); transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: rotate(90deg) translateX(4px); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--pink);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
}
.wordmark-pp { height: 40px; width: auto; display: block; }
.wordmark-text span {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--cream);
  margin-top: 5px;
}
.wordmark-sm { font-size: 1.1rem; gap: 9px; }
.wordmark-sm .wordmark-pp { height: 30px; }
.wordmark-sm .wordmark-text span { font-size: 0.5rem; margin-top: 3px; letter-spacing: 0.34em; }

.badge-18 {
  display: inline-grid;
  place-items: center;
  border: 1.5px solid var(--coral);
  color: var(--coral);
  font-weight: 700;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 1.6s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 83, 72, 0.5); }
  55% { box-shadow: 0 0 0 6px rgba(255, 83, 72, 0); }
}

/* ============ Topbar (mobile) ============ */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--topbar-h);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: rgba(15, 13, 17, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 64;
  background: rgba(8, 5, 10, 0.66);
}

/* ============ Sidebar ============ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 65;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  padding: 28px 0 22px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line-soft);
}
.sidebar .wordmark { padding: 0 24px; margin-bottom: 40px; }

.side-label {
  padding: 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

.side-nav { display: flex; flex-direction: column; overflow-y: auto; }

.side-cat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.side-cat svg { width: 21px; height: 21px; flex-shrink: 0; transition: transform 0.18s ease; }
.side-cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 3px;
  height: 0;
  background: var(--pink);
  transition: height 0.18s ease;
}
.side-cat:hover { color: var(--cream); background: rgba(240, 29, 111, 0.05); }
.side-cat:hover svg { transform: translateX(2px); }
.side-cat.is-active { color: var(--cream); background: rgba(240, 29, 111, 0.09); }
.side-cat.is-active::before { height: 100%; }
.side-cat.is-active svg { color: var(--pink); }

.side-foot {
  margin-top: auto;
  padding: 18px 24px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-user { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
}
.side-links a { color: var(--muted); text-decoration: none; }
.side-links a:hover { color: var(--pink); }
.side-links .badge-18 { margin-left: auto; }

/* ============ Main ============ */
.main { margin-left: var(--side-w); }

.section {
  padding: 90px clamp(24px, 5vw, 72px);
  max-width: 1200px;
  border-top: 1px solid var(--line-soft);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
}
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.sec-note {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 260px;
  text-align: right;
  border-right: 2px solid var(--pink);
  padding-right: 14px;
}

/* ============ Intro cinemático (scroll scrubbing) ============ */
.cine {
  --p: 0;
  position: relative;
  height: 340vh;
  background: var(--bg);
}

.cine-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #101014;
}

.cine-frame {
  width: 100%;
  height: 100%;
  /* movimiento de cámara simulado: acercamiento leve que se asienta */
  transform: scale(calc(1.07 - var(--p) * 0.07)) translateY(calc((1 - var(--p)) * 1.6vh));
  will-change: transform;
}
.cine-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Fallback / reduced-motion: frame final estático del video original */
.cine-static { height: 100vh; }
.cine-static .cine-frame {
  transform: none;
  background: url("/media/logo-final.jpg") center / contain no-repeat;
}
.cine-static .cine-frame video,
.cine-static .cine-hint,
.cine-static .cine-word,
.cine-static .cine-progress { display: none; }

/* Viñeta: integra la escena luminosa del video con la página oscura */
.cine-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 130% 100% at 50% 45%, transparent 52%, rgba(16, 16, 20, 0.6) 100%),
    linear-gradient(180deg, rgba(16, 16, 20, 0.75) 0%, transparent 14%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15, 13, 17, 0.55) 7%, transparent 22%);
}

/* Líneas laterales que crecen con el progreso */
.cine-lines span {
  position: absolute;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--pink), transparent);
  opacity: 0.5;
  pointer-events: none;
}
.cine-lines span:first-child { left: clamp(18px, 4vw, 54px); transform: scaleY(var(--p)); transform-origin: top; }
.cine-lines span:last-child { right: clamp(18px, 4vw, 54px); transform: scaleY(var(--p)); transform-origin: bottom; }

/* Palabras por etapa: aparecen y desaparecen en tramos del progreso */
.cine-word {
  position: absolute;
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  color: var(--pink);
  pointer-events: none;
  text-shadow: 0 0 18px rgba(240, 29, 111, 0.35);
}
.cine-word-1 { left: clamp(28px, 6vw, 84px); bottom: 22%; opacity: calc(min(max((var(--p) - 0.1) * 9, 0), 1) * min(max((0.32 - var(--p)) * 9, 0), 1)); }
.cine-word-2 { right: clamp(28px, 6vw, 84px); top: 24%; opacity: calc(min(max((var(--p) - 0.38) * 9, 0), 1) * min(max((0.6 - var(--p)) * 9, 0), 1)); }
.cine-word-3 { left: clamp(28px, 6vw, 84px); top: 24%; opacity: calc(min(max((var(--p) - 0.62) * 9, 0), 1) * min(max((0.82 - var(--p)) * 9, 0), 1)); }

/* Indicador de scroll: visible solo al inicio */
.cine-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cream);
  opacity: calc(0.85 - var(--p) * 14);
  pointer-events: none;
}
.cine-hint-arrow { display: inline-block; animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Mensaje final: entra por opacidad + blur + desplazamiento */
.cine-tagline {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translate(-50%, 14px);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
  pointer-events: none;
  text-align: center;
  padding: 10px 28px;
  /* vidrio sutil sin parecer botón: el blur se desvanece en los bordes */
  backdrop-filter: blur(6px);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 55%, transparent 100%);
}
.cine-tagline.is-on { opacity: 1; transform: translate(-50%, 0); filter: blur(0); }
.cine-tagline-main {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(0.92rem, 1.8vw, 1.35rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 237, 228, 0.94);
  text-shadow: 0 0 22px rgba(240, 29, 111, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
}
@media (min-width: 560px) {
  .cine-tagline-main { white-space: nowrap; }
}

/* Hairline de progreso */
.cine-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(var(--p));
  transform-origin: left;
  opacity: 0.8;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 92vh;
  padding: 110px clamp(24px, 5vw, 72px) 90px;
  max-width: 1200px;
  overflow: hidden;
}
/* Textura: líneas de cancha de fútbol, rotadas, casi imperceptibles */
.hero::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 1300'%3E%3Cg fill='none' stroke='%23f01d6f' stroke-opacity='0.055' stroke-width='3' transform='rotate(14 450 650)'%3E%3Crect x='60' y='60' width='780' height='1180' rx='4'/%3E%3Cline x1='60' y1='650' x2='840' y2='650'/%3E%3Ccircle cx='450' cy='650' r='110'/%3E%3Crect x='230' y='60' width='440' height='180'/%3E%3Crect x='330' y='60' width='240' height='75'/%3E%3Crect x='230' y='1060' width='440' height='180'/%3E%3Crect x='330' y='1165' width='240' height='75'/%3E%3Cpath d='M350 240a110 110 0 0 0 200 0'/%3E%3Cpath d='M350 1060a110 110 0 0 1 200 0'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / cover;
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  top: 44%;
  left: -2%;
  z-index: 0;
  font-family: var(--display);
  font-size: clamp(7rem, 17vw, 15rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 29, 111, 0.13);
  white-space: nowrap;
  transform: rotate(-6deg);
  pointer-events: none;
  user-select: none;
}
.hero-copy { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  margin-bottom: 26px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  max-width: 440px;
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-signedin {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  background: var(--panel);
  font-size: 0.92rem;
  max-width: 480px;
}

/* ---- Ticket (marcador de la banda) ---- */
.ticket {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px 26px 4px 4px;
  padding: 22px 22px 18px;
  transform: rotate(2.5deg);
  box-shadow: 10px 12px 0 rgba(240, 29, 111, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  justify-self: end;
  width: min(100%, 330px);
}
.ticket:hover { transform: rotate(0.5deg) translateY(-4px); box-shadow: 14px 16px 0 rgba(240, 29, 111, 0.2); }

.ticket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 6px;
}
.ticket-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}
.ticket-code { font-family: var(--display); color: var(--pink); font-size: 0.85rem; }

.ticket-rows { list-style: none; }
.ticket-rows li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.ticket-rows li:last-child { border-bottom: none; }
.ticket-rows .pos {
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--muted);
  width: 18px;
}
.ticket-rows .who { font-weight: 700; }
.ticket-rows .pts { margin-left: auto; color: var(--muted); font-size: 0.85rem; }
.ticket-rows .is-you { background: rgba(240, 29, 111, 0.08); margin: 0 -10px; padding: 11px 12px; }
.ticket-rows .is-you .pos, .ticket-rows .is-you .pts { color: var(--pink); }

.ticket-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============ Canchas ============ */
.canchas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.featured {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px 4px 4px 34px;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.feat-watermark {
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 260px;
  height: 260px;
  color: rgba(240, 29, 111, 0.09);
  stroke-width: 0.9;
  pointer-events: none;
  transition: transform 0.4s ease;
}
.featured:hover .feat-watermark { transform: rotate(-8deg) scale(1.06); }

.feat-num {
  font-family: var(--display);
  font-size: 0.9rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--pink);
}
.feat-icon { width: 44px; height: 44px; color: var(--pink); }
.feat-name { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.feat-tag { color: var(--muted); max-width: 380px; }

.feat-pools {
  list-style: none;
  margin: 6px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-pools li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}
.feat-pools li::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--coral);
  flex-shrink: 0;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: stretch;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tile:nth-child(odd) { border-radius: 3px 18px 3px 3px; }
.tile svg { width: 24px; height: 24px; transition: color 0.15s ease, transform 0.18s ease; }
.tile em {
  position: absolute;
  top: 12px;
  right: 14px;
  font-style: normal;
  font-family: var(--display);
  font-size: 0.72rem;
  color: var(--line);
  transition: color 0.15s ease;
}
.tile:hover { color: var(--cream); border-color: var(--line); }
.tile:hover svg { transform: translateY(-3px); }
.tile.is-active {
  color: var(--cream);
  border-color: var(--pink);
  background: rgba(240, 29, 111, 0.08);
}
.tile.is-active svg { color: var(--pink); }
.tile.is-active em { color: var(--pink); }

/* ============ Pasos ============ */
.steps {
  list-style: none;
  max-width: 860px;
}
.step {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 4vw, 48px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step:first-child { border-top: 1px solid var(--line-soft); }
.step-indent { margin-left: clamp(0px, 8vw, 110px); }

.step-num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--line);
  transition: -webkit-text-stroke-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.step:hover .step-num { -webkit-text-stroke-color: var(--pink); color: rgba(240, 29, 111, 0.14); }

.step-body h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.step-body p { color: var(--muted); max-width: 440px; }

/* ============ CTA band ============ */
.cta-band {
  margin: 0 clamp(24px, 5vw, 72px) 90px;
  max-width: 1056px;
  padding: clamp(44px, 7vw, 80px) clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 4px 34px 4px 34px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(240, 29, 111, 0.045) 12px 13px),
    var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px clamp(24px, 5vw, 72px) 46px;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--pink); }
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ============ Modal ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 5, 10, 0.78);
  backdrop-filter: blur(5px);
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 4px 30px 0 0;
  padding: 36px 28px 32px;
  animation: modal-up 0.26s ease;
}
@media (min-width: 560px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: 4px 30px 4px 30px; border-bottom: 1px solid var(--line); box-shadow: 12px 14px 0 rgba(240, 29, 111, 0.16); }
}
@keyframes modal-up {
  from { transform: translateY(22px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close { position: absolute; top: 16px; right: 16px; }

.modal-badge {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding: 0 12px;
  background: var(--pink);
  color: #16060d;
  font-family: var(--display);
  font-size: 1.15rem;
  border-radius: 3px 14px 3px 3px;
  box-shadow: 4px 4px 0 var(--pink-deep);
  margin-bottom: 20px;
}
.modal-badge-block { background: var(--coral); box-shadow: 4px 4px 0 #a8241d; }

.modal h2 { font-size: 1.45rem; margin-bottom: 10px; }
.modal-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }

.modal-fine { color: var(--muted); font-size: 0.78rem; margin-top: 20px; opacity: 0.85; }
.modal-fine a { color: var(--muted); text-decoration: underline; }

/* ---- Gate de edad ---- */
.age-selects {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.age-selects label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.age-selects select {
  appearance: none;
  background: var(--bg);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 12px;
  font-size: 1rem;
  font-family: var(--body);
}
.age-selects select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 3px 3px 0 rgba(240, 29, 111, 0.3);
}

.form-error {
  color: var(--coral);
  border: 1px solid rgba(255, 83, 72, 0.4);
  border-left: 3px solid var(--coral);
  background: rgba(255, 83, 72, 0.07);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

/* ---- Botones de auth ---- */
.auth-buttons { display: flex; flex-direction: column; gap: 12px; }

.btn-auth {
  width: 100%;
  background: var(--cream);
  color: #16060d;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(240, 29, 111, 0.35);
}
.btn-auth:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(240, 29, 111, 0.45); }
.btn-auth:active { transform: translate(2px, 2px); box-shadow: 0 0 0 transparent; }
.btn-auth:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-auth-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-auth-ghost:hover { border-color: var(--pink); box-shadow: none; transform: none; }

.auth-icon { flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  max-width: min(92vw, 420px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink);
  border-radius: 3px;
  padding: 13px 20px;
  font-size: 0.92rem;
  box-shadow: 8px 8px 0 rgba(240, 29, 111, 0.18);
  animation: modal-up 0.25s ease;
}

/* ============ Páginas legales ============ */
.legal {
  max-width: 760px;
  padding: 60px clamp(24px, 5vw, 72px) 90px;
}
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.legal .updated {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 34px;
}
.legal h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin: 40px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.legal h2::before { content: ""; display: block; width: 22px; height: 2px; background: var(--pink); margin-bottom: 12px; }
.legal h3 { font-size: 0.95rem; color: var(--cream); margin: 20px 0 8px; }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal strong { color: var(--cream); }
.legal ul, .legal ol { margin: 0 0 16px 22px; color: var(--muted); }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--pink); }
.legal-contact {
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink);
  background: var(--panel);
  padding: 18px 22px;
  margin-top: 8px;
}
.legal-contact p { margin: 0; }
.legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--line-soft);
}
.legal-bar-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 9px 14px;
  cursor: pointer;
}
.lang-toggle button.is-active { background: var(--pink); color: #16060d; }

/* Bloques por idioma: html.en muestra inglés, si no, español */
html.en [lang="es"] { display: none; }
html:not(.en) main[lang="en"], html:not(.en) [lang="en"] { display: none; }

/* ============================================================
   Responsive: sidebar → drawer + topbar
   ============================================================ */
@media (max-width: 920px) {
  .topbar { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    width: min(82vw, 300px);
    box-shadow: none;
  }
  body.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.5);
  }

  .main { margin-left: 0; padding-top: var(--topbar-h); }

  /* Intro: recorrido más corto y menos capas en móvil */
  .cine { height: 230vh; }
  .cine-sticky { height: calc(100svh - var(--topbar-h)); }
  .cine-lines, .cine-word-2, .cine-word-3 { display: none; }
  .cine-tagline { width: 92%; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
    gap: 48px;
  }
  .ticket { justify-self: center; transform: rotate(1.5deg); }
  .hero-mark { top: 30%; font-size: 30vw; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 36px; }
  .sec-note { text-align: left; border-right: none; border-left: 2px solid var(--pink); padding: 0 0 0 14px; max-width: none; }

  .canchas-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }

  .step { flex-direction: column; gap: 10px; padding: 26px 0; }
  .step-indent { margin-left: 0; padding-left: clamp(24px, 10vw, 60px); }

  .cta-band { flex-direction: column; align-items: flex-start; }

  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { min-height: 92px; padding: 13px; font-size: 0.8rem; }
  .hero-cta { gap: 18px; }
}
