/* =========================================================
   Ceuta GameFest · Entradas, premio del sorteo, Mis entradas,
   presentaciones y páginas legales. Va siempre después de web.css
   y usa sus mismos colores, tipografías y piezas (barra, funda, campos).
   ========================================================= */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero__title,
.premio-sec h2,
.tickets h2,
.ticket__name,
.ticket__amount,
.ticket__add,
.asis legend,
.checkout__total strong,
.btn-ink,
.mt h2,
.mt__tipo,
.pres__nombre,
.premio__count strong,
.puerta-res h2 {
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
}

/* ---------- Botón negro reutilizable ---------- */
.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.btn-ink:hover { background: var(--white); color: var(--ink); }
.btn-ink--red { background: var(--red); }
.btn-ink--red:hover { background: var(--ink); color: var(--white); }
.btn-ink[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Portada: botón secundario del cartel ---------- */
.poster__cta .cta--alt { background: var(--white); color: var(--ink); }
.poster__cta .cta--alt:hover { background: var(--ink); color: var(--white); }

/* ---------- Cabecera de páginas interiores ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.hero .mono { margin: 0 0 12px; }
.hero__title {
  font-size: clamp(88px, 19vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero__title span { color: var(--ink); }
.hero__lead { margin: 22px 0 0; max-width: 34ch; font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; line-height: 1.3; }
.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(20px, 3vw, 36px);
  padding-top: clamp(18px, 2.4vw, 28px);
  border-top: 2px solid var(--ink);
}
.hero__row .hero__lead { margin: 0; }

/* Cuenta atrás del early bird */
.eb {
  display: grid;
  gap: 10px;
  padding: 16px 20px 18px;
  background: var(--ink);
  color: var(--white);
}
.eb .mono { margin: 0; color: rgba(255, 255, 255, 0.7); }
.eb .mono strong { color: var(--red); font-weight: 600; }
.eb__clock { display: flex; gap: 8px; }
.eb__clock span {
  display: grid;
  justify-items: center;
  min-width: 58px;
  padding: 6px 4px 4px;
  background: rgba(255, 255, 255, 0.08);
  font: 600 32px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.eb__clock small { margin-top: 4px; font: 500 9.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }

/* ---------- Premio del sorteo ---------- */
.premio-sec { background: var(--ink); color: var(--white); padding: clamp(56px, 8vw, 110px) 0; }
.premio-sec__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 18px 56px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.premio-sec__head .mono { margin: 0 0 14px; color: var(--red); }
.premio-sec h2 { font-size: clamp(52px, 8vw, 120px); line-height: 0.84; }
.premio-sec__head p:not(.mono) { margin: 0; max-width: 32em; color: rgba(255, 255, 255, 0.72); font-size: 17px; font-weight: 500; }

.premio { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px 32px; }
.premio__count { display: flex; align-items: center; gap: 12px; }
.premio__count strong { font-size: clamp(64px, 8vw, 104px); line-height: 0.8; color: var(--red); font-variant-numeric: tabular-nums; }
.premio__count .mono { color: rgba(255, 255, 255, 0.7); line-height: 1.3; }
.premio__bar {
  position: relative;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.premio__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--red-dark) 10px 20px);
  transition: width 1.2s var(--ease);
}
.premio__pin {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.premio__pin:first-of-type { margin-left: -2px; }
.premio__pin.is-on { background: var(--white); box-shadow: 0 0 0 2px var(--red); }
.premio__hitos {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.premio__hito {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.55);
}
.premio__hito.is-on { border-color: var(--red); background: var(--red); color: var(--ink); }
.premio__que { font-size: 20px; font-stretch: 75%; font-weight: 800; line-height: 1.15; color: var(--white); }
.premio__hito:not(.is-on) .premio__que { color: rgba(255, 255, 255, 0.55); }
.premio__st { font-size: 11px; }
.premio__hito.is-on .premio__st { color: var(--white); }
.premio.is-sin-contador { grid-template-columns: minmax(0, 1fr); }
.premio__msg { grid-column: 1 / -1; margin: 0; font-size: clamp(18px, 2vw, 24px); font-weight: 600; }
.premio__msg strong { color: var(--red); }
.premio__cta { margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Tipos de entrada ---------- */
.tickets { background: var(--paper); padding: clamp(56px, 8vw, 110px) 0; }
.tickets__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.tickets h2 { font-size: clamp(52px, 8vw, 120px); line-height: 0.84; }
.tickets__head p { margin: 0; max-width: 30em; color: var(--muted); font-size: 16px; font-weight: 500; }
.tickets__grid { --cols: 4; container-type: inline-size; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); align-items: stretch; }

.ticket {
  --tc: var(--ink);          /* texto */
  --tb: var(--white);        /* fondo */
  --ta: var(--red);          /* acento */
  --tl: rgba(10, 10, 10, 0.14); /* líneas finas */
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 0;
  background: var(--tb);
  color: var(--tc);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ticket:hover { transform: translate(-3px, -5px); box-shadow: 9px 11px 0 var(--ink); }
.ticket--pase { --tb: var(--paper); }
.ticket--coleccionista { --tb: var(--red-dark); --tc: var(--white); --ta: var(--ink); --tl: rgba(255, 255, 255, 0.3); }
.ticket--pro { --tb: var(--ink); --tc: var(--white); --ta: var(--red); --tl: rgba(255, 255, 255, 0.18); box-shadow: 6px 6px 0 var(--red); }
.ticket--pro:hover { box-shadow: 9px 11px 0 var(--red); }

/* ---------- Entrada gratuita: banda informativa encima de las de pago ----------
   No se compra ni se añade al pedido; solo avisa de que entrar es libre. */
.pase-libre {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 0;
  margin-bottom: clamp(22px, 2.6vw, 34px);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
}
.pase-libre > * { padding: 22px clamp(20px, 2.4vw, 32px); }
.pase-libre__tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pase-libre__name { margin: 12px 0 0; font-size: clamp(32px, 3.4vw, 46px); line-height: 0.86; font-stretch: 62%; font-weight: 900; text-transform: uppercase; }
.pase-libre__sub { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.pase-libre__list {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 8px;
  align-self: stretch;
  align-content: center;
  border-left: 2px dashed rgba(10, 10, 10, 0.14);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
}
.pase-libre__list li { position: relative; padding-left: 20px; }
.pase-libre__list li::before { content: ""; position: absolute; left: 1px; top: 0.45em; width: 7px; height: 7px; transform: rotate(45deg); border: 1.5px solid var(--ink); }
/* Talón con línea de corte y muescas, como el de las tarjetas */
.pase-libre__stub {
  position: relative;
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  min-width: 220px;
  border-left: 2px dashed rgba(10, 10, 10, 0.25);
}
.pase-libre__stub::before,
.pase-libre__stub::after {
  content: "";
  position: absolute;
  left: -13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.pase-libre__stub::before { top: -13px; clip-path: inset(50% 0 0 0); }
.pase-libre__stub::after { bottom: -13px; clip-path: inset(0 0 50% 0); }
.pase-libre__amount { font-size: clamp(52px, 5vw, 72px); line-height: 0.78; letter-spacing: -0.02em; font-stretch: 62%; font-weight: 900; }
.pase-libre__link {
  font: 600 12px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
.pase-libre__link:hover { color: var(--red); }
@media (max-width: 900px) {
  .pase-libre { grid-template-columns: minmax(0, 1fr) auto; }
  .pase-libre__list { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 2px dashed rgba(10, 10, 10, 0.14); }
  .pase-libre__stub { min-width: 0; }
  .pase-libre__stub::after { display: none; }
}
@media (max-width: 640px) {
  .pase-libre { grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; }
  .pase-libre > * { padding: 16px 18px; }
  .pase-libre__id { padding-bottom: 12px; }
  .pase-libre__sub { font-size: 13.5px; }
  .pase-libre__list { gap: 6px; padding-top: 14px; padding-bottom: 14px; }
  .pase-libre__amount { font-size: 40px !important; }
  .pase-libre__link { font-size: 11px; }
  .pase-libre__list { grid-row: auto; }
  .pase-libre__stub {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-left: 0;
    border-top: 2px dashed rgba(10, 10, 10, 0.25);
  }
  .pase-libre__stub::before { top: -12px; left: -13px; clip-path: inset(0 0 0 50%); }
  .pase-libre__stub::after { display: block; top: -12px; bottom: auto; left: auto; right: -13px; clip-path: inset(0 50% 0 0); }
  .pase-libre__link { text-align: right; }
  .pase-libre__amount { font-size: 48px; }
  .pase-libre__name { font-size: 34px; }
  .pase-libre__list { font-size: 13.5px; }
}

/* Pro: brillo holográfico, como una carta foil */
.ticket--pro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.10) 38%, rgba(244, 47, 55, 0.22) 46%, rgba(120, 200, 255, 0.16) 54%, rgba(255, 230, 120, 0.14) 62%, transparent 78%);
  background-size: 260% 100%;
  background-position: 100% 0;
  transition: background-position 1.1s var(--ease);
  pointer-events: none;
}
.ticket--pro:hover::before { background-position: 0 0; }

/* Fila de arriba: rareza (rombos) y unidades que quedan */
.ticket__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.ticket__rareza { display: inline-flex; gap: 5px; }
.ticket__rareza i { width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid currentColor; opacity: 0.35; }
.ticket__rareza i.is-on { background: var(--ta); border-color: var(--ta); opacity: 1; }
.ticket--coleccionista .ticket__rareza i.is-on { background: var(--white); border-color: var(--white); }
.ticket__badge {
  flex: none;
  padding: 4px 8px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticket__badge--low { background: var(--ta); border-color: var(--ta); color: var(--white); }
.ticket--coleccionista .ticket__badge--low { background: var(--ink); border-color: var(--ink); }

.ticket__name { margin: 18px 0 0; font-size: min(42px, calc(12.5cqi / var(--cols))); line-height: 0.86; align-self: end; }
.ticket__meta { margin: 10px 0 0; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; white-space: nowrap; }

.ticket__price { margin: 20px 0 0; display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.ticket__price .ticket__amount { font-size: min(84px, calc(28cqi / var(--cols))); line-height: 0.78; letter-spacing: -0.02em; }
.ticket__was { display: grid; gap: 4px; padding-bottom: 2px; }
.ticket__was s { font: 600 20px var(--mono); opacity: 0.55; text-decoration-thickness: 2px; }
.ticket__was em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--ta);
  color: var(--white);
  border-radius: 4px;
  white-space: nowrap;
}

/* Línea de corte con muescas de troquel */
.ticket__cut { position: relative; margin: 24px -24px 0; border-top: 2px dashed var(--tl); }
.ticket__cut::before,
.ticket__cut::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.ticket__cut::before { left: -13px; clip-path: inset(0 0 0 50%); }
.ticket__cut::after { right: -13px; clip-path: inset(0 50% 0 0); }

.ticket__list { flex: 1; list-style: none; margin: 0; padding: 22px 0 24px; display: grid; align-content: start; gap: 11px; font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.ticket__list li { position: relative; padding-left: 20px; }
.ticket__list li::before { content: ""; position: absolute; left: 1px; top: 0.5em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--ta); }
.ticket--coleccionista .ticket__list li::before { background: var(--white); }

.ticket__stub { margin: 0 -24px; padding: 18px 24px 22px; border-top: 2px solid var(--tl); }
.ticket__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.ticket__add:hover:not([disabled]):not([aria-disabled]) { background: var(--red); border-color: var(--red); }
.ticket--coleccionista .ticket__add:hover:not([disabled]):not([aria-disabled]) { background: var(--white); border-color: var(--white); color: var(--ink); }
.ticket--pro .ticket__add { background: var(--red); border-color: var(--red); }
.ticket--pro .ticket__add:hover:not([disabled]):not([aria-disabled]) { background: var(--white); border-color: var(--white); color: var(--ink); }
.ticket__add[disabled],
.ticket__add[aria-disabled="true"] { background: transparent; border-color: currentColor; color: inherit; opacity: 0.5; cursor: not-allowed; }
.ticket__add .ticket__qty { font-stretch: 100%; font: 600 14px var(--mono); text-transform: none; }
.tickets__more { margin: clamp(26px, 3vw, 40px) 0 0; font-size: 16px; font-weight: 500; color: var(--muted); }
.tickets__more a { color: var(--ink); text-underline-offset: 3px; }
.ticket.is-out { opacity: 0.7; }
/* Con subgrid, las filas (nombre, precio, corte, lista, botón) quedan
   alineadas entre tarjetas aunque un nombre ocupe dos líneas. */
@supports (grid-template-rows: subgrid) {
  .tickets__grid { row-gap: clamp(18px, 2vw, 28px); }
  .ticket { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
}
.ticket.is-out .ticket__amount { text-decoration: line-through; }

/* ---------- Pedido (dentro de la funda de web.css) ---------- */
.checkout .slab-wrap { max-width: 760px; }
.checkout__empty { margin: 0; padding: 22px 0 8px; font-weight: 500; }
.checkout__empty a { font-weight: 700; }
.checkout__h {
  margin: 6px 0 -4px;
  font: 600 10.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.asis {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px 16px 16px;
  border: 2px solid var(--ink);
  min-width: 0;
}
.asis legend { padding: 0 6px; margin-left: -6px; font-size: 22px; line-height: 1; }
.asis legend span { font: 600 13px var(--mono); text-transform: none; color: var(--red); margin-left: 6px; }
.asis__tools { position: absolute; top: -11px; right: 10px; display: flex; gap: 6px; }
.asis__tools button {
  padding: 2px 8px;
  border: 2px solid var(--ink);
  background: var(--white);
  font: 600 10.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.asis__tools button:hover { background: var(--ink); color: var(--white); }
.asis--pro { background: #f7f5f1; }
input[type="tel"] {
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 500 16px var(--font);
}
input[type="tel"]:focus { outline: none; border-bottom-color: var(--red); }
.checkout__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 2px;
  border-top: 2px solid var(--ink);
}
.checkout__total strong { font-size: 44px; line-height: 0.9; }
.checkout__total .mono { color: var(--muted); }
.checkout__note { margin: -4px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* Paso de pago */
.pago { display: grid; gap: 14px; }
.pago h3 { font-size: 34px; font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: 0.9; }
.pago__resumen { margin: 0; font-weight: 500; }
.pago__reloj { font: 600 15px var(--mono); color: var(--red); }
.pago__widget { min-height: 120px; }
.pago__demo { display: grid; gap: 10px; padding: 14px; background: #fff4cc; border: 1px solid #e6c24d; color: #5a4500; font-size: 13.5px; }
.pago__demo div { display: flex; flex-wrap: wrap; gap: 8px; }
.pago__demo button { min-height: 44px; font-size: 18px; }
.pago__seguro { margin: 0; color: var(--muted); font-size: 12px; }

/* Barra fija con el pedido en el móvil */
.cartbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--white);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.cartbar.is-on { transform: none; }
.cartbar p { margin: 0; font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.cartbar p strong { display: block; font-size: 20px; }
.cartbar .btn-ink { min-height: 44px; font-size: 19px; background: var(--red); }

/* ---------- Mis entradas ---------- */
.mt { padding: clamp(28px, 5vw, 60px) 0 clamp(56px, 8vw, 100px); }
.mt__estado { max-width: 640px; padding: clamp(22px, 3vw, 32px); background: var(--white); border: 2px solid var(--ink); }
.mt__estado h2 { font-size: clamp(36px, 5vw, 52px); line-height: 0.9; margin-bottom: 12px; }
.mt__estado p { margin: 0 0 12px; font-weight: 500; }
.mt__tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.mt__tools .btn-ink { min-height: 46px; font-size: 19px; }
.mt__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.mt__ticket { background: var(--white); border: 2px solid var(--ink); display: flex; flex-direction: column; break-inside: avoid; }
.mt__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 16px 18px 12px; background: var(--ink); color: var(--white); }
.mt__tipo { font-size: 32px; line-height: 0.9; }
.mt__serie { font: 600 13px var(--mono); color: var(--red); white-space: nowrap; }
.mt__name { margin: 4px 0 0; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.mt__qr { display: grid; justify-items: center; gap: 8px; padding: 22px 18px 16px; border-bottom: 2px dashed var(--ink); }
.mt__qr svg { width: min(240px, 70vw); height: auto; display: block; }
.mt__qr code { font: 600 13px var(--mono); letter-spacing: 0.06em; }
.mt__barras { display: grid; justify-items: center; gap: 6px; width: 100%; margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line, #d9d2c5); }
.mt__qr .mt__barras svg { width: min(100%, 380px); height: 64px; background: #fff; }
.mt__lbl { font: 600 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mt__data { margin: 0; padding: 14px 18px; display: grid; gap: 10px; }
.mt__data div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.mt__data dt { font: 600 10.5px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mt__data dd { margin: 0; font-weight: 600; }
.mt__inc { margin: 0; padding: 0 18px 16px; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.mt__inc li { display: flex; gap: 8px; }
.mt__inc li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.5em; background: var(--red); }
.mt__inc li.is-done { color: var(--muted); text-decoration: line-through; }

/* ---------- Presentaciones ---------- */
.pres-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.pres {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.pres__nombre { font-size: 30px; line-height: 0.92; }
.pres__cuando { margin: 0; font: 600 12px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.pres__libres { margin: 0; font-weight: 600; }
.pres__libres.is-full { color: var(--red-dark); }

/* ---------- Páginas legales ---------- */
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border: 1px solid #d8d1c4; vertical-align: top; }
.legal th { font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: #ebe5d9; }
.legal .aviso { padding: 12px 14px; background: #fff4cc; border-left: 4px solid #e6c24d; font-size: 14.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tickets__grid { --cols: 2; }
}
@media (max-width: 900px) {
  .premio-sec__head { grid-template-columns: minmax(0, 1fr); }
  .premio { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
  .tickets__grid { --cols: 1; }
  .pres-list { grid-template-columns: minmax(0, 1fr); }
  .eb__clock span { min-width: 0; flex: 1; font-size: 26px; }
  .premio__hitos { grid-template-columns: minmax(0, 1fr); }
  .checkout__total strong { font-size: 36px; }
  .mt__data div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .poster__cta { justify-items: stretch; }
  .poster__cta .cta { justify-content: space-between; }
  body.has-cart .foot { padding-bottom: 90px; }
}
@media (min-width: 900px) {
  .cartbar { display: none; }
}

/* Aviso al añadir algo al carrito */
.aviso-carrito {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 10px 12px 10px 10px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.aviso-carrito.is-on { opacity: 1; transform: translate(-50%, 0); }
.aviso-carrito__ok {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
}
.aviso-carrito p { margin: 0; display: grid; line-height: 1.2; min-width: 0; }
.aviso-carrito strong { font-size: 15px; }
.aviso-carrito p span { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.aviso-carrito a { flex: none; font-weight: 700; color: var(--ink); text-underline-offset: 3px; }
.aviso-carrito a:hover { color: var(--red); }
@media (min-width: 900px) {
  .aviso-carrito { left: auto; right: 24px; bottom: 24px; transform: translateY(16px); }
  .aviso-carrito.is-on { transform: none; }
}

/* ---------- Impresión (Mis entradas) ---------- */
@media print {
  body { background: #fff; }
  .bar, .foot, .mt__tools, .demo-note, .hero { display: none !important; }
  .mt { padding: 0; }
  .mt__list { display: block; }
  .mt__ticket { margin: 0 auto 16px; max-width: 420px; page-break-after: always; }
  .mt__top { background: #fff; color: #000; border-bottom: 2px solid #000; }
}

/* Títulos largos (Presentaciones) y separación de la caja de estado */
.hero__title--long { font-size: clamp(54px, 12.4vw, 190px); }
.mt__estado + #lista-wrap .mt__tools,
.mt__tools { margin-top: 20px; }

/* En el móvil la barra solo cabe con dos enlaces: Entradas y Programa
   («Mis entradas» va en el pie) */
@media (max-width: 640px) {
  .bar__nav { gap: 16px; }
  .bar__nav a[href="mis-entradas.html"],
  .bar__nav a[href="#novedades"],
  .bar__nav a[href*="instagram.com"],
  .bar__nav a[href="#apuntate"],
  .bar__nav a[href="./"] { display: none; }
}
@media (max-width: 640px) {
  .legal table { display: block; overflow-x: auto; font-size: 14px; }
  .legal th, .legal td { min-width: 130px; }
}

/* ---------- Eventos y torneos a la venta ---------- */
.tickets--eventos { padding-top: 0; }
.evt-list { display: grid; gap: 26px; }
.evt-dia { display: grid; gap: 10px; }
.evt-dia__h { margin: 0; font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.evt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  padding: 16px 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.evt__info { display: grid; gap: 4px; min-width: 0; }
.evt__cuando { margin: 0; font: 600 12px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--red); }
.evt__nombre { margin: 0; font-size: 26px; line-height: 0.95; font-stretch: 62%; font-weight: 900; text-transform: uppercase; }
.evt__premio { margin: 0; font-size: 14px; color: var(--muted); }

/* Etiqueta de premio (compartida entre Programa y Entradas) */
.premio-tag {
  display: inline-flex;
  align-items: stretch;
  justify-self: start;
  max-width: 100%;
  margin: 4px 0 2px;
  border: 1.5px solid var(--ink);
  background: #fff4cc;
  color: var(--ink);
}
.premio-tag__k {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  background: var(--ink);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.premio-tag__ico { flex: none; color: #ffd84d; }
.premio-tag__lbl { text-box: trim-both cap alphabetic; }
.premio-tag__v {
  padding: 4px 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  min-width: 0;
  align-self: center;
}
.evt__compra { display: grid; grid-template-columns: auto auto; gap: 2px 14px; align-items: center; justify-items: end; }
.evt__precio { font-size: 34px; line-height: 0.9; font-stretch: 62%; font-weight: 900; }
.evt__libres { grid-column: 1; font: 600 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.evt__libres.is-full { color: var(--red-dark); }
.evt__compra .btn-ink { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; min-height: 44px; font-size: 18px; }
.evt__compra .btn-ink[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------- Pedido: plaza suelta, eventos de la Pro y oferta ---------- */
.asis--evento { border-style: dashed; }
.asis__cuando { margin: 0; font: 600 12px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.asis__pro { display: grid; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line-strong); }
.asis__sub { margin: 6px 0 -2px; font: 600 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.asis__oferta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  background: #fff4cc;
  border: 1px solid #e6c24d;
  font-size: 14px;
}
.asis__oferta s { color: var(--muted); }
.asis__oferta button {
  flex: none;
  padding: 2px 8px;
  border: 2px solid var(--ink);
  background: var(--white, #fff);
  font: 600 10.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Pagar todo o reservar la Pro con el 20 % */
.pagoopc { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pagoopc legend { padding: 0; margin-bottom: 8px; }
.pagoopc__op {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 2px solid var(--line-strong);
  cursor: pointer;
}
.pagoopc__op:has(input:checked) { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--red); }
.pagoopc__op input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); }
.pagoopc__op span { display: grid; gap: 2px; }
.pagoopc__op small { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.pagoopc__nota { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.checkout__pend { margin: -6px 0 0; text-align: right; font-weight: 700; color: var(--red-dark); }

/* Código de descuento */
.cupon { display: grid; gap: 8px; }
.cupon .checkout__h { margin: 0; }
.cupon__fila { display: flex; gap: 10px; align-items: flex-end; }
.cupon__fila input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.06em; }
.cupon.is-on .cupon__fila input { border-bottom-color: var(--ink); color: var(--muted); }
.cupon__btn {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 800 13px var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.cupon__btn:hover { background: var(--ink); color: var(--white); }
.cupon__btn[disabled] { opacity: 0.6; cursor: progress; }
.cupon__msg { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--red-dark); }
.cupon__msg.is-ok { color: var(--ink); }
.cupon__msg.is-ok::before { content: "✓ "; color: var(--red); }

/* Aviso de la oferta Pro al ir al pago */
.oferta {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.oferta:modal { overscroll-behavior: contain; }
.oferta::backdrop {
  background: rgba(10, 10, 10, 0.55);
  overflow: hidden;
  overscroll-behavior: contain;
}
.oferta__box { display: grid; gap: 14px; padding: clamp(20px, 4vw, 30px); }
.oferta__tag { margin: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.oferta h2 { margin: 0; font-size: clamp(30px, 6vw, 42px); line-height: 0.9; font-stretch: 62%; font-weight: 900; text-transform: uppercase; }
.oferta p { margin: 0; }
.oferta__lista { display: grid; gap: 8px; }
.oferta__op {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.oferta__op:hover, .oferta__op:focus-visible { background: var(--ink); color: var(--paper); }
.oferta__op span:first-child { display: grid; gap: 2px; min-width: 0; }
.oferta__op small { font-size: 12.5px; opacity: 0.75; }
.oferta__precio { flex: none; font-weight: 800; white-space: nowrap; }
.oferta__precio s { font-weight: 500; opacity: 0.6; margin-right: 4px; }
.oferta [data-no] { justify-self: start; }

/* Inscripción gratis (Aprende a jugar) */
.evt__nota { margin: 6px 0 0; font-size: 13px; color: var(--muted); font-weight: 500; }
.evt--gratis .evt__precio { color: var(--red); }
.apuntar__cuando { margin: -6px 0 0 !important; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.apuntar__form { display: grid; gap: 14px; }
.apuntar__espera { padding: 10px 12px; background: #fff4cc; border-left: 4px solid #d89a00; font-size: 14px; font-weight: 600; }
.apuntar__nota { font-size: 13px; color: var(--muted); font-weight: 500; }
.apuntar__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.apuntar__ok { display: grid; gap: 16px; justify-items: start; }
.apuntar__ok p { font-size: 16px; font-weight: 600; }

@media (max-width: 640px) {
  .evt { grid-template-columns: minmax(0, 1fr); }
  .evt__compra { justify-items: start; grid-template-columns: minmax(0, 1fr); }
  .evt__compra .btn-ink { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
  .evt__nombre { font-size: 22px; }
  .asis__oferta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Programa ---------- */
.prog .container { display: grid; gap: clamp(28px, 4vw, 44px); }
.prog__dias { display: flex; gap: 8px; }
.prog__dias a {
  flex: 0 1 auto;
  text-align: center;
  white-space: nowrap;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.prog__dias a:hover { background: var(--ink); color: var(--paper); }
.prog__dia { display: grid; gap: 14px; scroll-margin-top: calc(var(--header) + 60px); }
.prog__dia + .prog__dia { margin-top: clamp(24px, 4vw, 40px); }
.prog__h { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 0.9; font-stretch: 62%; font-weight: 900; text-transform: uppercase; }
.prog__lista { margin: 0; padding: 0; list-style: none; display: grid; border-top: 2px solid var(--ink); }
.prog__item, .prog__hito {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-strong);
}
.prog__hito { padding: 10px 4px; color: var(--muted); font-weight: 600; font-size: 14px; }
.prog__hito span:last-child { grid-column: 2 / -1; }
.prog__hora { font: 600 14px var(--mono); letter-spacing: 0.02em; align-self: start; padding-top: 4px; }
.prog__hito .prog__hora { padding-top: 0; font-size: 12.5px; }
.prog__cuerpo { display: grid; gap: 5px; min-width: 0; }
.prog__sala { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.prog__nombre { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 0.95; font-stretch: 62%; font-weight: 900; text-transform: uppercase; }
.prog__texto { margin: 0; font-size: 14.5px; color: var(--muted); }
.prog__premio { margin: 0; font-size: 14.5px; }
.prog__plazas { margin: 0; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.prog__compra { display: grid; gap: 8px; justify-items: end; }
.prog__precio { font-size: 30px; line-height: 0.9; font-stretch: 62%; font-weight: 900; }
.prog__compra .btn-ink { min-height: 40px; font-size: 17px; white-space: nowrap; }
.prog__compra .btn-ink[aria-disabled] { opacity: 0.45; cursor: default; }
.prog__item.is-venta { background: linear-gradient(90deg, rgba(244, 47, 55, 0.06), transparent 60%); }
.prog__item.is-destacado { background: #fff4cc; }
.prog__item.is-clickable { cursor: pointer; transition: background-color 0.16s var(--ease); }
.prog__item.is-clickable:hover { background: rgba(10, 10, 10, 0.04); }
.prog__item.is-clickable.is-venta:hover { background: linear-gradient(90deg, rgba(244, 47, 55, 0.11), rgba(10, 10, 10, 0.03) 65%); }
.prog__item.is-clickable.is-destacado:hover { background: #ffecaa; }
.prog__abrir {
  all: unset;
  cursor: pointer;
  display: inline;
  font: inherit;
  color: inherit;
  text-transform: inherit;
}
.prog__abrir:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.prog__item.is-clickable:hover .prog__abrir { color: var(--red-dark); }
.prog__mas {
  justify-self: start;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prog__item.is-clickable:hover .prog__mas { color: var(--ink); }
.prog__nota { margin: 0; font-size: 14px; color: var(--muted); font-weight: 500; }

/* Ficha desplegable de actividad / evento en Programa */
.prog-modal { width: min(600px, calc(100vw - 32px)); }
.prog-modal__box { display: grid; gap: 16px; padding: clamp(20px, 4vw, 28px); }
.prog-modal__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prog-modal__meta { margin: 0; font-size: 11.5px; letter-spacing: 0.08em; color: var(--red); font-weight: 600; padding-top: 4px; }
.prog-modal__x {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 700 22px/1 var(--font);
  cursor: pointer;
}
.prog-modal__x:hover { background: var(--ink); color: var(--paper); }
.prog-modal__h {
  margin: -6px 0 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 0.92;
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
}
.prog-modal__body { display: grid; gap: 14px; }
.prog-modal__sec { display: grid; gap: 4px; }
.prog-modal__sec h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-stretch: normal;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.prog-modal__sec p { margin: 0; font-size: 15px; line-height: 1.5; }
.prog-modal__req { padding: 12px 14px; background: var(--white); border-left: 4px solid var(--ink); }
.prog-modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.prog-modal__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.prog-modal__precio { font-size: 28px; line-height: 0.9; font-stretch: 62%; font-weight: 900; }
.prog-modal__foot .btn-ink { min-height: 42px; font-size: 17px; }

/* ---------- Cardshow: selector de mesas y franjas de 1 h ---------- */
.cs-modal { width: min(680px, calc(100vw - 24px)); }
.cs-lead { margin: -6px 0 0; font-size: 14.5px; color: var(--muted); }
.cs-form { display: grid; gap: 18px; }
.cs-paso { display: grid; gap: 10px; }
.cs-paso__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cs-paso__t { margin: 0; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.cs-todo { font-size: 13px; }
.cs-dias { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.cs-mesas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cs-franjas { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.cs-dia, .cs-mesa, .cs-slot {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s var(--ease), color 0.14s var(--ease), border-color 0.14s var(--ease);
}
.cs-dia strong, .cs-mesa strong { font-size: 16px; font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.cs-slot strong { font: 700 13.5px var(--mono); line-height: 1.1; }
.cs-dia span, .cs-mesa span, .cs-slot span { font-size: 10.5px; letter-spacing: 0.05em; color: var(--muted); }
.cs-mesa.is-parcial { background: #fff9e6; }
.cs-dia:hover:not([disabled]), .cs-mesa:hover:not([disabled]), .cs-slot:hover:not([disabled]) { background: var(--paper-2, #e7dfd1); }
.cs-dia.is-on, .cs-mesa.is-on { background: var(--ink); color: var(--white); }
.cs-dia.is-on span, .cs-mesa.is-on span { color: rgba(255, 255, 255, 0.78); }
.cs-slot.is-on { background: var(--red); border-color: var(--ink); color: var(--white); }
.cs-slot.is-on span { color: rgba(255, 255, 255, 0.88); }
.cs-mesa[disabled], .cs-slot[disabled] {
  background: repeating-linear-gradient(-45deg, rgba(10, 10, 10, 0.04) 0 6px, transparent 6px 12px);
  border-color: var(--line-strong);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}
.cs-slot.is-ocupada strong { text-decoration: line-through; }
.cs-resumen {
  margin: 2px 0 0;
  padding: 10px 12px;
  background: #fff4cc;
  border: 1.5px solid var(--ink);
  font-size: 14px;
}
.cs-cortesia {
  margin: 0;
  padding: 10px 12px;
  background: var(--white);
  border-left: 4px solid var(--red);
  font-size: 13.5px;
  line-height: 1.45;
}
.cs-banner {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 22px;
  background: #fff4cc;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.cs-banner__tag { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.08em; color: var(--red); font-weight: 600; }
.cs-banner h3 { margin: 0 0 4px; font-size: clamp(20px, 2.5vw, 26px); line-height: 0.98; font-stretch: 62%; font-weight: 900; text-transform: uppercase; }
.cs-banner p { margin: 0; font-size: 14.5px; }
.cs-banner .btn-ink { flex: none; min-height: 44px; font-size: 18px; }
@media (max-width: 640px) {
  .cs-mesas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-franjas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-banner .btn-ink { width: 100%; }
}

@media (max-width: 640px) {
  .prog__item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .prog__dias {
    position: sticky;
    top: 48px;
    z-index: 6;
    margin: 0 calc(-1 * var(--gutter));
    padding: 10px var(--gutter);
    background: var(--paper);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  }
  .prog__dias a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 4px; font-size: 12px; }
  .prog__dias a[aria-current="true"] { background: var(--ink); color: var(--paper); }
  .prog__dia { scroll-margin-top: 112px; }
  .prog__item, .prog__hito { padding-inline: 12px; }
  .prog__item.is-venta { background: rgba(244, 47, 55, 0.06); }
  .prog__sala { font-size: 12px; }
  .prog__plazas { font-size: 12px; }
  .prog__hito { grid-template-columns: 90px minmax(0, 1fr); }
  .prog__hora { padding-top: 0; }
  .prog__compra { grid-template-columns: auto auto; justify-content: space-between; align-items: center; justify-items: start; }
}

/* Mis entradas: plaza suelta en un evento */
.mt__ticket--plaza .mt__top { background: var(--paper-2); color: var(--ink); }
.mt__nota { margin: 0; padding: 0 18px 16px; font-size: 13px; color: var(--muted); font-weight: 500; }
.mt__ticket--plaza .mt__name { color: var(--muted); }
.mt__ticket--plaza .mt__data { padding-top: 14px; }
.legal h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 800; }
.tickets__aviso { margin: 0 0 18px; padding: 12px 16px; background: #fff4cc; border: 2px solid var(--ink); font-weight: 600; }

/* Casilla opcional (publicar el nombre si gana el sorteo) */
.consent--opc em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: 13px; }

/* ---------- Mis entradas: recuperar el enlace y facturas ---------- */
.mt__recuperar { display: grid; gap: 8px; margin: 6px 0 14px; }
.mt__recuperar label { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mt__recuperar-fila { display: flex; flex-wrap: wrap; gap: 8px; }
.mt__recuperar input { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 12px; border: 2px solid var(--ink); background: var(--white); font: 500 16px var(--font); }
.mt__recuperar .btn-ink { min-height: 48px; }
.mt__recuperar-msg { min-height: 1.4em; margin: 0 !important; font-size: 15px; }

.mt__facturas { margin-top: 40px; }
.mt__h { margin: 0 0 14px; font-size: clamp(30px, 4vw, 44px); font-stretch: 62%; font-weight: 900; line-height: 0.9; text-transform: uppercase; }
#facturas-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.mt__factura { padding: 16px 18px; background: var(--white); border: 2px solid var(--ink); font-size: 15px; }
.mt__factura header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.mt__factura header strong { font-stretch: 62%; font-size: 22px; font-weight: 900; text-transform: uppercase; line-height: 1; }
.mt__factura header .mono { font-size: 12px; color: var(--muted); align-self: center; }
.mt__emisor, .mt__cliente { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.mt__concepto { margin: 10px 0 0; font-weight: 600; }
.mt__importes { margin: 10px 0 12px; display: grid; gap: 4px; }
.mt__importes div { display: flex; justify-content: space-between; gap: 10px; }
.mt__importes dt { color: var(--muted); }
.mt__importes dd { margin: 0; font-variant-numeric: tabular-nums; }
.mt__importes .is-total { padding-top: 4px; border-top: 1px solid var(--ink); font-weight: 800; }
.mt__importes .is-total dt { color: var(--ink); }

@media print {
  .mt__imprimir-f { display: none !important; }
  .mt__facturas { page-break-before: always; }
  body.solo-factura .mt__estado,
  body.solo-factura .mt__list,
  body.solo-factura .mt__h,
  body.solo-factura .mt__factura:not(.is-print) { display: none !important; }
  body.solo-factura .mt__facturas { page-break-before: auto; margin: 0; }
  body.solo-factura #facturas-lista { display: block; }
  body.solo-factura .mt__factura { max-width: 520px; margin: 0 auto; }
}

/* =========================================================
   Móvil y pantallas táctiles
   ========================================================= */
@media (hover: none) {
  .ticket:hover { transform: none; box-shadow: 6px 6px 0 var(--ink); }
  .ticket--pro:hover { box-shadow: 6px 6px 0 var(--red); }
  .ticket__add:hover:not([disabled]):not([aria-disabled]) { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .ticket--pro .ticket__add:hover:not([disabled]):not([aria-disabled]) { background: var(--red); border-color: var(--red); color: var(--white); }
  .ticket--coleccionista .ticket__add:hover:not([disabled]):not([aria-disabled]) { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .btn-ink:hover { background: var(--ink); color: var(--white); }
  .btn-ink--red:hover, .cartbar .btn-ink:hover { background: var(--red); color: var(--white); }
  .poster__cta .cta--alt:hover { background: var(--white); color: var(--ink); }
  .prog__dias a:hover { background: var(--paper); color: var(--ink); }
  .ticket__add:active:not([disabled]):not([aria-disabled]), .btn-ink:active:not([disabled]) { transform: scale(0.97); }
  .btn-ink { transition: background-color 0.25s, color 0.25s, transform 0.12s; }
}

/* Selector con nombre encima de un carrusel (js/movil.js): solo en el móvil */
.carril { display: none; }

@media (max-width: 640px) {
  /* Tipos de entrada: carrusel que se desliza de lado, en vez de cuatro
     tarjetas larguísimas una debajo de otra */
  .tickets__grid {
    --cols: 1.2;
    position: relative;   /* las tarjetas se miden desde el carrusel (js/movil.js) */
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(calc(100% - 40px), 340px);   /* asoma la siguiente tarjeta */
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 18px;
    scrollbar-width: none;
  }
  .tickets__grid::-webkit-scrollbar { display: none; }
  .tickets__grid > .ticket { scroll-snap-align: start; }
  /* En el carrusel cada tarjeta mide lo suyo: sin subgrid, para que la
     Visitante no herede la altura de la Pro y quede medio vacía */
  .tickets__grid { align-items: start; row-gap: 0; }
  .tickets__grid > .ticket { display: flex; grid-row: auto; grid-template-rows: none; }
  .ticket__list { flex: none; }
  .tickets__grid > .ticket .ticket__name { align-self: auto; }
  .tickets__grid > p { grid-column: 1; white-space: normal; }
  .ticket { padding: 18px 18px 0; }
  .ticket__name { margin-top: 14px; font-size: min(40px, 11cqi); }
  .ticket__price { margin-top: 16px; align-items: center; gap: 10px; }
  .ticket__price .ticket__amount { font-size: min(68px, 19cqi); }
  .ticket__was { gap: 6px; }
  .ticket__was s { font-size: 17px; }
  .ticket__cut { margin: 16px -18px 0; }
  .ticket__list { padding: 16px 0; gap: 7px; font-size: 13.5px; line-height: 1.3; }
  .ticket__list li { padding-left: 18px; }
  .ticket__stub { margin: 0 -18px; padding: 14px 18px 18px; }
  .ticket__add { height: 52px; font-size: 21px; }

  .carril {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 0 calc(-1 * var(--gutter)) 14px;
    padding: 2px var(--gutter);
    scrollbar-width: none;
  }
  .carril::-webkit-scrollbar { display: none; }
  .carril button {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 10px;
    border: 2px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font: 600 11.5px var(--mono);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }
  .carril button[aria-current="true"] { background: var(--ink); color: var(--white); }
  .carril--fijo button { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 6px; }
  .carril__n { min-width: 18px; padding: 1px 5px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 11px; text-align: center; }
  .carril--fijo {
    position: sticky;
    top: 48px;
    z-index: 6;
    margin-bottom: 4px;
    padding-block: 10px;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line-strong, rgba(0, 0, 0, 0.12));
  }

  /* Eventos y torneos: tarjeta más compacta, con el precio y el botón en la misma fila */
  .evt-list { gap: 22px; }
  .evt-dia { scroll-margin-top: 112px; }
  .evt { gap: 10px; padding: 14px 16px; }
  .evt__compra { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; justify-items: start; }
  .evt__compra .btn-ink { grid-column: 2; grid-row: 1 / span 2; width: auto; max-width: 56vw; margin-top: 0; padding: 0 16px; font-size: 17px; white-space: normal; text-align: center; line-height: 1; }
  .evt__precio { font-size: 30px; }
  .evt__nota { font-size: 12.5px; }

  /* formulario del pedido: campos y botones cómodos para el dedo */
  .checkout input[type="text"], .checkout input[type="email"], .checkout input[type="tel"], .checkout select { height: 44px; }
  /* «Usar mis datos» y «Quitar» bajan a su propia fila: sobre el borde tapaban
     el título de la entrada («Entrada 1 · Pro 97 €») */
  .asis__tools { position: static; justify-content: flex-start; gap: 8px; margin-top: -2px; }
  .asis__tools button { min-height: 36px; padding: 0 12px; font-size: 11.5px; }

  /* título grande de las páginas interiores: que «ENTRADAS» quepa también en 320 px */
  .hero__title { font-size: min(88px, 22.5vw); }

  /* textos que se quedaban demasiado pequeños para leer */
  .eb__clock small { font-size: 11px; }
  .ticket__badge { font-size: 11.5px; }
  .evt__libres { font-size: 11.5px; }
}

/* Portada: barra fija para ir a las entradas (js/movil.js), solo en el móvil */
.flota { display: none; }
@media (max-width: 640px) {
  .flota {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
  }
  .flota.is-on { transform: none; }
  .flota__t { display: grid; gap: 2px; }
  .flota__t small { white-space: nowrap; font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
  .flota__t strong { font-size: 22px; line-height: 1; font-stretch: 62%; font-weight: 900; text-transform: uppercase; }
  .flota__b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    background: var(--red);
    font-size: 19px;
    font-stretch: 62%;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .flota:active .flota__b { transform: scale(0.97); }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .flota { transition: none; }
}

/* Paso de pago: los campos de la tarjeta de SumUp son iframes de otro dominio.
   Sin capas encima (brillo animado, grano, desenfoque): en algunos móviles
   (Safari en iPhone) esas capas, aunque transparentes, impiden tocar los campos. */
.slab:has(#pago-view:not([hidden])) { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.3); }
.slab:has(#pago-view:not([hidden]))::before,
.slab:has(#pago-view:not([hidden]))::after,
.slab:has(#pago-view:not([hidden])) .slab__glint { display: none; }
.slab-wrap:has(#pago-view:not([hidden])) { transform: none !important; }
