
/* FRENO DE MANO CSS: AISLAMIENTO 100% PARA NO CONTAMINAR OTROS TEMAS */
#cartelera-capa-option5 {
  display: none !important;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 35;
  pointer-events: none;
}

body.in-video-playback.layout-option5 #cartelera-capa-option5 {
  display: block !important;
}

/* ==========================================================================
   qVEO CARTELERA DIGITAL - SISTEMA DE 7 TEMAS COMERCIALES ULTRA MODERNOS
   Solo activos cuando el TV está reproduciendo video (body.in-video-playback)
   ========================================================================== */

/* Capas ocultas por defecto */
#cartelera-capa-option1,
#cartelera-capa-option2,
#cartelera-capa-option3,
#cartelera-capa-option4,
#cartelera-capa-option5,
#cartelera-capa-option6,
#cartelera-capa-option7 {
  display: none !important;
}

/* En modo video, ocultar el Hub por completo para evitar pantallas negras o bloqueos */
body.in-video-playback #qveo-main-hub {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   ESTÁNDAR UNIVERSAL DE REPRODUCCIÓN NETFLIX / DISNEY+ (HARDWARE HOLE-PUNCHING)
   Aplicable a todos los videos (MP4, YouTube, IPTV HLS) y a todos los temas (1 a 7).
   1. Aceleración por GPU en Capa Z de hardware pura
   2. Eliminación absoluta de sombras y recortes sobre el flujo de video
   3. Rendimiento óptimo garantizado a 60 FPS en televisores
   ========================================================================== */
body.in-video-playback #fullscreen-video-viewport {
  z-index: 10 !important;
  background: radial-gradient(ellipse at center, #0e172a 0%, #070a12 75%, #020408 100%) !important;
  -webkit-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
  will-change: transform !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

#fullscreen-video-viewport video,
#fullscreen-video-viewport iframe {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* Adaptación inteligente: 100% del video visible sin recortes */
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
  will-change: transform !important;
}

/* En modo pantalla completa pura (sin temas de cartelera activos), llena la pantalla 16:9 al 100% */
body.in-video-playback:not([class*="layout-option"]) #fullscreen-video-viewport video,
body.in-video-playback:not([class*="layout-option"]) #fullscreen-video-viewport iframe {
  object-fit: cover !important;
}

/* ==========================================================================
   1. OPCIÓN 1: TEMA FLOTANTE MODERNO -> Aislado en themes/option1/theme.css
   ========================================================================== */

/* ==========================================================================
   2. OPCIÓN 2: TEMA CARTELERA COMPACTA 88/12 (Video 88% + Barra 12% con Cascada)
   ========================================================================== */
body.in-video-playback.layout-option2 #fullscreen-video-viewport {
  width: 88vw !important;
  right: 12vw !important;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Plano de Video 1:1 Hardware Puro en Tema 2 (Ley 1 Método Elefante: sin scale/supersampling) */

body.in-video-playback.layout-option2 #cartelera-capa-option2 {
  display: block !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

.option2-watermark-center {
  position: absolute;
  top: 50%;
  left: 44vw;
  transform: translate(-50%, -50%);
  z-index: 25;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.option2-watermark-center span {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.15);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  line-height: 1;
}

.option2-main-title-box {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 88vw;
  background-color: #ffffff;
  color: #1e293b;
  height: 42px;
  padding: 0 14px;
  z-index: 40;
  box-shadow: none;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  pointer-events: auto;
}

.option2-bottom-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.option2-qr-badge-wrapper {
  position: absolute;
  left: 8px;
  top: -14px;
  z-index: 50;
  flex-shrink: 0;
}

.option2-qr-badge-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  border: 1.5px solid #ffffff;
}

.option2-ticker-container {
  margin-left: 60px;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  overflow: hidden;
}

.option2-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #e11d48;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0 9px;
  height: 22px;
  border-radius: 9999px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.option2-ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.option2-main-title-ticker {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  height: 100%;
  padding-left: 100%;
  animation: opt1Marquee 24s linear infinite;
  will-change: transform;
}

.option2-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 12vw;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  z-index: 40;
  pointer-events: auto;
  box-shadow: none;
}

