/* =============================================================================
   TELÓN — hoja de estilos
   Mobile-first, pensada para iPhone (safe-area, tap targets 44px, sin hover-only)
   ========================================================================== */

:root {
  --tinta:        #0d0508;
  --tinta-2:      #170a10;
  --panel:        #1e0f16;
  --panel-2:      #2a1620;
  --borde:        #3a2130;
  --texto:        #f6ecec;
  --texto-2:      #c9b3bd;
  --texto-3:      #8d7480;
  --rojo:         #d7263d;
  --rojo-claro:   #ff4d64;
  --oro:          #e8b84b;
  --oro-suave:    #f7dfa0;
  --verde:        #3ddc97;
  --radio:        18px;
  --radio-sm:     12px;
  --sombra:       0 12px 32px rgba(0,0,0,.55);
  --safe-top:     env(safe-area-inset-top, 0px);
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --tabbar-h:     calc(60px + var(--safe-bottom));
  --fuente: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --fuente-display: 'Playfair Display', 'Iowan Old Style', 'Palatino', Georgia, serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--tinta);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.45;
  overscroll-behavior-y: none;
}

body {
  min-height: 100svh;
  padding-bottom: calc(var(--tabbar-h) + 8px);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--oro); }

.hidden { display: none !important; }

/* ── Resplandor de telón de fondo ─────────────────────────────────────────── */
.curtain-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(215,38,61,.28), transparent 60%),
    radial-gradient(80% 40% at 100% 0%, rgba(232,184,75,.10), transparent 70%),
    linear-gradient(180deg, #1a0a11 0%, var(--tinta) 45%);
}

/* ── Barra superior ───────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding: calc(var(--safe-top) + 10px) 16px 8px;
  background: rgba(13,5,8,.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(58,33,48,.7);
}

.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: flex; align-items: center; gap: 9px; font-size: 22px; }
.brand-mark { color: var(--rojo-claro); display: flex; filter: drop-shadow(0 2px 6px rgba(215,38,61,.5)); }
.brand-text {
  font-family: var(--fuente-display);
  font-weight: 800; letter-spacing: .02em;
  display: flex; align-items: baseline; gap: 7px;
}
.brand-text small {
  font-family: var(--fuente);
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--oro); opacity: .85;
}

.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--borde);
  background: rgba(42,22,32,.6); color: var(--texto-2);
}
.icon-btn:active { transform: scale(.94); }

/* ── Buscador ─────────────────────────────────────────────────────────────── */
.search-row { display: flex; gap: 8px; margin-top: 10px; }

.search-box {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px;
  background: var(--panel); border: 1px solid var(--borde);
  border-radius: 999px; color: var(--texto-3);
}
.search-box:focus-within { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(215,38,61,.18); }
.search-box input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--texto); font-size: 16px;
}
.search-box input::placeholder { color: var(--texto-3); }
.search-box input::-webkit-search-cancel-button { display: none; }
.clear-btn { background: none; border: none; color: var(--texto-3); font-size: 15px; padding: 4px; }

.filter-btn {
  position: relative; width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--borde);
  border-radius: 999px; color: var(--texto-2);
}
.filter-btn:active { transform: scale(.94); }
.filter-btn .badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--rojo); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 9px;
  border: 2px solid var(--tinta);
}

/* ── Chips ────────────────────────────────────────────────────────────────── */
.chips {
  display: flex; gap: 7px; margin-top: 10px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }

.chip {
  flex: none;
  padding: 7px 13px;
  background: var(--panel); border: 1px solid var(--borde);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--texto-2);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:active { transform: scale(.96); }
