/* TALLERUM · de mediodía a medianoche.
   Cada capítulo es una hora del trabajo del taller, con su propio campo de color. */
@font-face {
  font-family: Cinzel;
  src: url(Cinzel-600.ttf) format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  /* El día */
  --paper: #f6f3ec;
  --ink: #141b29;
  --gold-soft: #e9ddc4;
  --gold: #cdae72;
  --gold-deep: #5a4724;
  --blue-ink: #1f3f7a;
  /* La noche */
  --glow: #a9c8ff;
  --glow-deep: #2a4c8c;
  --dusk: #16233b;
  --deep: #0c1526;
  --night: #070d18;
  --moon: #e9eef7;
  --ok: #7fd3a8;

  --ground: var(--paper);
  --accent: var(--gold);
  --font-display: Cinzel, 'Times New Roman', serif;
  --font-text: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Cinco tamaños */
  --s-display: clamp(52px, 8.4vw, 148px);
  --s-h2: clamp(38px, 5.4vw, 92px);
  --s-lead: clamp(20px, 1.55vw, 24px);
  --s-body: 18px;
  --s-small: 14px;

  --edge: clamp(20px, 2.6vw, 40px);
  --gap: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.is-smooth { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 var(--s-body) / 1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }
[data-tone='paper'] :focus-visible,
[data-tone='gold'] :focus-visible { outline-color: var(--blue-ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { left: 8px; }
::selection { background: var(--gold); color: var(--night); }

/* ── Botones: un solo trazo, esquinas rectas ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font: 600 17px/1 var(--font-text);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--blue-ink); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-soft); }
.link { font-weight: 600; }
.link:hover { text-decoration-thickness: 2px; }

/* ── La barra toma el color de la hora en curso ── */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
  padding: 0 var(--edge);
  background: var(--bar-bg, var(--paper));
  color: var(--bar-ink, var(--ink));
  transition: background-color 420ms var(--ease), color 420ms var(--ease);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 20px/1 var(--font-display);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand img { filter: var(--logo-filter, brightness(0) saturate(100%)); transition: filter 420ms var(--ease); }
.hour { font-size: var(--s-small); font-variant-numeric: tabular-nums; opacity: 0.85; white-space: nowrap; }
.hour #hour { font-weight: 700; }
.bar nav { display: flex; gap: 22px; margin-left: auto; font-size: 16px; }
.bar nav a { text-decoration: none; padding: 10px 0; }
.bar nav a:hover { text-decoration: underline; }
.bar .btn { min-height: 44px; padding: 0 18px; font-size: 15px; background: var(--bar-ink, var(--ink)); color: var(--bar-bg, var(--paper)); }

/* ── Capítulos ── */
main > section, .foot { position: relative; }

/* 12:00 · Mediodía: el umbral del templo, a pantalla completa */
.umbral { background: var(--night); color: var(--moon); }
.umbral .scene-stage { min-height: 100svh; overflow: hidden; }
.u-photo { position: absolute; inset: 0; transform-origin: 50% 46%; }
.u-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.u-night { position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; }
.u-copy {
  position: absolute;
  left: var(--edge);
  bottom: clamp(28px, 6vh, 64px);
  width: min(720px, calc(100% - 2 * var(--edge)));
  padding: clamp(24px, 3vw, 44px);
  background: rgba(7, 13, 24, 0.82);
}
.u-copy h1 { font-size: clamp(44px, 5.6vw, 96px); color: var(--paper); }
.u-copy .lead { margin-top: 20px; max-width: 44ch; font-size: var(--s-lead); line-height: 1.45; }
.u-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.u-act .link { color: var(--paper); }
.u-statement {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font: 600 var(--s-display)/0.95 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--paper);
  opacity: 0;
  pointer-events: none;
}
.umbral:not(.is-live) .u-statement { display: none; }

/* 13:00 · La convocatoria, entonces y hoy */
.entonces {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--edge);
  align-items: center;
  padding: 128px var(--edge);
  background: var(--gold);
  color: var(--ink);
  min-height: 100svh;
}
.e-pic { grid-column: 1 / 7; }
.e-crop { overflow: hidden; aspect-ratio: 1170 / 1400; max-height: 82svh; }
.e-crop img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 55%; }
.e-pic figcaption { margin-top: 10px; font-size: var(--s-small); }
.e-copy { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 22px; }
.entonces h2 { font-size: clamp(36px, 3.8vw, 64px); }
.e-quote { font: 600 clamp(22px, 1.9vw, 30px)/1.3 var(--font-display); letter-spacing: -0.01em; }
.e-now { font-size: var(--s-lead); font-weight: 600; }
.e-note { font-size: 16px; }