.option2-stack-card {
  flex: 1 1 25%;
  height: 25vh;
  position: relative;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.opt2-slot-content {
  position: relative;
  z-index: 2;
  transition: opacity 450ms cubic-bezier(0.4, 0, 0.2, 1), transform 450ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.opt2-slot-content.fade-out {
  opacity: 0;
  transform: translateY(4px);
}

.option2-watermark-num {
  position: absolute;
  right: 6px;
  bottom: -22px;
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.opt2-card-1 { background-color: #f8fafc; color: #0f172a; }
.opt2-card-1 .option2-watermark-num { color: rgba(15, 23, 42, 0.08); }
.opt2-card-2 { background-color: #e2e8f0; color: #0f172a; }
.opt2-card-2 .option2-watermark-num { color: rgba(15, 23, 42, 0.09); }
.opt2-card-3 { background-color: #334155; color: #ffffff; }
.opt2-card-3 .option2-watermark-num { color: rgba(255, 255, 255, 0.12); }
.opt2-card-4 { background-color: #0f172a; color: #ffffff; }
.opt2-card-4 .option2-watermark-num { color: rgba(255, 255, 255, 0.14); }

.option2-card-header {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}

.option2-card-body {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  position: relative;
  z-index: 2;
}


/* ==========================================================================
   3. OPCIÓN 3: TEMA YOUTUBE SIGNAGE SOSTENIDO (VIDEO 71vw / SIDEBAR 26.5vw)
   ========================================================================== */

/* Capa oculta por defecto fuera de reproducción */
#cartelera-capa-option3 {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  display: none !important;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Estado sostenido cuando layout-option3 está activo en video */
body.in-video-playback.layout-option3 #cartelera-capa-option3 {
  display: block !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

/* Reproductor Principal Sostenido (73.5vw de ancho, dejando 46px abajo para el ticker) */
body.in-video-playback.layout-option3 #fullscreen-video-viewport {
  width: 73.5vw !important;
  height: calc(100vh - 46px) !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              top 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* =========================================================================
   PANTALLAS GEMELAS FLOTANTES 60 / 40 (TEMA 3)
   Video en vivo 60% a la izquierda, Publicidad 40% a la derecha.
   Fondo negro puro (#000000), esquinas redondeadas (14px) ajustadas
   directamente a la relación 16:9 de cada contenido (cero franjas sobrantes).
   ========================================================================= */

/* 1. Fondo cinemático oscuro con ondas de alta gama */
body.in-video-playback.layout-option3.opt3-f1-active {
  background: #060911 url('../img/bg_tema3_ad.jpg') no-repeat center center / cover !important;
}

/* 2. Pantalla Izquierda: Video en vivo 60% en proporción 16:9 nativa centrada */
body.in-video-playback.layout-option3.opt3-f1-active #fullscreen-video-viewport {
  width: calc(59vw - 24px) !important;
  height: calc((59vw - 24px) * 9 / 16) !important;
  aspect-ratio: 16 / 9 !important;
  top: calc((100vh - 46px - ((59vw - 24px) * 9 / 16)) / 2) !important;
  left: 16px !important;
  border-radius: 14px !important;
  border: none !important;
  background: #000000 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9) !important;
  z-index: 46 !important;
  overflow: hidden !important;
}

body.in-video-playback.layout-option3.opt3-f1-active #fullscreen-video-viewport iframe,
body.in-video-playback.layout-option3.opt3-f1-active #fullscreen-video-viewport video {
  border-radius: 14px !important;
  width: 100% !important;
  height: 100% !important;
}

/* 3. Ocultar suavemente el sidebar derecho y la cinta inferior durante el bloque publicitario */
body.in-video-playback.layout-option3.opt3-f1-active .option3-yt-sidebar {
  transform: translateX(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.in-video-playback.layout-option3.opt3-f1-active .option3-main-title-box {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.option3-yt-sidebar {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* 4. Pantalla Derecha: Publicidad 40% en proporción 16:9 nativa centrada */
.opt3-f1-ad-stage {
  position: fixed;
  top: calc((100vh - 46px - ((41vw - 24px) * 9 / 16)) / 2);
  right: 16px;
  width: calc(41vw - 24px);
  height: calc((41vw - 24px) * 9 / 16);
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 14px;
  border: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  box-sizing: border-box;
  z-index: 46;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.in-video-playback.layout-option3.opt3-f1-active .opt3-f1-ad-stage {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.opt3-f1-ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  background: #000000;
  transition: opacity 0.3s ease;
}

/* Plano de Video 1:1 Hardware Puro en Tema 3 (Ley 1 Método Elefante: sin scale/supersampling) */

/* Sidebar Estilo YouTube (Columna Derecha 26.5vw) */
.option3-yt-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 26.5vw;
  height: 100vh;
  background: rgba(7, 10, 18, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  overflow-y: hidden;
  box-sizing: border-box;
  pointer-events: auto;
}

/* Reloj Apple StandBy 2026 Puro Gigante Flotante (Hora Militar 24H) */
.option3-apple-standby-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 14px 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none;
  box-sizing: border-box;
}

.option3-apple-clock-display {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Fredoka", "Nunito", "Plus Jakarta Sans", sans-serif;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.06em;
  user-select: none;
  filter: none;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.85);
  width: 100%;
}

.option3-apple-clock-display .apple-ampm {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: clamp(0.72rem, 1vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 10;
}

.option3-apple-clock-display .apple-digit {
  font-size: clamp(6.2rem, 9.2vw, 11rem);
  font-weight: 900;
  line-height: 0.82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0.94;
}

.option3-apple-clock-display .apple-digit-h1 {
  color: #ff2d75;
  z-index: 1;
}

.option3-apple-clock-display .apple-digit-h2 {
  color: #38bdf8;
  z-index: 2;
  margin-left: -0.18em;
}

@keyframes appleColonBlink {
  0%, 100% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.12;
  }
}

.option3-apple-clock-display .apple-colon {
  font-size: clamp(5.2rem, 7.8vw, 9.2rem);
  font-weight: 900;
  color: #ffffff;
  margin-left: -0.05em;
  margin-right: -0.05em;
  position: relative;
  z-index: 8;
  line-height: 0.72;
  transform: translateY(-0.04em);
  display: inline-block;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.9);
  animation: appleColonBlink 1s ease-in-out infinite;
  will-change: opacity;
}

.option3-apple-clock-display .apple-digit-m1 {
  color: #f43f8e;
  z-index: 4;
  margin-left: -0.05em;
}

.option3-apple-clock-display .apple-digit-m2 {
  color: #38bdf8;
  z-index: 5;
  margin-left: -0.18em;
}

/* Pie: QR Gigante 100% Limpio (Sin Textos ni Fondos Inútiles) */
.option3-yt-footer {
  width: 100%;
  flex: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 0 !important;
  margin-top: auto !important;
  background: transparent !important;
  border: none !important;
}

.option3-giant-qr-box {
  width: clamp(190px, 17vw, 220px);
  height: clamp(190px, 17vw, 220px);
  background: #ffffff;
  border-radius: 20px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}

.option3-giant-qr-box canvas,
.option3-giant-qr-box img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border-radius: 10px;
}

/* Cinta Inferior Ticker Blanco Profesional Estilo Tema 2 */
.option3-main-title-box {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 73.5vw;
  background-color: #ffffff;
  color: #1e293b;
  height: 44px;
  padding: 0 14px;
  z-index: 40;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.option3-bottom-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.option3-qr-badge-wrapper {
  position: absolute;
  left: 4px;
  top: -14px;
  z-index: 50;
  flex-shrink: 0;
}

.option3-qr-badge-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border: 1.5px solid #ffffff;
}

.option3-ticker-container {
  margin-left: 56px;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  overflow: hidden;
}

.option3-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #e11d48;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0 9px;
  height: 22px;
  border-radius: 9999px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.option3-ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.option3-main-title-ticker {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  height: 100%;
  padding-left: 100%;
  animation: opt1Marquee 24s linear infinite;
  will-change: transform;
}

/* 3 Previews Laterales de Idéntico Tamaño */
.opt3-preview-item {
  height: 94px !important;
  min-height: 94px !important;
  max-height: 94px !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  cursor: pointer;
}

.opt3-preview-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
}

.opt3-preview-item.active {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25) !important;
}

.opt3-preview-thumb-box {
  width: 102px !important;
  height: 68px !important;
  min-width: 102px !important;
  flex-shrink: 0 !important;
}

/* Overlay Publicitario Principal en el Reproductor de Video */
#opt3-main-ad-overlay {
  display: none;
  opacity: 0;
  background-color: #000000 !important;
  transition: opacity 0.3s ease;
}

#opt3-main-ad-overlay.ad-visible {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#opt3-main-ad-overlay.ad-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* ==========================================================================
   4. OPCIÓN 4: TEMA TURNERO INTELIGENTE (CLÍNICAS, BANCOS, EPS Y NOTARÍAS)
   Layout: Columna Izquierda de Turnos (35vw) + Video y Métricas a la Derecha (65vw)
   ========================================================================== */
body.in-video-playback.layout-option4 #cartelera-capa-option4 {
  display: block !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

/* El reproductor de video ocupa la sección superior derecha (65vw x altura restante) */
body.in-video-playback.layout-option4 #fullscreen-video-viewport {
  position: fixed !important;
  top: 0 !important;
  left: 35vw !important;
  width: 65vw !important;
  height: calc(100vh - 124px) !important; /* 80px métricas + 44px ticker */
  border-radius: 0 !important;
  border-left: 2px solid rgba(2, 132, 199, 0.25) !important;
  border-bottom: 2px solid rgba(2, 132, 199, 0.25) !important;
  box-shadow: none !important;
  transition: all 0.35s ease;
  z-index: 20 !important;
}

/* Plano de Video 1:1 Hardware Puro en Tema 4 (Ley 1 Método Elefante: sin scale/supersampling) */

/* Columna Izquierda: Turnero Institucional (35vw x 100vh - 44px) */
.option4-turnero-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 35vw;
  height: calc(100vh - 44px);
  background: #f8fafc;
  border-right: 2px solid rgba(2, 132, 199, 0.2);
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  box-sizing: border-box;
  z-index: 30;
  pointer-events: auto;
  box-shadow: none;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Cabecera de la Marca */
.option4-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

/* Encabezado de la Tabla */
.option4-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  margin-top: 10px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.option4-table-head .col-patient { width: 50%; }
.option4-table-head .col-ticket { width: 25%; text-align: center; }
.option4-table-head .col-module { width: 25%; text-align: center; }

/* Contenedor de Filas de Turnos */
.option4-turns-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 8px 0;
  gap: 7px;
}

/* Fila de Turno Individual */
.opt4-turn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.opt4-turn-row.is-active-call {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25), 0 6px 18px rgba(2, 132, 199, 0.15) !important;
  transform: scale(1.02);
}

.opt4-turn-user {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.opt4-patient-name {
  font-size: clamp(0.78rem, 1.05vw, 0.95rem);
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opt4-turn-badge-live {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 900;
  color: #0284c7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.opt4-turn-code-wrap {
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt4-turn-code {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.2rem, 1.6vw, 1.7rem);
  font-weight: 900;
  color: #0369a1;
  letter-spacing: -0.02em;
}

.opt4-turn-row.is-active-call .opt4-turn-code {
  color: #0284c7;
  font-weight: 900;
}

.opt4-turn-module-wrap {
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt4-turn-module {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.1rem, 1.4vw, 1.5rem);
  font-weight: 800;
  color: #334155;
}

/* Pie de Barra Lateral: QR Virtual Queue */
.option4-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.option4-qr-box {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}

.option4-qr-box canvas,
.option4-qr-box img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Overlay Flotante de Llamado de Turno Sobre el Video (Efecto Colsanitas) */
.option4-callout-overlay {
  position: fixed;
  top: 0;
  left: 35vw;
  width: 65vw;
  height: calc(100vh - 124px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.option4-callout-bubble {
  width: 260px;
  height: 260px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(2, 132, 199, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.option4-callout-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.option4-callout-circle .callout-lbl {
  font-size: 0.85rem;
  font-weight: 900;
  color: #0369a1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.option4-callout-circle .callout-code {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Plus Jakarta Sans", sans-serif;
  font-size: 4.6rem;
  font-weight: 900;
  line-height: 0.92;
  color: #0284c7;
  letter-spacing: -0.04em;
  filter: none;
  text-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.option4-callout-circle .callout-sub {
  font-size: 0.8rem;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

.option4-callout-circle .callout-mod {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: #0f766e;
}

/* Franja Inferior Derecha: Métricas de Tiempo de Atención */
.option4-metrics-bar {
  position: fixed;
  bottom: 44px;
  left: 35vw;
  width: 65vw;
  height: 80px;
  background: #ffffff;
  border-top: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  z-index: 30;
  pointer-events: auto;
  box-shadow: none;
}

.option4-metrics-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metrics-title {
  font-size: 0.62rem;
  font-weight: 900;
  color: #0284c7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metrics-items-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.metric-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  display: block;
}

.metric-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.metric-val small {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: #e2e8f0;
}

/* Ticker Institucional Inferior (100vw) */
.option4-bottom-ticker-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 44px;
  background: linear-gradient(90deg, #042f2e 0%, #0f766e 50%, #0369a1 100%);
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 40;
  pointer-events: auto;
  box-shadow: none;
}

.option4-ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 12px;
  height: 26px;
  border-radius: 9999px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.option4-ticker-scroll-wrap {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 14px;
}

.option4-ticker-marquee {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  height: 100%;
  padding-left: 100%;
  animation: opt1Marquee 26s linear infinite;
  will-change: transform;
}


/* ==========================================================================
   5. OPCIÓN 5: TEMA ZONA FIT / STRONGFIT TV (100% AISLADO)
   ========================================================================== */
#cartelera-capa-option5 {
  display: none !important;
}

body.in-video-playback.layout-option5 #cartelera-capa-option5 {
  display: block !important;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 30;
  pointer-events: none;
}

/* Enmascaramiento de Video para el Cuadrante Izquierdo */
/* Enmascaramiento de Video 16:9 Horizontal Solapado (Plano de Video 1:1 Hardware Puro) */
body.in-video-playback.layout-option5 #fullscreen-video-viewport {
  position: fixed !important;
  left: 4.5vw !important;
  top: 20vh !important;
  width: 55vw !important;
  height: 55vh !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  z-index: 45 !important;
  opacity: 1 !important;
  display: block !important;
  pointer-events: auto !important;
  background-color: #000000 !important;
  box-shadow: 0 0 0 4px #000000 !important;
  -webkit-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
}

body.in-video-playback.layout-option5 #fullscreen-video-viewport video:not(.hidden),
body.in-video-playback.layout-option5 #fullscreen-video-viewport iframe:not(.hidden) {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
  border-radius: 0 !important;
  display: block !important;
  opacity: 1 !important;
}

/* Plano de Video 1:1 Hardware Puro en Tema 5 (Ley 1 Método Elefante: sin scale/supersampling) */

body.in-video-playback.layout-option5 #fullscreen-video-viewport video.hidden,
body.in-video-playback.layout-option5 #fullscreen-video-viewport iframe.hidden,
body.in-video-playback.layout-option5 #fullscreen-video-viewport .hidden {
  display: none !important;
}

/* Canvas y Contenedor Principal */
.opt5-fit-canvas {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Franja Verde Volt Izquierda (24% Ancho - Base de Marca) */
.opt5-left-volt-zone {
  width: 24vw;
  height: 100vh;
  background-color: #d4ff00;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5vh 2vw;
  z-index: 2;
  overflow: hidden;
}

.opt5-concentric-rings {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 45% 50%, transparent 18%, rgba(0,0,0,0.06) 19%, transparent 20%, transparent 34%, rgba(0,0,0,0.06) 35%, transparent 36%, transparent 50%, rgba(0,0,0,0.06) 51%, transparent 52%, transparent 68%, rgba(0,0,0,0.06) 69%, transparent 70%);
  pointer-events: none;
}

.opt5-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  position: relative;
}

.opt5-brand-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #000000;
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.opt5-brand-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #d4ff00;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.opt5-brand-title {
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.opt5-brand-subtitle {
  font-weight: 800;
  font-size: 0.52rem;
  color: #d4ff00;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-top: 3px;
}

.opt5-accent-dots-top {
  display: flex;
  gap: 6px;
}

.opt5-accent-dots-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000000;
}

.opt5-social-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  position: relative;
  font-weight: 900;
  font-size: 0.68rem;
  color: #000000;
  letter-spacing: 0.05em;
}

.opt5-social-handle {
  font-weight: 900;
  letter-spacing: 0.06em;
}

/* Área Oscura Derecha (38% Ancho) */
.opt5-right-dark-zone {
  position: absolute;
  right: 0;
  top: 0;
  width: 38vw;
  height: 100vh;
  background-color: #0c0e12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5vh 3vw;
  z-index: 2;
  overflow: hidden;
}

.opt5-dark-rings-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, transparent 15%, rgba(212,255,0,0.03) 16%, transparent 17%, transparent 32%, rgba(212,255,0,0.03) 33%, transparent 34%, transparent 52%, rgba(212,255,0,0.03) 53%, transparent 54%, transparent 75%, rgba(212,255,0,0.03) 76%, transparent 77%);
  pointer-events: none;
}