.chip.is-active {
  background: linear-gradient(135deg, var(--rojo), #a51b2e);
  border-color: var(--rojo-claro); color: #fff;
  box-shadow: 0 4px 14px rgba(215,38,61,.35);
}

/* ── Vistas ───────────────────────────────────────────────────────────────── */
.vista { display: none; padding: 14px 16px 0; animation: fade .22s ease; }
.vista.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--texto-3); display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--verde);
  box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulso 2.2s infinite;
}
@keyframes pulso {
  0%   { box-shadow: 0 0 0 0 rgba(61,220,151,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(61,220,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}

/* ── Carrusel de destacadas ───────────────────────────────────────────────── */
.destacadas-wrap { margin-bottom: 22px; }
.carrusel {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 -16px; padding: 2px 16px 4px;
}
.carrusel::-webkit-scrollbar { display: none; }

.destacada {
  flex: none; width: 74vw; max-width: 300px;
  scroll-snap-align: start;
  border-radius: var(--radio); overflow: hidden;
  border: 1px solid var(--borde);
  background: var(--panel);
  box-shadow: var(--sombra);
  text-align: left; padding: 0; display: block;
}
.destacada:active { transform: scale(.985); }
.destacada .poster { height: 168px; }
.destacada-info { padding: 11px 13px 13px; }
.destacada-info h3 { font-size: 17px; line-height: 1.25; font-family: var(--fuente-display); }
.destacada-meta { margin-top: 5px; font-size: 12.5px; color: var(--texto-3); display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Póster procedural ────────────────────────────────────────────────────── */
.poster {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--g1), var(--g2));
  display: flex; align-items: flex-end;
  isolation: isolate;
}
.poster::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 2px, transparent 2px 13px),
    radial-gradient(70% 90% at 50% 0%, rgba(255,255,255,.22), transparent 65%);
  mix-blend-mode: overlay;
}
.poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,2,4,.85) 0%, rgba(6,2,4,.15) 55%, transparent 100%);
}
/* Afiche real del teatro sobre el fondo de respaldo */
.poster-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
}
.poster.con-foto::before { opacity: .25; }
.poster.con-foto::after {
  background: linear-gradient(0deg, rgba(6,2,4,.92) 0%, rgba(6,2,4,.35) 42%, rgba(6,2,4,.05) 75%);
  z-index: 1;
}
.poster.con-foto .poster-emoji { opacity: .85; }

.poster-emoji {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  font-size: 20px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
}
.poster-titulo {
  position: relative; z-index: 2;
  padding: 10px 12px;
  font-family: var(--fuente-display);
  font-weight: 800; font-size: 15px; line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
  text-wrap: balance;
}
.poster-cinta {
  position: absolute; top: 10px; left: 0; z-index: 3;
  background: var(--oro); color: #2a1a00;
  font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px 3px 8px; border-radius: 0 6px 6px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
}

/* ── Lista de obras ───────────────────────────────────────────────────────── */
.lista-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.orden-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--panel); border: 1px solid var(--borde);
  border-radius: 999px; padding: 6px 11px;
  font-size: 12.5px; font-weight: 600; color: var(--texto-2);
  margin-bottom: 10px;
}

.lista { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }

.tarjeta {
  display: grid; grid-template-columns: 96px 1fr;
  gap: 0; text-align: left; padding: 0;
  background: linear-gradient(180deg, var(--panel), var(--tinta-2));
  border: 1px solid var(--borde); border-radius: var(--radio);
  overflow: hidden; position: relative;
  transition: transform .12s ease, border-color .18s;
}
.tarjeta:active { transform: scale(.985); border-color: var(--rojo); }
.tarjeta .poster { min-height: 100%; }
.tarjeta .poster-titulo { font-size: 12.5px; padding: 8px 9px; }

.tarjeta-cuerpo { padding: 11px 12px 12px; min-width: 0; }
.tarjeta-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tarjeta h3 {
  font-family: var(--fuente-display); font-size: 17.5px; line-height: 1.2;
  text-wrap: balance;
}
.tarjeta-sub { font-size: 12.5px; color: var(--oro); margin-top: 2px; font-weight: 600; }

.fav-btn {
  flex: none; width: 34px; height: 34px; margin: -4px -4px 0 0;
  display: grid; place-items: center;
  background: none; border: none; color: var(--texto-3);
  font-size: 19px; line-height: 1;
  transition: transform .18s;
}
.fav-btn.is-fav { color: var(--rojo-claro); }
.fav-btn:active { transform: scale(1.3); }

.meta-linea {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--texto-2); margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.meta-linea svg { flex: none; opacity: .65; }

