/* ==========================================================================
   AR+ — componentes reutilizables (prefijo arp-).
   Este archivo es también el bundle.css del sistema de diseño AR+.
   Depende de css/tokens.css. Sin dependencias de sección.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Íconos (sprite inline con currentColor)
   -------------------------------------------------------------------------- */
.arp-icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arp-icon--fill {
  fill: currentColor;
  stroke: none;
}

/* El "+" con la geometría del logo (brazo = 1/3 del tamaño, esquinas rectas) */
.arp-plus {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  flex: none;
  fill: var(--red);
  filter: drop-shadow(0 0 10px #E11D4866);
}

/* --------------------------------------------------------------------------
   Botón (primario, fantasma, WhatsApp) + versión magnética
   -------------------------------------------------------------------------- */
.arp-btn {
  --btn-h: 52px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-h);
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    background-color var(--dur-instant) linear,
    border-color var(--dur-instant) linear,
    color var(--dur-instant) linear,
    box-shadow var(--dur-fast) var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
}
.arp-btn__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  pointer-events: none;
}
.arp-btn .arp-icon {
  width: 18px;
  height: 18px;
}

/* Primario: relleno rojo de marca, texto on-red (4.7:1) */
.arp-btn--primary {
  background: var(--red);
  color: var(--on-red);
  box-shadow: 0 14px 34px -14px #E11D48CC;
}
/* Barrido de luz (decorativo, no queda bajo el texto en reposo) */
.arp-btn--primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, #FFFFFF00 30%, #FFFFFF38 48%, #FFFFFF00 66%);
  transform: translateX(-120%);
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.arp-btn--primary:hover {
  box-shadow: var(--glow-red);
}
.arp-btn--primary:hover::after {
  transform: translateX(120%);
}
.arp-btn--primary:active {
  background: var(--red-press);
}

/* Fantasma: borde line-strong (3.2:1) */
.arp-btn--ghost {
  background: #FFFFFF08;
  border-color: var(--line-strong);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.arp-btn--ghost:hover {
  border-color: var(--ink);
  background: #FFFFFF14;
}


.arp-btn--sm {
  --btn-h: 44px;
  padding: 0 20px;
  font-size: 14px;
}
.arp-btn--lg {
  --btn-h: 60px;
  padding: 0 36px;
  font-size: 16px;
}
.arp-btn--block {
  width: 100%;
}

/* Magnético: el JS mueve el botón y su etiqueta hacia el puntero */
[data-magnetic] {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Etiqueta de sección: "+ En vivo"
   -------------------------------------------------------------------------- */
.arp-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
}
.arp-label .arp-plus {
  width: 14px;
  height: 14px;
}
.arp-label--pill {
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #FFFFFF08;
}

/* --------------------------------------------------------------------------
   Precio "Desde $X USD/mes" con brillo que lo recorre
   -------------------------------------------------------------------------- */
.arp-price {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient-brand) border-box;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  overflow: hidden;
  white-space: nowrap;
}
.arp-price__amount {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.arp-price::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #FFFFFF00 35%, #FFFFFF2E 50%, #FFFFFF00 65%);
  transform: translateX(-100%);
  animation: arp-shine 3.6s var(--ease-in-out-cine) infinite;
  pointer-events: none;
}
@keyframes arp-shine {
  0%, 55% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* --------------------------------------------------------------------------
   Insignia EN VIVO con punto pulsante
   -------------------------------------------------------------------------- */
.arp-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-full);
  background: #FF2D5524;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.arp-live__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: var(--glow-live);
}
.arp-live__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--live);
  animation: arp-pulse 1.6s var(--ease-out-expo) infinite;
}
@keyframes arp-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Chip (géneros, métodos de pago, filtros secundarios)
   -------------------------------------------------------------------------- */
.arp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #FFFFFF0A;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  text-decoration: none;
}
.arp-chip--red {
  border-color: #E11D4866;
  background: #E11D481F;
  color: var(--pink-soft);
}

