
/* Layout: «hogar con cielo» — un cielo vivo arriba (tiempo real) y tarjetas táctiles debajo; el móvil va en un marco, el panel en lienzo apaisado escalado. */
:root {
  --bg: #e9edf7;
  --surface: #ffffff;
  --surface-2: #f3f5fb;
  --ink: #111831;
  --muted: #5d6786;
  --line: #dbe1f0;
  --accent: #2f55ff;
  --accent-ink: #ffffff;
  --good: #149e6b;
  --bad: #e5484d;
  --warn: #d98a00;
  --javi: #13a89a;
  --bea: #f2545b;
  --javier: #8a5cf6;
  --nico: #2f6bff;
  --casa: #f0a020;
  --shadow: 0 1px 2px rgba(17,24,49,.06), 0 10px 30px rgba(17,24,49,.08);
  --f-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --f-body: "Onest", -apple-system, "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #090d1a; --surface: #131a2e; --surface-2: #1a2238; --ink: #edf1ff; --muted: #96a0c2; --line: #263051;
  --accent: #6d86ff; --accent-ink: #0a0f22; --good: #3ccf91; --bad: #ff6b70; --warn: #ffb740;
  --javi: #34d3c2; --bea: #ff7a80; --javier: #a989ff; --nico: #6a95ff; --casa: #ffbb45;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.35); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #090d1a; --surface: #131a2e; --surface-2: #1a2238; --ink: #edf1ff; --muted: #96a0c2; --line: #263051;
  --accent: #6d86ff; --accent-ink: #0a0f22; --good: #3ccf91; --bad: #ff6b70; --warn: #ffb740;
  --javi: #34d3c2; --bea: #ff7a80; --javier: #a989ff; --nico: #6a95ff; --casa: #ffbb45;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.35); color-scheme: dark; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.4 var(--f-body); overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); }

/* ---------- Marco exterior ---------- */
.escenario { height: 100%; display: flex; flex-direction: column; }
.barra-mock {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.marca { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.marca b { font: 700 19px var(--f-display); letter-spacing: -.02em; }
.marca span { color: var(--muted); font-size: 12.5px; }
.conmutador { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.conmutador button { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.conmutador button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lienzo { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 16px 16px; }

/* ---------- Teléfono ---------- */
.telefono {
  position: relative; width: 392px; height: min(820px, 100%); border-radius: 46px; background: var(--bg);
  box-shadow: 0 0 0 10px #0d1120, 0 0 0 11px #2a3150, 0 30px 80px rgba(10,15,35,.35); overflow: hidden; display: flex; flex-direction: column;
}
@media (max-width: 560px) {
  .marca span { display: none; }
  .barra-mock { padding-block: 6px; flex-wrap: nowrap; }
  .lienzo { padding: 0; }
  .telefono { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
}
.pantallas { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.pantalla { display: none; padding: 14px 16px 110px; animation: entra .45s cubic-bezier(.2,.8,.2,1); }
.pantalla.activa { display: block; }
@keyframes entra { from { transform: translateY(10px); } to { transform: none; } }

.cabeza { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 2px 14px; }
.cabeza h1 { font-size: 30px; font-weight: 750; letter-spacing: -.035em; }
.cabeza small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.yo { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 13px var(--f-display); flex: none; }
.av-javi { background: var(--javi); } .av-bea { background: var(--bea); } .av-javier { background: var(--javier); } .av-nico { background: var(--nico); } .av-casa { background: var(--casa); }

.pestanas {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 20; display: grid; grid-template-columns: repeat(6, 1fr);
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--line); border-radius: 26px; padding: 6px; box-shadow: var(--shadow);
  margin-bottom: env(safe-area-inset-bottom, 0px);
}
.pestanas button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 18px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.pestanas svg { width: 22px; height: 22px; }
.pestanas button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.seccion { margin-top: 22px; }
.seccion > header { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.seccion > header h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.seccion > header button, .enlace { color: var(--accent); font-weight: 600; font-size: 13.5px; }
.etiqueta { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ejemplo { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.real { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--good); }
.real::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }

/* ---------- Cielo (tiempo) ---------- */
.cielo { position: relative; overflow: hidden; border-radius: 30px; color: #fff; padding: 18px 18px 14px; min-height: 250px; isolation: isolate;
  background: var(--cielo, linear-gradient(160deg, #3f7bff, #8fc0ff 70%, #ffd9a0)); box-shadow: 0 18px 40px -16px rgba(47,85,255,.55); }
.cielo canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cielo .sol-brillo { position: absolute; width: 260px; height: 260px; right: -60px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,190,.75), rgba(255,240,190,0) 65%); z-index: -1; }
.cielo .icono3d { position: absolute; right: 6px; top: 4px; width: 150px; height: 150px; filter: drop-shadow(0 18px 22px rgba(0,0,0,.25)); animation: flota 6s ease-in-out infinite; }
@keyframes flota { 50% { transform: translateY(-8px) rotate(-2deg); } }
.cielo .saludo { font-size: 14px; font-weight: 600; opacity: .92; }
.cielo .temp { font: 300 92px/0.95 var(--f-display); letter-spacing: -.06em; margin-top: 6px; }
.cielo .temp sup { font-size: 40px; vertical-align: 38px; margin-left: 2px; }
.cielo .estado { font: 600 17px var(--f-display); margin-top: 2px; }
.cielo .datos { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; opacity: .92; margin-top: 4px; }
.horas { display: flex; gap: 4px; overflow-x: auto; margin: 14px -6px 0; padding: 10px 6px 2px; scrollbar-width: none; border-top: 1px solid rgba(255,255,255,.25); }
.horas::-webkit-scrollbar { display: none; }
.hora { flex: none; width: 52px; text-align: center; font-size: 12px; }
.hora img { width: 34px; height: 34px; display: block; margin: 3px auto; }
.hora b { font: 600 15px var(--f-display); }

.semana { padding: 6px 14px; }
.dia-t { display: grid; grid-template-columns: 52px 34px 30px 1fr 30px; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.dia-t:last-child { border-bottom: 0; }
.dia-t img { width: 32px; height: 32px; }
.dia-t .min { color: var(--muted); text-align: right; }
.dia-t .max { font-weight: 700; }
.rango { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); }
.rango i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #5aa7ff, #ffc04d 60%, #ff7a45); }

/* ---------- Tarjetas de inicio ---------- */
.rejilla2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-tarjeta { padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-tarjeta .grande { font: 700 26px var(--f-display); letter-spacing: -.03em; }
.mini-tarjeta small { color: var(--muted); font-size: 12.5px; }
.avatares { display: flex; }
.avatares .avatar { width: 24px; height: 24px; font-size: 10px; border: 2px solid var(--surface); margin-left: -6px; }
.avatares .avatar:first-child { margin-left: 0; }

.partido { position: relative; overflow: hidden; padding: 16px; color: #fff; border-radius: 24px; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, #3d6dff 0%, rgba(61,109,255,0) 60%), linear-gradient(160deg, #0f2a8a, #081646); }
.partido::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.5) 38px 39px), radial-gradient(circle at 50% 120%, transparent 60px, rgba(255,255,255,.6) 61px 62px, transparent 63px); }
.partido .balon { position: absolute; right: -22px; top: -22px; width: 92px; opacity: .95; animation: gira 14s linear infinite; filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); }
@keyframes gira { to { transform: rotate(360deg); } }
.partido .liga { max-width: 75%; font-size: 11.5px; opacity: .8; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.marcador { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 14px 0 10px; }
.equipo { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font: 600 13px/1.2 var(--f-display); }
.escudo { width: 46px; height: 52px; }
.vs { text-align: center; }
.vs b { display: block; font: 700 26px var(--f-display); letter-spacing: -.02em; }
.vs small { font-size: 11.5px; opacity: .85; }
.cuenta { display: flex; justify-content: center; gap: 6px; }
.cuenta div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 6px 8px; min-width: 50px; text-align: center; }
.cuenta b { display: block; font: 700 20px var(--f-mono); }
.cuenta small { font-size: 10px; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.campo { font-size: 12.5px; opacity: .9; text-align: center; margin-top: 10px; }
.racha { display: flex; gap: 5px; }
.racha span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 700 12px var(--f-mono); color: #fff; }
.racha .G { background: var(--good); } .racha .P { background: var(--bad); } .racha .E { background: var(--warn); }

/* ---------- Agenda ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.chip .avatar { width: 24px; height: 24px; font-size: 10px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .fuente { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--javi) 20%, transparent); color: var(--javi); }
.chip[aria-pressed="true"] .fuente { background: rgba(255,255,255,.18); color: inherit; }
.tira-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 0 6px; }
.dpill { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 16px; font-size: 11px; color: var(--muted); }
.dpill b { font: 700 18px var(--f-display); color: var(--ink); }
.dpill.hoy { background: var(--accent); color: var(--accent-ink); }
.dpill.hoy b { color: var(--accent-ink); }
.dpill .puntos { display: flex; gap: 2px; height: 5px; }
.dpill .puntos i { width: 5px; height: 5px; border-radius: 50%; }
.dia-ag h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--f-body); font-weight: 700; margin: 18px 4px 8px; }
.evento { display: grid; grid-template-columns: 52px 4px 1fr; gap: 10px; align-items: stretch; padding: 10px 12px; }
.evento + .evento { border-top: 1px solid var(--line); }
.evento .h { font: 500 13px var(--f-mono); color: var(--muted); padding-top: 1px; }
.evento .barra { border-radius: 2px; }
.evento b { font-weight: 600; display: block; }
.evento small { color: var(--muted); font-size: 12.5px; }

/* ---------- Compra ---------- */
.segmento { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 3px; margin-bottom: 12px; }
.segmento button { padding: 8px 0; border-radius: 11px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.segmento button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.buscar { display: flex; gap: 6px; padding: 5px; border-radius: 18px; }
.buscar input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.icono-b { width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; }
.icono-b svg { width: 22px; height: 22px; }
.resultados { margin-top: 8px; max-height: 340px; overflow: auto; }
.res { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res .t { flex: 1; min-width: 0; }
.res small { display: block; color: var(--muted); font-size: 12px; }
.res .p { font: 600 14px var(--f-mono); }
.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); flex: none; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.pasillo { margin: 18px 4px 8px; display: flex; align-items: center; gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-height: 64px; transition: opacity .3s; }
.item + .item { border-top: 1px solid var(--line); }
.check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; transition: all .25s cubic-bezier(.3,1.6,.5,1); }
.check svg { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: all .25s cubic-bezier(.3,1.6,.5,1); }
.item.hecho .check { background: var(--good); border-color: var(--good); color: #fff; }
.item.hecho .check svg { opacity: 1; transform: none; }
.item.hecho .t b { text-decoration: line-through; color: var(--muted); }
.item .t { flex: 1; min-width: 0; text-align: left; }
.item .t b { font-weight: 600; display: block; line-height: 1.25; }
.item .t small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; margin-top: 2px; }
.punto { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.item .p { font: 500 13.5px var(--f-mono); color: var(--muted); white-space: nowrap; }
.cant { color: var(--accent); font-weight: 700; }
.total-lista { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin-top: 14px; border-radius: 18px; background: var(--ink); color: var(--bg); }
.total-lista b { font: 700 24px var(--f-display); }
.sug { background: linear-gradient(135deg, color-mix(in srgb, var(--casa) 16%, var(--surface)), var(--surface)); }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.boton.ancho { width: 100%; margin-top: 12px; }
.boton svg { width: 20px; height: 20px; flex: none; }
.boton.sec { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.mas { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 20px/1 var(--f-display); flex: none; }
.menu-dia { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 12px 14px; }
.menu-dia + .menu-dia { border-top: 1px solid var(--line); }
.menu-dia .fecha b { display: block; font: 700 22px/1 var(--f-display); }
.menu-dia .fecha small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.menu-dia p { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.menu-dia p span { width: 46px; flex: none; color: var(--muted); font-size: 11.5px; }
.menu-dia.hoy { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---------- Nico ---------- */
.nico-hero { position: relative; overflow: hidden; border-radius: 30px; padding: 18px; color: #fff; isolation: isolate; background: linear-gradient(160deg, #1440d8, #0a1b5c 70%); }
.nico-hero .balon { position: absolute; width: 150px; right: -46px; top: 18px; animation: gira 18s linear infinite; filter: drop-shadow(0 16px 20px rgba(0,0,0,.45)); }
.nico-hero .etiqueta { display: block; max-width: 72%; }
.nico-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; max-width: 70%; margin-top: 6px; }
.nico-hero p { margin: 4px 0 0; opacity: .85; font-size: 13px; max-width: 70%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.stats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 8px 6px; text-align: center; }
.stats b { display: block; font: 700 22px var(--f-display); }
.stats small { font-size: 10.5px; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.resultado { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; }
.resultado + .resultado { border-top: 1px solid var(--line); }
.resultado .j { font: 500 12px var(--f-mono); color: var(--muted); }
.resultado .eq { font-size: 13.5px; min-width: 0; }
.resultado .eq b { font-weight: 700; }
.resultado .eq small { display: block; color: var(--muted); font-size: 11.5px; }
.res-marc { font: 700 15px var(--f-mono); padding: 4px 9px; border-radius: 10px; color: #fff; white-space: nowrap; }
.res-marc.G { background: var(--good); } .res-marc.P { background: var(--bad); } .res-marc.F { background: var(--surface-2); color: var(--muted); font-size: 12px; }
.tabla-wrap { overflow-x: auto; }
table.clasif { width: 100%; border-collapse: collapse; font-size: 13px; }
.clasif th { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: 8px 6px; text-align: right; }
.clasif th:nth-child(2), .clasif td:nth-child(2) { text-align: left; }
.clasif td { padding: 8px 6px; text-align: right; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.clasif td:first-child { font-family: var(--f-mono); color: var(--muted); }
.clasif tr.nuestro td { background: color-mix(in srgb, var(--nico) 14%, transparent); font-weight: 700; }
.clasif tr.nuestro td:first-child { box-shadow: inset 3px 0 0 var(--nico); }
.fuente-dato { font-size: 11.5px; color: var(--muted); margin: 10px 4px 0; }

/* ---------- Gastos ---------- */
.gasto-hero { padding: 18px; display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; }
.gasto-hero .grande { font: 750 44px/1 var(--f-display); letter-spacing: -.04em; }
.gasto-hero .grande small { font-size: 22px; }
.anillo { width: 120px; height: 120px; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12.5px; padding: 3px 8px; border-radius: 8px; }
.delta.sube { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.delta.baja { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.barras { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; padding: 16px 14px 10px; }
.barra-mes { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.barra-mes i { width: 100%; max-width: 34px; border-radius: 10px 10px 6px 6px; background: color-mix(in srgb, var(--accent) 28%, var(--surface-2)); transform-origin: bottom; animation: crece .8s cubic-bezier(.2,.8,.2,1) both; }
.barra-mes.actual i { background: var(--accent); }
.barra-mes small { font-size: 11px; color: var(--muted); }
.barra-mes b { font: 500 10.5px var(--f-mono); color: var(--muted); }
@keyframes crece { from { transform: scaleY(.05); } }
.reparto { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 12px 0 10px; }
.leyenda { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; }
.leyenda span { display: flex; align-items: center; gap: 6px; }
.ticket-f { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; }
.ticket-f + .ticket-f { border-top: 1px solid var(--line); }
.ticket-f .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.ticket-f .ic svg { width: 20px; height: 20px; }
.ticket-f small { display: block; color: var(--muted); font-size: 12px; }
.ticket-f .t { font: 600 15px var(--f-mono); }
.alerta { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; }
.alerta + .alerta { border-top: 1px solid var(--line); }
.alerta s { color: var(--muted); font: 12px var(--f-mono); }

/* ---------- Capas (escáner, voz, hojas) ---------- */
.capa { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; animation: aparece .25s ease both; }
@keyframes aparece { from { opacity: 0; } }
.capa.oscura { background: rgba(6,10,24,.92); color: #fff; }
.visor { position: relative; width: 82%; max-width: 300px; aspect-ratio: 1.6; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #f2e6c9, #d9c49a); box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.visor .codigo { position: absolute; left: 16%; right: 16%; top: 26%; bottom: 26%; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); }
.laser { position: absolute; left: 6%; right: 6%; height: 2px; background: #ff3b3b; box-shadow: 0 0 12px 3px rgba(255,59,59,.8); animation: barre 1.1s ease-in-out infinite alternate; }
@keyframes barre { from { top: 18%; } to { top: 80%; } }
.ondas { display: flex; gap: 5px; align-items: center; height: 60px; }
.ondas i { width: 6px; border-radius: 3px; background: #fff; animation: onda 0.9s ease-in-out infinite; }
@keyframes onda { 0%, 100% { height: 10px; } 50% { height: 56px; } }
.papel { position: relative; width: 250px; background: #fffdf6; color: #222; font: 12px/1.5 var(--f-mono); padding: 18px 16px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.5); clip-path: polygon(0 0, 100% 0, 100% 96%, 95% 100%, 90% 96%, 85% 100%, 80% 96%, 75% 100%, 70% 96%, 65% 100%, 60% 96%, 55% 100%, 50% 96%, 45% 100%, 40% 96%, 35% 100%, 30% 96%, 25% 100%, 20% 96%, 15% 100%, 10% 96%, 5% 100%, 0 96%); }
.papel .l { display: flex; justify-content: space-between; gap: 8px; }
.papel .l.on { background: rgba(47,85,255,.14); }
.papel .cab { text-align: center; font-weight: 500; margin-bottom: 8px; }
.papel .tot { border-top: 1px dashed #999; margin-top: 6px; padding-top: 6px; font-weight: 500; }
.papel .laser { left: 0; right: 0; }
.hoja { position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: sube .35s cubic-bezier(.2,.8,.2,1); max-height: 85%; overflow: auto; }
@keyframes sube { from { transform: translateY(100%); } }
.velo { position: absolute; inset: 0; z-index: 40; background: rgba(6,10,24,.45); animation: aparece .2s ease both; }
.asa { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.personas { display: grid; gap: 8px; margin-top: 12px; }
.persona { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); text-align: left; }
.persona[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.persona .avatar { width: 40px; height: 40px; font-size: 16px; }
.persona small { display: block; color: var(--muted); font-size: 12.5px; }
.aviso { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: 13.5px; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--shadow); animation: aparece .2s ease both; }

/* ---------- Panel de cocina ---------- */
.panel-marco { width: 1180px; height: 820px; transform-origin: top left; flex: none; border-radius: 38px; background: #0d1120; padding: 18px; box-shadow: 0 30px 80px rgba(10,15,35,.35); }
.panel-escala { position: relative; }
.panel { position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: var(--bg); display: grid; grid-template-columns: 360px 1fr 340px; gap: 16px; padding: 18px; }
.panel .col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.panel .reloj { font: 250 112px/0.9 var(--f-display); letter-spacing: -.06em; }
.panel .fecha-p { font: 600 22px var(--f-display); color: var(--muted); }
.panel .cielo { min-height: 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.panel .cielo .icono3d { width: 190px; height: 190px; right: 10px; top: 10px; }
.panel .cielo .temp { font-size: 110px; }
.pdias { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.25); text-align: center; font-size: 13px; }
.pdias img { width: 40px; height: 40px; display: block; margin: 2px auto; }
.panel h2 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.panel .lista-p { flex: 1; min-height: 0; overflow: hidden; padding: 6px 4px; }
.panel .item { min-height: 58px; font-size: 18px; }
.panel .item .t b { font-size: 18px; }
.panel .menu-hoy { padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel .menu-hoy b { font: 700 20px/1.2 var(--f-display); display: block; margin-top: 2px; }
.panel .ag-p { flex: 1; min-height: 0; overflow: hidden; }
.panel .evento b { font-size: 16px; }
.panel .partido { padding: 14px; }
.boton-secre { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 20px; background: var(--ink); color: var(--bg); font: 700 17px var(--f-display); }
.boton-secre small { display: block; font: 500 12px var(--f-body); opacity: .7; }
.reposo { position: absolute; inset: 0; z-index: 30; border-radius: 22px; overflow: hidden; background: #000; animation: aparece .8s ease both; }
.reposo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reposo .info { position: absolute; left: 40px; bottom: 34px; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.reposo .info b { display: block; font: 250 150px/0.9 var(--f-display); letter-spacing: -.06em; }
.reposo .info span { font: 600 26px var(--f-display); }
.reposo .info img { width: 64px; height: 64px; vertical-align: middle; }
.reposo .nota { position: absolute; right: 30px; top: 26px; color: rgba(255,255,255,.75); font-size: 14px; }
.flotante { position: absolute; right: 26px; bottom: 26px; z-index: 31; }


/* ---------- Entrada ---------- */
.login { position: absolute; inset: 0; z-index: 60; overflow-y: auto; padding: 46px 22px 30px; color: #fff; text-align: center;
  background: radial-gradient(120% 70% at 80% 0%, #ffd7a1 0%, rgba(255,215,161,0) 50%), linear-gradient(170deg, #2e66ff, #4f8dff 45%, #1b2a7a); }
.login-sol { width: 120px; height: 120px; animation: flota 6s ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(0,0,0,.25)); }
.login h1 { font-size: 38px; font-weight: 800; letter-spacing: -.04em; margin-top: 6px; }
.login > p { margin: 4px 0 18px; opacity: .9; }
.quienes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.quienes .q { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: 13px; color: #fff; }
.quienes .q[aria-pressed="true"] { background: #fff; color: #111831; }
.quienes .avatar { width: 40px; height: 40px; font-size: 15px; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.login .campo-l span { color: rgba(255,255,255,.85); }
.login .campo-l input { background: rgba(255,255,255,.95); color: #111831; border-color: transparent; }
.login .boton { background: #fff; color: #1b2a7a; }
.login .boton.sec { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.login .fuente-dato { color: rgba(255,255,255,.75); }
.l-error { background: rgba(255,80,80,.25); border-radius: 10px; padding: 8px; margin: 6px 0 0; font-size: 13.5px; }
.campo-l { display: block; text-align: left; margin: 10px 0; }
.campo-l span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.campo-l input, .campo-l select, .interruptor select { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 16px; }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.interruptor { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.interruptor + .interruptor { border-top: 1px solid var(--line); }
.interruptor input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.interruptor small { display: block; color: var(--muted); font-size: 12px; }
.interruptor select { width: auto; padding: 8px; font-size: 14px; }
.chip.sin-av { padding: 7px 14px; }

/* ---------- Generar / compra hecha ---------- */
.generar, .hecha { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px; border-radius: 24px; color: #fff; margin-bottom: 12px; }
.generar { background: linear-gradient(120deg, #2f55ff, #7b5cff 55%, #ff6a8a); box-shadow: 0 16px 34px -14px rgba(90,80,255,.8); }
.hecha { background: linear-gradient(120deg, #0f9d6a, #24c08a 60%, #8fe3b9); box-shadow: 0 16px 34px -14px rgba(20,160,110,.8); margin: 16px 0 0; }
.generar::after, .hecha::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: brillo 3.2s ease-in-out infinite; }
@keyframes brillo { 60%, 100% { transform: translateX(100%); } }
.g-ic { font-size: 30px; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.g-t b { display: block; font: 750 20px/1.15 var(--f-display); letter-spacing: -.02em; }
.g-t small { opacity: .9; font-size: 13px; }
.progreso { padding: 14px 16px; margin-bottom: 12px; }
.pr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pr-top b { font: 700 17px var(--f-display); }
.pr-top span { color: var(--muted); font-size: 13px; }
.pr-barra { height: 10px; border-radius: 5px; background: var(--surface-2); margin-top: 10px; overflow: hidden; }
.pr-barra i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--good), #8fe3b9); transition: width .4s; }
.vacia { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 30px 20px; color: var(--muted); }
.vacia span { font-size: 44px; }
.vacia b { color: var(--ink); font: 700 18px var(--f-display); }
.gen { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.gen h2 { font-size: 24px; text-align: center; margin-bottom: 6px; }
.gen-paso { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.08); opacity: .25; transform: translateX(-14px); transition: all .45s cubic-bezier(.2,.8,.2,1); }
.gen-paso.on { opacity: 1; transform: none; background: rgba(255,255,255,.14); }
.gen-ic { font-size: 22px; text-align: center; }
.gen-paso em { font: 700 18px var(--f-mono); font-style: normal; color: #9fffd2; }
.gen-total { text-align: center; min-height: 56px; margin-top: 8px; }
.gen-total b { display: block; font: 750 24px var(--f-display); }
.gen-total small { display: inline-flex; align-items: center; gap: 6px; opacity: .85; }
.gen-total svg { width: 16px; height: 16px; }
.confeti { position: absolute; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confeti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: cae 2.2s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes cae { to { transform: translate(var(--x), 105vh) rotate(var(--giro)); opacity: .9; } }

/* ---------- Telegram ---------- */
.tg-mini { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; }
.tg-ico { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(160deg, #3fb1f0, #1f88d6); color: #fff; display: grid; place-items: center; flex: none; }
.tg-ico svg { width: 20px; height: 20px; margin-left: -2px; }
.tg-txt { flex: 1; min-width: 0; }
.tg-txt b { display: block; }
.tg-txt small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { background: #1f88d6; color: #fff; font-weight: 700; font-size: 12px; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
.tg { position: absolute; inset: 0; z-index: 45; display: flex; flex-direction: column; background: var(--bg); animation: entra .3s ease both; }
.tg-cab { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tg-cab > button { font-size: 32px; line-height: 1; padding: 0 6px; color: #1f88d6; }
.tg-cab small { display: block; color: var(--muted); font-size: 12px; }
.tg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tg-tabs button { padding: 7px 0; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--muted); }
.tg-tabs button[aria-pressed="true"] { background: #1f88d6; color: #fff; }
.tg-chat { flex: 1; overflow-y: auto; padding: 14px 12px 30px; display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, #3fb1f0 14%, transparent), transparent 40%), radial-gradient(circle at 80% 70%, color-mix(in srgb, #8a5cf6 12%, transparent), transparent 45%), var(--bg); }
.tg-chat.claro { background: var(--bg); }
.burbuja { position: relative; max-width: 88%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 8px 12px 18px; font-size: 14px; box-shadow: var(--shadow); }
.tg-autor { display: block; color: #1f88d6; font-size: 12.5px; margin-bottom: 2px; }
.tg-hora { position: absolute; right: 10px; bottom: 4px; font-size: 10.5px; color: var(--muted); }
.tg-botones { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.tg-b { flex: 1; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #1f88d6 14%, transparent); color: #1f88d6; font-weight: 700; font-size: 13px; }
.tg-hecho { font-weight: 700; color: var(--good); }
.tg-previa { margin-bottom: 12px; }
.tg-previa .burbuja { margin-top: 6px; max-width: 100%; padding-bottom: 10px; }
.tg-aj { margin-bottom: 14px; }
.tg-aj .tarjeta { margin-top: 6px; }

/* ---------- Pelis ---------- */
.noche { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border-radius: 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, #ff6a8a, rgba(255,106,138,0) 60%), linear-gradient(150deg, #1a1446, #3b1f7a); box-shadow: 0 16px 34px -16px rgba(60,30,140,.8); }
.noche b { display: block; font: 750 20px var(--f-display); letter-spacing: -.02em; }
.noche small { opacity: .85; }
.noche-ic { font-size: 34px; }
.segmento.dos { grid-template-columns: 1fr 1fr; }
.carteles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.cartel { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); max-width: 100%; }
.cartel img, .ficha-cartel img, .ruleta-cartel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sin-cartel { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px 10px 30px; color: #fff; text-align: left; }
.sin-cartel b { font-family: var(--f-display); line-height: 1.1; }
.c-quien { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 2px #fff; }
.c-serie { position: absolute; top: 7px; right: 6px; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.6); color: #fff; padding: 2px 6px; border-radius: 6px; }
.c-pie { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 16px 6px 6px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
.c-pie small { font-size: 9.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-votos { display: flex; gap: 2px; }
.c-votos i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.ficha { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.ficha-cartel { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.ficha h2 { font-size: 22px; letter-spacing: -.02em; }
.ficha p { margin: 4px 0; }
.ficha-datos { color: var(--muted); font-size: 13px; }
.chip-pl { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.sinopsis { line-height: 1.5; margin: 12px 0; }
.votos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 4px; }
.voto { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 14px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; opacity: .55; }
.voto[aria-pressed="true"] { opacity: 1; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ruleta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ruleta-cartel { position: relative; width: 180px; aspect-ratio: 2 / 3; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); }


/* ---------- Buzón y globos ---------- */
.cab-der { display: flex; align-items: center; gap: 8px; }
.campana { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.campana svg { width: 21px; height: 21px; }
.globo { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3b30; color: #fff; font: 700 11.5px/20px var(--f-body); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.globo.pop { animation: pop .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { 0% { transform: scale(.3); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.globo-tab { top: 2px; right: calc(50% - 22px); min-width: 17px; height: 17px; font-size: 10px; line-height: 17px; box-shadow: 0 0 0 2px var(--surface); }
.volver { color: var(--accent); font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.buzon-cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.noti { border-radius: 16px; margin: 0 -6px; }
.noti.nueva { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.noti + .noti { margin-top: 4px; }
.noti-c { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 10px 8px; position: relative; }
.noti-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; flex: none; }
.noti-t { flex: 1; min-width: 0; }
.noti-t b { display: block; font-weight: 600; line-height: 1.3; }
.noti-t small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.noti-t em { font-style: normal; font-size: 11px; color: var(--muted); }
.punto-azul { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.noti-votar { display: flex; gap: 8px; padding: 0 8px 10px 60px; }
.noti-votar .boton { padding: 8px 12px; font-size: 13.5px; }

/* ---------- Recetas ---------- */
.recetas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.receta { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.r-foto { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); max-width: 100%; }
.r-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-cat { position: absolute; left: 8px; bottom: 8px; font-size: 10.5px; font-weight: 700; text-transform: capitalize; background: rgba(0,0,0,.6); color: #fff; padding: 2px 7px; border-radius: 7px; }
.r-t { padding: 9px 10px 11px; }
.r-t b { display: block; font-size: 13.5px; line-height: 1.25; }
.r-t small { color: var(--muted); font-size: 11.5px; }
.receta-hoja { max-height: 92%; }
.rh-foto { margin: 0 -18px; aspect-ratio: 4 / 3; max-height: 240px; overflow: hidden; }
.rh-foto img { width: 100%; height: 100%; object-fit: cover; }
.rh-h { font-size: 17px; margin: 18px 0 8px; }
.ingredientes { margin: 0; padding-left: 20px; columns: 2; column-gap: 18px; font-size: 14px; }
.ingredientes li { margin: 3px 0; break-inside: avoid; }
.pasos-r { margin: 0; padding-left: 22px; font-size: 14.5px; line-height: 1.5; }
.pasos-r li { margin: 6px 0; }
.proponer { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.propuesta { padding: 14px; margin-bottom: 10px; }
.propuesta.aprobada { border-color: var(--good); }
.propuesta.rechazada { opacity: .75; }
.prop-top { display: flex; gap: 12px; align-items: center; }
.prop-foto { width: 64px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface-2); display: grid; place-items: center; }
.prop-foto img { width: 100%; height: 100%; object-fit: cover; }
.prop-top b { display: block; font: 700 16px/1.2 var(--f-display); }
.prop-top small { color: var(--muted); font-size: 12.5px; }
.prop-votos { display: flex; gap: 10px; margin: 12px 0 4px; }
.pv { position: relative; }
.pv .avatar { width: 36px; height: 36px; font-size: 13px; }
.pv i { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--f-body); font-style: normal; color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.pv.si i { background: var(--good); } .pv.no i { background: var(--bad); } .pv.falta i { background: var(--muted); }
.pv.falta .avatar { opacity: .45; }
.prop-botones { display: flex; gap: 8px; margin-top: 10px; }
.prop-botones .boton { flex: 1; }
.prop-estado { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.prop-estado.ok { color: var(--good); font-weight: 600; } .prop-estado.ko { color: var(--bad); font-weight: 600; }
.demo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); }
.demo button { border: 1px dashed var(--line); border-radius: 8px; padding: 4px 8px; font-size: 11.5px; color: var(--muted); }

/* ---------- Familia ---------- */
.mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaico-t { position: relative; text-align: left; padding: 14px; border-radius: 22px; min-height: 124px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; color: #fff; overflow: visible; box-shadow: var(--shadow); }
.mosaico-t b { font: 700 16px/1.15 var(--f-display); }
.mosaico-t small { font-size: 12px; opacity: .9; }
.m-ic { font-size: 30px; margin-bottom: auto; }
.m-ic svg { width: 28px; height: 28px; }
.m-azul { background: linear-gradient(150deg, #2f6bff, #0f2a8a); } .m-verde { background: linear-gradient(150deg, #19b089, #0c6b55); }
.m-amarillo { background: linear-gradient(150deg, #f7b733, #e07b00); } .m-rosa { background: linear-gradient(150deg, #ff7a9a, #d1386a); }
.m-naranja { background: linear-gradient(150deg, #ff8a4c, #c94a1c); } .m-morado { background: linear-gradient(150deg, #9b6bff, #5a2fc2); }
.m-tg { background: linear-gradient(150deg, #3fb1f0, #1f6fb8); grid-column: span 2; min-height: 84px; }
.mosaico-t .globo { top: -6px; right: -6px; }
.trayecto { padding: 12px 14px; margin-bottom: 10px; }
.trayecto.pendiente { border-color: var(--warn); box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 25%, transparent); }
.tr-cab { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tr-cab b { display: block; font: 700 16px var(--f-display); }
.tr-cab small { color: var(--muted); font-size: 12.5px; }
.ll-fila { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ll-rol { width: 58px; flex: none; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ll-op { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.falta { border-style: dashed; color: var(--warn); }
.tira-notas { display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 12px; scrollbar-width: none; }
.tira-notas::-webkit-scrollbar { display: none; }
.postit { flex: none; width: 150px; min-height: 120px; padding: 12px 12px 10px; background: var(--c); color: #2b2a26; border-radius: 4px 4px 16px 4px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.35); display: flex; flex-direction: column; justify-content: space-between; position: relative; transform: rotate(-1.5deg); }
.postit:nth-child(2n) { transform: rotate(1.8deg); }
.postit::before { content: ""; position: absolute; top: -7px; left: 50%; width: 46px; height: 14px; margin-left: -23px; background: rgba(255,255,255,.55); transform: rotate(-3deg); }
.postit p { margin: 0; font: 700 19px/1.15 Caveat, "Bradley Hand", cursive; }
.pi-pie { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(43,42,38,.7); margin-top: 8px; }
.pi-pie .avatar { width: 20px; height: 20px; font-size: 9px; }
.notas-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 4px; }
.postit.grande { width: auto; min-height: 150px; }
.postit.grande p { font-size: 22px; }
.pi-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.12); font-size: 12px; color: #2b2a26; }
.color { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; flex: none; }
.color[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface) inset; }
textarea { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 16px; resize: none; }
.cumple, .deseo, .venc { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.cumple + .cumple, .deseo + .deseo, .venc + .venc { border-top: 1px solid var(--line); }
.cumple > div, .deseo > div { flex: 1; min-width: 0; }
.cumple small, .deseo small, .venc small { display: block; color: var(--muted); font-size: 12.5px; }
.cu-ic, .de-ic, .ve-ic { font-size: 24px; width: 36px; text-align: center; flex: none; }
.cu-falta { font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cu-falta.pronto { color: var(--bad); }
.ve-t { flex: 1; min-width: 0; }
.ve-barra { display: block; height: 5px; border-radius: 3px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.ve-barra i { display: block; height: 100%; border-radius: 3px; }
.ve-dias { text-align: center; font-size: 10.5px; font-weight: 600; text-transform: uppercase; }
.ve-dias b { display: block; font: 750 22px/1 var(--f-display); }
.wifi { padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wifi b { font: 700 19px var(--f-display); }
.wifi p { margin: 0; }
.qr-wifi { width: 210px; padding: 10px; background: #fff; border-radius: 16px; }
.qr-wifi svg { width: 100%; height: auto; display: block; }
.notas-panel { display: flex; gap: 10px; padding: 4px 2px; }
.notas-panel .postit { width: auto; flex: 1; min-height: 96px; }
.notas-panel .postit p { font-size: 18px; }
.fila-panel { display: flex; gap: 10px; }
.fila-panel .boton-secre { flex: 1; }
.boton-wifi { width: 92px; border-radius: 20px; background: linear-gradient(150deg, #9b6bff, #5a2fc2); color: #fff; font: 700 13px/1.2 var(--f-display); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.boton-wifi span { font-size: 22px; }
.wifi-panel { position: absolute; inset: 0; z-index: 35; display: grid; place-items: center; background: rgba(6,10,24,.75); backdrop-filter: blur(6px); animation: aparece .3s ease both; border-radius: 22px; }
.wp-caja { display: flex; gap: 36px; align-items: center; background: var(--surface); border-radius: 30px; padding: 36px 44px; max-width: 820px; }
.wp-caja h2 { font-size: 40px; letter-spacing: -.03em; margin: 4px 0 8px; }
.wp-caja p { font-size: 20px; color: var(--muted); margin: 0 0 12px; }
.qr-wifi.grande { width: 300px; }


/* ---------- Próximas a ver ---------- */
.proximas { position: relative; overflow: hidden; border-radius: 26px; padding: 16px; color: #fff; isolation: isolate;
  background: radial-gradient(90% 70% at 100% 0%, rgba(255,106,138,.55), rgba(255,106,138,0) 60%), linear-gradient(160deg, #1a1446, #2d1a63 60%, #12102e); box-shadow: 0 18px 40px -18px rgba(40,20,120,.9); }
.px-cab { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.px-cab h2 { font-size: 21px; letter-spacing: -.02em; margin-top: 2px; }
.px-n { font: 750 30px var(--f-display); opacity: .35; }
.px-fila { display: grid; grid-template-columns: 52px 1fr 26px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.px-cartel { position: relative; width: 52px; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.px-cartel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-cartel .sin-cartel { padding: 4px; } .px-cartel .sin-cartel b { font-size: 9px !important; }
.px-t { min-width: 0; }
.px-t b { display: block; font: 700 15.5px/1.2 var(--f-display); }
.px-t small { opacity: .75; font-size: 12px; }
.px-corona { display: inline-block; font-size: 11px; font-weight: 700; color: #1a1446; background: #ffd27a; border-radius: 6px; padding: 1px 6px; margin-bottom: 3px; }
.px-votos { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.px-v { border-radius: 50%; opacity: .35; filter: grayscale(1); transition: all .2s; }
.px-v .avatar { width: 26px; height: 26px; font-size: 10px; }
.px-v.si { opacity: 1; filter: none; }
.px-v.mio { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.px-v.mio:not(.si) { opacity: .7; }
.px-v:disabled { cursor: default; }
.px-cuenta { margin-left: 6px; font-weight: 700; font-size: 13px; }
.px-quitar { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 11px; }
.px-vacio { opacity: .8; margin: 6px 0 4px; }
.px-botones { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 12px; }
.px-botones .boton { background: #fff; color: #1a1446; padding: 12px 10px; }
.px-botones .px-sec { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.px-nota { margin: 10px 0 0; font-size: 11.5px; opacity: .7; }
.c-prox { position: absolute; top: 6px; right: 6px; font-size: 14px; background: rgba(0,0,0,.55); border-radius: 8px; padding: 1px 4px; }
.cartel .c-serie + .c-prox { top: 28px; }
.pasos-jarvis { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.pasos-jarvis ol { margin: 6px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--muted); }
.pasos-jarvis li { margin: 2px 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Ajustes para la app real (pantalla completa, sin marco de mockup) ---------- */
body { overflow-x: hidden; overflow-y: auto; min-height: 100%; }
.pantalla { padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(120px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); max-width: 680px; margin: 0 auto; }
.pestanas { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; max-width: 660px; }
.capa, .velo, .login, .tg, .confeti, .aviso { position: fixed; }
.hoja { position: fixed; max-width: 680px; margin: 0 auto; }
.aviso { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.login { z-index: 80; padding-top: calc(46px + env(safe-area-inset-top, 0px)); }
.login .caja-login { max-width: 420px; margin: 0 auto; }
.cargando { display: grid; place-items: center; min-height: 60vh; color: var(--muted); }
.vacia-p { color: var(--muted); padding: 14px; text-align: center; font-size: 14px; }
.campo-l textarea { min-height: 70px; }
.icono3d-mini { width: 34px; height: 34px; }
.mini-boton { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; background: var(--surface); }
.marcador-in { display: flex; align-items: center; gap: 6px; }
.marcador-in input { width: 52px; text-align: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 700 18px var(--f-mono); }
.ajuste-fila { display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; text-align: left; }
.ajuste-fila + .ajuste-fila { border-top: 1px solid var(--line); }
.ajuste-fila .ic { font-size: 22px; width: 32px; text-align: center; }
.ajuste-fila small { display: block; color: var(--muted); font-size: 12.5px; }
.copiable { display: block; font: 12.5px var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; word-break: break-all; user-select: all; margin: 8px 0; }
.pendiente-fase { border: 1px dashed var(--line); border-radius: 16px; padding: 12px 14px; color: var(--muted); font-size: 13.5px; }
.ticket-linea { display: grid; grid-template-columns: 1fr 86px 30px; gap: 6px; align-items: center; margin: 4px 0; }
.ticket-linea input { padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 13px var(--f-mono); min-width: 0; }
.escaner { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.escaner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.escaner .marco { position: relative; width: 78%; height: 160px; border: 3px solid #fff; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
.escaner p { position: relative; color: #fff; margin: 18px; }
.escaner .boton { position: relative; }
/* Formularios estables (no bailan): rejillas fijas en vez de filas que se desplazan */
.hoja { max-height: 90vh; max-height: 90dvh; overscroll-behavior: contain; }
.hoja input, .hoja select, .hoja textarea { font-size: 16px; }
.rejilla-quien { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 4px; }
.quien-b { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 14px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; min-width: 0; }
.quien-b .avatar { width: 32px; height: 32px; font-size: 12px; }
.quien-b[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: 0 0 0 1px var(--accent) inset; }
.rejilla-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 8px 0 6px; }
.dia-b { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); font: 700 16px var(--f-display); background: var(--surface); max-width: 100%; }
.dia-b[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.evento .h small { font-size: 11px; opacity: .8; }