.tarjeta-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.pill {
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 3.5px 8px; border-radius: 7px;
  background: rgba(232,184,75,.12); color: var(--oro-suave);
  border: 1px solid rgba(232,184,75,.22);
}
.pill.rojo { background: rgba(215,38,61,.15); color: #ffb3bd; border-color: rgba(215,38,61,.3); }
.pill.verde { background: rgba(61,220,151,.13); color: #a8f0d0; border-color: rgba(61,220,151,.28); }
.pill.gris { background: rgba(255,255,255,.05); color: var(--texto-2); border-color: rgba(255,255,255,.09); }

.proxima {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 9px; padding-top: 9px;
  border-top: 1px dashed rgba(255,255,255,.09);
  font-size: 13px;
}
.proxima b { color: var(--texto); font-weight: 700; }
.proxima .precio { margin-left: auto; color: var(--oro); font-weight: 700; white-space: nowrap; }
.proxima .precio.gratis { color: var(--verde); }

/* ── Agenda ───────────────────────────────────────────────────────────────── */
.dia-grupo { margin-bottom: 22px; }
.dia-cabecera {
  position: sticky; top: calc(var(--safe-top) + 152px); z-index: 5;
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0 9px;
  background: linear-gradient(180deg, var(--tinta) 70%, transparent);
}
.dia-num {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center; line-height: 1;
  background: linear-gradient(150deg, var(--rojo), #8e1626);
  border-radius: 11px; box-shadow: 0 4px 12px rgba(215,38,61,.3);
  font-weight: 800; font-size: 17px;
}
.dia-num small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.dia-nombre { font-size: 15px; font-weight: 700; text-transform: capitalize; }
.dia-cuenta { font-size: 12px; color: var(--texto-3); }

.agenda-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; text-align: left;
  background: var(--panel); border: 1px solid var(--borde);
  border-radius: var(--radio-sm); margin-bottom: 8px;
}
.agenda-item:active { transform: scale(.99); }
.agenda-hora {
  flex: none; font-variant-numeric: tabular-nums;
  font-weight: 800; font-size: 15px; color: var(--oro);
  width: 52px;
}
.agenda-info { min-width: 0; flex: 1; }
.agenda-info h4 { margin: 0; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-info span { font-size: 12px; color: var(--texto-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Estado vacío ─────────────────────────────────────────────────────────── */
.vacio {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; padding: 44px 24px; color: var(--texto-3); font-size: 14px;
}
.vacio-emoji { font-size: 40px; opacity: .8; }
.vacio strong { color: var(--texto); font-size: 16px; }

.btn-ghost {
  margin-top: 12px; padding: 9px 16px;
  background: rgba(255,255,255,.06); border: 1px solid var(--borde);
  border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--texto);
}

/* ── Tab bar ──────────────────────────────────────────────────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: stretch;
  height: var(--tabbar-h); padding-bottom: var(--safe-bottom);
  background: rgba(15,6,10,.88);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid rgba(58,33,48,.8);
}
.tab {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: none; color: var(--texto-3);
  font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  transition: color .16s;
}
.tab.is-active { color: var(--rojo-claro); }
.tab.is-active svg { filter: drop-shadow(0 2px 8px rgba(215,38,61,.5)); }
.tab:active { transform: scale(.95); }
.tab-badge {
  position: absolute; top: 6px; left: 50%; margin-left: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--rojo); color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 8px;
}

/* ── Hojas modales ────────────────────────────────────────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fade .2s ease;
}

/* El `display:flex` de autor gana sobre el `[hidden]` del navegador: hay que
   apagarlo explícitamente o las hojas quedan visibles encima de la app. */
.sheet[hidden], .sheet-backdrop[hidden] { display: none; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  max-height: 92svh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #24121b, var(--tinta));
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(232,184,75,.22);
  box-shadow: 0 -12px 40px rgba(0,0,0,.7);
  animation: subir .3s cubic-bezier(.2,.9,.25,1);
  touch-action: pan-y;
}
@keyframes subir { from { transform: translateY(100%); } to { transform: none; } }
.sheet.cerrando { animation: bajar .22s ease forwards; }
@keyframes bajar { to { transform: translateY(100%); } }

.sheet-grab { padding: 9px 0 4px; display: grid; place-items: center; flex: none; cursor: grab; }
.sheet-grab span { width: 40px; height: 4.5px; border-radius: 3px; background: rgba(255,255,255,.24); display: block; }

.sheet-scroll {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 6px 18px calc(24px + var(--safe-bottom));
  overscroll-behavior: contain;
}

.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-header h2 { font-family: var(--fuente-display); font-size: 22px; }

.filtro-titulo {
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--texto-3); margin: 18px 0 9px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.filtro-valor { color: var(--oro); text-transform: none; letter-spacing: 0; font-size: 13px; }

input[type=range] {
  width: 100%; height: 28px; -webkit-appearance: none; appearance: none; background: none; margin: 0;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--rojo), var(--oro));
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -9.5px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.5); border: 3px solid var(--rojo);
}
.range-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--texto-3); margin-top: -4px; }