/* Reloj Digital Compacto Pro */
.opt5-clock-compact-card {
  background: rgba(18, 21, 28, 0.95);
  border: 1px solid rgba(212, 255, 0, 0.3);
  border-radius: 1.25rem;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.opt5-clock-compact-digits {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
  color: #d4ff00;
  letter-spacing: 0.04em;
  text-shadow: none;
  display: block;
}

@media (min-width: 1400px) {
  .opt5-clock-compact-digits { font-size: 2.8rem; }
}

.opt5-date-compact {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Titulares de Impacto Volt (En el Centro) */
.opt5-headline-block {
  margin: 1vh 0;
}

.opt5-grid-dots {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 7px;
  margin-top: 0.5rem;
}

.opt5-grid-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4ff00;
}

.opt5-main-heading {
  font-size: 2.5rem;
  font-weight: 900;
  color: #d4ff00;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(212, 255, 0, 0.25);
}

@media (min-width: 1400px) {
  .opt5-main-heading { font-size: 3rem; }
}

.opt5-sub-heading {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* Cronograma de Clases Fit / Menú / Eventos */
.opt5-schedule-card {
  background: rgba(18, 21, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  padding: 0.9rem 1.1rem;
}

.opt5-class-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.opt5-class-time {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 900;
  color: #d4ff00;
  background: rgba(212, 255, 0, 0.12);
  border: 1px solid rgba(212, 255, 0, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 0.45rem;
}

.opt5-class-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.opt5-class-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
}

/* Supresión absoluta de elementos residuales */
.option5-dynamic-island,
.option5-widgets-capsule,
.option5-dots-indicator,
.option5-slides-container {
  display: none !important;
}


/* ==========================================================================
   6. OPCIÓN 6: TEMA LUXURY BOUTIQUE / EDITORIAL (Spas, Estética & Boutiques)
   ========================================================================== */
body.in-video-playback.layout-option6 #fullscreen-video-viewport {
  width: 74vw !important;
  height: 88vh !important;
  left: 2vw !important;
  top: 6vh !important;
  border-radius: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
  transition: all 0.35s ease;
}

/* Plano de Video 1:1 Hardware Puro en Tema 6 (Ley 1 Método Elefante: sin scale/supersampling) */

body.in-video-playback.layout-option6 #cartelera-capa-option6 {
  display: block !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

.option6-luxury-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 23vw;
  background: #0f141c;
  border-left: 1px solid rgba(217, 119, 6, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  z-index: 40;
  pointer-events: auto;
}


/* ==========================================================================
   7. OPCIÓN 7: TEMA MENÚ BOARD GASTRO (Fast Food & Restaurantes)
   Layout: Video Superior Sostenido (100vw x 76vh) + Barra de Menú Circular Inferior
   ========================================================================== */
body.in-video-playback.layout-option7 #fullscreen-video-viewport {
  width: 100vw !important;
  height: 76vh !important;
  top: 0 !important;
  left: 0 !important;
  transition: all 0.35s ease;
  background-color: #0b0b0e !important;
}

/* Plano de Video 1:1 Hardware Puro en Tema 7 (Ley 1 Método Elefante: sin scale/supersampling) */

body.in-video-playback.layout-option7 #cartelera-capa-option7 {
  display: block !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  background: transparent;
}

