/* ==========================================================================
   ESTILOS DEDICADOS A LA SALA DE STREAMING Y DIRECTOS
   ========================================================================== */
:root {
  --yellow: #fec30a;
  --yellow-light: #fff3c9;
  --red: #d31830;
  --red-dark: #a10e21;
  --ink: #0f131a;
  --ink-light: #1b202c;
  --muted: #5e687a;
  --paper: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;
  --radius: 14px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, h4, .brand, .btn, .kicker, .eyebrow {
  font-family: 'Outfit', sans-serif;
}

a { color: inherit; text-decoration: none; }

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.crest-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.crest-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-title { line-height: 1.1; }
.brand-title small {
  display: block;
  color: var(--red);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s ease;
}
nav a:hover { color: var(--red); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1;
  border: 2px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(254, 195, 10, 0.35);
}
.btn-primary:hover {
  background: #ffce2b;
  transform: translateY(-2px);
}
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(211, 24, 48, 0.35);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.btn-outline:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  transform: translateY(-2px);
}
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-sm {
  padding: .5rem .9rem;
  font-size: .8rem;
  border-radius: 7px;
}

/* Indicador pulsante */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(211, 24, 48, 0.2);
  color: #ff6b7e;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(211,24,48,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(211,24,48,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(211,24,48,0); }
}

/* Contenedor del reproductor y pestañas */
.live-container {
  max-width: 1100px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
}
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--ink-light);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stream-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at center, #1b2436 0%, #0a0d14 100%);
  color: #fff;
}
.stream-placeholder img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: brightness(1.2) drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.stream-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}
.stream-tab {
  background: #fff;
  border: 1px solid var(--line);
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  transition: all .2s;
}
.stream-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.player-meta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   SECCIÓN CONTACTO & CIERRE INTEGRADO
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  font-size: .82rem;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.contact {
  position: relative;
  overflow: hidden;
  background: #0a0d14;
  color: #fff;
  padding: 4rem 1.25rem 2.5rem;
  margin-top: 3rem;
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(254, 195, 10, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(211, 24, 48, 0.28) 0%, transparent 40%),
    linear-gradient(135deg, #0a0d14 0%, #151b26 100%);
}
.contact:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 2px, transparent 2px, transparent 12px);
  pointer-events: none;
}
.contact .container {
  position: relative;
  z-index: 2;
}
.contact h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin: 0.2rem 0 0.8rem;
}
.contact p { color: #cbd5e1; }
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: var(--radius);
}
.contact-footer {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 3.5rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: #94a3b8;
}
.contact-footer a { color: var(--yellow); }
.contact-footer a:hover { text-decoration: underline; }

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

@media(max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    flex-wrap: wrap;
    gap: .75rem;
  }
  .player-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}