/* Interfaz de la app (fragmentos reales) */
.ui {
  font: 400 15px/1.4 var(--font-text);
  color: var(--moon);
  background: var(--deep);
  border-radius: 14px;
  padding: 18px;
}
.ui strong { display: block; font-size: 17px; font-weight: 600; }
.ui .muted { color: #a9b5ca; }
.ui .meta { display: block; color: var(--gold); font-size: 14px; }
.card-ui .row { display: flex; gap: 14px; align-items: center; }
.card-ui .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.card-ui .date {
  display: grid; place-items: center; width: 58px; height: 62px;
  background: var(--night); border-radius: 10px; line-height: 1;
}
.card-ui .date b { font-size: 24px; }
.card-ui .date span { font-size: 13px; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.chip {
  min-height: 44px; padding: 0 16px;
  font: 500 15px/1 var(--font-text);
  color: var(--moon); background: transparent;
  border: 1.5px solid #3a4d73; border-radius: 10px;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.chip:hover { border-color: var(--glow); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'] { background: var(--glow); border-color: var(--glow); color: var(--night); }

/* 13:00 a 18:00 · La tenida: cuatro campos, una misma tarjeta */
.tenida { background: var(--gold); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 100svh; background: var(--ink) url(found/pavimento.jpg) 50% 60% / cover no-repeat; }
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 96px 28px 40px;
  min-height: 100svh;
}
.fa { background: rgba(233, 221, 196, 0.86); color: var(--ink); }
.fb { background: rgba(205, 174, 114, 0.82); color: var(--ink); }
.fc { background: rgba(90, 71, 36, 0.84); color: var(--gold-soft); }
.fd { background: rgba(31, 63, 122, 0.84); color: var(--paper); }
.field h2 { font-size: clamp(34px, 3.4vw, 56px); position: absolute; top: 96px; left: 28px; right: 28px; }
.ticket-ui {
  position: absolute;
  top: 40%;
  left: 50%;
  width: min(300px, 86%);
  translate: -50% 0;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 150ms var(--ease);
}
.field:hover > .ticket-ui { transform: translateY(-6px); }
.ticket-ui .state {
  align-self: flex-start; margin-top: 10px; padding: 4px 10px;
  background: var(--gold); color: var(--night); border-radius: 6px; font-weight: 600; font-size: 14px;
}
.ticket-ui.s3 .state, .ticket-ui.s4 .state, .traveller .l3 .state, .traveller .l4 .state { background: var(--ok); }
.clause {
  margin-top: auto;
  font: 600 clamp(24px, 2.1vw, 34px)/1.12 var(--font-display);
  letter-spacing: -0.01em;
  max-width: 11ch;
}
.traveller { display: none; }

/* 19:00 · El taller: tablero de acercamientos */
.taller { background: var(--night); padding: 96px var(--edge) var(--edge); }
.board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 104px;
  gap: var(--gap);
}
.tile { position: relative; overflow: hidden; padding: 20px; }
.tile .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 2px; }
.tile .cap b { font-size: var(--s-body); font-weight: 600; }
.tile .cap span { font-size: 15px; line-height: 1.35; }
.t-head { grid-column: 1 / 7; grid-row: 1 / 3; background: var(--glow); color: var(--ink); }
.t-head h2 { font-size: clamp(40px, 4.6vw, 76px); }
.t-head p { margin-top: 14px; max-width: 36ch; font-size: var(--s-body); }
.t-ins { grid-column: 7 / 10; grid-row: 1 / 5; }
.t-tes { grid-column: 10 / 13; grid-row: 1 / 5; background: var(--gold); color: var(--ink); }
.t-bib { grid-column: 1 / 7; grid-row: 3 / 5; background: var(--paper); color: var(--ink); }
.t-esc { grid-column: 1 / 7; grid-row: 5 / 7; background: var(--blue-ink); color: var(--paper); }
.t-chat { grid-column: 7 / 10; grid-row: 5 / 7; background: var(--dusk); color: var(--moon); }
.t-aga { grid-column: 10 / 13; grid-row: 5 / 7; background: var(--gold-soft); color: var(--ink); }
.t-ele { grid-column: 1 / 4; grid-row: 7 / 9; background: var(--glow-deep); color: var(--paper); }
.t-act { grid-column: 4 / 7; grid-row: 7 / 9; background: var(--deep); color: var(--moon); }
.t-tem { grid-column: 7 / 13; grid-row: 7 / 9; }
.pic { padding: 0; background: var(--ink); color: var(--paper); }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.pic:hover img { transform: scale(1.04); }
.pic .cap { padding: 14px 16px; left: 0; right: 0; bottom: 0; background: rgba(7, 13, 24, 0.86); }
.t-ins img { object-position: 50% 30%; }
.t-tem img { object-position: 50% 42%; }
.zoom { position: absolute; font-family: var(--font-text); line-height: 1; }
.fig { display: block; font: 600 1em/0.9 var(--font-display); letter-spacing: -0.03em; }
.fig-sub { display: block; font-size: 0.16em; margin-top: 0.3em; font-weight: 500; }
.t-tes .zoom { font-size: clamp(64px, 6.4vw, 104px); top: 28px; left: 20px; white-space: nowrap; }
.t-aga .zoom { font-size: clamp(110px, 10vw, 160px); top: 8px; right: 18px; text-align: right; }
.pill {
  display: inline-block; padding: 0.3em 0.7em; border-radius: 0.4em;
  background: var(--ink); color: var(--gold); font-weight: 600; white-space: nowrap;
}
.t-bib .zoom { font-size: clamp(44px, 5vw, 80px); top: 24px; right: -40px; }
.balls { top: -40px; right: 6%; display: flex; gap: 0.12em; font-size: clamp(150px, 15vw, 230px); }
.ball { display: block; width: 1em; height: 1em; border-radius: 50%; }
.ball.white { background: var(--paper); }
.ball.black { background: var(--night); }
.bubble {
  display: inline-block; padding: 0.55em 0.8em; border-radius: 0.7em 0.7em 0.7em 0.15em;
  background: var(--glow-deep); color: var(--moon); white-space: nowrap; font-weight: 500;
}
.t-chat .zoom { font-size: clamp(22px, 1.9vw, 30px); top: 24px; left: 20px; right: 20px; }
.t-chat .bubble { white-space: normal; }
.stamp {
  display: inline-block; padding: 0.28em 0.6em; border-radius: 0.3em;
  background: var(--gold); color: var(--night); font-weight: 700; white-space: nowrap;
}
.stamp.ok { background: var(--ok); }
.t-ele .zoom, .t-act .zoom { font-size: clamp(40px, 3.8vw, 60px); top: 22px; left: 20px; }