/* Header Superior Flotante: Sello Restaurante & Identidad */
.option7-top-header {
  position: fixed;
  top: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 45;
  pointer-events: none;
}

.option7-stamp-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(15, 15, 18, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px dashed rgba(245, 158, 11, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.2);
}

.option7-stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.option7-stamp-title {
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.option7-stamp-sub {
  font-size: 6.5px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.08em;
  margin-top: 1px;
}

.option7-live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(6, 10, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.option7-clock-pill {
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(20, 16, 10, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 11px;
  font-weight: 900;
  color: #fbbf24;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Barra Inferior Envolvente: Contenedor Estilo Matriz Gráfica con Borde Amarillo */
.option7-bottom-bar-wrap {
  position: fixed;
  bottom: 10px;
  left: 14px;
  right: 14px;
  height: 23vh;
  min-height: 140px;
  max-height: 180px;
  z-index: 40;
  pointer-events: auto;
}

.option7-yellow-menu-container {
  width: 100%;
  height: 100%;
  background: #0e0f13;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid #eab308;
  border-radius: 22px;
  padding: 10px 18px 12px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  box-sizing: border-box;
}

.option7-menu-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
}

.option7-order-now-title {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  font-style: italic;
}

.option7-order-arrow {
  color: #eab308;
  font-weight: 900;
  font-size: 14px;
  margin: 0 4px;
}

.option7-order-sub {
  font-size: 11px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Fila de Círculos Publicitarios */
.option7-circles-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  flex: 1;
  padding-top: 6px;
}

.opt7-preview-circle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex: 1;
  max-width: 260px;
}

.opt7-preview-circle-item:hover {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.5);
  transform: translateY(-2px);
}

.opt7-preview-circle-item.active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(249, 115, 22, 0.15));
  border-color: #eab308;
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.35);
  transform: scale(1.03);
}

