/* =========================================================
   HR BOXING · Landing demo
   Cartel de función de box: Anton + Inter, negro/carbón,
   rojo protagonista, blanco cálido y arena en acentos.
   ========================================================= */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #101112;
  --carbon: #1c1d1f;
  --carbon-2: #26272a;
  --red: #f5232d;
  --red-press: #d9141e;
  --paper: #f4f1e9;
  --paper-2: #e9e4d6;
  --sand: #c8b982;
  --ink-soft: rgba(244, 241, 233, 0.76);
  --rope: rgba(244, 241, 233, 0.26);

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --m: clamp(16px, 3.2vw, 44px);          /* margen exterior */
  --ml: max(var(--m), env(safe-area-inset-left, 0px));
  --mr: max(var(--m), env(safe-area-inset-right, 0px));
  --sec: clamp(48px, 7vw, 88px);          /* ritmo entre secciones */
  --hh: 64px;                             /* alto del header */
  --gap: 14px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --chamfer: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px));
}
@media (min-width: 900px) { :root { --hh: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* Controles: clic inmediato (sin espera de doble toque) y sin seleccionar su texto al mantener pulsado */
a, button { touch-action: manipulation; }
button, .btn, .tile__btn, .menu-toggle, .tape__toggle, .lb__nav, .lb__close { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--text);
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* Grano de impresión: una sola capa fija, sin blend, no captura eventos */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--m); top: -60px; z-index: 200;
  background: var(--paper); color: var(--black); padding: 12px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
::selection { background: var(--red); color: var(--black); }
html { scrollbar-color: #3a3b3e var(--black); accent-color: var(--red); }

.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-left: var(--ml); padding-right: var(--mr); }
section[id], main [id] { scroll-margin-top: calc(var(--hh) + 12px); }

/* ---------- Tipografía ---------- */
.h2, .hero__title, .close__title, .h3, .sheet__title, .stub__title, .pillar dt, .strip__num, .footer__handle {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.h2 {
  font-size: clamp(44px, 6.1vw, 96px);
  line-height: 0.92;
  margin-top: 18px;
}
.h3 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1; }
.lead { max-width: 46ch; margin-top: 20px; font-size: clamp(17px, 0.4vw + 15.5px, 19px); line-height: 1.55; }

/* Líneas de titular con máscara (para el revelado). Padding para no cortar acentos ni colas. */
.l { display: block; padding: 0.1em 0 0.04em; margin: -0.1em 0 -0.04em; }
.l > span { display: block; }
.js-anim .l { overflow: hidden; }

/* Etiqueta de sección: ROUND 0X + cuerdas del ring */
.round {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sand);
  max-width: 560px;
}
.round .hex { width: 14px; height: 15px; flex: none; }
.ropes { flex: 1 1 auto; min-width: 40px; display: grid; gap: 4px; }
.ropes i { display: block; height: 1px; background: var(--rope); transform-origin: left center; }
.ropes i:nth-child(2) { background: var(--red); }
.round--ink { color: var(--black); }
.round--ink .ropes i { background: rgba(16, 17, 18, 0.45); }
.round--ink .ropes i:nth-child(2) { background: var(--black); }

.hex { fill: none; stroke: currentColor; stroke-width: 2; }
/* Iconos propios: un solo trazo para todo el sitio */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: square; stroke-linejoin: miter; }
.ico--inline { width: 1em; height: 1em; vertical-align: -0.14em; margin-left: 4px; }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--sand);
}
.tag .hex { width: 14px; height: 15px; }

