/* Interruptores de la hípica (hub del cliente, 9-oct-2026): sin saldo, el
   contenido queda desenfocado y el aviso flota en el centro de la pantalla. */

.acceso-desenfocado {
  filter: blur(7px) saturate(.85);
  pointer-events: none;
  user-select: none;
  transition: filter .25s ease;
}

.acceso-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 12, 20, .35);
}
.acceso-overlay[hidden] { display: none; }
.acceso-overlay__card {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--srh-border);
  border-radius: 16px;
  background: var(--srh-card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  text-align: center;
}
.acceso-overlay__spinner { margin: 0 auto .9rem; }
.acceso-overlay__spinner[hidden] { display: none; }
.acceso-overlay__texto { margin: 0 0 1.1rem; color: var(--srh-text); font-size: .92rem; line-height: 1.45; }
.acceso-overlay__btn,
.gac-acceso a {
  display: inline-block;
  padding: .7rem 1.3rem;
  border-radius: 10px;
  background: var(--srh-gold);
  color: #080c14;
  font-weight: 800;
  text-decoration: none;
}
.acceso-overlay__btn[hidden] { display: none; }
.acceso-overlay__btn:focus-visible,
.gac-acceso a:focus-visible { outline: 3px solid rgba(190, 210, 234, .45); outline-offset: 2px; }
html[data-theme="light"] .acceso-overlay { background: rgba(241, 245, 252, .35); }
html[data-theme="light"] .acceso-overlay__btn,
html[data-theme="light"] .gac-acceso a { color: var(--srh-ink-on-brand, #080c14); }

/* Nota de «gacetas sólo en PDF». */
.gac-acceso {
  margin: 1rem auto;
  max-width: 520px;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--srh-border);
  border-radius: 15px;
  background: var(--srh-card);
  text-align: center;
}
.gac-acceso p { margin: 0 0 1rem; color: var(--srh-text); font-size: .9rem; line-height: 1.45; }

/* «Gacetas sólo en PDF»: sin la gaceta digitalizada ni sus herramientas. */
.gac--solo-pdf .gac-section-title,
.gac--solo-pdf #gac-race-scroll,
.gac--solo-pdf #gac-race-banner,
.gac--solo-pdf #gac-banner-exoticas,
.gac--solo-pdf .gac-mode-row,
.gac--solo-pdf #gac-horses-list,
.gac--solo-pdf #gac-no-gaceta,
.gac--solo-pdf #gac-pdf-link { display: none !important; }

/* Transmisión SIMULADA (sin señal) detrás del aviso: reproductores
   «cargando» el vídeo (círculo de carga, barra de controles con la carga
   avanzando), para que se intuya la señal en directo. */
.acceso-tx__mosaico {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}
.acceso-tx__pantalla {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 45%, #1b2638 0%, #0b111c 70%, #05080e 100%);
}
.acceso-tx__vivo {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e11d48;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.acceso-tx__carga {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -32px 0 0 -23px;
  border: 4px solid rgba(255, 255, 255, .18);
  border-top-color: #fff;
  border-radius: 50%;
  animation: acceso-tx-girar .9s linear infinite;
}
.acceso-tx__texto {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: 24px;
  color: rgba(255, 255, 255, .75);
  font-size: .7rem;
  text-align: center;
}
.acceso-tx__controles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  padding: 11px 10px 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .6));
}
.acceso-tx__progreso {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .2);
}
.acceso-tx__progreso::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(255, 255, 255, .55);
  animation: acceso-tx-cargar 3.2s ease-in-out infinite;
}
.acceso-tx__pantalla--2 .acceso-tx__carga,
.acceso-tx__pantalla--2 .acceso-tx__progreso::after { animation-delay: -.4s; }
.acceso-tx__pantalla--3 .acceso-tx__carga,
.acceso-tx__pantalla--3 .acceso-tx__progreso::after { animation-delay: -1.1s; }
.acceso-tx__pantalla--4 .acceso-tx__carga,
.acceso-tx__pantalla--4 .acceso-tx__progreso::after { animation-delay: -1.9s; }
@keyframes acceso-tx-girar { to { transform: rotate(360deg); } }
@keyframes acceso-tx-cargar { 0% { width: 0; } 70% { width: 85%; } 100% { width: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .acceso-tx__carga,
  .acceso-tx__progreso::after { animation: none; }
  .acceso-tx__progreso::after { width: 40%; }
}
@media (max-width: 480px) {
  .acceso-tx__mosaico { grid-template-columns: minmax(0, 1fr); }
}