/* --------------------------------------------------------------------------
   Cifra animada (contador con "descifrado")
   -------------------------------------------------------------------------- */
.arp-counter {
  display: grid;
  gap: var(--space-2);
}
.arp-counter__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 2.2rem + 3.6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.arp-counter__plus {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.arp-counter__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Subrayado de ala: trazo curvo que se dibuja bajo una palabra
   -------------------------------------------------------------------------- */
.arp-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.arp-underline__stroke {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
  pointer-events: none;
}
.arp-underline__stroke path {
  fill: none;
  stroke: url(#arp-grad-brand);
  stroke-width: 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* --------------------------------------------------------------------------
   Póster (catálogo, películas, series)
   -------------------------------------------------------------------------- */
.arp-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  transform: translateZ(0);
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    box-shadow var(--dur-base) var(--ease-out-expo);
}
.arp-poster__img,
.arp-poster__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arp-poster__video {
  opacity: 0;
  transition: opacity var(--dur-fast) linear;
}
.arp-poster.is-previewing .arp-poster__video {
  opacity: 1;
}
.arp-poster__meta {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: 64px var(--space-4) var(--space-4);
  background: linear-gradient(180deg, #06060C00 0%, #06060CF2 55%, #06060C 100%);
  transform: translateY(30%);
  opacity: 0;
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    opacity var(--dur-fast) linear;
}
.arp-poster__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}
.arp-poster__info {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}
.arp-poster__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}
@media (hover: hover) {
  .arp-poster:hover,
  .arp-poster:focus-visible {
    transform: scale(1.06);
    box-shadow: var(--shadow-lift);
    z-index: 2;
  }
  .arp-poster:hover .arp-poster__meta,
  .arp-poster:focus-visible .arp-poster__meta {
    transform: none;
    opacity: 1;
  }
}
@media (hover: none) {
  /* En pantallas táctiles no hay hover: el póster ya trae su título y al tocarlo se abre el detalle */
  .arp-poster__meta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Tarjeta de plan (+ destacada con borde giratorio)
   -------------------------------------------------------------------------- */
@property --arp-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.arp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1E1E2C 0%, #151520 100%);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  will-change: transform;
}
.arp-plan > * {
  transform: translateZ(24px);
}
.arp-plan__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.arp-plan__screens {
  display: flex;
  gap: var(--space-2);
  color: var(--line-strong);
}
.arp-plan__screens .arp-icon {
  width: 28px;
  height: 28px;
  transition: color var(--dur-fast) linear, filter var(--dur-fast) linear;
}
.arp-plan__screens .is-on {
  color: var(--pink);
  filter: drop-shadow(0 0 8px #FF5A7899);
}
.arp-plan__price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
}
.arp-plan__currency {
  font-size: 28px;
  margin-top: 8px;
}
.arp-plan__amount {
  font-size: clamp(3.5rem, 2.8rem + 2.4vw, 5rem);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.arp-plan__period {
  align-self: flex-end;
  margin-bottom: 8px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
.arp-plan__list {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-muted);
}
.arp-plan__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.arp-plan__list .arp-plus {
  width: 10px;
  height: 10px;
  filter: none;
}
.arp-plan__cta {
  margin-top: auto;
}
.arp-plan__badge {
  position: absolute;
  top: 0;
  right: var(--space-6);
  transform: translate3d(0, -50%, 40px);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--red);
  color: var(--on-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--glow-red);
}

/* Destacada: borde con degradado que gira + brillo que la cruza */
.arp-plan--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, #221522 0%, #171521 100%) padding-box,
    conic-gradient(from var(--arp-angle), #E11D48, #FF5A78, #FF8FA3, #E11D4800 40%, #E11D4800 60%, #E11D48) border-box;
  border-width: 1.5px;
  animation: arp-spin 6s linear infinite;
  box-shadow: var(--shadow-lift), 0 0 80px -20px #E11D4880;
}
.arp-plan--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, #FFFFFF00 40%, #FFFFFF14 50%, #FFFFFF00 60%);
  background-size: 250% 100%;
  animation: arp-sweep 4.5s var(--ease-in-out-cine) infinite;
  pointer-events: none;
  transform: translateZ(1px);
}
@keyframes arp-spin {
  to { --arp-angle: 360deg; }
}
@keyframes arp-sweep {
  0%, 40% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

/* --------------------------------------------------------------------------
   Pestañas con indicador animado
   -------------------------------------------------------------------------- */
.arp-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #FFFFFF08;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.arp-tabs::-webkit-scrollbar {
  display: none;
}
.arp-tab {
  position: relative;
  z-index: 1;
  flex: none;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: color var(--dur-fast) linear;
}
.arp-tab:hover {
  color: var(--ink);
}
.arp-tab[aria-selected="true"] {
  color: var(--on-red);
}
.arp-tabs__indicator {
  position: absolute;
  z-index: 0;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: 0;
  border-radius: var(--radius-full);
  background: var(--red);
  box-shadow: 0 8px 24px -8px #E11D48CC;
  pointer-events: none;
}
/* Sin JS el indicador no existe: la pestaña activa lleva su propio fondo */
.arp-tabs:not(.is-enhanced) .arp-tab[aria-selected="true"] {
  background: var(--red);
}