/* ---------- Enlaces con subrayado animado ---------- */
.ulink { text-decoration: none; position: relative; }
.ulink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right center;
  transition: transform 320ms var(--ease-out);
}
.ulink:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
@media (hover: hover) and (pointer: fine) {
  .ulink:hover::after { transform: scaleX(1); transform-origin: left center; }
}
.strip__link::after { bottom: 8px; }
.footer__meta .ulink::after, .mobile-menu__ig::after { bottom: 4px; }
/* En táctil el enlace de los pasos lleva subrayado fijo para que se vea que es un enlace */
@media (hover: none) { .strip__link::after { transform: scaleX(1); } }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--red); --fg: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none;
  border: 2px solid var(--bg);
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn__arrow { display: block; transition: transform 220ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .btn[href="#gimnasio"]:hover .btn__arrow { transform: translateY(3px); }
  .btn[target="_blank"]:hover .btn__arrow { transform: translate(3px, -3px); }
}
.btn--ghost { --bg: transparent; --fg: var(--paper); border-color: rgba(244, 241, 233, 0.55); }
.btn--paper { --bg: var(--paper); --fg: var(--black); }
.btn--ink { --bg: var(--black); --fg: var(--paper); }
.btn--outline-ink { --bg: transparent; --fg: var(--black); border-color: var(--black); }
@media (hover: hover) and (pointer: fine) {
  .btn--red:hover { --bg: var(--paper); }
  .btn--ghost:hover { --bg: var(--paper); --fg: var(--black); border-color: var(--paper); }
  .btn--paper:hover { --bg: var(--red); }
  .btn--ink:hover { --bg: var(--paper); --fg: var(--black); border-color: var(--black); }
  .btn--outline-ink:hover { --bg: var(--black); --fg: var(--paper); }
}
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 280ms var(--ease-out), border-color 280ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: var(--black);
  border-bottom-color: rgba(244, 241, 233, 0.12);
}
.site-header__inner {
  height: var(--hh);
  display: flex; align-items: center; gap: 24px;
  padding-left: var(--ml); padding-right: var(--mr);
  max-width: 1600px; margin-inline: auto;
}
.brand { display: block; flex: none; margin-right: auto; }
.brand img { height: calc(var(--hh) - 16px); width: auto; mix-blend-mode: lighten; }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav a { font-size: 15px; font-weight: 500; padding-block: 10px; }
.site-header__cta { flex: none; }

.menu-toggle {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer; margin-right: -10px;
}
.menu-toggle__bars { width: 26px; height: 12px; position: relative; display: block; }
.menu-toggle__bars i {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--paper);
  transition: transform 260ms var(--ease-out), top 260ms var(--ease-out);
}
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--hh) 0 0 0;
  background: var(--black);
  padding: 24px var(--mr) calc(32px + env(safe-area-inset-bottom)) var(--ml);
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { border-top: 1px solid rgba(244, 241, 233, 0.14); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0;
  font-family: var(--display); font-size: clamp(40px, 11vw, 56px); line-height: 1; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 233, 0.14);
}
.mobile-menu__n { font-family: var(--text); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--sand); width: 36px; }
.mobile-menu__ig { align-self: flex-start; font-weight: 600; padding-block: 10px; }
.mobile-menu.is-entering .mobile-menu__list li { animation: menu-in 420ms var(--ease-out) both; }
.mobile-menu.is-entering .mobile-menu__list li:nth-child(2) { animation-delay: 40ms; }
.mobile-menu.is-entering .mobile-menu__list li:nth-child(3) { animation-delay: 80ms; }
.mobile-menu.is-entering .mobile-menu__list li:nth-child(4) { animation-delay: 120ms; }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 419px) { .site-header__cta { display: none; } }
@media (min-width: 900px) {
  .nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .brand { margin-right: 0; }
  .nav { margin-inline: auto; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--black);
}
.hero__text {
  padding: calc(var(--hh) + 28px) var(--mr) 36px var(--ml);
  display: flex; flex-direction: column; align-items: flex-start;
  position: relative; z-index: 2;
}
.hero__title {
  margin-top: 18px;
  font-size: clamp(48px, 16vw, 120px);
  line-height: 0.88;
}
.hero__title .l--round > span { color: var(--red); font-size: 1.24em; line-height: 0.86; }
.hero__lead { margin-top: 24px; max-width: 34ch; font-size: clamp(17px, 0.5vw + 15px, 20px); line-height: 1.5; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.hero__actions .btn { flex: 1 1 220px; }

.scroll-cue {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  min-height: 44px;
  transition: color 200ms var(--ease-out);
}
.scroll-cue__line { width: 1px; height: 36px; background: var(--rope); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--red);
}
@media (hover: hover) and (pointer: fine) { .scroll-cue:hover { color: var(--paper); } }