/* 20:00 · A cubierto: las puertas y el interruptor */
.cubierto {
  --cub-bg: var(--glow);
  --cub-ink: var(--ink);
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--edge);
  background: var(--cub-bg);
  color: var(--cub-ink);
  transition: background-color 500ms var(--ease), color 500ms var(--ease);
}
.cubierto.open { --cub-bg: var(--gold-deep); --cub-ink: var(--gold-soft); }
.cub-text { grid-column: 1 / 7; padding: 128px 0 72px var(--edge); display: flex; flex-direction: column; gap: 24px; }
.cubierto h2 { font-size: clamp(40px, 4.6vw, 76px); }
.cub-text > p { max-width: 40ch; font-size: var(--s-lead); line-height: 1.45; }
.facts { display: grid; gap: 12px; max-width: 46ch; margin-top: auto; }
.facts b { font-weight: 700; }
.cub-pic { grid-column: 7 / 13; position: relative; overflow: hidden; }
.cub-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: filter 600ms var(--ease), transform 900ms var(--ease); }
.cubierto.open .cub-pic img { filter: grayscale(1) brightness(0.55); transform: scale(1.06); }
.giant { font-size: clamp(96px, 10vw, 168px); }
.switch { display: block; font-size: 1em; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; }
.switch .track { display: block; width: 2.1em; height: 1.1em; border-radius: 1em; background: var(--ink); position: relative; transition: background-color 400ms var(--ease); }
.switch .thumb {
  position: absolute; top: 0.1em; left: 0.1em; width: 0.9em; height: 0.9em; border-radius: 50%;
  background: var(--glow); transform: translateX(1em);
  transition: transform 420ms cubic-bezier(0.5, 1.6, 0.4, 1), background-color 400ms var(--ease);
}
.switch[aria-checked='false'] .track { background: var(--gold); }
.switch[aria-checked='false'] .thumb { transform: translateX(0); background: var(--gold-deep); }
.switch:focus-visible { outline: none; }
.switch:focus-visible .track { outline: 6px solid currentColor; outline-offset: 8px; }
.switch-label { font: 600 clamp(18px, 1.5vw, 22px)/1.2 var(--font-text); margin-bottom: 14px; }

