/* ==========================================================================
   GENIOS TV - PÁGINA DE LANZAMIENTO OFICIAL
   Diseño de Alta Fidelidad | Estilo Dark Neón & Glassmorphism
   Paleta: Violeta (#7B00FF), Magenta (#D500F9), Turquesa (#00E5E5), Oscuro (#070A14)
   ========================================================================== */

:root {
  /* Paleta Base Oscura */
  --bg-deep: #060913;
  --bg-card: rgba(14, 20, 36, 0.72);
  --bg-card-hover: rgba(22, 32, 58, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);

  /* Colores de Marca Genios TV */
  --brand-violet: #7B00FF;
  --brand-violet-glow: rgba(123, 0, 255, 0.45);
  --brand-magenta: #D500F9;
  --brand-cyan: #00E5E5;
  --brand-cyan-glow: rgba(0, 229, 229, 0.45);
  --neon-live: #ff2a51;
  --neon-live-glow: rgba(255, 42, 81, 0.5);

  /* Tipografías */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Textos */
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-cyan: #00E5E5;
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
}

/* ── Fondo Atmosférico con Luces Neón ────────────────────────────── */
.launch-page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: 
    radial-gradient(circle at 15% 20%, rgba(123, 0, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(0, 229, 229, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(213, 0, 249, 0.12) 0%, transparent 50%),
    #060913;
}

/* Malla de cuadrícula sutil en el fondo */
.launch-page-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

.launch-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Encabezado & Logo ────────────────────────────────────────────── */
.launch-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.logo-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--brand-cyan-glow) 0%, var(--brand-violet-glow) 50%, transparent 70%);
  filter: blur(25px);
  opacity: 0.8;
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

.logo-img {
  max-height: 85px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.04);
}

.live-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 42, 81, 0.12);
  border: 1px solid rgba(255, 42, 81, 0.4);
  color: #ff5e7e;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-live);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-live);
  animation: pulse-dot-anim 1.5s infinite;
}

.launch-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #FFFFFF 20%, #E0E7FF 60%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.launch-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.launch-date-highlight {
  color: var(--brand-cyan);
  font-weight: 700;
  text-shadow: 0 0 15px var(--brand-cyan-glow);
}

/* ── Contador Regresivo ───────────────────────────────────────────── */
.countdown-section {
  width: 100%;
  max-width: 780px;
  margin: 1.5rem 0 2.5rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.countdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.25rem 0.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.countdown-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-violet), var(--brand-cyan));
  opacity: 0.8;
}

.countdown-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 229, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 229, 229, 0.2);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  display: block;
}

.countdown-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

/* ── Tarjeta del Reproductor en Vivo ──────────────────────────────── */
.player-container {
  width: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  padding: 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(123, 0, 255, 0.15);
  position: relative;
  margin-bottom: 3rem;
}

.player-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.75rem;
}

.player-title-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.stream-badge-live {
  background: var(--neon-live);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 1px;
}

.stream-channel-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.stream-quality-tag {
  background: rgba(0, 229, 229, 0.12);
  border: 1px solid rgba(0, 229, 229, 0.3);
  color: var(--brand-cyan);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-mono);
}

/* Marco del Video */
.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.video-frame-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Watermark */
.video-watermark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 5;
}

.video-watermark img {
  height: 20px;
  width: auto;
}

.video-watermark span {
  font-size: 0.75rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 1px;
}

/* Overlay Botón Play Central */
.video-center-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 6;
}

.video-center-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.big-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 0 35px rgba(0, 229, 229, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding-left: 5px;
}

.big-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(0, 229, 229, 0.9);
}

/* Chip Flotante Desmutear */
.unmute-floating-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(14, 20, 36, 0.85);
  border: 1px solid var(--brand-cyan);
  color: var(--brand-cyan);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 7;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.unmute-floating-chip:hover {
  background: var(--brand-cyan);
  color: #060913;
  transform: scale(1.05);
}

.unmute-floating-chip.is-hidden {
  display: none;
}

/* Barra de Controles Inferior */
.player-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem 0.25rem;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-cyan);
  transform: scale(1.05);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  cursor: pointer;
  border: none;
}

/* ── Sección de Redes Sociales ────────────────────────────────────── */
.social-section {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
}

.social-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.social-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.4rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #FFFFFF;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.social-btn i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.social-btn:hover i {
  transform: scale(1.15);
}

/* Variantes de Redes */
.social-btn.facebook:hover {
  background: linear-gradient(135deg, #1877F2, #0d5cb6);
  border-color: #1877F2;
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.social-btn.instagram:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-color: #e1306c;
  box-shadow: 0 10px 25px rgba(225, 48, 108, 0.4);
}

.social-btn.tiktok:hover {
  background: linear-gradient(135deg, #000000, #25F4EE);
  border-color: #25F4EE;
  box-shadow: 0 10px 25px rgba(37, 244, 238, 0.4);
}

.social-btn.youtube:hover {
  background: linear-gradient(135deg, #FF0000, #b20710);
  border-color: #FF0000;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

.social-btn.whatsapp:hover {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-color: #25D366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.launch-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.launch-footer p {
  margin-bottom: 0.25rem;
}

/* ── Animaciones ─────────────────────────────────────────────────── */
@keyframes pulse-glow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 81, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 42, 81, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 81, 0); }
}

/* ── Responsividad ───────────────────────────────────────────────── */
@media (max-width: 680px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .countdown-card {
    padding: 1rem 0.5rem;
  }

  .countdown-number {
    font-size: 2.4rem;
  }

  .player-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .social-links-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .social-btn {
    justify-content: center;
  }

  .volume-slider {
    width: 60px;
  }
}
