/* NY · sistema visual inspirado en la señalética del metro de Nueva York:
   negro, Helvetica en blanco y círculos de color por línea (aquí, por día). */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --panel: #151517;
  --panel2: #1e1e21;
  --line: #2b2b30;
  --ink: #f5f5f2;
  --dim: #a8a8a4;
  --mute: #74746f;
  --accent: #fccc0a;
  --ok: #19a65a;
  --warn: #ff7a33;
  --bad: #ee352e;
  --info: #6aa5ff;
  --radius: 14px;
  --tab-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none; -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--ink); }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

#app { max-width: 540px; margin: 0 auto; padding: 0 0 calc(var(--tab-h) + var(--safe-b) + 28px); min-height: 100vh; }

/* ── letrero ── */
.sign { position: sticky; top: 0; z-index: 20; background: #000; padding: calc(var(--safe-t) + 10px) 16px 12px; border-bottom: 1px solid var(--line); }
.sign::before { content: ""; display: block; height: 3px; background: var(--ink); margin: 0 0 10px; }
.sign-row { display: flex; align-items: center; gap: 12px; }
.sign h1 { font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.sign .sub { color: var(--dim); font-size: 13.5px; margin-top: 3px; }
.sign .clock { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.sign .clock b { display: block; font-size: 20px; letter-spacing: -0.01em; }
.sign .clock span { font-size: 11.5px; color: var(--mute); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: 14px; padding: 6px 10px 6px 0; margin-bottom: 2px; }

.bullet { --c: var(--accent); --t: #000; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c); color: var(--t); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.bullet.sm { width: 26px; height: 26px; font-size: 13.5px; }
.bullet.xs { width: 20px; height: 20px; font-size: 11px; }
.bullet.off { background: var(--panel2); color: var(--mute); }

/* ── estructura ── */
.wrap { padding: 14px 16px 0; display: grid; gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.hot { border-color: var(--accent); }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.eyebrow.y { color: var(--accent); }
.h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
.h3 { font-size: 16px; font-weight: 700; line-height: 1.25; }
.p { color: var(--dim); font-size: 14.5px; margin-top: 4px; text-wrap: pretty; }
.small { font-size: 12.5px; color: var(--mute); }
.sect { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 10px 0 -4px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row > .grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 10px; }
.big { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.y { color: var(--accent); }
.divide > * + * { border-top: 1px solid var(--line); }

/* ── botones y chips ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--panel2); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #000; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { display: flex; width: 100%; }
.btn:active { transform: scale(0.97); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--ink); color: #000; border-color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; background: var(--panel2); color: var(--dim); white-space: nowrap; }
.tag.y { background: var(--accent); color: #000; }
.tag.ok { background: #0f3d24; color: #5fe39a; }
.tag.warn { background: #45230c; color: #ffa368; }
.tag.bad { background: #471512; color: #ff8a84; }
.tag.info { background: #12284a; color: #8dbbff; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { min-height: 38px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--dim); }
.seg button.on { background: var(--ink); color: #000; }

/* ── barra de progreso ── */
.bar { height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }

/* ── listas con casilla ── */
.check { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; width: 100%; text-align: left; }
.check .box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--mute); display: grid; place-items: center; margin-top: 1px; }
.check.on .box { background: var(--ok); border-color: var(--ok); }
.check.on .box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check .t { font-size: 15px; line-height: 1.3; }
.check.on .t { color: var(--mute); text-decoration: line-through; }
.check .n { font-size: 13px; color: var(--mute); margin-top: 3px; line-height: 1.35; }
.check .by { font-size: 11px; color: var(--mute); margin-top: 3px; }

/* ── línea de tiempo ── */
.tl { position: relative; padding: 4px 0; }
.tl-item { display: grid; grid-template-columns: 58px 18px 1fr; gap: 0 8px; padding: 9px 14px 9px 12px; position: relative; }
.tl-time { font-size: 13px; font-weight: 700; text-align: right; padding-top: 1px; font-variant-numeric: tabular-nums; color: var(--dim); line-height: 1.2; }
.tl-time small { display: block; font-size: 10.5px; font-weight: 400; color: var(--mute); }
.tl-dot { position: relative; }
.tl-dot::before { content: ""; position: absolute; left: 8px; top: -9px; bottom: -9px; width: 2px; background: var(--line); }
.tl-item:first-child .tl-dot::before { top: 10px; }
.tl-item:last-child .tl-dot::before { bottom: calc(100% - 10px); }
.tl-dot::after { content: ""; position: absolute; left: 3px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--mute); }
.tl-item.past { opacity: 0.45; }
.tl-item.now .tl-dot::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(252, 204, 10, 0.2); }
.tl-item.now .tl-time { color: var(--accent); }
.tl-body .t { font-size: 15px; font-weight: 700; line-height: 1.25; }
.tl-body .d { font-size: 13.5px; color: var(--dim); margin-top: 2px; text-wrap: pretty; }
.tl-body a.more { display: inline-block; margin-top: 5px; font-size: 13px; font-weight: 700; color: var(--accent); }

/* ── clima ── */
.wx { display: flex; align-items: center; gap: 12px; }
.wx svg { width: 44px; height: 44px; flex: none; }
.wx .temp { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.wx-hours { display: flex; gap: 2px; overflow-x: auto; margin: 12px -14px -4px; padding: 0 14px 4px; scrollbar-width: none; }
.wx-hours::-webkit-scrollbar { display: none; }
.wx-h { flex: none; width: 46px; text-align: center; font-size: 12px; color: var(--mute); }
.wx-h svg { width: 22px; height: 22px; margin: 3px auto; }
.wx-h b { display: block; color: var(--ink); font-size: 13.5px; }
.wx-h i { font-style: normal; color: var(--info); font-size: 11px; }
.wx-h.cur { background: var(--panel2); border-radius: 8px; }
.wx-mini { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--dim); white-space: nowrap; }
.wx-mini svg { width: 20px; height: 20px; }

/* ── lugares ── */
.place { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 10px; align-items: stretch; }
.place .ph { width: 104px; height: 104px; border-radius: 10px; background: var(--panel2) center/cover; position: relative; overflow: hidden; }
.place .ph img { width: 100%; height: 100%; object-fit: cover; }
.place .info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.place .name { font-size: 15.5px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.place .meta { font-size: 12.5px; color: var(--dim); line-height: 1.35; }
.place .foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.score { display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: #000; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.score.s { background: var(--accent); }
.hero { position: relative; aspect-ratio: 4 / 3; background: var(--panel2); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .credit { position: absolute; right: 8px; bottom: 6px; font-size: 10.5px; color: #fff; background: rgba(0, 0, 0, 0.55); padding: 2px 6px; border-radius: 4px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; text-align: right; }
.mini { display: flex; gap: 10px; align-items: center; padding: 9px 12px; }
.mini .ph { width: 46px; height: 46px; border-radius: 8px; background: var(--panel2); overflow: hidden; flex: none; }
.mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.mini .n { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.mini .m { font-size: 12px; color: var(--mute); }
.mini .ord { flex: none; width: 20px; color: var(--mute); font-size: 12px; font-weight: 700; text-align: center; }

/* ── días ── */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.daybtn { flex: none; width: 58px; padding: 8px 0 7px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: grid; justify-items: center; gap: 4px; }
.daybtn span { font-size: 11px; color: var(--mute); font-weight: 700; }
.daybtn.on { border-color: var(--ink); background: var(--panel2); }
.daybtn.on span { color: var(--ink); }
.daybtn.today::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ── visor de tomas ── */
.vf { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vf svg { width: 100%; height: 100%; display: block; }
.vf .badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); color: #fff; }
.vf .badge.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); animation: blink 1.2s steps(2) infinite; }
.vf .lens { position: absolute; right: 10px; top: 10px; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); color: var(--accent); max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes blink { 50% { opacity: 0.2; } }
.shot-body { padding: 12px 14px 14px; }
.shot.done { opacity: 0.55; }

/* ── formularios ── */
.field { display: grid; gap: 5px; }
.field label { font-size: 12px; font-weight: 700; color: var(--mute); letter-spacing: 0.05em; text-transform: uppercase; }
.input { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 16px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea.input { min-height: 88px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stars { display: flex; gap: 4px; }
.stars button { font-size: 26px; line-height: 1; color: var(--line); }
.stars button.on { color: var(--accent); }

/* ── menú Más ── */
.menu a { display: flex; align-items: center; gap: 12px; padding: 14px; }
.menu .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--panel2); display: grid; place-items: center; color: var(--accent); }
.menu .ic svg { width: 20px; height: 20px; }
.menu .chev { margin-left: auto; color: var(--mute); }

/* ── barra de pestañas ── */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(10, 10, 11, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
#tabs .in { max-width: 540px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tab-h); }
#tabs a { display: grid; place-items: center; align-content: center; gap: 3px; color: var(--mute); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; }
#tabs a svg { width: 24px; height: 24px; }
#tabs a.on { color: var(--accent); }

/* ── acceso ── */
.login { min-height: 100vh; display: grid; align-content: center; padding: 24px 20px; max-width: 420px; margin: 0 auto; gap: 18px; }
.login .mark { display: flex; gap: 8px; }
.login h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.login .err { color: #ff8a84; font-size: 14px; min-height: 20px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); transform: translateX(-50%); z-index: 50; background: var(--ink); color: #000; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; max-width: 90vw; text-align: center; }
.banner { background: var(--accent); color: #000; border-radius: var(--radius); padding: 12px 14px; }
.banner .eyebrow { color: rgba(0, 0, 0, 0.6); }
.offline { background: #45230c; color: #ffa368; font-size: 12.5px; font-weight: 700; text-align: center; padding: 5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
