/**
============================================================
M.C.B.A RADIO — Hoja de Estilos Principal
============================================================
Archivo:  assets/css/style.css
Versión:  8.0.0 (Completa y Organizada)
Sistema:  "Pampa al Atardecer"
============================================================
*/

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  /* ---- Paleta ---- */
  --ink:          #241A14;
  --paper:        #F6EFE3;
  --paper-soft:   #FBF7EF;
  --pampa-gold:   #C9A227;
  --pampa-gold-2: #E4C34A;
  --dusk-plum:    #3B2645;
  --denim:        #35536B;
  --rawhide:      #8B5E3C;
  --rust:         #B33F2E;
  --line:         rgba(36, 26, 20, 0.12);

  /* ---- 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;
}

/* ============================================================
   2. RESET
   ============================================================ */
* { 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; }
[hidden] { display: none !important; }
::selection { background: var(--pampa-gold); color: var(--ink); }

/* ============================================================
   3. UTILIDADES
   ============================================================ */
.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; }

/* ============================================================
   4. 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; }

/* ============================================================
   5. 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.2fr 0.9fr;
  gap: 2.5rem; 
  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); }

.btn-install-app {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem;
  padding: 0.75rem 1.5rem; background: var(--gradient-gold); color: var(--ink);
  border: none; border-radius: 50px; font-family: var(--font-body); font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.5px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-install-app:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5); }
.btn-install-app[hidden] { display: none; }

/* ============================================================
   6. PLAYER EXPANDIDO (se queda en el hero)
   ============================================================ */
.radio-console {
  background: linear-gradient(160deg, rgba(36, 26, 20, 0.78) 0%, rgba(59, 38, 69, 0.74) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem 1.25rem;
  box-shadow: var(--shadow-bold);
  position: relative;
  z-index: 10;
  max-width: 520px;
  width: 100%;
  justify-self: end;
}

.console-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.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; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(246, 239, 227, 0.85); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.dial-wrap { margin-bottom: 0.9rem; }
.dial { width: 100%; height: auto; display: block; overflow: visible; max-height: 130px; }
.dial-horizontal { width: 100%; height: auto; }
.dial-baseline { stroke: rgba(255, 255, 255, 0.4); stroke-width: 2.5; stroke-linecap: round; }
.dial-tick { stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; stroke-linecap: round; }
.dial-tick-major { stroke: #ffffff; stroke-width: 3; }
/* Números del dial - legibles para personas mayores */
.dial-freq {
  fill: #ffffff;                    /* Blanco puro, más contraste */
  font-size: 17px;                  /* Más grande (antes 12px) */
  font-weight: 700;                 /* Más grueso (antes 600) */
  font-family: var(--font-display);
  text-anchor: middle;
  letter-spacing: 0.5px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));  /* Sombra para contraste */
}

.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));
}
.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)); }

.console-info { margin-bottom: 1rem; }
.console-eyebrow {
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  color: var(--pampa-gold-2); margin-bottom: 0.3rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ---- TICKER ---- */
.ticker {
  overflow: hidden; width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-inner { display: flex; width: max-content; }
.ticker-item {
  white-space: nowrap; padding-right: 3rem; flex-shrink: 0;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: #ffffff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.ticker.is-scrolling .ticker-inner { animation: ticker-marquee var(--ticker-duration, 14s) linear infinite; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
@keyframes ticker-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker.is-buffering .ticker-item { opacity: 0.5; }

/* ---- Controles ---- */
.console-controls { display: flex; align-items: center; gap: 1.25rem; }

.knob-play {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-gold);
  border: 3px solid rgba(255, 255, 255, 0.35);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  flex-shrink: 0; position: relative; overflow: hidden; isolation: isolate;
}
.knob-play::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 60%);
  pointer-events: none;
}
.knob-play::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0; z-index: -1;
}
.knob-play:active::after { width: 150px; height: 150px; opacity: 1; transition: width 0s, height 0s, opacity 0s; }
.knob-play:hover { transform: scale(1.08); }
.knob-play:active { transform: scale(0.96); }
.knob-play.is-playing { animation: playPulse 2.5s ease-in-out infinite; }
@keyframes playPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(201,162,39,0.5), 0 0 0 0 rgba(228,195,74,0.6),
      inset 0 -2px 4px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.3); }
  50% { box-shadow: 0 6px 20px rgba(201,162,39,0.5), 0 0 0 12px rgba(228,195,74,0),
      inset 0 -2px 4px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.3); }
}
.knob-play svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
.knob-play .icon-play { display: block; margin-left: 3px; }
.knob-play .icon-pause { display: none; }
.knob-play.is-playing .icon-play { display: none; }
.knob-play.is-playing .icon-pause { display: block; }

.volume-control { display: flex; align-items: center; gap: 0.6rem; flex: 1; color: rgba(255,255,255,0.8); }
.volume-control input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 4px;
  background: rgba(255,255,255,0.3); 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; }

/* ============================================================
   BARRA FLOTANTE (logo + nombre, aparece al hacer scroll)
   ============================================================ */
