/*
Theme Name: RioMedios
Theme URI: https://riomedios.com.ar
Author: Rio Medios
Author URI: https://riomedios.com.ar
Description: Tema para radios y grupos de medios. Diseño oscuro con reproductor flotante, emisoras, noticias y auspiciantes administrables desde el escritorio de WordPress (usar junto al plugin "RioMedios Manager").
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: riomedios
*/

/* =========================================================
   Rio Medios · Clon de sitio web (tema oscuro completo)
   ========================================================= */

:root {
  --navbar-h: 88px;
  --logo-height: 40px;
  --bg: #0a0a0a;
  --bg-alt: #0d0d0f;
  --card-bg: #131313;
  --border-soft: rgba(255, 255, 255, 0.08);
  --text-light: #f4f4f4;
  --text-muted: #a3a3a8;
  --text-muted-2: #85858c;
  --accent-pink: #f7324f;
  --accent-orange: #f76836;
  --accent-cyan: #00b6e1;
  --accent-blue: #0f5ae8;
  --accent-yellow: #ffd66b;
  --grad-warm: linear-gradient(90deg, var(--accent-pink), var(--accent-orange));
  --grad-cool: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  --grad-logo: linear-gradient(90deg, #ff5e7e, #ff9d5c, #ffd66b, #4fd1e8);
  --radius: 18px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-light);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #ffffff;
  color: #0a0a0a;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-grad {
  background: var(--grad-warm);
  color: #fff;
  justify-content: center;
  width: 100%;
  padding: 15px 20px;
  font-size: 15px;
  box-shadow: 0 10px 28px rgba(247, 50, 79, 0.35);
}

.btn-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(247, 50, 79, 0.45);
}

.section-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tag-pink { color: var(--accent-pink); }
.tag-cyan { color: var(--accent-cyan); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: #fff;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------------- Navbar ---------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 18px 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-bottom-color: var(--border-soft);
  padding: 13px 0;
}

.logo {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.logo img.custom-logo {
  height: var(--logo-height, 40px);
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: conic-gradient(from 200deg, var(--accent-pink), var(--accent-orange), var(--accent-yellow), var(--accent-cyan), var(--accent-pink));
  position: relative;
  flex-shrink: 0;
}

.logo .mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  background: #0a0a0a;
  border-radius: 50%;
}

.logo .accent {
  background: var(--grad-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  color: #d8d9de;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: #08090b;
  color: #fff;
  padding: calc(var(--navbar-h, 88px) + 82px) 0 140px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: brightness(0.55) saturate(0.85);
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.55) 0%, rgba(5, 6, 8, 0.35) 30%, rgba(5, 6, 8, 0.4) 65%, rgba(5, 6, 8, 0.8) 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 460px at 0% 55%, rgba(120, 10, 40, 0.14), transparent 60%);
  z-index: 1;
}

.hero-content {
  /* Usa el mismo ancho/padding que ".container" (navbar, secciones, etc.)
     para que el contenido del hero arranque en el mismo eje izquierdo
     que el resto del sitio. El ancho de lectura se limita más abajo,
     por elemento (h1, p.lead), sin volver a centrar la caja. */
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: #dfe2ea;
  margin-bottom: 32px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 0 4px rgba(247, 50, 79, 0.2);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(247, 50, 79, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(247, 50, 79, 0.08); }
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  max-width: 780px;
}

.hero h1 .grad {
  background: var(--grad-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  line-height: 1.65;
  color: #b7bccb;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 90px;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8890a3;
  font-size: 13px;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  position: relative;
}

.mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 6px; }
}

/* ---------------- Stations ---------------- */
.stations {
  padding: 110px 0;
  background: var(--bg);
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.station-card {
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.station-card:hover {
  transform: translateY(-4px);
}

.station-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 420px 320px at 0% 0%, color-mix(in srgb, var(--card-from, var(--accent-pink)) 22%, transparent), transparent 65%);
  pointer-events: none;
}