/* --------------------------------------------------------------------------
   Buscador
   -------------------------------------------------------------------------- */
.arp-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 360px;
}
.arp-search .arp-icon {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--ink-muted);
  pointer-events: none;
}
.arp-search__input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px 0 50px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-instant) linear;
}
.arp-search__input::placeholder {
  color: var(--ink-subtle);
}
.arp-search__input:hover {
  border-color: #FFFFFF80;
}

/* --------------------------------------------------------------------------
   Acordeón (preguntas frecuentes)
   -------------------------------------------------------------------------- */
.arp-acc {
  border-top: 1px solid var(--line);
}
.arp-acc__item {
  border-bottom: 1px solid var(--line);
}
.arp-acc__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-2);
  border-radius: var(--radius-md);
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.arp-acc__icon {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform var(--dur-base) var(--ease-back), background-color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}
.arp-acc__icon .arp-plus {
  width: 14px;
  height: 14px;
  filter: none;
  fill: var(--ink);
}
.arp-acc__btn[aria-expanded="true"] .arp-acc__icon {
  transform: rotate(135deg);
  background: var(--red);
  border-color: var(--red);
}
.arp-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out-expo);
}
.arp-acc__btn[aria-expanded="true"] + .arp-acc__panel {
  grid-template-rows: 1fr;
}
.arp-acc__inner {
  overflow: hidden;
}
.arp-acc__inner > p {
  padding: 0 var(--space-2) var(--space-5);
  max-width: 62ch;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Testimonio (con marca de "reemplazar")
   -------------------------------------------------------------------------- */
.arp-quote {
  position: relative;
  display: grid;
  gap: var(--space-5);
  align-content: start;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.arp-quote__mark {
  width: 36px;
  height: 36px;
}
.arp-quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
}
.arp-quote__who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--ink-muted);
}
.arp-quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--on-red);
}
.arp-quote__name {
  display: block;
  font-weight: 700;
  color: var(--ink);
}
/* --------------------------------------------------------------------------
   Botón flotante de volver arriba (aparece al hacer scroll)
   -------------------------------------------------------------------------- */
.arp-top {
  position: fixed;
  right: max(var(--space-4), env(safe-area-inset-right));
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  z-index: var(--z-fab);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--red);
  color: var(--on-red);
  box-shadow: 0 16px 40px -12px #000000E6;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity var(--dur-fast) linear, transform var(--dur-fast) var(--ease-out-expo), background var(--dur-fast) linear;
}
.arp-top[hidden] { display: none; }
.arp-top.is-on { opacity: 1; transform: none; }
.arp-top .arp-icon { width: 24px; height: 24px; }
.arp-top:hover { background: var(--red-press); }
.arp-top:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (prefers-reduced-motion: reduce) {
  .arp-top { transition: none; }
}