.radio-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;              /* ← A la derecha */
  left: auto;               /* ← Quitamos el centrado */
  transform: translateY(20px);  /* ← Sin translateX */
  width: 380px;
  max-width: calc(100vw - 48px);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(160deg, rgba(36, 26, 20, 0.94) 0%, rgba(59, 38, 69, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}
.radio-floating.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);   /* ← Sin translateX */
}
.floating-logo {
  width: 46px; height: 46px; object-fit: contain;
  border-radius: 12px; flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(228, 195, 74, 0.4));
}
.floating-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.floating-name {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.floating-status {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: rgba(246, 239, 227, 0.9);
}
.floating-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.radio-floating.is-playing .floating-dot {
  background: var(--rust);
  box-shadow: 0 0 10px rgba(179, 63, 46, 0.9);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.35); }
}

.knob-play-floating {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-gold);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.5);
  transition: transform 0.2s ease;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.knob-play-floating:hover { transform: scale(1.08); }
.knob-play-floating:active { transform: scale(0.95); }
.knob-play-floating .icon-play { display: block; margin-left: 2px; }
.knob-play-floating .icon-pause { display: none; }
.knob-play-floating.is-playing .icon-play { display: none; }
.knob-play-floating.is-playing .icon-pause { display: block; }

/* MÓVIL: barra a ancho completo */
@media (max-width: 768px) {
  .radio-floating {
    bottom: 0; left: 0; right: 0;
    width: 100%; max-width: 100%;
    transform: translateY(20px);
    border-radius: 20px 20px 0 0;
    padding: 0.85rem 1.25rem;
  }
  .radio-floating.is-visible { transform: translateY(0); }
  body.floating-active { padding-bottom: 80px; }
}

/* ============================================================
   8. 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; }

/* ============================================================
   9. PROGRAMACIÓN
   ============================================================ */
.programacion-section { background: var(--paper-soft); }
.schedule-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}
.schedule-day {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.schedule-day:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.schedule-day.is-today {
  border-top: 3px solid var(--pampa-gold);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.schedule-day-name {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--dusk-plum); margin: 0 0 1rem 0; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.today-badge {
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--pampa-gold); color: var(--ink);
  padding: 0.2rem 0.5rem; border-radius: 4px;
}
.schedule-empty {
  text-align: center; padding: 2rem 1rem;
  color: var(--rawhide); font-style: italic; font-size: 0.9rem; opacity: 0.7;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.empty-icon { font-size: 1.5rem; opacity: 0.5; }
.schedule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.schedule-item {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(36, 26, 20, 0.1);
  border-left: 3px solid var(--tag-color, var(--rawhide));
  padding-left: 0.75rem;
  transition: background 0.2s ease;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item:hover { background: rgba(201, 162, 39, 0.04); border-radius: 0 4px 4px 0; }
.schedule-time {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.5px; color: var(--tag-color, var(--rawhide));
  background: rgba(0, 0, 0, 0.04);
  padding: 0.2rem 0.5rem; border-radius: 4px;
  display: inline-block; width: fit-content;
}
.schedule-show-name {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  color: var(--ink); line-height: 1.3; display: block;
}
.schedule-host {
  font-family: var(--font-body); font-size: 0.8rem; color: var(--rawhide);
  display: block; margin-top: 0.15rem;
}

/* ============================================================
   10. NOTICIAS + SIDEBAR
   ============================================================ */
.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;
  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 { 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; }

/* ============================================================
   11. NOSOTROS
   ============================================================ */
.nosotros-section {
  background: var(--gradient-paper);
  position: relative; overflow: hidden;
}
.nosotros-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.nosotros-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem; align-items: start;
}
.nosotros-text { position: relative; z-index: 1; }
.nosotros-text p {
  margin-top: 1.1rem; color: #4a372c; max-width: 620px;
  font-size: 1.02rem; line-height: 1.7;
}
.nosotros-text p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 700;
  float: left; line-height: 0.9; padding: 0.3rem 0.5rem 0 0;
  color: var(--pampa-gold);
}
.nosotros-stats {
  display: grid; gap: 1.5rem;
  background: var(--gradient-dusk); color: var(--paper);
  padding: 2.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-bold);
  position: relative; z-index: 1;
}
.nosotros-stats::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.nosotros-stats dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0; }
.stat-item { padding: 0.5rem 0; }
.nosotros-stats dt {
  font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  opacity: 0.7; font-weight: 600; margin-bottom: 0.3rem;
}
.nosotros-stats dd {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: var(--pampa-gold-2); margin: 0; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nosotros-milestones {
  margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid var(--line);
  position: relative; z-index: 1;
}
.milestones-title {
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--dusk-plum); margin-bottom: 2rem;
  text-align: center; font-style: italic;
}
.milestones-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; position: relative;
}
.milestones-grid::before {
  content: ''; position: absolute; top: 20px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--pampa-gold) 20%, var(--pampa-gold) 80%, transparent 100%);
  z-index: 0;
}
.milestone { text-align: center; position: relative; z-index: 1; }
.milestone-year {
  display: inline-block; font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--paper); background: var(--gradient-dusk);
  padding: 0.4rem 1rem; border-radius: 50px;
  border: 2px solid var(--pampa-gold);
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.25);
}
.milestone-text {
  color: #4a372c; font-size: 0.95rem; line-height: 1.5;
  max-width: 260px; margin: 0 auto;
}