.hero__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--carbon);
}
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 28%;
}
.photo-cap {
  position: absolute; z-index: 2;
  right: 0; bottom: 0;
  background: var(--black); color: var(--paper);
  font-size: 13px; font-weight: 500;
  padding: 8px 12px;
}
.hero .photo-cap { bottom: 40px; right: var(--m); }

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 45fr 55fr;
    min-height: min(calc(100svh - 56px), 940px);
  }
  .hero__text { padding-top: calc(var(--hh) + 40px); padding-bottom: 72px; justify-content: center; }
  .hero__title { font-size: clamp(56px, 6.9vw, 104px); }
  .hero__actions { width: auto; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__media { aspect-ratio: auto; min-height: 100%; }
  /* degradado localizado: solo para que el menú se lea sobre la parte alta de la foto */
  .hero__media::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; z-index: 1;
    background: linear-gradient(to bottom, rgba(16,17,18,.72), rgba(16,17,18,0));
    pointer-events: none;
  }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 0; }
  .hero__title { font-size: 7.6vw; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   FRANJA DE IDENTIDAD (cinta de papel cruzando el cartel)
   ========================================================= */
.tape-wrap { overflow-x: clip; overflow-y: visible; position: relative; z-index: 5; margin-top: -30px; }
.tape {
  position: relative;
  background: var(--paper); color: var(--black);
  transform: rotate(-1.4deg);
  transform-origin: center;
  width: 104%; margin-left: -2%;
  display: flex; align-items: stretch;
}
.tape__viewport { flex: 1; overflow: hidden; }
.tape__track {
  display: flex; width: max-content;
  animation: tape 42s linear infinite;
}
.tape.is-paused .tape__track { animation-play-state: paused; }
.tape__group { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); padding-right: clamp(18px, 2.4vw, 36px); }
.tape__group li {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 50px); line-height: 1.12; padding-block: 10px;
  white-space: nowrap;
}
.tape__hex {
  width: 16px; height: 18px; flex: none; background: var(--red);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
@keyframes tape { to { transform: translateX(-50%); } }

.tape__toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: var(--black); color: var(--paper); border: 0; cursor: pointer;
  padding: 0 18px 0 16px; min-width: 44px; min-height: 44px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  margin-right: 2%;
  transition: background-color 200ms var(--ease-out);
}
.tape__toggle:active { background: var(--carbon-2); }
@media (hover: hover) and (pointer: fine) { .tape__toggle:hover { background: var(--carbon-2); } }
.tape__icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.tape.is-paused .tape__icon { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; }

@media (prefers-reduced-motion: reduce) {
  .tape__track { animation: none; width: auto; justify-content: center; }
  .tape__group[aria-hidden="true"] { display: none; }
  .tape__group { flex-wrap: wrap; justify-content: center; padding-inline: var(--m); }
  .tape__toggle { display: none; }
}
@media (max-width: 759px) {
  .tape-wrap { margin-top: -22px; }
  .tape__toggle span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tape__toggle { padding: 0 16px; }
}

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding-top: var(--sec); }
.schedule { padding-bottom: var(--sec); }

/* ---------- ROUND 01 · El gimnasio ---------- */
.gym { padding-top: calc(var(--sec) + 12px); }
.gym__panel {
  margin-left: var(--ml); margin-right: var(--mr);
  max-width: calc(1600px - 2 * var(--m));
  background: var(--carbon);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1690px) { .gym__panel { margin-inline: auto; } }
.gym__media { position: relative; overflow: hidden; }
.gym__frame { overflow: hidden; aspect-ratio: 4 / 5; }
.gym__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.gym__body { padding: 32px 20px 36px; }
.gym .photo-cap { left: 0; right: auto; }

.pillars { margin-top: 32px; border-top: 1px solid var(--rope); }
.pillar {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rope);
}
.pillar dt { font-size: clamp(26px, 2.3vw, 34px); line-height: 1; }
.pillar dd { color: var(--paper); max-width: 40ch; }

@media (min-width: 760px) {
  .gym__panel { grid-template-columns: 5fr 7fr; align-items: stretch; }
  .gym__media { display: flex; }
  .gym__frame { aspect-ratio: auto; flex: 1; min-height: 640px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), calc(100% - 32px) 100%, 0 100%); }
  .gym__body { padding: clamp(36px, 4.4vw, 64px) clamp(28px, 4.4vw, 72px); align-self: center; }
  .pillar { grid-template-columns: minmax(150px, 0.8fr) 1.4fr; gap: 24px; align-items: baseline; padding-block: 22px; }
}