.switches { display: flex; flex-direction: column; gap: 2px; }
.switch {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 2px; font-size: 14.5px; color: var(--texto);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.switch input { width: 21px; height: 21px; accent-color: var(--rojo); flex: none; }

.btn-primary {
  width: 100%; padding: 15px; border: none;
  background: linear-gradient(135deg, var(--rojo), #a51b2e);
  color: #fff; font-size: 16px; font-weight: 700;
  border-radius: 14px; box-shadow: 0 8px 22px rgba(215,38,61,.35);
}
.btn-primary:active { transform: scale(.985); }
.sheet-cta { margin-top: 24px; }

/* ── Detalle de obra ──────────────────────────────────────────────────────── */
.detalle-hero {
  margin: -6px -18px 0; height: 230px;
  display: flex; align-items: flex-end;
}
.detalle-hero .poster { width: 100%; height: 100%; }

.detalle-cabecera { padding-top: 14px; }
.detalle-sub { color: var(--oro); font-size: 14px; font-weight: 600; }
.detalle-compania { color: var(--texto-3); font-size: 13.5px; margin-top: 3px; }

.detalle-acciones { display: flex; gap: 8px; margin: 15px 0 4px; }
.accion {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 4px; border-radius: 13px;
  background: var(--panel-2); border: 1px solid var(--borde);
  font-size: 11.5px; font-weight: 600; color: var(--texto-2);
}
.accion:active { transform: scale(.96); }
.accion.is-fav { color: var(--rojo-claro); border-color: rgba(215,38,61,.5); background: rgba(215,38,61,.12); }
.accion svg { opacity: .9; }

.detalle-seccion { margin-top: 22px; }
.detalle-seccion h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--texto-3); margin-bottom: 9px;
}
.sinopsis { font-size: 15px; line-height: 1.6; color: var(--texto); }

.datos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.dato {
  background: var(--panel); border: 1px solid var(--borde);
  border-radius: var(--radio-sm); padding: 10px 12px;
}
.dato small { display: block; font-size: 11px; color: var(--texto-3); letter-spacing: .04em; text-transform: uppercase; }
.dato b { font-size: 14.5px; font-weight: 700; display: block; margin-top: 2px; }

.elenco { display: flex; flex-direction: column; gap: 7px; }
.elenco-fila { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800; color: #240d13;
  background: linear-gradient(140deg, var(--oro-suave), var(--oro));
}

.precio-fila {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14.5px;
}
.precio-fila:last-child { border-bottom: none; }
.precio-fila b { color: var(--oro); font-variant-numeric: tabular-nums; }
.precio-fila b.gratis { color: var(--verde); }

.func-fila {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin-bottom: 7px;
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio-sm);
}
.func-fecha { flex: 1; min-width: 0; }
.func-fecha b { display: block; font-size: 14.5px; text-transform: capitalize; }
.func-fecha small { color: var(--texto-3); font-size: 12px; }
.func-cal {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; background: rgba(232,184,75,.12);
  border: 1px solid rgba(232,184,75,.25); color: var(--oro);
}
.func-cal:active { transform: scale(.92); }

.sala-card {
  display: block; padding: 13px 14px; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio-sm);
}
.sala-card b { display: block; font-size: 15px; }
.sala-card span { display: block; font-size: 13px; color: var(--texto-2); margin-top: 3px; }
.sala-card .ir { color: var(--oro); font-size: 13px; font-weight: 700; margin-top: 8px; display: block; }

.aviso-demo {
  margin-top: 26px; padding: 12px 14px;
  background: rgba(232,184,75,.07); border: 1px dashed rgba(232,184,75,.3);
  border-radius: var(--radio-sm); font-size: 12.5px; color: var(--texto-2);
}

/* ── Info ─────────────────────────────────────────────────────────────────── */
.info-p { font-size: 14.5px; line-height: 1.6; color: var(--texto-2); }
.info-p code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.info-lista { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.75; color: var(--texto-2); }
.info-lista strong { color: var(--texto); }
.info-firma { margin-top: 26px; text-align: center; font-size: 13px; color: var(--texto-3); }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; z-index: 70;
  bottom: calc(var(--tabbar-h) + 14px);
  transform: translate(-50%, 20px);
  padding: 11px 18px; max-width: 88vw;
  background: rgba(38,20,28,.97); border: 1px solid var(--borde);
  border-radius: 999px; box-shadow: var(--sombra);
  font-size: 13.5px; font-weight: 600; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ── Datos de origen y horarios oficiales ─────────────────────────────────── */
.sello-actualizado {
  margin: 8px 0 0; font-size: 11.5px; color: var(--texto-3);
  display: flex; align-items: center; gap: 6px;
}
.sello-actualizado::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--verde); flex: none;
}

.temporada-linea { font-size: 13.5px; color: var(--texto-2); margin-bottom: 9px; }

