/* ==========================================================================
   Nexo TV - Canal de Streaming Oficial
   Styles & Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #090a0f;
  --bg-card: #12151f;
  --bg-card-hover: #181d2c;
  --bg-surface: #1a1e2d;
  --bg-glass: rgba(18, 21, 31, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 0, 51, 0.35);

  /* Brand Accents */
  --nexo-red: #ff0033;
  --nexo-red-glow: rgba(255, 0, 51, 0.45);
  --nexo-red-dark: #b80024;
  --whatsapp-green: #25d366;
  --whatsapp-glow: rgba(37, 211, 102, 0.35);
  --youtube-red: #ff0000;
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Layout */
  --header-height: 76px;
  --container-max: 1320px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--nexo-red-glow);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 15%, rgba(255, 0, 51, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(37, 211, 102, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(26, 30, 45, 0.6) 0%, transparent 50%);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, .brand-font {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Top Header & Menu Banner
   ========================================================================== */
.header-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-medium);
}

.header-banner.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  background: rgba(9, 10, 15, 0.96);
}

/* Live Breaking Alert Bar in Header */
.top-live-ticker {
  background: linear-gradient(90deg, #ff0033, #7a0018);
  color: #fff;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto;
}

.ticker-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite ease-in-out;
}

.ticker-link {
  color: #fff;
  text-decoration: underline;
  margin-left: 0.5rem;
  font-weight: 600;
}

.navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-badge {
  display: flex;
  align-items: center;
  background: #ebe7df;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast);
}

.brand-link:hover .logo-badge {
  transform: scale(1.03);
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-dot {
  color: var(--nexo-red);
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--nexo-red);
  text-transform: uppercase;
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after, .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--nexo-red);
  border-radius: 2px;
}

.live-badge-nav {
  background: rgba(255, 0, 51, 0.15);
  border: 1px solid rgba(255, 0, 51, 0.4);
  color: var(--nexo-red);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--nexo-red);
  border-radius: 50%;
  animation: pulse-dot 1s infinite alternate;
}

/* Nav Actions (WhatsApp + YouTube) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-nav-whatsapp {
  background: #25d366;
  color: #0b2b14;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--whatsapp-glow);
  transition: var(--transition-fast);
}

.btn-nav-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #05160a;
}

.btn-nav-youtube {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-nav-youtube:hover {
  background: var(--youtube-red);
  border-color: var(--youtube-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ==========================================================================
   Hero & Pantalla de Transmisión En Vivo
   ========================================================================== */
.hero-live-section {
  padding: 2.5rem 0 3.5rem;
  position: relative;
}

.hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.live-indicator-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.live-pill {
  background: var(--nexo-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 0 15px var(--nexo-red-glow);
}

.pulse-circle {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 1s infinite alternate;
}

.location-tag {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero-title span {
  background: linear-gradient(135deg, #fff 40%, #ff6b81);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin-top: 0.5rem;
}

/* Screen Grid: Main Player + Interaction Studio Panel */
.live-screen-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.75rem;
  align-items: start;
}

/* Theater Video Container */
.local-file-notice {
  margin-bottom: 1.5rem;
}

.notice-box {
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: 0.9rem;
}

.notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notice-text strong {
  color: #ffc107;
}

.notice-text code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.player-container {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 0, 51, 0.15);
  position: relative;
}

.player-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background: #000;
}

.player-aspect iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Player Bar Controls */
.player-bar {
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.player-info-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.current-program-badge {
  background: rgba(255, 0, 51, 0.12);
  border: 1px solid rgba(255, 0, 51, 0.3);
  color: #ff3355;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.current-program-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-player-action {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-player-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-player-action.active-signal {
  background: var(--nexo-red);
  color: #fff;
  border-color: var(--nexo-red);
}

/* Studio Interaction Side Card */
.studio-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.studio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--whatsapp-green), var(--nexo-red));
}

.studio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.studio-status-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot-green {
  width: 9px;
  height: 9px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--whatsapp-green);
}

.studio-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.studio-subtitle {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* WhatsApp Live Interaction Box */
.whatsapp-live-box {
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.08), rgba(18, 21, 31, 0.8));
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wa-box-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto;
}

.wa-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.wa-number-badge {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--whatsapp-green);
  letter-spacing: 0.05em;
  font-family: 'Space Grotesk', monospace;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.wa-box-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.btn-wa-live {
  background: var(--whatsapp-green);
  color: #03200d;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--whatsapp-glow);
  transition: var(--transition-fast);
}

