/**
============================================================
M.C.B.A RADIO — Hoja de Estilos Principal
============================================================
Archivo:  assets/css/style.css
Versión:  7.0.0 (Final y Armónica)
Sistema:  "Pampa al Atardecer"
============================================================
*/
:root {
  /* ---- Paleta ---- */
  --ink:          #241A14;   /* texto principal / fondo nav-footer */
  --paper:        #F6EFE3;   /* fondo base, papel de cartel viejo */
  --paper-soft:   #FBF7EF;
  --pampa-gold:   #C9A227;   /* trigo dorado — acento primario */
  --pampa-gold-2: #E4C34A;
  --dusk-plum:    #3B2645;   /* violeta de atardecer — acento secundario */
  --denim:        #35536B;   /* azul mezclilla — contraste western */
  --rawhide:      #8B5E3C;   /* cuero crudo */
  --rust:         #B33F2E;   /* rojo óxido — badge en vivo */

  /* ---- Gradientes ---- */
  --gradient-dusk: linear-gradient(135deg, #241A14 0%, #3B2645 55%, #4B3158 100%);
  --gradient-gold: linear-gradient(135deg, #C9A227 0%, #E4C34A 100%);
  --gradient-paper: linear-gradient(180deg, #FBF7EF 0%, #F3EADA 100%);

  /* ---- Tipografía ---- */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-western: 'Ultra', 'Fraunces', serif;
  --font-body: 'Libre Franklin', 'Segoe UI', sans-serif;

  /* ---- Forma ---- */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(36, 26, 20, 0.12);
  --shadow-bold: 0 18px 48px rgba(36, 26, 20, 0.28);
  --container-w: 1240px;
}

/* ============================================================
   RESET (CORREGIDO)
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body.country-theme {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; background: var(--ink);
  color: var(--paper); padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  z-index: 2000; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--pampa-gold); outline-offset: 3px; }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.main-nav {
  background: var(--gradient-dusk); position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-soft); border-bottom: 3px solid var(--pampa-gold);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; }
.logo { display: flex; align-items: baseline; gap: 0.5rem; }
.logo-mark { font-family: var(--font-western); font-size: 1.4rem; letter-spacing: 1px; color: var(--paper); }
.logo-tag { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; color: var(--pampa-gold); }
.nav-links { list-style: none; display: flex; gap: 2.25rem; }
.nav-links a {
  color: var(--paper); font-weight: 500; font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 0.5rem 0; position: relative; transition: color 0.25s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--pampa-gold); transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--pampa-gold-2); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--paper); transition: transform 0.25s ease, opacity 0.25s ease; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section { background: var(--gradient-dusk); color: var(--paper); padding: 4.5rem 0 0; position: relative; overflow: hidden; }
.hero-content { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-bottom: 4rem; position: relative; z-index: 1; }
.live-badge {
  display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(179, 63, 46, 0.18);
  border: 1px solid var(--rust); color: #F4C4B8; padding: 0.5rem 1.1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1.75rem;
}
.live-dot { width: 8px; height: 8px; background: var(--rust); border-radius: 50%; animation: blink 1.4s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; margin-bottom: 1.5rem; }
.hero-title-accent { font-style: italic; color: var(--pampa-gold-2); }
.hero-subtitle { font-size: 1.05rem; max-width: 480px; opacity: 0.88; font-weight: 300; }
.horizon-divider { display: block; width: 100%; height: 70px; fill: var(--paper); }

/* ============================================================
   CONSOLA DE RADIO (DIAL HORIZONTAL CON LUPA)
   ============================================================ */
.radio-console {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem 1.75rem;
  box-shadow: var(--shadow-bold);
  position: relative;
}
.console-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.on-air-light { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); transition: background 0.3s ease, box-shadow 0.3s ease; }
.on-air-light.is-live { background: var(--rust); box-shadow: 0 0 10px 2px rgba(179, 63, 46, 0.7); }
.console-top .on-air-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.6; }

.dial-wrap { margin-bottom: 1.25rem; }
.dial { width: 100%; height: auto; display: block; overflow: visible; }

.dial-baseline { stroke: rgba(255, 255, 255, 0.25); stroke-width: 2; stroke-linecap: round; }
.dial-tick { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; stroke-linecap: round; }
.dial-tick-major { stroke: rgba(255, 255, 255, 0.7); stroke-width: 2; }
.dial-freq { fill: rgba(255, 255, 255, 0.75); font-size: 12px; font-weight: 600; font-family: var(--font-display); text-anchor: middle; }

/* ---- Lupa deslizante ---- */
.dial-lupa {
  transform: translateX(var(--lupa-initial-x, -200px));
  opacity: 0;
  transition: transform 1.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}
.dial-lupa.is-tuned { transform: translateX(var(--lupa-final-x, 0px)); opacity: 1; }
.dial-lupa.is-playing { animation: lupaBreath 3s ease-in-out infinite; }
@keyframes lupaBreath {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(228, 195, 74, 0.4)); }
  50% { filter: drop-shadow(0 0 14px rgba(228, 195, 74, 0.9)); }
}
.dial-current-year {
  fill: var(--pampa-gold-2); font-family: var(--font-display); font-size: 32px;
  font-weight: 700; letter-spacing: 1px; filter: drop-shadow(0 2px 6px rgba(228, 195, 74, 0.6));
}

