/* 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); }
.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; }
/* Logos reales de marca en las fichas de Servicios en Park (2026-11-27):
   glifo de la marca en su color; los wordmarks pensados para fondo claro
   (Disney+, GeForce NOW) van sobre placa blanca para que se lean. */
.ficha .icono img.logo { width: 64px; height: 64px; object-fit: contain; }
.ficha .icono.marca { background: #fff; }
.ficha .icono.marca img.logo { width: 88px; height: auto; max-height: 60px; }
.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: grid; grid-template-columns: 52px 1fr; grid-template-areas: "siglas punto" "nom nom";
  column-gap: 12px; row-gap: 8px; align-items: center; 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 {
  grid-area: siglas; 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 { grid-area: nom; font-weight: 600; font-size: 16px; line-height: 1.25; min-width: 0; }
.canal .epg { display: block; color: var(--suave); font-size: 13px; font-weight: 400; margin-top: 3px; }
.canal .punto { grid-area: punto; justify-self: end; }
.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; }

/* ---------- Cristal (glass) + micro-animaciones útiles ----------
   Síntesis aprobada de los links de diseñador de Jose (Code XR,
   InfiWeb Craft, Code & Chill): glass oscuro legible, UN acento,
   animaciones solo donde informan (prensa, foco, entrada de
   grupos, punto de estado vivo). Sin decoración gratuita. */
body {
  background:
    radial-gradient(1100px 480px at 85% -120px, rgba(61,219,176,.07), rgba(61,219,176,0) 60%),
    radial-gradient(900px 520px at -10% 30%, rgba(61,219,176,.045), rgba(61,219,176,0) 55%),
    var(--fondo);
  background-attachment: fixed;
}
.panel, .ficha, .canal, .chip, .fila-item, .aviso,
.buscador-cab input, input.campo, select.campo {
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.014) 55%), rgba(18,22,27,.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.ficha .icono, .canal .siglas {
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(24,29,36,.85);
  border-color: rgba(255,255,255,.09);
}
.boton {
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), rgba(24,29,36,.85);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  border-color: rgba(255,255,255,.09);
}
.boton.acento, .chip.on, .rejilla-paises .boton.on {
  background: var(--acento); border-color: var(--acento); box-shadow: 0 8px 26px rgba(61,219,176,.28);
}
.boton, .chip, .ficha, .canal, .fila-item {
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.ficha:hover, .canal:hover, .fila-item:hover { transform: translateY(-2px); }
.boton:active, .chip:active, .ficha:active, .canal:active, .fila-item:active { transform: scale(.98); }
@keyframes gtv-pulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,219,176,.45); }
  50% { box-shadow: 0 0 0 6px rgba(61,219,176,0); }
}
@keyframes gtv-entrar {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.grupo, .hero { animation: gtv-entrar .45s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ficha:hover, .canal:hover, .fila-item:hover { transform: none; }
}

/* ---------- 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); }

/* Botón «‹ Volver» de sección: tamaño discreto y uniforme en toda la app
   (orden de Jose, 2026-11-30: que no se vea tan grande; 44px sigue
   siendo un blanco cómodo de tocar en el carro). */
.btn-volver-park { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.btn-volver-park svg { width: 20px; height: 20px; flex: 0 0 auto; }