.station-logo {
  position: absolute;
  top: 22px;
  right: 22px;
  max-height: 86px;
  max-width: 120px;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.station-freq {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.station-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.station-card .tagline {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.station-card .genres {
  font-size: 13px;
  color: var(--text-muted-2);
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.station-play {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.station-play:hover {
  transform: translateY(-2px);
}

.station-play svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------------- About ---------------- */
.about {
  padding: 110px 0;
  background: var(--bg-alt);
}

.about .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: #fff;
}

.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.stats {
  display: flex;
  gap: 44px;
  margin-top: 40px;
}

.stat h3 {
  font-size: 34px;
  font-weight: 800;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stat p {
  color: var(--text-muted-2);
  font-size: 14px;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.about-chip {
  position: absolute;
  left: -20px;
  bottom: -20px;
  background: #141414;
  border: 1px solid var(--border-soft);
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.about-chip .flag {
  font-size: 20px;
}

.about-chip .label {
  font-size: 11px;
  color: var(--text-muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.about-chip .value {
  font-size: 14px;
  font-weight: 700;
}

/* ---------------- Sponsors ---------------- */
.sponsors {
  padding: 90px 0 70px;
  background: var(--bg);
}

.sponsors .section-head h2 {
  font-size: clamp(24px, 3.2vw, 32px);
}

.sponsor-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.sponsor-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: sponsorScroll 22s linear infinite;
  padding: 0 24px;
}

.sponsor-marquee:hover .sponsor-track {
  animation-play-state: paused;
}

@keyframes sponsorScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sponsor-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 26px 40px;
  min-width: 300px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sponsor-logo:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.sponsor-logo svg {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.sponsor-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.sponsor-logo span {
  font-size: 17px;
  font-weight: 700;
  color: #e8e8ec;
  white-space: nowrap;
}

/* ---------------- News ---------------- */
.news {
  padding: 110px 0;
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.news-card .thumb {
  height: 180px;
  overflow: hidden;
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.news-body {
  padding: 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted-2);
  margin-bottom: 14px;
}

.news-meta .tag {
  background: rgba(255, 255, 255, 0.08);
  color: #e6e6ea;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
}

.news-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #fff;
}

.news-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.read-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-pink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.news-card:hover .read-more svg {
  transform: translateX(4px);
}

/* ---------------- Contact ---------------- */
.contact {
  padding: 130px 0 110px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(0, 182, 225, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.contact-head .section-tag {
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  max-width: 980px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #141414;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 12.5px;
  color: var(--text-muted-2);
  margin-bottom: 3px;
}

.contact-item .value {
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
}

.contact-form {
  background: #121212;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: #0d0d0d;
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14.5px;
  resize: none;
  transition: border-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6f6f76;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-pink);
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--bg);
  color: var(--text-muted-2);
  padding: 30px 0;
  border-top: 1px solid var(--border-soft);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13.5px;
  color: var(--text-muted-2);
}

.footer-social {
  display: flex;
  gap: 22px;
}

.footer-social a {
  font-size: 13.5px;
  color: var(--text-muted-2);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #fff;
}

/* ---------------- Modal de noticia ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 5, 0.75);
  backdrop-filter: blur(4px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #101010;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.25s ease;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-thumb {
  height: 260px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 32px;
}

.modal-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 14px 0 20px;
}

.modal-text p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ---------------- Floating player bar ---------------- */
.player-bar {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 20px;
  max-width: 1000px;
  margin: 0 auto;
  background: #131313;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  z-index: 600;
  display: flex;
  align-items: center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  padding: 12px 22px;
  gap: 20px;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.player-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.player-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.player-toggle:hover {
  transform: scale(1.06);
}

.player-toggle svg {
  width: 16px;
  height: 16px;
}

.player-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.player-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
  flex-shrink: 0;
}

.player-eq span {
  width: 3px;
  background: var(--accent-pink);
  border-radius: 2px;
  animation: eq 0.9s infinite ease-in-out;
}

.player-eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.player-eq span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.player-eq span:nth-child(3) { height: 65%; animation-delay: 0.4s; }

.player-bar.paused .player-eq span {
  animation-play-state: paused;
  transform: scaleY(0.3);
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.player-name {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent-pink);
  background: rgba(247, 50, 79, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.player-sub {
  font-size: 12.5px;
  color: var(--text-muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted-2);
  flex-shrink: 0;
}

.player-volume svg {
  width: 18px;
  height: 18px;
}

.player-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-pink);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(247, 50, 79, 0.15);
}

.player-volume input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-pink);
  border: none;
  cursor: pointer;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .about .container {
    grid-template-columns: 1fr;
  }
  .about-media {
    order: -1;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .station-grid {
    grid-template-columns: 1fr;
  }
  .station-logo {
    max-height: 56px;
    max-width: 74px;
    top: 16px;
    right: 16px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .contact-form .row {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero {
    padding: calc(var(--navbar-h, 78px) + 60px) 0 100px;
  }
  .player-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    gap: 12px;
  }
  .player-volume input[type="range"] {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .player-volume {
    display: none;
  }
}

/* =========================================================
   Plantillas genéricas: entradas, páginas, archivos, 404
   (no existían en el sitio original de una sola página)
   ========================================================= */
.generic-page {
  padding: 160px 0 100px;
  min-height: 50vh;
}

.generic-page .container {
  max-width: 820px;
}

.generic-page .page-title,
.generic-page .entry-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.15;
}

.generic-page .entry-meta {
  color: var(--text-muted-2);
  font-size: 14px;
  margin-bottom: 30px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.generic-page .entry-meta .tag {
  background: var(--grad-warm);
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}

.generic-page .entry-thumb {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid var(--border-soft);
}

.generic-page .entry-thumb img {
  width: 100%;
  height: auto;
}

.generic-page .entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
}

.generic-page .entry-content p {
  margin-bottom: 20px;
}

.generic-page .entry-content h2,
.generic-page .entry-content h3 {
  color: var(--text-light);
  margin: 34px 0 14px;
}

.generic-page .entry-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.generic-page .entry-content img {
  border-radius: 14px;
  margin: 24px 0;
}

.generic-page .back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--text-muted-2);
  font-weight: 600;
}

.generic-page .back-link:hover {
  color: var(--accent-cyan);
}

.archive-grid {
  display: grid;
  gap: 28px;
}

.archive-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--card-bg);
}

.archive-item h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.archive-item h2 a:hover {
  color: var(--accent-cyan);
}

.archive-item .entry-meta {
  margin-bottom: 14px;
}

.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.pagination-nav a,
.pagination-nav span {
  padding: 10px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-muted);
}

.pagination-nav a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.not-found-box {
  text-align: center;
}

.not-found-box .big-code {
  font-size: 110px;
  font-weight: 800;
  background: var(--grad-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