/* 21:00 · Cadena de Unión: de oriente a oriente, de lado */
.oriente { background: var(--night); color: var(--paper); }
.track { display: flex; flex-direction: column; }
.panel { position: relative; min-height: 88svh; overflow: hidden; display: flex; align-items: flex-end; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-copy {
  position: relative;
  margin: 0 var(--edge) clamp(40px, 8vh, 96px);
  padding: clamp(24px, 2.6vw, 40px);
  max-width: min(900px, calc(100% - 2 * var(--edge)));
  background: rgba(7, 13, 24, 0.8);
}
.p-copy h2 { font-size: var(--s-h2); }
.p-copy h3 { font: 600 clamp(64px, 11vw, 196px)/0.88 var(--font-display); letter-spacing: -0.03em; color: var(--gold); }
.p-copy p { margin-top: 16px; max-width: 42ch; font-size: var(--s-lead); line-height: 1.45; color: var(--moon); }
.place {
  position: absolute;
  right: var(--edge);
  bottom: clamp(40px, 8vh, 96px);
  padding: 8px 12px;
  background: rgba(7, 13, 24, 0.8);
  font-size: var(--s-small);
  color: var(--moon);
}
html.js .oriente.is-live .track { flex-direction: row; width: 500vw; height: 100svh; }
html.js .oriente.is-live .panel { width: 100vw; height: 100svh; min-height: 0; flex: none; }

/* 22:00 · Planes: el boleto */
.planes { background: var(--deep); color: var(--moon); padding: 120px var(--edge); }
.planes h2 { font-size: var(--s-h2); max-width: 16ch; }
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 3fr;
  width: min(100%, 1160px);
  margin: 64px auto 0;
  color: var(--ink);
}
.t-main { background: var(--gold); padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.t-stub { background: var(--paper); padding: 40px 28px; display: flex; flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
.ticket::before, .ticket::after {
  content: '';
  position: absolute;
  left: 70%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  background: var(--deep);
}
.ticket::before { top: -14px; }
.ticket::after { bottom: -14px; }
.t-stub { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='18'%3E%3Ccircle cx='3' cy='9' r='3' fill='%230c1526'/%3E%3C/svg%3E"); background-size: 6px 18px; background-repeat: repeat-y; background-position: -3px 0; }
.t-title { font: 600 clamp(32px, 3.6vw, 56px)/1 var(--font-display); letter-spacing: -0.02em; }
.t-calc label { display: block; font-size: var(--s-body); font-weight: 600; }
.t-calc output { font-variant-numeric: tabular-nums; font-size: 1.4em; margin-left: 6px; }
.t-calc input[type='range'] { width: 100%; margin: 14px 0 18px; accent-color: var(--ink); height: 32px; }
.seg { display: inline-flex; background: rgba(20, 27, 41, 0.12); padding: 4px; gap: 4px; }
.seg button {
  min-height: 44px; padding: 0 22px; border: 0; background: transparent; color: var(--ink);
  font: 600 16px/1 var(--font-text); cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.t-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; font-size: 16px; }
.t-price { display: block; font: 600 clamp(48px, 5.4vw, 88px)/1 var(--font-display); letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.t-go { margin-top: auto; min-height: 56px; }
.t-note { font-size: var(--s-small); line-height: 1.4; }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 40px; font-size: 16px; color: #c3cde0; }
.tiers li.on { color: var(--gold); }
.tiers b { color: var(--moon); }
.tiers li.on b { color: var(--gold); }
.compare { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--edge); margin-top: 96px; align-items: start; }
.plans { grid-column: 1 / 8; border-collapse: collapse; font-size: 16px; }
.plans caption { text-align: left; font: 600 24px/1.2 var(--font-display); padding-bottom: 16px; }
.plans th, .plans td { padding: 14px 12px 14px 0; text-align: left; border-bottom: 1px solid #26375a; }
.plans thead th { color: var(--gold); font-weight: 600; }
.plans tbody th { font-weight: 400; }
.founders { grid-column: 9 / 13; background: var(--blue-ink); color: var(--paper); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.founders h3 { font: 600 28px/1.1 var(--font-display); }

/* 23:00 · Antes de decidir: una banda por pregunta */
.band {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--edge);
  padding: 56px var(--edge);
  background: var(--night);
  color: var(--moon);
}
.band:nth-child(odd):not(.head) { background: #111c30; }
.band h3 { grid-column: 1 / 6; font: 600 clamp(24px, 2vw, 30px)/1.2 var(--font-text); }
.band p { grid-column: 7 / 13; font-size: var(--s-body); line-height: 1.55; max-width: 60ch; }
.band.head { background: var(--glow); color: var(--ink); min-height: 40svh; align-items: end; padding-top: 120px; }
.band.head h2 { grid-column: 1 / 13; font-size: var(--s-h2); }

/* 23:30 · Tu prueba: tira de imágenes y barra de celdas */
.prueba { background: var(--gold); color: var(--ink); padding: 48px 0 112px; overflow: hidden; }
.strip-photos { overflow: hidden; }
.reel { display: flex; gap: 8px; width: max-content; animation: reel 80s linear infinite; }
@keyframes reel { to { transform: translateX(-50%); } }
.strip-photos:hover .reel { animation-play-state: paused; }
.reel img { height: 150px; width: auto; object-fit: cover; }
.ask { padding: 72px var(--edge) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--edge); }
.ask h2 { grid-column: 1 / 9; font-size: var(--s-h2); }
.steps { grid-column: 1 / 8; margin-top: 20px; font-size: var(--s-lead); line-height: 1.45; }
.ask-pic { grid-column: 10 / 13; grid-row: 1 / 3; align-self: start; }
.ask-pic img { width: 100%; height: 260px; object-fit: cover; object-position: 50% 20%; }
#ask { grid-column: 1 / 13; margin-top: 44px; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 14px 20px;
  background: var(--gold-soft);
  transition: background-color 150ms var(--ease);
}
.cell:focus-within { background: var(--paper); }
.cell label { font-size: 15px; font-weight: 600; }
.cell input, .cell textarea {
  width: 100%;
  border: 0;
  background: transparent;
  font: 400 20px/1.3 var(--font-text);
  color: var(--ink);
  padding: 4px 0;
  outline: none;
  resize: vertical;
}
.cell:focus-within { outline: 3px solid var(--ink); outline-offset: -3px; }
.cell.wide { grid-column: 1 / 3; }
.send {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: 600 20px/1 var(--font-text);
  align-items: center;
  cursor: pointer;
}
.send:hover { background: var(--blue-ink); }
.send:disabled { opacity: 0.6; cursor: progress; }
.trap { position: absolute; left: -9999px; }
.msg { min-height: 28px; margin-top: 14px; font-weight: 600; }
.msg.ok { color: #14532d; }
.msg.bad { color: #7f1d1d; }
.small { font-size: var(--s-small); line-height: 1.45; }

/* 24:00 · Medianoche */
.foot { background: var(--night); color: var(--moon); padding: 0 var(--edge) 48px; }
.midnight { margin: 0 calc(var(--edge) * -1); position: relative; }
.midnight img { width: 100%; height: clamp(320px, 56vw, 760px); object-fit: cover; object-position: 50% 60%; filter: brightness(0.62); }
.midnight figcaption { position: absolute; left: var(--edge); bottom: 24px; font: 600 var(--s-lead)/1.2 var(--font-display); background: rgba(7, 13, 24, 0.72); padding: 10px 14px; }
.mark-wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--edge); align-items: end; padding: 96px 0 56px; }
.mark { grid-column: 1 / 5; width: 100%; height: auto; fill: none; stroke: var(--glow); stroke-width: 58; stroke-linecap: round; stroke-linejoin: round; }
.mark .base { stroke-width: 64; }
.name { grid-column: 5 / 13; font: 600 clamp(56px, 10.4vw, 172px)/0.85 var(--font-display); letter-spacing: -0.02em; color: var(--glow); text-align: right; }
.foot-links { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px var(--edge); }
.foot-links nav { grid-column: 1 / 7; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; }
.foot-links nav a { text-decoration: none; padding: 8px 0; }
.foot-links nav a:hover { color: var(--gold); }
.foot-links .small { grid-column: 7 / 13; color: #c3cde0; }

/* ── Entradas (sólo con script) ── */
html.js .rise { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .rise.in { opacity: 1; transform: none; }

/* ── La tenida en vivo: una tarjeta que cruza los cuatro campos ── */
html.js .tenida.is-live .field > .ticket-ui { opacity: 0; }
html.js .tenida.is-live .traveller {
  display: block;
  position: absolute;
  top: 40%;
  left: 12.5vw;
  width: 300px;
  margin-left: -150px;
  font-size: 17px;
  z-index: 2;
}
.traveller .ticket-ui { position: relative; top: auto; left: auto; translate: none; width: 100%; min-height: 168px; font-size: 16px; padding: 22px; }
.traveller .ticket-ui strong { font-size: 20px; }
.traveller .layer { display: flex; flex-direction: column; gap: 4px; }
.traveller .layer + .layer { position: absolute; inset: 22px; }
.traveller .l2, .traveller .l3, .traveller .l4 { opacity: 0; }
.tenida.is-live .field { min-height: 100svh; }

/* ── Teléfono ── */
@media (max-width: 1000px) {
  .e-pic { grid-column: 1 / 7; }
  .e-copy { grid-column: 7 / 13; }
  .bar nav { display: none; }
  .bar { gap: 16px; }
  .hour { margin-left: auto; }
  .board { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 96px; }
  .t-head { grid-column: 1 / 7; grid-row: auto / span 2; }
  .t-ins { grid-column: 1 / 4; grid-row: auto / span 4; }
  .t-tes { grid-column: 4 / 7; grid-row: auto / span 4; }
  .t-bib, .t-esc, .t-tem { grid-column: 1 / 7; grid-row: auto / span 2; }
  .t-chat, .t-aga, .t-ele, .t-act { grid-column: auto / span 3; grid-row: auto / span 2; }
  .plans, .founders { grid-column: 1 / 13; }
  .founders { margin-top: 32px; }
}
@media (max-width: 767px) {
  .p-copy { margin: 0 12px 24px; }
  .p-copy h3 { font-size: 12.5vw; }
  .place { top: 76px; bottom: auto; right: 12px; }
  .u-copy { left: 12px; right: 12px; width: auto; bottom: 12px; padding: 22px 20px; }
  .u-copy h1 { font-size: 11vw; }
  .u-copy .lead { font-size: 17px; }
  .u-act .btn { width: 100%; }
  .entonces { padding: 88px 20px; }
  .e-pic, .e-copy { grid-column: 1 / 13; }
  .e-copy { order: -1; margin-bottom: 32px; }
  .cubierto { grid-template-columns: 1fr; }
  .cub-text { grid-column: 1; padding: 88px 20px 40px; }
  .cub-pic { grid-column: 1; height: 60svh; margin: 0; }
  .giant { font-size: 30vw; }
  :root { --s-body: 17px; }
  .bar { height: 60px; }
  .bar .btn { display: none; }
  .strip { grid-template-columns: 1fr; }
  .field { min-height: 64svh; padding: 28px 20px 40px; }
  .field h2 { position: static; font-size: 32px; margin-bottom: 16px; order: -2; }
  .clause { order: -1; margin: 0 0 32px; font-size: 26px; max-width: none; }
  .ticket-ui { position: relative; top: auto; left: auto; translate: none; }
  .taller { padding: 72px 6px 6px; }
  .board { gap: 6px; grid-template-columns: 1fr 1fr; grid-auto-rows: 28vw; }
  .t-head, .t-bib, .t-esc, .t-tem { grid-column: 1 / 3; grid-row: auto / span 2; }
  .t-ins, .t-tes { grid-column: auto / span 1; grid-row: auto / span 3; }
  .t-chat, .t-aga, .t-ele, .t-act { grid-column: auto / span 1; grid-row: auto / span 2; }
  .t-head h2 { font-size: 9vw; }
  .tile .cap b { font-size: 16px; }
  .tile .cap span { font-size: 14px; }
  .t-tes .zoom { font-size: 11vw; top: 20px; left: 14px; }
  .t-aga .zoom { font-size: 24vw; }
  .t-chat .zoom { font-size: 20px; }
  .t-ele .zoom, .t-act .zoom { font-size: 26px; }
  .balls { font-size: 34vw; }
  .t-bib .zoom { font-size: 34px; }
  .planes { padding: 88px 20px; }
  .ticket { grid-template-columns: 1fr; margin-top: 40px; }
  .ticket::before, .ticket::after { left: auto; top: auto; margin: 0; }
  .ticket::before { left: -14px; bottom: calc(var(--stub-h, 290px) - 14px); }
  .ticket::after { right: -14px; bottom: calc(var(--stub-h, 290px) - 14px); }
  .t-main { padding: 28px 20px; }
  .t-title { font-size: 9vw; }
  .t-lines { grid-template-columns: 1fr; }
  .t-price { font-size: 16vw; }
  .t-stub { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='6'%3E%3Ccircle cx='9' cy='3' r='3' fill='%230c1526'/%3E%3C/svg%3E"); background-size: 18px 6px; background-repeat: repeat-x; background-position: 0 -3px; }
  .band { padding: 32px 20px; }
  .band h3, .band p { grid-column: 1 / 13; }
  .band p { margin-top: 12px; font-size: 17px; }
  .band.head { min-height: 30svh; }
  .band.head h2 { font-size: 13vw; }
  .reel img { height: 110px; }
  .ask { padding-top: 48px; }
  .ask h2, .steps { grid-column: 1 / 13; }
  .ask-pic { display: none; }
  .ask h2 { font-size: 9vw; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .cell.wide { grid-column: auto; }
  .send { min-height: 60px; }
  .mark-wrap { padding: 64px 0 40px; }
  .mark { grid-column: 1 / 6; }
  .name { grid-column: 6 / 13; font-size: 11vw; }
  .foot-links nav, .foot-links .small { grid-column: 1 / 13; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rise { opacity: 1; transform: none; transition: none; }
  .btn, .chip, .pic img, .switch .thumb, .cub-pic img { transition: none; }
  .reel { animation: none; }
}