/* --------------------------------------------------------------------------
   Barra inferior fija (móvil): "Desde $X/mes · Suscribirme"
   -------------------------------------------------------------------------- */
.arp-mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-fab);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) max(var(--space-3), env(safe-area-inset-bottom));
  background: #151520E6;
  -webkit-backdrop-filter: blur(var(--blur-nav));
  backdrop-filter: blur(var(--blur-nav));
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.arp-mbar.is-hidden {
  transform: translateY(110%);
}
.arp-mbar__price {
  display: grid;
  line-height: 1.15;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}
.arp-mbar__price strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
@media (min-width: 768px) {
  .arp-mbar { display: none; }
}
/* En móvil el botón de volver arriba sube para no tapar la barra */
@media (max-width: 767.98px) {
  .arp-top {
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }
}

/* --------------------------------------------------------------------------
   Íconos de dispositivo con nombre
   -------------------------------------------------------------------------- */
.arp-device {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #FFFFFF05;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}
.arp-device .arp-icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
  color: var(--pink-soft);
}
.arp-device:hover {
  border-color: #E11D4880;
  background: #E11D4810;
}

/* --------------------------------------------------------------------------
   Pantalla de TV (con estática de cambio de canal)
   -------------------------------------------------------------------------- */
.arp-tv {
  position: relative;
  width: 100%;
}
.arp-tv__frame {
  position: relative;
  padding: clamp(8px, 1.2vw, 14px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #2A2A3A 0%, #101018 60%);
  box-shadow: 0 0 0 1px #FFFFFF14, 0 50px 100px -30px #000000, 0 0 120px -30px var(--tv-glow, #FF2D5566);
}
.arp-tv__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background: var(--bg-deep);
}
.arp-tv__screen video,
.arp-tv__screen img,
.arp-tv__screen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arp-tv__static {
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.arp-tv__osd {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  pointer-events: none;
}
.arp-tv__channel {
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #06060CB3;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}
.arp-tv__channel strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.arp-tv__stand {
  width: 34%;
  height: 14px;
  margin: 0 auto;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: linear-gradient(180deg, #1B1B27, #0B0B12);
}
.arp-tv.is-glitching .arp-tv__screen video,
.arp-tv.is-glitching .arp-tv__screen img {
  animation: arp-rgb var(--dur-glitch) steps(6) 1;
}
@keyframes arp-rgb {
  0% { transform: translate(0); filter: none; }
  20% { transform: translate(-6px, 2px) skewX(6deg); filter: drop-shadow(6px 0 0 #FF2D55) drop-shadow(-6px 0 0 #4CC3FF); }
  40% { transform: translate(5px, -3px); filter: drop-shadow(-8px 0 0 #FF2D55) drop-shadow(8px 0 0 #4CC3FF); }
  60% { transform: translate(-3px, 1px) skewX(-4deg); }
  80% { transform: translate(2px, 0); filter: drop-shadow(3px 0 0 #FF2D55) drop-shadow(-3px 0 0 #4CC3FF); }
  100% { transform: translate(0); filter: none; }
}

/* Botones de canal */
.arp-channels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.arp-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #FFFFFF08;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: border-color var(--dur-fast) linear, color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}
.arp-channel-btn__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-raised);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}
.arp-channel-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.arp-channel-btn[aria-pressed="true"] {
  color: var(--ink);
  border-color: #FF2D5599;
  background: #FF2D551F;
}
.arp-channel-btn[aria-pressed="true"] .arp-channel-btn__num {
  background: var(--live);
  color: var(--on-red);
}

/* --------------------------------------------------------------------------
   Mini guía de programación (EPG) con línea de "ahora"
   -------------------------------------------------------------------------- */
.arp-epg {
  position: relative;
  display: grid;
  gap: 6px;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #151520CC;
  overflow: hidden;
}
/* Sin JavaScript la guía queda vacía: se oculta */
.arp-epg:empty {
  display: none;
}
.arp-epg__times,
.arp-epg__row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 6px;
  align-items: stretch;
}
/* Se ven 4 canales a la vez (los que rodean al actual) */
.arp-epg__row[hidden] {
  display: none;
}
.arp-epg__times {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-subtle);
}
.arp-epg__ticks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.arp-epg__ch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  min-height: 40px;
  border-radius: var(--radius-xs);
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color var(--dur-fast) linear, box-shadow var(--dur-fast) linear;
}
.arp-epg__row.is-active .arp-epg__ch {
  background: #FF2D5526;
  box-shadow: inset 2px 0 0 var(--live);
}
.arp-epg__num {
  flex: none;
  min-width: 1.4em;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}
.arp-epg__row.is-active .arp-epg__num {
  color: var(--live);
}
/* Texto que se corta con "…" si no cabe */
.arp-epg__txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arp-epg__slots {
  position: relative;
  display: flex;
  gap: 6px;
}
.arp-epg__slot {
  flex: var(--span, 1) 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  background: #FFFFFF0A;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arp-epg__slot.is-now {
  background: #FF2D551F;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #FF2D5566;
}
.arp-epg__now {
  position: absolute;
  top: var(--space-4);
  bottom: var(--space-4);
  width: 2px;
  margin-left: -1px;
  background: var(--live);
  box-shadow: 0 0 12px var(--live);
  pointer-events: none;
}
.arp-epg__now::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--live);
}
/* Móvil: el nombre del canal va arriba y los programas usan todo el ancho,
   así la línea de "ahora" sigue alineada con la hora */
@media (max-width: 599.98px) {
  .arp-epg {
    padding: var(--space-3);
  }
  .arp-epg__times,
  .arp-epg__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .arp-epg__times > span:first-child {
    display: none;
  }
  .arp-epg__row + .arp-epg__row {
    margin-top: 4px;
  }
  .arp-epg__ch {
    min-height: 0;
    padding: 0 2px;
    background: none;
    font-size: 12px;
  }
  .arp-epg__row.is-active .arp-epg__ch {
    background: none;
    box-shadow: none;
    color: var(--ink);
  }
  .arp-epg__slots {
    gap: 4px;
  }
  .arp-epg__slot {
    min-height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   Cursor personalizado ("▶ Ver" sobre pósters)
   -------------------------------------------------------------------------- */
.arp-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  display: none;
}
.has-cursor .arp-cursor {
  display: block;
}
.arp-cursor__dot {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  mix-blend-mode: difference;
}
.arp-cursor__ring {
  position: absolute;
  top: -22px;
  left: -22px;
  width: 44px;
  height: 44px;
  border: 1px solid #FFFFFF66;
  border-radius: 50%;
  transition: transform var(--dur-fast) var(--ease-out-expo), opacity var(--dur-fast) linear, border-color var(--dur-fast) linear;
}
.arp-cursor__play {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: var(--red);
  color: var(--on-red);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--dur-base) var(--ease-back);
  box-shadow: var(--glow-red);
}
.arp-cursor.is-play .arp-cursor__play {
  transform: translate(-50%, -50%) scale(1);
}
.arp-cursor.is-play .arp-cursor__ring,
.arp-cursor.is-play .arp-cursor__dot {
  opacity: 0;
}
.arp-cursor.is-hover .arp-cursor__ring {
  transform: scale(1.6);
  border-color: var(--pink);
}
.has-cursor,
.has-cursor a,
.has-cursor button {
  cursor: none;
}
.has-cursor input {
  cursor: text;
}

/* --------------------------------------------------------------------------
   Modal (detalle del catálogo)
   -------------------------------------------------------------------------- */
.arp-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--space-4);
  visibility: hidden;
}
.arp-modal.is-open {
  visibility: visible;
}
.arp-modal__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(var(--blur-modal));
  backdrop-filter: blur(var(--blur-modal));
  opacity: 0;
}
.arp-modal__dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lift);
  overscroll-behavior: contain;
}
.arp-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #06060CB3;
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.arp-modal__close:focus-visible {
  box-shadow: var(--focus-ring);
}

