/* Global TV — sistema de diseño nativo (sin remapeos).
   fondo #0A0C0F · paneles #12161B/#181D24 · bordes #242B34 ·
   texto #F3F5F7 · secundario #A3ADBA · acento único #3DDBB0 ·
   EN VIVO #FF6B70 · Inter + Space Grotesk · esquinas 14–28 px ·
   botones ≥48 px · iconos SVG de trazo 1.8, sin emojis. */
:root {
  --fondo: #0A0C0F; --panel: #12161B; --panel2: #181D24; --borde: #242B34;
  --texto: #F3F5F7; --suave: #A3ADBA; --acento: #3DDBB0; --envivo: #FF6B70;
  --ambar: #FFC24D; --rojo: #FF6B70;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  background: var(--fondo); color: var(--texto);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  min-height: 100dvh; padding: 20px 20px 40px;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, .display { font-family: "Space Grotesk", "Inter", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

/* ---------- Cabecera ---------- */
.cabecera {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 1240px; margin: 0 auto 22px;
}
.marca { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.marca img { width: 46px; height: 46px; border-radius: 14px; }
.marca .nombre { font-family: "Space Grotesk", sans-serif; font-size: 26px; font-weight: 700; }
.marca .nombre b { color: var(--acento); font-weight: 700; }
.buscador-cab { flex: 1 1 260px; display: flex; max-width: 520px; }
.buscador-cab input {
  flex: 1; min-height: 52px; padding: 0 18px; border-radius: 16px;
  border: 1px solid var(--borde); background: var(--panel); color: var(--texto);
  font-size: 17px;
}
.buscador-cab input::placeholder { color: var(--suave); }
.chip-estado {
  display: inline-flex; align-items: center; gap: 9px; min-height: 48px;
  padding: 0 18px; border-radius: 999px; border: 1px solid var(--borde);
  background: var(--panel); font-weight: 600; font-size: 15px;
}
.chip-estado .punto { width: 11px; height: 11px; border-radius: 50%; background: var(--acento); }
.reloj { font-family: "Space Grotesk", sans-serif; font-size: 20px; color: var(--suave); min-width: 86px; text-align: right; }

/* ---------- Pie ---------- */
.pie {
  max-width: 1240px; margin: 36px auto 0; padding: 20px 4px 84px;
  border-top: 1px solid var(--borde); color: var(--suave); font-size: 15px; line-height: 1.55;
}
.pie .aviso-pasajeros { color: var(--texto); font-weight: 600; }
.pie nav { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.pie nav a { color: var(--acento); font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }

/* ---------- Barra inferior móvil ---------- */
.barra-movil {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(10,12,15,.96); border-top: 1px solid var(--borde);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.barra-movil a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: 56px; justify-content: center; border-radius: 14px;
  color: var(--suave); font-size: 13px; font-weight: 600;
}
.barra-movil a.on { color: var(--acento); }
.barra-movil svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .barra-movil { display: flex; } .reloj { display: none; } }

/* ---------- Contenido genérico ---------- */
.contenido { max-width: 1240px; margin: 0 auto; }
.titulo-pagina { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; margin-bottom: 6px; }
.subtitulo { color: var(--suave); font-size: 17px; line-height: 1.5; margin-bottom: 22px; max-width: 70ch; }
.panel { background: var(--panel); border: 1px solid var(--borde); border-radius: 20px; padding: 20px; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px; border: 1px solid var(--borde);
  background: var(--panel2); color: var(--texto); font-weight: 600; font-size: 16px; cursor: pointer;
}
.boton.acento { background: var(--acento); border-color: var(--acento); color: #06231B; }
.boton.peligro { border-color: var(--rojo); color: var(--rojo); background: transparent; }
.boton:disabled { opacity: .45; cursor: default; }
input.campo, select.campo {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--borde); background: var(--panel); color: var(--texto); font-size: 16px;
}
input.campo::placeholder { color: var(--suave); }
.etiqueta { display: block; font-size: 14px; font-weight: 600; color: var(--suave); margin: 14px 0 6px; }
.aviso { border: 1px solid var(--borde); background: var(--panel); border-radius: 16px; padding: 16px 18px; color: var(--suave); line-height: 1.55; }
.aviso b { color: var(--texto); }
.error { color: var(--rojo); }
.ok-tx { color: var(--acento); }

/* ---------- Rejilla de Inicio ---------- */
.hero { margin-bottom: 30px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 52px); line-height: 1.08; font-weight: 700; }
.hero h1 .ac { color: var(--acento); }
.hero p { color: var(--suave); font-size: 18px; margin-top: 10px; max-width: 62ch; line-height: 1.5; }
.hero .acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.grupo { margin-top: 30px; }
.grupo > h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: var(--texto); }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
@media (max-width: 760px) { .rejilla { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; } }
.ficha {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 24px;
  padding: 18px 8px 14px; min-height: 168px; text-align: center;
}
.ficha:hover, .ficha:focus-visible { border-color: var(--acento); }
.ficha .icono {
  width: 104px; height: 104px; border-radius: 28px; background: var(--panel2);
  border: 1px solid var(--borde); display: grid; place-items: center; color: var(--acento);
}
.ficha .icono svg { width: 48px; height: 48px; }
.ficha .nom { font-weight: 600; font-size: 16px; line-height: 1.25; }
.ficha .tag {
  position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800;
  letter-spacing: .6px; padding: 4px 8px; border-radius: 999px;
  background: var(--acento); color: #06231B;
}
.ficha .tag.pronto { background: var(--panel2); color: var(--suave); border: 1px solid var(--borde); }
.fila-recientes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Canales (TV / Niños / Mi IPTV) ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--borde); background: var(--panel);
  font-weight: 600; font-size: 15px; cursor: pointer; color: var(--texto);
}
.chip.on { background: var(--acento); border-color: var(--acento); color: #06231B; }
.leyenda { display: flex; gap: 18px; flex-wrap: wrap; color: var(--suave); font-size: 14px; margin-bottom: 16px; }
.leyenda .it { display: inline-flex; align-items: center; gap: 7px; }
.punto { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.punto.ok { background: var(--acento); } .punto.lento { background: var(--ambar); }
.punto.caido, .punto.region { background: var(--rojo); } .punto.pendiente { background: var(--suave); }
.punto.fijo { background: #A78BFA; }
.parrilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
@media (max-width: 760px) { .parrilla { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.canal {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 18px;
  padding: 14px; min-height: 84px; cursor: pointer; color: var(--texto);
}
.canal:hover, .canal:focus-visible { border-color: var(--acento); }
.canal .siglas {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: var(--panel2);
  border: 1px solid var(--borde); color: var(--acento); display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 17px;
}
.canal .nom { font-weight: 600; font-size: 16px; line-height: 1.25; flex: 1; min-width: 0; }
.canal .epg { display: block; color: var(--suave); font-size: 13px; font-weight: 400; margin-top: 3px; }
.canal .punto { margin-left: auto; }
.buscador-grande { display: flex; gap: 10px; margin-bottom: 16px; }
.buscador-grande input { flex: 1; }
.paginacion { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.vacio { color: var(--suave); text-align: center; padding: 34px 10px; font-size: 16px; }

/* ---------- Listas simples (radio, copiloto, park) ---------- */
.lista { display: flex; flex-direction: column; gap: 10px; }
.fila-item {
  display: flex; align-items: center; gap: 14px; background: var(--panel);
  border: 1px solid var(--borde); border-radius: 18px; padding: 14px 16px; min-height: 72px;
}
.fila-item .crece { flex: 1; min-width: 0; }
.fila-item .t { font-weight: 600; font-size: 16px; }
.fila-item .s { color: var(--suave); font-size: 14px; margin-top: 2px; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }

/* ---------- Textos legales ---------- */
.legal { max-width: 78ch; }
.legal h2 { font-size: 22px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--suave); line-height: 1.65; font-size: 16.5px; }
.legal ul { padding-left: 22px; margin: 6px 0; }
.legal b { color: var(--texto); }
