/* =============================================
   LA RADIO DEL TERROR — style.css
   ============================================= */

:root {
  color-scheme: dark;
  --bg:             #000D12;
  --surface:        #0f1a1f;
  --surface-strong: #1a2830;
  --text-main:      #EAEAEA;
  --text-secondary: #B5B5B5;
  --accent:         #8A2BE2;
  --accent-bright:  #00E5FF;
  --accent-red:     #FF3B3B;
  --silver:         #C0C0C0;
  --shadow:         0 18px 40px rgba(0,0,0,0.7);
  --radius:         20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-main);
  background: var(--bg);
  padding-bottom: 70px;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* =============================================
   NAVBAR
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(0,13,18,0.92);
  border-bottom: 1px solid rgba(0,229,255,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 200ms ease;
  font-family: 'Arial Narrow', Arial, sans-serif;
}

.site-nav a:hover { color: var(--accent-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   SECCIONES BASE
   ============================================= */
.section { padding: 4rem 0; }

.section-head {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent-bright);
  font-size: 0.72rem;
  margin-bottom: 0.6rem;
  font-family: 'Arial Narrow', Arial, sans-serif;
}

h1, h2, h3 { color: var(--text-main); line-height: 1.1; }
h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: 1.1rem; font-weight: 700; }

p {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* =============================================
   BOTONES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
  font-family: 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(138,43,226,0.4);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(138,43,226,0.6); }

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-secondary:hover { transform: translateY(-2px); background: rgba(0,229,255,0.06); }

/* =============================================
   HERO
   ============================================= */
.section-hero {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
}

/* MÓVIL: imagen arriba, texto abajo */
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-visual { order: 1; }
.hero-copy   { order: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-family: 'Arial Narrow', Arial, sans-serif;
  border: 1px solid rgba(0,229,255,0.2);
}

.badge-live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 6px var(--accent-bright);
}

.hero-slogan {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.signal-card.hero-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,0.1);
  box-shadow: 0 0 30px rgba(138,43,226,0.2);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* =============================================
   TABLÓN DE ANUNCIOS
   ============================================= */
.section-anuncios {
  background: var(--bg);
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(0,229,255,0.06);
  border-bottom: 1px solid rgba(0,229,255,0.06);
}

.anuncios-wrapper {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
}

.anuncios-container {
  position: relative;
  display: flex;
  align-items: center;
}

.anuncios-track {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(0,229,255,0.1);
  box-shadow: 0 0 24px rgba(138,43,226,0.12);
  aspect-ratio: 16 / 6;
}

.anuncio-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.anuncio-slide.active { opacity: 1; }

.anuncio-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.anuncios-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 250ms ease, transform 250ms ease;
  padding: 0;
}

.dot.active {
  background: var(--accent-bright);
  transform: scale(1.3);
  box-shadow: 0 0 5px var(--accent-bright);
}

.anuncio-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.25);
  background: rgba(0,13,18,0.85);
  color: var(--accent-bright);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 200ms ease, transform 200ms ease;
}

.anuncio-arrow:hover {
  background: rgba(138,43,226,0.3);
  transform: translateY(-50%) scale(1.1);
}

.anuncio-arrow-left  { left: 8px; }
.anuncio-arrow-right { right: 8px; }

/* =============================================
   AHORA SONANDO
   ============================================= */
.section-now-playing { background: var(--surface); }

.now-playing-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cover-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  background: var(--bg);
}

.cover-image {
  position: relative;
  width: 100%;
  background: var(--bg);
}

.cover-banner-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4));
  pointer-events: none;
}

.now-playing-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.program-info { display: flex; flex-direction: column; gap: 0.4rem; }

.program-type {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-family: 'Arial Narrow', Arial, sans-serif;
}

.host-name { color: var(--silver); font-size: 0.88rem; }

/* Barras de audio */
.audio-meter {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
}

.audio-meter .bar {
  flex: 1;
  max-width: 14px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-bright), rgba(138,43,226,0.4));
  border-radius: 999px;
  transition: transform 80ms linear;
}

.audio-meter .bar:nth-child(1) { height: 40%; }
.audio-meter .bar:nth-child(2) { height: 65%; }
.audio-meter .bar:nth-child(3) { height: 90%; }
.audio-meter .bar:nth-child(4) { height: 75%; }
.audio-meter .bar:nth-child(5) { height: 52%; }

/* Panel de estado */
.transmission-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid rgba(255,255,255,0.06);
  width: fit-content;
  font-size: 0.8rem;
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: 0.08em;
}

.indicator {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 300ms ease;
  flex-shrink: 0;
}

.indicator.active {
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: blink 1.4s infinite ease-in-out;
}

.indicator.paused {
  background: var(--accent-bright);
  box-shadow: 0 0 6px var(--accent-bright);
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.15); }
}

.state.emision { color: var(--accent-red); }
.state.pausa   { color: var(--accent-bright); }

.program-actions { display: flex; }

/* =============================================
   PROGRAMACIÓN
   ============================================= */
.program-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-card {
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 250ms ease, transform 250ms ease;
}

.program-card:hover {
  border-color: rgba(0,229,255,0.15);
  transform: translateY(-2px);
}