/* ---- Aguja ---- */
.dial-needle-group { opacity: 0; transition: opacity 0.8s ease 1.2s; }
.dial-needle-group.is-tuned { opacity: 1; }
.dial-needle { stroke: var(--pampa-gold-2); stroke-width: 2.5; stroke-linecap: round; }
.dial-needle-tip { filter: drop-shadow(0 0 4px rgba(228, 195, 74, 0.8)); }

/* ---- FIX ÍCONOS PLAY/PAUSE ---- */
.knob-play .icon-play { display: block; }
.knob-play .icon-pause { display: none; }
.knob-play.is-playing .icon-play { display: none; }
.knob-play.is-playing .icon-pause { display: block; }
[hidden] { display: none !important; }

/* ---- Controles ---- */
.console-info { margin-bottom: 1.5rem; }
.console-eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--pampa-gold-2); margin-bottom: 0.25rem; }
.console-track { font-size: 0.95rem; opacity: 0.85; }
.console-track.is-buffering { opacity: 0.5; }
.console-controls { display: flex; align-items: center; gap: 1.5rem; }
.knob-play {
  width: 58px; height: 58px; border-radius: 50%; background: var(--gradient-gold);
  border: 3px solid rgba(255,255,255,0.25); color: var(--ink); display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4); transition: transform 0.2s ease; flex-shrink: 0;
}
.knob-play:hover { transform: scale(1.06); }
.knob-play:active { transform: scale(0.98); }

.volume-control { display: flex; align-items: center; gap: 0.6rem; flex: 1; color: rgba(255,255,255,0.7); }
.volume-control input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 4px;
  background: rgba(255,255,255,0.25); border-radius: 2px; outline: none;
}
.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; background: var(--pampa-gold-2); border-radius: 50%; cursor: pointer;
}
.volume-control input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; background: var(--pampa-gold-2); border: none; border-radius: 50%; cursor: pointer;
}
.console-fallback-note { margin-top: 1rem; font-size: 0.85rem; color: #F4C4B8; }
.link-btn { background: none; border: none; text-decoration: underline; color: inherit; cursor: pointer; font: inherit; }

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.section { padding: 4.5rem 0; }
.section-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--rawhide); margin-bottom: 0.6rem; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); max-width: 720px; }
.section-fallback { color: var(--rawhide); font-style: italic; margin-top: 1rem; }