/* ---------- ROUND 02 · Entrenamiento ---------- */
.steps__intro { display: grid; grid-template-columns: 1fr; gap: 20px; }
.steps__aside .btn { margin-top: 24px; }
@media (min-width: 900px) {
  .steps__intro { grid-template-columns: 6fr 5fr; gap: 6vw; align-items: end; }
  .steps__aside .lead { margin-top: 0; }
}

.strip {
  position: relative;
  margin-top: clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr;
}
.strip__step {
  position: relative;
  padding: 28px 22px 30px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0;
}
.strip__step--1 { background: var(--carbon); }
.strip__step--2 { background: var(--carbon-2); }
.strip__step--3 { background: var(--paper); color: var(--black); }
.strip__num { font-size: clamp(64px, 7vw, 112px); line-height: 0.85; color: var(--sand); position: relative; z-index: 2; }
.strip__step--3 .strip__num { color: var(--red); }
.strip__step .h3 { margin-top: 10px; max-width: 20ch; }
.strip__step p { max-width: 34ch; }
.strip__link { align-self: flex-start; margin-top: auto; padding-top: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.strip__rope { display: none; }

@media (min-width: 760px) {
  .strip { grid-template-columns: 1.25fr 1fr 1fr; }
  .strip__step { padding: 32px clamp(20px, 2.6vw, 40px) 32px; min-height: 380px; }
  .strip__rope {
    display: grid; gap: 5px;
    position: absolute; left: 0; right: 0; top: clamp(70px, 6.6vw, 104px);
    pointer-events: none; z-index: 1;
  }
  .strip__rope i { height: 1px; background: rgba(244, 241, 233, 0.3); transform-origin: left center; }
  .strip__rope i:nth-child(2) { background: var(--red); }
}

/* ---------- ROUND 03 · Galería ---------- */

.gallery__head { display: grid; gap: 16px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.gallery__note { color: var(--ink-soft); max-width: 34ch; font-size: 16px; }
@media (min-width: 900px) {
  .gallery__head { grid-template-columns: 1fr auto; }
  .gallery__note { text-align: right; }
}

.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mosaic__row { display: contents; }
.tile { position: relative; overflow: hidden; background: var(--carbon); }
.tile__btn {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  position: relative; overflow: hidden;
}
.tile__btn:focus-visible { outline-offset: -3px; }
.tile__btn { transition: transform 140ms var(--ease-out); }
.tile__btn:active { transform: scale(0.985); }
.menu-toggle { transition: transform 140ms var(--ease-out); }
.menu-toggle:active { transform: scale(0.94); }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tile__btn:hover img { transform: scale(1.035); }
}
.tile figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2; pointer-events: none;
  background: var(--black); color: var(--paper);
  font-size: 13px; font-weight: 500;
  padding: 7px 11px; display: flex; gap: 10px;
}
.tile figcaption span { color: var(--sand); font-weight: 600; font-variant-numeric: tabular-nums; }

.tile--a { grid-column: span 2; aspect-ratio: 4 / 5; }
.tile--a img { object-position: 50% 30%; }
.tile--b { grid-column: span 2; aspect-ratio: 906 / 566; }
.tile--c, .tile--d { aspect-ratio: 3 / 4; }
.tile--c img { object-position: 50% 25%; }
.tile--e { grid-column: span 2; aspect-ratio: 1 / 1; }
.tile--e img { object-position: 50% 30%; }

@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .tile--a { grid-column: 1 / 6; grid-row: 1 / 3; aspect-ratio: auto; }
  .tile--b { grid-column: 6 / 13; grid-row: 1; }
  .mosaic__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); grid-column: 6 / 13; grid-row: 2; }
  .tile--e { grid-column: auto; aspect-ratio: 3 / 4; }
}

/* ---------- ROUND 04 · Horarios ---------- */
.schedule { background: var(--black); }
.schedule__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.schedule__side .btn { margin-top: 28px; }
@media (min-width: 960px) {
  .schedule__grid { grid-template-columns: 5fr 7fr; gap: clamp(40px, 5vw, 88px); align-items: start; }
  .schedule__side { position: sticky; top: calc(var(--hh) + 32px); }
}