/* --------------------------------------------------------------------------
   Marquesina
   -------------------------------------------------------------------------- */
.arp-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}
.arp-marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.45em;
  padding-right: 0.45em;
  white-space: nowrap;
  will-change: transform;
}
.arp-marquee__item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 1.8rem + 4.6vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.arp-marquee__item--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px #FFFFFF59;
}
.arp-marquee .arp-plus {
  width: 0.42em;
  height: 0.42em;
}

/* --------------------------------------------------------------------------
   Infantil: tarjeta con efecto gelatina y sello de control parental
   -------------------------------------------------------------------------- */
.arp-kcard {
  --kc: var(--kids-sky);
  position: relative;
  display: grid;
  gap: var(--space-3);
  align-content: end;
  min-height: 220px;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--kc);
  color: var(--bg);
  overflow: hidden;
  transform-origin: 50% 100%;
  box-shadow: 0 24px 50px -24px #06060CCC;
}
.arp-kcard--sun { --kc: var(--kids-sun); }
.arp-kcard--mint { --kc: var(--kids-mint); }
.arp-kcard--pink { --kc: var(--pink-soft); }
.arp-kcard__art {
  position: absolute;
  top: -18%;
  right: -12%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #FFFFFF59;
  box-shadow: inset -18px -18px 0 #06060C14;
}
.arp-kcard__title {
  position: relative;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
}
.arp-kcard__meta {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.8;
}