.horario-oficial {
  font-size: 13.5px; color: var(--oro-suave);
  background: rgba(232,184,75,.09); border: 1px solid rgba(232,184,75,.22);
  border-radius: var(--radio-sm); padding: 9px 12px; margin-bottom: 11px;
}

.credito-foto { margin-top: 10px; font-size: 12px; color: var(--texto-3); line-height: 1.5; }

.accion.destacado {
  background: linear-gradient(135deg, rgba(215,38,61,.9), rgba(165,27,46,.9));
  border-color: var(--rojo-claro); color: #fff; text-decoration: none;
}

.poster-titulo.grande { font-size: 27px; padding: 16px 18px; }

/* ── Accesibilidad / responsive ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; border-radius: 6px; }

/* ── Pantallas grandes ────────────────────────────────────────────────────────
   La app es para el teléfono, pero también se abre en notebook y monitor. Ahí una
   sola columna angosta deja media pantalla en negro y obliga a leer todo diminuto.

   El contenedor crece por tramos y --tarjeta-min decide cuántas columnas entran:
   la grilla es auto-fill, así que se suman columnas en vez de estirar las tarjetas.
   Cada ancho está elegido para que las columnas queden cerca de 350 px, que es lo
   que necesita una tarjeta con afiche y tres líneas de datos. */

:root {
  --ancho: 100%;
  --tarjeta-min: 300px;
}

@media (min-width: 620px) {
  :root { --ancho: 720px; }
  .vista { max-width: var(--ancho); margin: 0 auto; }
  .topbar > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
  .lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tarjeta-min), 1fr)); gap: 12px; }
  .sheet { left: 50%; transform: translateX(-50%); width: min(560px, 100%); border-radius: 22px 22px 0 0; }
  @keyframes subir { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
  @keyframes bajar { to { transform: translate(-50%, 100%); } }
  .tabbar { justify-content: center; gap: 40px; }
  .tab { flex: none; width: 90px; }
}

/* Notebook: tres columnas y tipografía más grande */
@media (min-width: 1040px) {
  :root { --ancho: 1180px; --tarjeta-min: 310px; }
  .vista { padding: 20px 24px 0; }
  .lista { gap: 14px; }

  .tarjeta { grid-template-columns: 116px 1fr; }
  .tarjeta-cuerpo { padding: 13px 15px 14px; }
  .tarjeta h3 { font-size: 19px; }
  /* Con ancho de sobra, la sala se lee entera en dos líneas en vez de cortarse */
  .meta-linea { white-space: normal; font-size: 13px; }
  .section-title { font-size: 14px; }

  .destacada { width: 320px; max-width: none; }
  .destacada .poster { height: 190px; }
  .destacada-info h3 { font-size: 18px; }

  .sheet { width: min(680px, 100%); }
  .chip { font-size: 14px; padding: 8px 15px; }

  /* La barra deja de ser un borde pegado abajo y pasa a ser una pastilla flotante:
     en pantalla ancha, estirada de lado a lado, se veía como un pie de página. */
  .tabbar {
    left: 50%; right: auto; transform: translateX(-50%);
    bottom: 18px; width: auto; height: 58px;
    padding: 0 8px; gap: 12px;
    border: 1px solid var(--borde); border-radius: 999px;
    box-shadow: var(--sombra);
  }
  /* La pastilla flota, así que el contenido necesita algo más de aire abajo */
  body { padding-bottom: 96px; }
}

/* Monitor: cuatro columnas */
@media (min-width: 1440px) {
  :root { --ancho: 1560px; }
  .tarjeta { grid-template-columns: 126px 1fr; }
  .destacada { width: 340px; }
  .destacada .poster { height: 205px; }
  .sheet { width: min(760px, 100%); }
}

/* Monitor grande: cinco columnas */
@media (min-width: 1800px) {
  :root { --ancho: 1860px; }
}

/* Con mouse sí hay hover: en el teléfono no existe y por eso no estaba. */
@media (hover: hover) and (pointer: fine) {
  .tarjeta, .destacada { cursor: pointer; }
  .tarjeta:hover, .destacada:hover {
    transform: translateY(-2px);
    border-color: var(--rojo-claro);
    box-shadow: 0 14px 34px rgba(0,0,0,.5);
  }
  .chip:hover:not(.is-active), .icon-btn:hover, .filter-btn:hover, .orden-btn:hover {
    border-color: var(--rojo-claro); color: var(--texto);
  }
  .tab:hover { color: var(--texto); }
}