.now {
  margin-top: 28px; max-width: 440px;
  background: var(--carbon);
  padding: 16px 18px;
}
.now[hidden] { display: none; }
.now__label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sand); }
.now__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.now__msg { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.4; }

.sheet {
  background: var(--paper); color: var(--black);
  padding: clamp(22px, 3vw, 40px);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.sheet__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-bottom: 16px; border-bottom: 3px solid var(--black); }
.sheet__title { font-size: clamp(36px, 4vw, 60px); line-height: 0.95; }
.sheet__sub { font-size: 14px; font-weight: 600; color: #4a4741; }

.sched { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sched thead th {
  text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #4a4741; padding: 14px 12px 10px 0;
  border-bottom: 1px solid rgba(16,17,18,.25);
}
.sched tbody th, .sched td {
  text-align: left; padding: 18px 12px 18px 0; vertical-align: baseline;
  border-bottom: 1px solid rgba(16,17,18,.18);
  font-size: 17px;
}
.sched tbody th { font-weight: 700; }
.sched__time { font-family: var(--display); font-size: clamp(22px, 1.9vw, 30px) !important; letter-spacing: .01em; white-space: nowrap; }
.sched tbody tr { position: relative; transition: background-color 300ms var(--ease-out); }
.sched tbody tr.is-now, .sched tbody tr.is-next { background: rgba(245, 35, 45, 0.14); }
.sched tbody tr.is-now th, .sched tbody tr.is-next th { padding-left: 12px; }
.sched .row-flag {
  display: inline-block; margin-left: 8px; padding: 2px 7px;
  background: var(--black); color: var(--paper);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px;
}
.sched .row-flag--now { background: var(--red); color: var(--black); }

.stub {
  position: relative;
  margin-top: 10px;
  background: var(--carbon);
  padding: 22px clamp(22px, 3vw, 40px) 24px;
  display: grid; grid-template-columns: 1fr; gap: 6px 24px;
  border-top: 2px dashed rgba(244, 241, 233, 0.3);
}
.stub__title { font-size: clamp(22px, 1.9vw, 28px); line-height: 1; color: var(--sand); }
.stub__time { font-family: var(--display); font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.stub__meta { max-width: 52ch; }
@media (min-width: 760px) {
  .stub { grid-template-columns: auto 1fr; align-items: center; }
  .stub__title { grid-column: 1 / -1; }
}
.schedule__disclaimer { margin-top: 16px; font-size: 15px; color: var(--ink-soft); max-width: 60ch; }

/* Tabla → bloques en móvil, sin desplazamiento horizontal */
@media (max-width: 639px) {
  .sched thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sched, .sched tbody, .sched tr, .sched th, .sched td { display: block; width: 100%; }
  .sched tbody tr { padding: 16px 0; border-bottom: 1px solid rgba(16,17,18,.2); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .sched tbody th, .sched td { border: 0; padding: 0; font-size: 16px; }
  .sched tbody th { grid-column: 1 / -1; font-size: 15px; }
  .sched td.sched__time { grid-column: 1 / -1; font-size: 30px !important; white-space: normal; }
  .sched td[data-label]::before, .sched tbody th[data-label]::before {
    content: attr(data-label); display: block;
    font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5b574f;
    margin-bottom: 2px;
  }
  .sched td.sched__time::before { margin-bottom: 4px; }
  .sched tbody tr.is-now, .sched tbody tr.is-next { padding-inline: 12px; }
  .sched tbody tr.is-now th, .sched tbody tr.is-next th { padding-left: 0; }
}

/* ---------- ROUND 05 · Cierre ---------- */
.close {
  position: relative;
  background: var(--red); color: var(--black);
  padding-top: var(--sec);
  overflow: hidden;
}
.close__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.close__title {
  margin-top: 18px;
  font-size: clamp(40px, 12.4vw, 150px);
  line-height: 0.88;
}
.close__lead { margin-top: 22px; font-size: clamp(18px, 0.6vw + 15px, 22px); font-weight: 600; max-width: 30ch; }
.close__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.close__text { padding-bottom: 8px; }
.close__photo { position: relative; margin-bottom: -48px; justify-self: center; width: min(86%, 420px); }
.close__frame { transform: rotate(2deg); overflow: hidden; background: var(--black); padding: 10px; }
.close__frame img { overflow: hidden; }
.close__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }

@media (min-width: 960px) {
  .close { padding-top: calc(var(--sec) + 24px); }
  .close__grid { grid-template-columns: 7fr 5fr; gap: 4vw; align-items: end; }
  .close__title { font-size: clamp(64px, 7.6vw, 150px); }
  .close__text { padding-bottom: calc(var(--sec) + 24px); }
  .close__photo { width: 100%; max-width: 470px; justify-self: end; margin-bottom: -72px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--black); padding-top: clamp(80px, 8vw, 120px); padding-bottom: calc(28px + env(safe-area-inset-bottom)); position: relative; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.brand--footer img { height: 72px; width: auto; mix-blend-mode: lighten; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__nav a { font-size: 15px; font-weight: 500; display: inline-block; padding-block: 10px; }
.footer__handle-wrap { margin-top: clamp(28px, 4vw, 56px); }
.footer__handle {
  display: inline-flex; align-items: flex-start; gap: .08em;
  font-size: clamp(48px, 9.4vw, 128px); line-height: 0.9;
  text-transform: none; text-decoration: none; color: var(--paper);
  transition: color 240ms var(--ease-out);
  max-width: 100%;
}
.footer__arrow { width: .3em; height: .3em; margin-top: .14em; color: var(--red); stroke-width: 2.5; transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .footer__handle:hover { color: var(--red); }
  .footer__handle:hover .footer__arrow { transform: translate(6px, -6px); }
}
.footer__meta {
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: 18px; border-top: 1px solid var(--rope);
  display: grid; grid-template-columns: 1fr; gap: 6px;
  font-size: 14px; color: var(--ink-soft);
}
.footer__meta a { justify-self: start; padding-block: 8px; color: var(--paper); }
@media (min-width: 760px) {
  .footer__meta { grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; }
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(16, 17, 18, 0.97); color: var(--paper);
  overflow: hidden;
}
.lb::backdrop { background: rgba(16, 17, 18, 0.9); }
.lb[open] { display: grid; grid-template-rows: auto 1fr; animation: lb-in 260ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lb__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) var(--m) 10px;
}
.lb__count { font-family: var(--display); font-size: 26px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.lb__close {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 16px;
  background: var(--paper); color: var(--black); border: 0; cursor: pointer;
  font-size: 15px; font-weight: 700;
  transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .lb__close:hover { background: var(--red); } }
.lb__close:active { transform: scale(.97); }
.lb__x { width: 18px; height: 18px; }
.lb__stage {
  min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 0 var(--m) calc(20px + env(safe-area-inset-bottom));
  touch-action: pan-y;
}
.lb__img {
  max-width: 100%; max-height: calc(100dvh - 150px);
  width: auto; height: auto; object-fit: contain;
  transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out);
}
.lb__img.is-swapping { opacity: 0; transform: scale(0.985); }
.lb__cap { font-size: 15px; color: var(--ink-soft); text-align: center; }
.lb__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--black); color: var(--paper);
  border: 1px solid rgba(244,241,233,.3); cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.lb__nav .ico { width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) { .lb__nav:hover { background: var(--paper); color: var(--black); } }
.lb__nav:active { transform: scale(.94); }
.lb__nav--prev { left: var(--m); }
.lb__nav--next { right: var(--m); }
@media (max-width: 759px) {
  .lb__nav { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); translate: none; width: 52px; height: 52px; }
  .lb__img { max-height: calc(100dvh - 210px); }
  .lb__stage { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   ESTADO INICIAL DE ANIMACIÓN (solo con JS + movimiento permitido)
   ========================================================= */
.js-anim .hero__title .l > span { transform: translateY(108%); }
.js-anim [data-hero-fade] { opacity: 0; }
.js-anim .hero__media { clip-path: inset(100% 0 0 0); }

/* Sin JavaScript: la franja queda estática (no habría forma de pausarla) */
html:not(.js) .tape__track { animation: none; width: auto; justify-content: center; }
html:not(.js) .tape__group[aria-hidden="true"], html:not(.js) .tape__toggle { display: none; }
html:not(.js) .tape__group { flex-wrap: wrap; justify-content: center; padding-inline: var(--m); }

/* Pantallas muy estrechas (320–359px): la etiqueta del hero en una línea */
@media (max-width: 359px) {
  .tag { letter-spacing: 0.08em; font-size: 12px; }
}