.btn-wa-live:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Quick Interactive Message Form for WhatsApp */
.wa-quick-send {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wa-input {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  resize: none;
  min-height: 56px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.wa-input:focus {
  border-color: var(--whatsapp-green);
}

.wa-quick-button {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.wa-quick-button:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: var(--whatsapp-green);
  color: var(--whatsapp-green);
}

/* Community & Channel Quick Stats */
.channel-meta-box {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  color: #fff;
  font-weight: 700;
}

.btn-subscribe-card {
  background: var(--youtube-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-subscribe-card:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

/* ==========================================================================
   Sección: 13 Programas Transmitidos
   ========================================================================== */
.programs-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(18, 21, 31, 0.4) 0%, transparent 100%);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nexo-red);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-tag::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--nexo-red);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* Controls: Filters + Live Search */
.programs-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chip-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.chip-btn.active {
  background: var(--nexo-red);
  color: #fff;
  border-color: var(--nexo-red);
  box-shadow: 0 2px 10px var(--nexo-red-glow);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.45rem 1rem 0.45rem 2.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--nexo-red);
}

/* Sync Button & Live Notifications */
.btn-sync-yt {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-sync-yt:hover {
  background: rgba(255, 0, 51, 0.15);
  border-color: var(--nexo-red);
  color: #fff;
}

.btn-sync-yt.syncing .sync-icon {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.sync-toast {
  position: fixed;
  bottom: 95px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--whatsapp-green);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--whatsapp-glow);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.program-badge-new {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: #00e676;
  color: #002e11;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.5);
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

/* Individual Program Card */
.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
  position: relative;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 0, 51, 0.2);
  border-color: var(--border-highlight);
}

.program-card.currently-playing {
  border-color: var(--nexo-red);
  box-shadow: 0 0 25px var(--nexo-red-glow);
}

.program-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.program-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.program-card:hover .program-thumb-img {
  transform: scale(1.06);
}

.card-overlay-play {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.program-card:hover .card-overlay-play {
  opacity: 1;
}

.play-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--nexo-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(255, 0, 51, 0.6);
  transform: scale(0.85);
  transition: transform var(--transition-fast);
}

.program-card:hover .play-circle-btn {
  transform: scale(1);
}

/* Badges on Thumbnail */
.duration-badge {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Space Grotesk', monospace;
  backdrop-filter: blur(4px);
}

.program-num-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.category-badge-pill {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  background: rgba(255, 0, 51, 0.85);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card Body Content */
.program-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.program-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.program-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.program-card-title:hover {
  color: var(--nexo-red);
}

.program-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-buttons {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.btn-card-play {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-card-play:hover {
  background: var(--nexo-red);
  border-color: var(--nexo-red);
  box-shadow: 0 2px 10px var(--nexo-red-glow);
}

.btn-card-yt {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.btn-card-yt:hover {
  color: var(--youtube-red);
  border-color: var(--youtube-red);
  background: rgba(255, 0, 0, 0.1);
}

/* ==========================================================================
   Grilla de Programación Semanal
   ========================================================================== */
.schedule-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: transform var(--transition-fast);
}

.schedule-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.schedule-card.featured {
  border-color: var(--border-highlight);
  background: linear-gradient(180deg, rgba(255, 0, 51, 0.05) 0%, var(--bg-card) 100%);
}

.schedule-time-pill {
  display: inline-block;
  background: var(--bg-surface);
  color: var(--nexo-red);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.schedule-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.schedule-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   WhatsApp Community Big CTA Section
   ========================================================================== */
.whatsapp-banner-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.wa-banner-card {
  background: radial-gradient(circle at 10% 20%, rgba(37, 211, 102, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(255, 0, 51, 0.12) 0%, transparent 50%),
              var(--bg-card);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7);
}

.wa-banner-text {
  max-width: 650px;
}

.wa-tag {
  color: var(--whatsapp-green);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.wa-banner-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.wa-banner-title span {
  color: var(--whatsapp-green);
}

.wa-banner-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.wa-banner-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 280px;
}

.btn-wa-big {
  background: var(--whatsapp-green);
  color: #03200d;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 6px 25px var(--whatsapp-glow);
  transition: var(--transition-fast);
}

.btn-wa-big:hover {
  background: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
  color: #000;
}

.wa-number-sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wa-number-sub strong {
  color: #fff;
}

/* ==========================================================================
   Floating WhatsApp Button (FAB)
   ========================================================================== */
.whatsapp-fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-fab-tooltip {
  background: var(--bg-card);
  color: #fff;
  border: 1px solid rgba(37, 211, 102, 0.4);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  animation: float-soft 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wa-fab-btn {
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.wa-fab-btn::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
  animation: pulse-ring 2s infinite ease-out;
}

.wa-fab-btn:hover {
  transform: scale(1.1);
  background: #20ba5a;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  color: #fff;
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Modal Cinema Player (Quick Preview)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-player-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.modal-player-aspect iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.btn-modal-close {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-modal-close:hover {
  background: var(--nexo-red);
}

/* ==========================================================================
   Keyframes Animations
   ========================================================================== */
@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 1; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .live-screen-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(9, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-120%);
    transition: transform var(--transition-medium);
  }

  .nav-menu.mobile-open {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .nav-menu .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .wa-banner-card {
    padding: 2rem 1.5rem;
  }
  
  .wa-fab-tooltip {
    display: none;
  }
}

@media (max-width: 580px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .programs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}
