/* JINT.live — sistema de diseño de la plataforma (panel de cliente, administración y acceso) */
:root {
  --bg: #0b0912; --bg2: #100d19; --panel: #16131f; --panel2: #1e1a2b; --panel3: #252036; --line: #2c2740; --line2: #3a3352;
  --fg: #f1ecf9; --fg2: #cfc8de; --muted: #9a92ad;
  --live: #ff3b5c; --live2: #ff7a59; --cyan: #3fe0ff; --gold: #ffc542; --violet: #8b5cff; --ok: #3ddc84; --warn: #ffb547; --bad: #ff5a6e;
  --display: "Unbounded", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 14px; --sombra: 0 20px 60px #0007;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------------- botones ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--fg);
  padding: 9px 16px; border-radius: 11px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.primario { background: linear-gradient(135deg, var(--live), var(--live2)); border-color: transparent; color: #fff; box-shadow: 0 6px 20px #ff3b5c33; }
.btn.azul { background: linear-gradient(135deg, #4f6bff, var(--violet)); border-color: transparent; color: #fff; }
.btn.oro { background: var(--gold); border-color: var(--gold); color: #1a1405; }
.btn.verde { background: var(--ok); border-color: var(--ok); color: #06210f; }
.btn.peligro { background: transparent; border-color: #ff5a6e66; color: var(--bad); }
.btn.peligro:hover { background: #ff5a6e1a; }
.btn.fantasma { background: transparent; border-color: transparent; color: var(--muted); }
.btn.fantasma:hover { color: var(--fg); background: var(--panel2); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 13px; }
.btn.bloque { width: 100%; }

/* ---------------- formularios ---------------- */
.campo { display: grid; gap: 6px; min-width: 0; }
.campo > label, .etiqueta { font-size: 13px; font-weight: 700; color: var(--fg2); }
.campo .ayuda { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 11px; padding: 10px 12px; color: var(--fg); transition: border-color .15s; }
.input:focus { border-color: var(--cyan); outline: none; }
textarea.input { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--live); }
.interruptor { display: inline-block; position: relative; width: 44px; height: 24px; flex: none; }
.interruptor input { opacity: 0; width: 0; height: 0; }
.interruptor span { position: absolute; inset: 0; background: var(--line2); border-radius: 99px; transition: .2s; cursor: pointer; }
.interruptor span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.interruptor input:checked + span { background: var(--ok); }
.interruptor input:checked + span::after { transform: translateX(20px); }
.fila { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.fila > .campo { flex: 1 1 180px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.error { color: var(--bad); font-size: 14px; font-weight: 600; min-height: 1em; }
.exito { color: var(--ok); font-size: 14px; font-weight: 600; }

/* ---------------- estructura del panel ---------------- */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.lateral { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px; gap: 18px; }
.marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px; text-decoration: none; color: var(--fg); }
.marca i { width: 38px; height: 38px; border-radius: 11px; background: url(/icons/logo.svg) center / cover no-repeat; flex: none; font-size: 0; box-shadow: 0 6px 18px #ff2e5733; }
.marca b { font: 700 17px var(--display); display: block; letter-spacing: -.2px; } .marca b span { background: linear-gradient(135deg, #ff2e57, #ff7d55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marca small { color: var(--muted); font-size: 12px; display: block; margin-top: -2px; }
.menu { display: flex; flex-direction: column; gap: 3px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 700; }
.menu a:hover { color: var(--fg); background: var(--panel2); }
.menu a.activo { color: var(--fg); background: var(--panel2); box-shadow: inset 3px 0 0 var(--live); }
.menu .contador { margin-left: auto; background: var(--live); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.lateral .pie { margin-top: auto; display: grid; gap: 10px; }
.tarjeta-usuario { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--violet), var(--live)); color: #fff; flex: none; }
.tarjeta-usuario div { min-width: 0; }
.tarjeta-usuario b, .tarjeta-usuario small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tarjeta-usuario small { color: var(--muted); font-size: 12px; }
.principal { min-width: 0; padding: 30px clamp(16px, 3vw, 40px) 60px; }
.barra-movil { display: none; }
.cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cabecera h1 { font: 800 clamp(22px, 3vw, 28px) var(--display); }
.cabecera p { margin: 4px 0 0; color: var(--muted); }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-105%); transition: transform .25s; box-shadow: var(--sombra); }
  body.menu-abierto .lateral { transform: none; }
  body.menu-abierto::after { content: ""; position: fixed; inset: 0; background: #0009; z-index: 40; }
  .barra-movil { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .principal { padding-top: 20px; }
}

/* ---------------- tarjetas ---------------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-width: 0; }
.panel > h2, .panel-titulo { display: flex; align-items: center; gap: 10px; font: 600 15px var(--display); margin: 0 0 14px; }
.panel-titulo .acciones { margin-left: auto; display: flex; gap: 8px; }
.pila { display: grid; gap: 16px; }
.rejilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c4 { grid-column: span 4; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; } .c3 { grid-column: span 3; }
@media (max-width: 1100px) { .c3 { grid-column: span 6; } .c4 { grid-column: span 6; } .c8 { grid-column: span 12; } }
@media (max-width: 700px) { .c4, .c6, .c8 { grid-column: span 12; } .c3 { grid-column: span 6; } .kpi .valor { font-size: 19px; } .kpi .etq .ic { display: none; } .panel.kpi { padding: 14px; } }
.kpi { display: grid; gap: 4px; }
.kpi .etq { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi .valor { font: 800 26px var(--display); font-variant-numeric: tabular-nums; }
.kpi .detalle { color: var(--muted); font-size: 13px; }
.kpi .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #ff3b5c1f; color: var(--live); }
.kpi .ic.cian { background: #3fe0ff1a; color: var(--cyan); } .kpi .ic.oro { background: #ffc5421f; color: var(--gold); } .kpi .ic.verde { background: #3ddc841f; color: var(--ok); } .kpi .ic.violeta { background: #8b5cff26; color: var(--violet); }

.pildora { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--panel3); color: var(--fg2); white-space: nowrap; }
.pildora::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pildora.ok, .pildora.activo, .pildora.completado, .pildora.activa { background: #3ddc841f; color: var(--ok); }
.pildora.vencido, .pildora.vencida, .pildora.cancelada { background: #ffb5471f; color: var(--warn); }
.pildora.suspendido, .pildora.pago-pendiente, .pildora.mal { background: #ff5a6e1f; color: var(--bad); }
.pildora.admin { background: #8b5cff26; color: #b79bff; }
.pildora.sin-plan { background: var(--panel3); color: var(--muted); }
.pildora.plano::before { display: none; }

.aviso { border-radius: 14px; padding: 14px 16px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.aviso.oro { border-color: #ffc54266; background: #ffc54210; }
.aviso.oro b { color: var(--gold); }
.aviso.rojo { border-color: #ff5a6e66; background: #ff5a6e10; }
.aviso.cian { border-color: #3fe0ff55; background: #3fe0ff0d; }
.aviso p { margin: 4px 0 0; color: var(--fg2); font-size: 14px; }

.vacio { text-align: center; color: var(--muted); padding: 40px 16px; }
.vacio .ico { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--line2); }
.vacio b { display: block; color: var(--fg); margin-bottom: 4px; }

/* ---------------- tablas ---------------- */
.tabla-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr:hover td { background: #ffffff05; }
.tabla .sub { color: var(--muted); font-size: 12px; display: block; }
.mono { font-family: var(--mono); font-size: 13px; }
.derecha { text-align: right; }

/* ---------------- pestañas ---------------- */
.pestanas { display: inline-flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.pestanas button { background: none; border: 0; color: var(--muted); padding: 7px 14px; border-radius: 9px; font-weight: 700; cursor: pointer; }
.pestanas button.on { background: var(--panel3); color: var(--fg); }

/* ---------------- juegos ---------------- */
.juegos { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.juego { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.juego:hover { transform: translateY(-3px); border-color: var(--line2); }
.juego .portada { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; text-align: center; padding: 14px; font: 800 22px/1.15 var(--display); text-shadow: 0 4px 18px #000a; overflow: hidden; background: linear-gradient(135deg, var(--live), #3a1d6e 60%, var(--bg)); }
.juego .portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.juego .portada .etiquetas { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.juego .portada .etq { background: #0b0912cc; font: 700 12px var(--body); padding: 4px 10px; border-radius: 99px; text-shadow: none; backdrop-filter: blur(4px); }
.juego .portada .etq.oro { background: var(--gold); color: #1a1405; }
.juego .portada .candado { position: absolute; inset: 0; background: #0b0912a8; display: grid; place-items: center; z-index: 1; font: 700 14px var(--body); }
.juego .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.juego h3 { font-size: 17px; }
.juego p { margin: 0; color: var(--muted); font-size: 14px; }
.juego .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--fg2); }
.juego .botones { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.juego .botones .btn:first-child { flex: 1; }

/* ---------------- planes ---------------- */
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.destacado { border: 2px solid var(--live); box-shadow: 0 16px 50px #ff3b5c22; }
.plan.actual { border-color: var(--ok); }
.plan .cinta { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--live); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.plan h3 { font: 600 18px var(--display); }
.plan .precio { font: 800 34px var(--display); }
.plan .precio small { font: 600 14px var(--body); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 8px; } .plan li::before { content: "✓"; color: var(--cyan); font-weight: 800; }
.plan .pago { margin-top: auto; display: grid; gap: 8px; min-height: 44px; }

/* ---------------- avisos flotantes y modales ---------------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 100; max-width: calc(100vw - 32px); }
.toast { background: var(--panel3); border: 1px solid var(--line2); border-left: 4px solid var(--ok); padding: 12px 16px; border-radius: 12px; font-weight: 700; box-shadow: var(--sombra); animation: entra .25s ease-out; }
.toast.mal { border-left-color: var(--bad); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }
dialog.modal { background: var(--panel); color: var(--fg); border: 1px solid var(--line2); border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: var(--sombra); }
dialog.modal::backdrop { background: #000a; backdrop-filter: blur(3px); }
.modal .cab { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal .cab h3 { font: 600 16px var(--display); }
.modal .cuerpo { padding: 20px; display: grid; gap: 14px; max-height: 70vh; overflow: auto; }
.modal .pie { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------------- piezas del puente ---------------- */
.codigo { font: 500 22px var(--mono); letter-spacing: 2px; color: var(--cyan); background: var(--bg); border: 1px dashed var(--line2); border-radius: 12px; padding: 8px 14px; display: inline-block; }
.estado-puente { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: var(--panel2); font-size: 14px; }
.punto { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.punto.ok { background: var(--ok); box-shadow: 0 0 0 4px #3ddc8433; } .punto.aviso { background: var(--gold); } .punto.mal { background: var(--bad); }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .minis { grid-template-columns: repeat(2, 1fr); } }
.minis div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.minis b { display: block; font: 700 20px var(--display); }
.minis span { font-size: 12px; color: var(--muted); }
.eventos { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.eventos li { display: flex; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.eventos li .acc { margin-left: auto; color: var(--cyan); font: 12px var(--mono); white-space: nowrap; }
.eventos li.sim { opacity: .7; }
.caja-codigo { background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; font: 13px var(--mono); color: var(--fg2); word-break: break-all; }
.pasos { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--fg2); }

/* ---------------- acceso (entrar / registro) ---------------- */
.acceso { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.acceso .lado { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(circle at 20% 20%, #ff3b5c40, transparent 50%), radial-gradient(circle at 80% 70%, #6b5cff40, transparent 50%), var(--bg2); border-right: 1px solid var(--line); }
.acceso .lado h2 { font: 800 clamp(26px, 3.4vw, 40px)/1.1 var(--display); margin: 26px 0 14px; }
.acceso .lado p { color: var(--fg2); max-width: 460px; }
.acceso .beneficios { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.acceso .beneficios li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.acceso .beneficios .ico { color: var(--cyan); width: 22px; height: 22px; }
.acceso .formulario { display: grid; place-items: center; padding: 40px 20px; }
@media (min-width: 861px) { .acceso .solo-movil-acceso { visibility: hidden; } }
.acceso .caja { width: min(420px, 100%); display: grid; gap: 18px; }
.acceso .caja h1 { font: 800 26px var(--display); }
.acceso .caja > p { margin: -10px 0 0; color: var(--muted); }
.acceso form { display: grid; gap: 14px; }
.separador { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 860px) { .acceso { grid-template-columns: 1fr; } .acceso .lado { display: none; } }

.grafica { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.grafica div { flex: 1; background: linear-gradient(180deg, var(--live), var(--violet)); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; }
.grafica div:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -4px); background: var(--panel3); padding: 2px 6px; border-radius: 6px; font-size: 11px; white-space: nowrap; }
.ejes { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }
.lista-simple { display: grid; gap: 2px; }
.lista-simple > div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lista-simple > div:last-child { border-bottom: 0; }
.lista-simple .der { margin-left: auto; text-align: right; }
.cargando { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.texto-suave { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.selector-idioma { width: auto !important; flex: 0 0 auto; padding: 7px 10px; font-size: 14px; cursor: pointer; }
.lateral .selector-idioma { width: 100% !important; }

/* Regalar suscripción */
.pildora.regalo, .pildora.regalado { background: #ffc54226; color: var(--gold); }
.regalo-panel { padding: 14px; background: linear-gradient(135deg, #ffc54214, #ff3b5c0f); border-color: #ffc54255; }
.opciones-regalo { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.opciones-regalo.duraciones { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.opcion { position: relative; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; }
.opcion span { display: grid; gap: 2px; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; background: var(--bg); transition: border-color .15s, background .15s; }
.opcion small { color: var(--muted); font-size: 12px; }
.opcion input:checked + span { border-color: var(--gold); background: #ffc5421a; box-shadow: 0 0 0 1px var(--gold); }
.opcion input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.banner-regalo { display: flex; gap: 14px; align-items: center; border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; border: 1px solid #ffc54266; background: linear-gradient(135deg, #ffc5421f, #ff3b5c14); }
.banner-regalo .ic { font-size: 30px; }
.banner-regalo b { color: var(--gold); letter-spacing: .4px; }
.banner-regalo p { margin: 2px 0 0; color: var(--fg2); font-size: 14px; }

/* Reiniciar y Salvar */
.reinicio-vivo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border: 2px solid #ff4646; border-radius: 16px; padding: 14px 18px; background: #ff46460f; }
.reinicio-vivo.salvado { border-color: var(--ok); background: #3ddc840f; }
.reinicio-vivo .cifra { font: 800 48px/1 var(--display); min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.reinicio-vivo p { margin: 4px 0 0; }
.reinicio-vivo .btn { margin-left: auto; }
.rojo { color: #ff4646; } .verde { color: var(--ok); }

/* ================= GAMING HUB: aplicación, biblioteca y reproductor ================= */
.aviso-app { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 12px; background: var(--panel3); border: 1px solid var(--line2); border-radius: 14px; padding: 10px 12px 10px 16px; font-weight: 700; box-shadow: var(--sombra); max-width: calc(100vw - 24px); animation: entra .25s ease-out; }
.plan ul li.no { color: var(--muted); text-decoration: line-through; }
.pildora.nivel-vip { background: #8b5cff26; color: #c3a8ff; }
.pildora.nivel-premium { background: #ffc54222; color: var(--gold); }
.banner-app { align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-cat { background: var(--panel); border: 1px solid var(--line); color: var(--fg2); padding: 6px 14px; border-radius: 99px; font: 700 13px var(--body); cursor: pointer; }
.chip-cat.on { background: #ff3b5c1f; border-color: #ff3b5c80; color: #fff; }
.juego.propio .portada .nombre-portada { position: relative; padding: 0 10px; }
.juego .portada .etq.ok { background: var(--ok); color: #06210f; }
.juego .portada .etq.vip { background: linear-gradient(135deg, #8b5cff, #4f6bff); color: #fff; }
.juego .portada .etq.cian { background: var(--cyan); color: #04212a; }
.corazon { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ffffff30; background: #0b0912b8; font-size: 17px; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); }
.corazon:hover { transform: scale(1.08); }
.etiquetas-linea { display: flex; gap: 6px; flex-wrap: wrap; }
.etiquetas-linea .etq { background: var(--panel3); font: 700 12px var(--body); padding: 4px 10px; border-radius: 99px; }
.etiquetas-linea .etq.oro { background: var(--gold); color: #1a1405; } .etiquetas-linea .etq.ok { background: var(--ok); color: #06210f; }
.etiquetas-linea .etq.vip { background: #8b5cff; color: #fff; } .etiquetas-linea .etq.cian { background: var(--cyan); color: #04212a; }
.ranking { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 4px; }
.ranking li span { margin-right: 8px; } .ranking li.yo { color: var(--cyan); }
.ranking li b { float: right; }
.logros { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.logro { background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 700; color: var(--muted); filter: grayscale(1); opacity: .6; }
.logro.ok { color: var(--fg); filter: none; opacity: 1; border-color: #3ddc8466; }
.logro small { font-weight: 600; color: var(--muted); }

/* Pantalla «instala la app» */
.bloqueo-juego { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.bloqueo-juego .portada-bloqueo { aspect-ratio: 21 / 8; border-radius: 20px; overflow: hidden; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, var(--live), #3a1d6e 60%, var(--bg)); font: 800 26px var(--display); text-shadow: 0 4px 18px #000a; }
.bloqueo-juego .portada-bloqueo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.bloqueo-juego .portada-bloqueo span { position: relative; padding: 0 16px; text-align: center; }
.bloqueo-juego h1 { font: 800 22px/1.2 var(--display); margin: 0 0 10px; }
.bloqueo-juego .texto p { margin: 0 0 10px; color: var(--fg2); }

/* Reproductor */
body.jugando .principal { padding-bottom: 12px; }
.reproductor { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 56px); height: calc(100dvh - 56px); min-height: 360px; }
.barra-reproductor { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.barra-reproductor .titulo-juego { font: 600 16px var(--display); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-reproductor .btn.on { border-color: var(--cyan); color: var(--cyan); }
.escenario { position: relative; flex: 1; background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); touch-action: none; }
.marco-juego { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.escenario .carga, .escenario .capa-pausa { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; background: #0b0912; z-index: 3; padding: 20px; }
.escenario .carga img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; filter: blur(6px); }
.escenario .carga > * { position: relative; }
.escenario .capa-pausa { background: #0b0912d9; backdrop-filter: blur(6px); }
.escenario .capa-pausa > div { display: grid; gap: 14px; justify-items: center; }
.escenario .capa-pausa b { font: 800 24px var(--display); }
.giro { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #ffffff22; border-top-color: var(--live); animation: girar 0.9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.reproductor.pseudo, body.pantalla-completa .reproductor:fullscreen { position: fixed; inset: 0; z-index: 200; height: 100vh; height: 100dvh; background: #000; padding: 8px; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.reproductor:fullscreen { background: #000; padding: 8px; height: 100%; }
.pad-tactil { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 14px; z-index: 2; pointer-events: none; user-select: none; -webkit-user-select: none; }
.pad-tactil button { pointer-events: auto; border: 1px solid #ffffff40; background: #ffffff1f; color: #fff; font: 800 18px var(--body); border-radius: 14px; backdrop-filter: blur(4px); touch-action: none; -webkit-tap-highlight-color: transparent; }
.pad-tactil button.on { background: #ff3b5c99; border-color: #ff3b5c; }
.cruceta { display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 52px); gap: 4px; }
.cruceta .arriba { grid-area: 1 / 2; } .cruceta .izq { grid-area: 2 / 1; } .cruceta .der { grid-area: 2 / 3; } .cruceta .abajo { grid-area: 3 / 2; }
.botones-accion { display: flex; gap: 12px; align-items: flex-end; }
.botones-accion button { width: 64px; height: 64px; border-radius: 50%; font-size: 20px; }
.botones-accion .b { width: 52px; height: 52px; margin-bottom: 30px; }
@media (max-width: 700px) {
  .barra-reproductor .txt { display: none; }
  .reproductor { height: calc(100dvh - 70px); }
  .bloqueo-juego .portada-bloqueo { aspect-ratio: 16 / 8; }
}
/* En la app instalada no hace falta el botón de instalar */
html.modo-app [data-instalar] { display: none !important; }
.plan ul li.no::before { content: "✕"; color: var(--muted); }
.miniatura { width: 64px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, var(--live), #3a1d6e); flex: none; }
.miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.barra-subida { position: relative; height: 26px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.barra-subida div { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--live), var(--live2)); transition: width .2s; }
.barra-subida span { position: relative; display: block; text-align: center; font: 700 12px/26px var(--body); }

/* ================= iconos de línea (sustituyen a los emojis) ================= */
.eventos li { align-items: center; }
.ev-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--panel2); color: var(--fg2); }
.ev-ic .ico { width: 16px; height: 16px; }
.ev-ic.t-regalo { background: #ff3b5c1f; color: #ff7a93; } .ev-ic.t-likes { background: #ff5a6e1f; color: #ff6f80; }
.ev-ic.t-comentario { background: #3fe0ff17; color: var(--cyan); } .ev-ic.t-seguir, .ev-ic.t-verde { background: #3ddc841a; color: var(--ok); }
.ev-ic.t-compartir { background: #8b5cff1f; color: #b9a2ff; } .ev-ic.t-reinicio, .ev-ic.t-manual { background: #ffc5421a; color: var(--gold); }
.ev-ic.t-rojo { background: #ff3b5c1f; color: #ff6f80; } .ev-ic.t-cian { background: #3fe0ff17; color: var(--cyan); }
.con-ico { display: inline-flex; align-items: center; gap: 8px; }
.con-ico .ico { width: 18px; height: 18px; color: var(--muted); }
.con-ico.rojo .ico { color: #ff6f80; } .con-ico.verde .ico { color: var(--ok); }
.etiqueta .ico { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.banner-regalo .ic .ico { width: 26px; height: 26px; }
.reinicio-vivo .cifra .ico { width: 54px; height: 54px; color: var(--ok); }
.juego .portada .etq .ico { width: 13px; height: 13px; vertical-align: -2px; }
.btn .ico { width: 17px; height: 17px; flex: none; }
.btn.sm .ico { width: 15px; height: 15px; }
.ico.lleno { fill: currentColor; }
.corazon { color: #fff; } .corazon.on { color: #ff4d6d; } .corazon .ico { width: 19px; height: 19px; }
.ic-banner { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #3fe0ff1a; color: var(--cyan); flex: none; } .ic-banner .ico { width: 22px; height: 22px; }
.ic-girar .ico { width: 44px; height: 44px; color: var(--cyan); animation: girar-tel 1.6s ease-in-out infinite; }
@keyframes girar-tel { 50% { transform: rotate(90deg); } }
.pildora .ico { width: 13px; height: 13px; vertical-align: -2px; }
.logro .ico { width: 14px; height: 14px; vertical-align: -2px; }
.juego .meta .ico { width: 15px; height: 15px; vertical-align: -3px; }
.bloqueo-juego h1 .ico { width: 24px; height: 24px; vertical-align: -3px; color: var(--cyan); }
.barra-reproductor .btn .ico { width: 16px; height: 16px; }
.pad-tactil .ico { width: 20px; height: 20px; }
.aviso-app > .ico { width: 18px; height: 18px; color: var(--cyan); }
.ico-compartir { width: 18px; height: 18px; vertical-align: -3px; color: #3d8bff; }
.panel.vacio > .ico { width: 34px; height: 34px; }
label b .ico, .check b .ico { width: 17px; height: 17px; vertical-align: -3px; margin-right: 2px; }
.pasos li .ico { width: 17px; height: 17px; vertical-align: -3px; color: var(--cyan); margin-right: 2px; }
th .ico { width: 15px; height: 15px; vertical-align: -3px; }
.texto-suave .ico { width: 15px; height: 15px; vertical-align: -3px; }
/* Portada automática (juegos sin imagen) */
.portada-auto { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background:
  radial-gradient(circle at 18% 20%, #ffffff2e, transparent 42%), linear-gradient(135deg, var(--a), var(--b)); }
.portada-auto::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff12 1px, transparent 1px), linear-gradient(90deg, #ffffff12 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(160deg, #000 10%, transparent 75%); -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%); }
.portada-auto .ico.fondo { position: absolute; right: -6%; bottom: -16%; width: 62%; height: auto; aspect-ratio: 1; color: #fff; opacity: .2; stroke-width: 1.4; transform: rotate(-12deg); }
.portada-auto .nombre-portada { position: relative; max-width: 86%; overflow-wrap: anywhere; font: 800 clamp(17px, 1.7vw, 22px)/1.15 var(--display); color: #fff; text-shadow: 0 3px 16px #0006; padding: 0 18px; text-align: center; letter-spacing: -.3px; }
.portada-auto.grande .nombre-portada { font-size: clamp(22px, 3.4vw, 34px); }
.bloqueo-juego .portada-bloqueo .portada-auto { position: absolute; }
.juego .portada .candado { background: linear-gradient(180deg, #0b091200 30%, #0b0912c8); place-items: end center; padding-bottom: 14px; }
.juego .portada .candado .sello { display: inline-flex; align-items: center; gap: 6px; background: #0b0912e6; border: 1px solid #ffffff2a; padding: 6px 12px; border-radius: 99px; font: 800 12px var(--body); color: var(--gold); backdrop-filter: blur(6px); }
.juego .portada .candado .sello .ico { width: 14px; height: 14px; }
.juego .portada .etq.edad { background: #0b0912cc; border: 1px solid #ffffff38; }
.pildora.nivel-premium::before, .pildora.nivel-vip::before, .pildora.nivel-gratis::before { display: none; }
.pildora.nivel-gratis { background: var(--panel3); color: var(--fg2); }
.plan li::before { content: ""; flex: none; width: 17px; height: 17px; margin-top: 2px; background: var(--cyan);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan ul li.no::before { content: ""; background: var(--muted);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.etiquetas-linea .etq { display: inline-flex; align-items: center; gap: 5px; }
.etiquetas-linea .etq .ico { width: 13px; height: 13px; }
.portada-modal { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--bg); }
.portada-modal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.barra-movil [data-abrir-menu] { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line2); background: var(--panel2); color: var(--fg); border-radius: 12px; }
.barra-movil [data-abrir-menu] .ico { width: 22px; height: 22px; }
.portada-modal { aspect-ratio: auto; height: 0; padding-top: 56.25%; flex: none; }
.portada-modal > img { position: absolute; inset: 0; }
@media (max-width: 700px) {
  .banner-app { flex-wrap: wrap; }
  .banner-app > div { flex: 1 1 200px !important; }
  .banner-app .btn { width: 100%; }
  .cabecera .fila .input { width: 100% !important; }
}
@media (max-width: 900px) { body.jugando .barra-movil { display: none; } body.jugando .reproductor { height: calc(100dvh - 24px); } }
.miniatura { position: relative; }
.miniatura .portada-auto .nombre-portada { display: none; }
.miniatura .portada-auto .ico.fondo { width: 80%; right: -10%; bottom: -30%; opacity: .35; }
/* Páginas legales */
.legal { max-width: 820px; margin: 0 auto; padding: 28px 20px 60px; }
.legal-cab { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.legal-cab nav { display: flex; gap: 18px; } .legal-cab nav a { color: var(--muted); text-decoration: none; font-weight: 700; } .legal-cab nav a:hover { color: var(--fg); }
.legal h1 { font: 800 clamp(26px, 4vw, 36px)/1.15 var(--display); margin: 0 0 6px; }
.legal h2 { font: 700 18px var(--display); margin: 28px 0 8px; }
.legal p, .legal li { color: var(--fg2); line-height: 1.7; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