.opt7-circle-outer {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.opt7-circle-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #eab308;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  background: #000000;
}

.opt7-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.opt7-preview-circle-item:hover .opt7-circle-img {
  transform: scale(1.12);
}

.opt7-circle-active-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.opt7-preview-circle-item.active .opt7-circle-active-glow {
  opacity: 1;
  animation: opt7Pulse 2s infinite;
}

@keyframes opt7Pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
}

.opt7-circle-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.opt7-circle-tag {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opt7-circle-num {
  font-size: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #eab308;
  margin-top: 1px;
}

/* Overlay Publicitario Principal Opción 7 (Cubre el 100% del Video con Fondo Negro Sólido) */
#opt7-main-ad-overlay {
  display: none;
  opacity: 0;
  background-color: #000000 !important;
  transition: opacity 0.3s ease;
}

#opt7-main-ad-overlay.ad-visible {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#opt7-main-ad-overlay.ad-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   CÁPSULA MÁGICA SUPERIOR ESTILO DISNEY+ (STICKY / FLOTANTE EN TODAS LAS SECCIONES)
   ========================================================================== */
.qveo-disney-capsule-wrap {
  position: fixed;
  top: 18px;
  left: calc(50% + 23px); /* 23px compensa los 46px del sidebar lateral izquierdo */
  transform: translateX(-50%);
  z-index: 200 !important;
  pointer-events: auto;
  user-select: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qveo-disney-capsule {
  display: inline-flex;
  align-items: center;
  background: rgba(12, 15, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 6px 8px;
  gap: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.72);
}

.qveo-disney-capsule .capsule-btn {
  position: relative;
  border: none !important;
  outline: none !important;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.015em;
  padding: 8px 20px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
  box-shadow: none !important;
}

.qveo-disney-capsule .capsule-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Estado Preselección / Foco (Cursor del control sobre un botón sin confirmar): Fondo gris oscuro sutil estilo Disney+ */
.qveo-disney-capsule .capsule-btn.tv-focused:not(.active),
.qveo-disney-capsule .capsule-btn:focus-visible:not(.active),
.qveo-disney-capsule .capsule-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.qveo-disney-capsule .capsule-btn.tv-focused:not(.active) .capsule-label,
.qveo-disney-capsule .capsule-btn:focus-visible:not(.active) .capsule-label,
.qveo-disney-capsule .capsule-btn:hover:not(.active) .capsule-label {
  color: #ffffff !important;
}

/* Cuando se preselecciona otro botón, el botón activo previo cede el protagonismo al foco gris */
.qveo-disney-capsule.has-preselection .capsule-btn.active:not(.tv-focused) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  box-shadow: none !important;
}