.program-time {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0,229,255,0.06);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
  font-family: 'Arial Narrow', Arial, sans-serif;
  border: 1px solid rgba(0,229,255,0.12);
}

.program-host-tag {
  color: var(--silver);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  font-style: italic;
}

.program-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(138,43,226,0.15);
  color: var(--accent);
  font-size: 0.68rem;
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 0.4rem;
  border: 1px solid rgba(138,43,226,0.25);
  vertical-align: middle;
}

/* =============================================
   LOCUTORES
   ============================================= */
.hosts-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.host-card {
  border-radius: 20px;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  transition: border-color 250ms ease, transform 250ms ease;
}

.host-card:hover {
  border-color: rgba(0,229,255,0.15);
  transform: translateY(-3px);
}

.host-photo {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--surface-strong);
  aspect-ratio: 1 / 1;
}

.host-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.host-card h3 { margin-bottom: 0.4rem; }

/* =============================================
   PATROCINADORES
   ============================================= */
.partners-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partner-card {
  border-radius: 20px;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  text-align: center;
  transition: border-color 250ms ease, transform 250ms ease;
}

.partner-card:hover {
  border-color: rgba(138,43,226,0.2);
  transform: translateY(-3px);
}

.partner-photo {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--surface-strong);
  aspect-ratio: 1 / 1;
}

.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.partner-card h3 { font-size: 0.95rem; }

/* =============================================
   CONTACTO
   ============================================= */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-card {
  border-radius: 18px;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
}

.contact-card h3 { margin-bottom: 0.65rem; font-size: 1rem; }

.contact-card a {
  color: var(--accent-bright);
  transition: opacity 200ms ease;
}

.contact-card a:hover { opacity: 0.75; }

.highlight-card {
  border-color: rgba(138,43,226,0.2);
  background: linear-gradient(135deg, rgba(138,43,226,0.06), rgba(0,13,18,0.8));
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-brand  { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; }
.footer-copy   { color: var(--text-secondary); font-size: 0.85rem; }
.footer-small  { color: rgba(181,181,181,0.4); font-size: 0.72rem; margin-top: 0.2rem; }

.social-links { display: flex; gap: 0.65rem; }

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem;
  font-family: 'Arial Narrow', Arial, sans-serif;
  transition: transform 200ms ease, background 200ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(0,229,255,0.08);
}

/* =============================================
   BARRA DE REPRODUCCIÓN FIJA
   ============================================= */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(0,5,8,0.97);
  border-top: 1px solid rgba(138,43,226,0.3);
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 20px rgba(138,43,226,0.12);
  gap: 0.75rem;
}

.player-bar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.player-bar-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.player-bar-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.player-bar-program {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bar-host {
  font-size: 0.7rem;
  color: var(--accent-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: 0.05em;
}

.player-bar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-bar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 0 14px rgba(138,43,226,0.5);
}

.player-bar-btn:hover { transform: scale(1.08); }

.player-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.player-bar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.7rem;
  font-family: 'Arial Narrow', Arial, sans-serif;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.bar-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex-shrink: 0;
  transition: background 300ms ease;
}

.bar-indicator.active {
  background: var(--accent-red);
  box-shadow: 0 0 6px var(--accent-red);
  animation: blink 1.4s infinite ease-in-out;
}

/* =============================================
   TABLET (600px+)
   ============================================= */
@media (min-width: 600px) {
  .hosts-grid    { grid-template-columns: repeat(2, 1fr); display: grid; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); display: grid; }
  .contact-grid  { grid-template-columns: repeat(2, 1fr); display: grid; }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .anuncios-track { aspect-ratio: 16 / 5; }
}

/* =============================================
   DESKTOP (900px+)
   ============================================= */
@media (min-width: 900px) {
  .section { padding: 5rem 0; }

  /* Hero: imagen a la derecha en desktop */
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
  }

  .hero-visual { order: 2; }
  .hero-copy   { order: 1; }

  .hero-actions { flex-direction: row; }

  .now-playing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }

  .program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .hosts-grid    { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   MÓVIL PEQUEÑO (max 480px)
   ============================================= */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0,13,18,0.97);
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0,229,255,0.08);
    backdrop-filter: blur(16px);
    z-index: 99;
  }

  .site-nav.nav-open { display: flex; }
  .site-nav a { font-size: 1rem; }

  .player-bar-status { display: none; }

  .partners-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
}

/* =============================================
   REORDEN MÓVIL — Ahora Sonando primero
   ============================================= */

/* En móvil: main es flex column con order */
@media (max-width: 899px) {
  .main-content {
    display: flex;
    flex-direction: column;
  }

  /* Ahora Sonando — primero */
  .section-order-ahora    { order: 1; }

  /* Hero — segundo */
  .section-order-hero     { order: 2; }

  /* Tablón de anuncios — tercero */
  .section-order-anuncios { order: 3; }

  /* Resto de secciones — orden normal */
  .section-programming    { order: 4; }
  .section-hosts          { order: 5; }
  .section-partners       { order: 6; }
  .section-contact        { order: 7; }
}

/* Desktop: order normal (CSS por defecto, no necesita order explícito) */
@media (min-width: 900px) {
  .main-content {
    display: block;
  }
}