.arp-seal {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--kids-sun);
  color: var(--bg);
  text-align: center;
  box-shadow: 0 0 0 8px #FFD23F33, 0 20px 50px -20px #06060C;
}
.arp-seal__ring {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  animation: arp-rotate 18s linear infinite;
}
.arp-seal__ring text {
  font-family: var(--font-text);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  fill: var(--bg);
}
.arp-seal__lock {
  width: 44px;
  height: 44px;
  overflow: visible;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arp-seal__shackle {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
@keyframes arp-rotate {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Pasos (Cómo funciona) con línea que se dibuja
   -------------------------------------------------------------------------- */
.arp-steps {
  position: relative;
  display: grid;
  gap: var(--space-7);
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.arp-steps__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.arp-steps__line path {
  fill: none;
  stroke: url(#arp-grad-brand);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.arp-step {
  position: relative;
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  counter-increment: step;
}
.arp-step__num {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 0 0 10px var(--bg);
}
.arp-step__num::before {
  content: counter(step);
}
.arp-step.is-lit .arp-step__num {
  border-color: var(--red);
  background: var(--red);
  color: var(--on-red);
  box-shadow: 0 0 0 10px var(--bg), var(--glow-red);
}
.arp-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}
.arp-step__text {
  max-width: 30ch;
  color: var(--ink-muted);
}
/* En columna: el número a la izquierda y el texto a su lado, para que la
   línea baje por la columna de los números sin cruzar el texto */
@media (max-width: 899.98px) {
  .arp-step {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: var(--space-5);
    row-gap: var(--space-2);
    align-items: start;
  }
  .arp-step__num {
    grid-row: 1 / span 2;
  }
  .arp-step__title {
    padding-top: 14px;
  }
}
@media (min-width: 900px) {
  .arp-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Variante que fuerza la fila de tres en cualquier ancho */
.arp-steps--row {
  grid-template-columns: repeat(3, 1fr);
}
.arp-steps--row .arp-step {
  grid-template-columns: none;
  row-gap: var(--space-3);
}
.arp-steps--row .arp-step__num {
  grid-row: auto;
}
.arp-steps--row .arp-step__title {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   Barra de episodios (sensación de maratón)
   -------------------------------------------------------------------------- */
.arp-episodes {
  display: grid;
  grid-template-columns: repeat(var(--count, 8), 1fr);
  gap: 6px;
}
.arp-episode {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-subtle);
}
.arp-episode__bar {
  position: relative;
  height: 6px;
  border-radius: var(--radius-full);
  background: #FFFFFF1F;
  overflow: hidden;
}
.arp-episode__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-brand);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.arp-episode.is-current {
  color: var(--ink);
}