.qveo-disney-capsule.has-preselection .capsule-btn.active:not(.tv-focused) .capsule-label {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Estado Activo Confirmado: Pastilla Blanca Sólida Pura Idéntica a Disney+ (Con Mismo Padding Fijo, Cero Encogimientos) */
.qveo-disney-capsule .capsule-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 800 !important;
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  outline: none !important;
  transform: none !important;
}

.qveo-disney-capsule .capsule-btn.active .capsule-label {
  color: #000000 !important;
}

/* Ocultar la cápsula inmediatamente en modo reproducción de video de cualquier tema */
body.in-video-playback .qveo-disney-capsule-wrap,
body.in-video-playback #qveo-floating-capsule {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   GUÍA DE PROGRAMACIÓN EN VIVO (EPG ESTILO DISNEY+ / STAR+)
   ========================================================================== */
.qveo-live-guide-section {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.qveo-epg-wrapper {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 18, 30, 0.9) 0%, rgba(8, 11, 19, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 74%, rgba(0, 0, 0, 0.45) 88%, transparent 98%);
  mask-image: linear-gradient(to right, #000 0%, #000 74%, rgba(0, 0, 0, 0.45) 88%, transparent 98%);
}

.qveo-epg-wrapper::-webkit-scrollbar {
  display: none;
}

.qveo-epg-grid-inner {
  min-width: 1560px;
  position: relative;
}

.qveo-epg-header-row {
  display: flex;
  align-items: center;
  height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.qveo-epg-channel-row {
  display: flex;
  align-items: center;
  height: 84px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.15s ease;
}

.qveo-epg-channel-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.qveo-epg-channel-row:last-child {
  border-bottom: none;
}

/* Tarjetas EPG Estilo Disney+ Puro (Blindaje Total contra Doble Marco, Doble Selección y Halos) */
.tv-focus-guide-card,
.tv-focus-card.tv-focus-guide-card,
.tv-focus-card.tv-focus-guide-card:hover,
.tv-focus-card.tv-focus-guide-card:focus,
.tv-focus-card.tv-focus-guide-card:focus-visible,
.tv-focus-card.tv-focus-guide-card.tv-focused,
.tv-focus-card.tv-focus-guide-card.active-focus {
  transform: none !important;
  box-shadow: none !important;
  outline: none !important;
  outline-offset: 0 !important;
}

.tv-focus-guide-card {
  position: relative;
  background: rgba(18, 23, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.tv-focus-guide-card:hover {
  background: rgba(26, 33, 52, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
}

.tv-focus-card.tv-focus-guide-card:focus,
.tv-focus-card.tv-focus-guide-card:focus-visible,
.tv-focus-card.tv-focus-guide-card.tv-focused,
.tv-focus-card.tv-focus-guide-card.active-focus {
  border: 1.5px solid #ffffff !important;
  background: rgba(24, 30, 48, 0.96) !important;
  box-shadow: none !important;
  outline: none !important;
  z-index: 20 !important;
}

/* Indicador de Línea EN VIVO (Playhead Neón) */
.qveo-epg-live-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ff2d55;
  box-shadow: 0 0 14px #ff2d55, 0 0 4px #ff2d55;
  z-index: 100 !important;
  pointer-events: none;
}

.qveo-epg-live-badge {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: #ff2d55;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px #ff2d55;
  z-index: 101 !important;
  pointer-events: none;
}

/* ==========================================================================
   CARRILES TV: SEGUIR VIENDO & PRÓXIMOS LANZAMIENTOS (ESTILO NETFLIX / DISNEY+)
   ========================================================================== */
.tv-continue-card {
  width: 230px;
  height: 130px;
  min-width: 230px;
  max-width: 230px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #0d1527, #070b14);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}

.tv-continue-card .continue-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tv-continue-card:hover .continue-bg,
.tv-continue-card:focus .continue-bg,
.tv-continue-card.tv-focused .continue-bg {
  transform: scale(1.06);
  filter: brightness(0.95);
}

.tv-continue-card .continue-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 15, 0.96) 0%, rgba(6, 8, 15, 0.4) 50%, rgba(6, 8, 15, 0.2) 100%);
  pointer-events: none;
}

.tv-continue-card .continue-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.tv-continue-card .continue-progress-fill {
  height: 100%;
  background: #ff2d55;
  box-shadow: 0 0 10px #ff2d55;
  border-radius: 0 2px 2px 0;
}

.tv-upcoming-card {
  width: 260px;
  height: 135px;
  min-width: 260px;
  max-width: 260px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #0d1527, #070b14);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}

.tv-upcoming-card .upcoming-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tv-upcoming-card:hover .upcoming-bg,
.tv-upcoming-card:focus .upcoming-bg,
.tv-upcoming-card.tv-focused .upcoming-bg {
  transform: scale(1.06);
  filter: brightness(1);
}

.tv-upcoming-card .upcoming-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 15, 0.96) 0%, rgba(6, 8, 15, 0.35) 55%, rgba(6, 8, 15, 0.15) 100%);
  pointer-events: none;
}

/* ADDED FIT THEME 5 RULES */