/* ---- Programación ---- */
.programacion-section { background: var(--paper); }
.schedule-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
.schedule-day { background: var(--gradient-paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.25rem 1rem; }
.schedule-day.is-today { border-color: var(--pampa-gold); box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25); }
.schedule-day-name { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.9rem; color: var(--dusk-plum); }
.schedule-empty { font-size: 0.8rem; color: var(--rawhide); opacity: 0.8; }
.schedule-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.schedule-list li { border-left: 3px solid var(--tag-color, var(--rawhide)); padding-left: 0.7rem; }
.schedule-list .time { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; color: var(--rawhide); text-transform: uppercase; }
.schedule-list strong { display: block; font-size: 0.92rem; color: var(--ink); }
.schedule-list small { color: var(--rawhide); font-size: 0.78rem; }

/* ============================================================
   NOTICIAS (DISEÑO ARMÓNICO Y ORDENADO)
   ============================================================ */
.main-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; padding: 4.5rem 0; }
.noticias-section { background: var(--paper-soft); }
.news-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.news-card {
  display: flex; flex-direction: column; background: #ffffff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-bold); }

.news-image-wrapper {
  position: relative; width: 100%; aspect-ratio: 16 / 9; /* Proporción fija elegante */
  overflow: hidden; background: linear-gradient(135deg, var(--rawhide), var(--dusk-plum));
}
.news-image-wrapper.has-image .news-img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease;
}
.news-card:hover .news-image-wrapper.has-image .news-img { transform: scale(1.05); }
.news-image-wrapper.has-emoji { display: flex; align-items: center; justify-content: center; }
.news-emoji { font-size: 3.5rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }

.news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.news-date {
  display: inline-block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--rawhide);
  background: rgba(139, 94, 60, 0.08); padding: 0.25rem 0.6rem; border-radius: 4px; width: fit-content;
}
.news-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); line-height: 1.3; margin: 0; }
.news-excerpt { font-family: var(--font-body); font-size: 0.95rem; color: #5a4a3f; line-height: 1.6; margin: 0; flex: 1; }

/* ---- Sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; }
.sidebar-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.sidebar-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-gold); }
.sidebar-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1.1rem; color: var(--dusk-plum); }
.social-links { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.btn-social {
  display: block; text-align: center; padding: 0.7rem 1rem; background: var(--gradient-dusk);
  color: var(--paper); border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem; transition: transform 0.2s ease;
}
.btn-social:hover { transform: translateX(4px); }
.btn-social[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.social-note { font-size: 0.75rem; color: var(--rawhide); margin-top: 0.75rem; }

/* ---- Nosotros ---- */
.nosotros-section { background: var(--gradient-paper); }
.nosotros-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.nosotros-text p { margin-top: 1.1rem; color: #4a372c; max-width: 620px; }
.nosotros-stats { display: grid; gap: 1.5rem; background: var(--gradient-dusk); color: var(--paper); padding: 2rem; border-radius: var(--radius-lg); }
.nosotros-stats dt { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.7; }
.nosotros-stats dd { font-family: var(--font-display); font-size: 2rem; color: var(--pampa-gold-2); }

/* ---- Contacto ---- */
.contacto-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }
.contacto-section p { color: #4a372c; margin: 0.75rem 0 1.25rem; }
.contact-email {
  display: inline-block; font-family: var(--font-display); font-size: 1.3rem;
  color: var(--dusk-plum); text-decoration: none; border-bottom: 2px solid var(--pampa-gold);
}
.social-block h4 { font-family: var(--font-display); margin-bottom: 0.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer { background: var(--gradient-dusk); color: var(--paper); padding: 3rem 0 2.25rem; text-align: center; border-top: 3px solid var(--pampa-gold); }
.footer-logo { display: block; font-size: 1.6rem; margin-bottom: 1rem; }
.footer-content p { opacity: 0.85; margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-version { opacity: 0.55; font-size: 0.78rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-subtitle { margin: 0 auto; }
  .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--ink);
    flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 400px; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-links a { display: block; padding: 1rem 2rem; }
  .nav-toggle { display: flex; }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card { flex-direction: column; }
}
@media (max-width: 480px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .radio-console { padding: 1.5rem; }
}
::selection { background: var(--pampa-gold); color: var(--ink); }