/* ============================================================
   12. 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; }

.contact-form {
  margin-top: 2rem; background: #fff; padding: 2rem;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.contact-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}
.contact-form .form-group { display: flex; flex-direction: column; margin-bottom: 1rem; }
.contact-form label {
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--paper-soft); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--pampa-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
  background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.btn-contact {
  display: inline-block; padding: 0.85rem 2rem;
  background: var(--gradient-gold); color: var(--ink);
  border: none; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.5px; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(201, 162, 39, 0.4); }
.btn-contact:active { transform: translateY(0); }
.contact-success {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: #e6f4ea; border-left: 4px solid #2e7d32;
  border-radius: var(--radius-sm); color: #1b5e20;
}
.contact-success strong { display: block; margin-bottom: 0.3rem; font-size: 1.05rem; }
.contact-errors {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: #fde8e6; border-left: 4px solid var(--rust);
  border-radius: var(--radius-sm); color: #7a1f15;
}
.contact-errors strong { display: block; margin-bottom: 0.5rem; }
.contact-errors ul { margin: 0; padding-left: 1.2rem; }

/* ============================================================
   13. 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; }

/* ============================================================
   14. ANIMACIONES DE ENTRADA
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .knob-play.is-playing,
  .radio-floating.is-playing .floating-dot,
  .dial-lupa.is-playing,
  .ticker.is-scrolling .ticker-inner { animation: none; }
}

/* ============================================================
   15. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .schedule-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-subtitle { margin: 0 auto; }
  .radio-console { justify-self: center; }
  .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; }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros-grid { grid-template-columns: 1fr; gap: 2rem; }
  .milestones-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .milestones-grid::before { display: none; }
  .nosotros-stats dl { grid-template-columns: 1fr 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; }
  
  .radio-console {
    max-width: 100%;
    justify-self: stretch;
  }
  
  .radio-floating {
    bottom: 0; left: 0; right: 0;
    width: 100%; max-width: 100%;
    transform: translateY(20px);
    border-radius: 20px 20px 0 0;
    padding: 0.85rem 1.25rem;
  }
  .radio-floating.is-visible { transform: translateY(0); }
  body.floating-active { padding-bottom: 80px; }
  
  .contact-form .form-row { grid-template-columns: 1fr; }
  .news-card { flex-direction: column; }
}
@media (max-width: 600px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-day { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .radio-console { padding: 1.25rem; }
  .radio-floating { padding: 0.75rem 1rem; }
  .floating-logo { width: 40px; height: 40px; }
  .knob-play-floating { width: 44px; height: 44px; }
}
/* Fix: ocultar clon del ticker cuando NO necesita scroll */
.ticker:not(.is-scrolling) .ticker-item[aria-hidden="true"] {
  display: none;
}
/* ============================================================
   REPRODUCTOR FLOTANTE (Blindado para Safari y Chrome)
   ============================================================ */
.radio-floating {
    /* 1. Posicionamiento fijo forzado */
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    
    /* 2. Soporte para la barra inferior de Safari en iOS (evita que quede tapado) */
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: calc(20px + env(safe-area-inset-right));
    
    /* 3. Asegurar que esté POR ENCIMA de todo (footer, modales, menús) */
    z-index: 2147483647 !important;
    
    /* 4. TRUCO CRÍTICO PARA SAFARI: 
          Forzar una nueva capa de composición (compositing layer).
          Esto evita que Safari degrade el 'fixed' a 'absolute' 
          si algún padre tiene transform, filter u overflow. */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
    
    /* 5. Estilos visuales y layout */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(228, 195, 74, 0.4);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Efecto cristal (Safari requiere el prefijo -webkit) */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    
    /* Transición suave */
    transition: opacity 0.3s ease, transform 0.3s ease;
    
    /* Asegurar que los clics funcionen */
    pointer-events: auto;
}

/* Asegurar que el botón sea clicable y no tenga interferencias */
.radio-floating * {
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.floating-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(228, 195, 74, 0.5);
}

.floating-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.floating-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.floating-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #E4C34A; /* Color dorado */
    font-weight: 500;
}

.floating-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3b30; /* Rojo vivo */
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}

.knob-play-floating {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E4C34A;
    border: none;
    color: #0f0f0f;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    margin-left: 4px;
}

.knob-play-floating:active {
    transform: scale(0.95);
}

.knob-play-floating .icon-pause {
    display: none;
}

.knob-play-floating.is-playing .icon-play {
    display: none;
}

.knob-play-floating.is-playing .icon-pause {
    display: block;
}

@keyframes pulse-dot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Opcional: Ocultar en pantallas muy grandes si solo lo quieres para móvil/tablet */
/* @media (min-width: 1024px) {
    .radio-floating { display: none; }
} */