/* =========================================================
   FM El Socorro – estilos del sitio público
   Colores principales configurables desde el backoffice:
   --primary (rojo), --dark (fondo oscuro), --accent (celeste)
   ========================================================= */
:root {
  --primary: #e3132d;
  --dark: #14141c;
  --accent: #4ec3d8;
  --dark-2: color-mix(in srgb, var(--dark) 82%, #fff 18%);
  --bg: #f4f4f7;
  --card: #ffffff;
  --text: #1c1c24;
  --muted: #6b6b78;
  --line: #e3e3ea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 15, 30, .10);
  --head-font: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --body-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
  --bar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--body-font);
  padding-bottom: var(--bar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head-font); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
button { font: inherit; cursor: pointer; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.ic { flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--dark); color: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: stretch; min-height: var(--header-h); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; padding: 8px 24px; text-decoration: none; flex: none; }
.brand img { max-height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--head-font); font-weight: 700; font-size: 24px; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; }
.brand-name .ic { color: var(--primary); }
.brand-name.big { font-size: 28px; }
.brand-tag { font-style: italic; font-size: 13px; opacity: .85; margin-top: 4px; }

.main-nav { flex: 1; display: flex; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; flex-wrap: nowrap; }
.main-nav a { white-space: nowrap; }
.main-nav a {
  display: flex; align-items: center; height: 100%; padding: 0 16px;
  font-family: var(--head-font); font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: rgba(255,255,255,.88); position: relative; transition: background .2s, color .2s;
}
.main-nav a::before { content: ''; width: 12px; height: 9px; margin-right: 8px; opacity: .6;
  background: linear-gradient(currentColor 0 0) 0 0/100% 1.5px, linear-gradient(currentColor 0 0) 0 50%/100% 1.5px, linear-gradient(currentColor 0 0) 0 100%/70% 1.5px; background-repeat: no-repeat; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { background: var(--primary); color: #fff; }
.main-nav a.active::before { opacity: 1; }

.listen-btn {
  display: flex; align-items: center; gap: 10px; padding: 0 26px; border: 0; border-left: 1px solid rgba(255,255,255,.12);
  background: transparent; color: #fff; font-family: var(--head-font); font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s;
}
.listen-btn:hover { background: var(--primary); }
.pp { display: inline-flex; }
.pp .ic-pause, [data-player-toggle] .ic-pause { display: none; }
body.is-playing [data-player-toggle] .ic-play { display: none; }
body.is-playing [data-player-toggle] .ic-pause { display: inline-block; }
body.is-playing .listen-btn { background: var(--primary); }

.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 0 18px; }
.nav-toggle .ic-close { display: none; }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: stretch; background: #0d0d13; border-top: 1px solid rgba(255,255,255,.06); font-size: 14.5px; height: 38px; overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 16px; background: var(--primary); font-family: var(--head-font); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; position: relative; z-index: 1; }
.ticker-label::after { content: ''; position: absolute; right: -12px; top: 0; border-left: 12px solid var(--primary); border-top: 19px solid transparent; border-bottom: 19px solid transparent; }
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-move { display: flex; width: max-content; animation: ticker var(--ticker-dur, 60s) linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; padding-left: 24px; white-space: nowrap; }
.ticker-group a, .ticker-group span { color: #fff; text-decoration: none; }
.ticker-group a:hover { color: var(--accent); }
.ticker .sep { color: #777; font-style: normal; font-size: 10px; margin: 0 22px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero "Al aire ahora" ---------- */
.hero, .program-hero { position: relative; min-height: min(72vh, 620px); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--dark); }
.program-hero { min-height: 440px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg.no-img, .no-img { background-image: radial-gradient(circle at 75% 30%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 55%), radial-gradient(circle at 15% 80%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 50%), linear-gradient(135deg, var(--dark), #000); }
@keyframes slowzoom { to { transform: scale(1.12); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55) 60%, rgba(0,0,0,.75)); }
.hero-content, .program-hero-content { position: relative; padding: 70px 20px; display: flex; flex-direction: column; align-items: center; }
.onair-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #111; font-family: var(--head-font); font-size: 22px; letter-spacing: .05em; text-transform: uppercase; padding: 8px 18px; margin-bottom: 26px; }
.onair-badge i, .tag-live i, .live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 70%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-title { font-size: clamp(40px, 7vw, 76px); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero-hosts { font-family: var(--head-font); font-size: clamp(16px, 2.2vw, 21px); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.hero-time { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; opacity: .9; margin: 0 0 4px; }
.hero-play { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px 12px 14px; font-family: var(--head-font); text-transform: uppercase; letter-spacing: .06em; font-size: 17px; box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 45%, transparent); transition: transform .15s, filter .15s; }
.hero-play:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hero-play .pp { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); align-items: center; justify-content: center; }
.hero-play .when-on { display: none; }
body.is-playing .hero-play .when-on { display: inline; }
body.is-playing .hero-play .when-off { display: none; }

/* ---------- Reproductor grande ---------- */
.live-player { background: linear-gradient(180deg, var(--bg), #fff); padding: 0 0 56px; }
.lp-card { position: relative; margin-top: -60px; z-index: 2; background: var(--card); border-radius: 22px; box-shadow: 0 30px 70px rgba(10,10,30,.18); padding: 32px 40px; display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; }
.lp-art { position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.lp-disc { width: 150px; height: 150px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 0 0 6px rgba(255,255,255,.9); position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lp-rings { position: absolute; inset: 0; }
.lp-rings i { position: absolute; inset: 15px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; }
body.is-playing .lp-rings i { animation: ring 2.4s ease-out infinite; }
.lp-rings i:nth-child(2) { animation-delay: .8s !important; }
.lp-rings i:nth-child(3) { animation-delay: 1.6s !important; }
@keyframes ring { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.lp-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head-font); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--primary); }
.lp-title { font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; margin: 6px 0 4px; }
.lp-next { color: var(--muted); margin: 0 0 18px; font-size: 15px; min-height: 1.6em; }
.lp-next strong { color: var(--text); }
.lp-next:not(:empty) { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; min-width: 0; max-width: 100%; }
.lp-next strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lp-next .nl-label, .lp-next .nl-when { flex: 0 0 auto; }
.lp-controls { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lp-play { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 45%, transparent); transition: transform .15s; flex: none; }
.lp-play:hover { transform: scale(1.06); }
.lp-play .ic { grid-area: 1/1; }
.lp-play .ic-play { margin-left: 4px; }
.lp-wave { flex: 1; min-width: 160px; height: 52px; display: flex; align-items: center; gap: 4px; }
.lp-wave i { flex: 1; max-width: 6px; height: 18%; border-radius: 4px; background: color-mix(in srgb, var(--primary) 30%, #ddd); transition: height .3s; }
body.is-playing .lp-wave i { background: var(--primary); animation: wave 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.13s); }
body.is-playing .lp-wave i:nth-child(3n) { animation-duration: .8s; }
body.is-playing .lp-wave i:nth-child(4n+1) { animation-duration: 1.4s; }
@keyframes wave { 0% { height: 15%; } 50% { height: 85%; } 100% { height: 40%; } }
.lp-status { margin: 12px 0 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.lp-status.error { color: var(--primary); }
.lp-help { font-size: 14px; color: var(--primary); }

.spinner { display: none; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; animation: spin .8s linear infinite; }
body.is-loading .spinner { display: block; }
.lp-play .spinner { border-top-color: var(--primary); inset: -6px; }

/* Volumen */
.pb-volume { display: flex; align-items: center; gap: 8px; }
.mute-btn { background: none; border: 0; color: inherit; padding: 4px; display: inline-flex; }
.mute-btn .ic-mute { display: none; }
body.is-muted .mute-btn .ic-mute { display: inline-block; }
body.is-muted .mute-btn .ic-volume { display: none; }
input[type=range][data-player-volume] { -webkit-appearance: none; appearance: none; width: 110px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--primary) var(--vol, 100%), #ccc var(--vol, 100%)); outline: none; }
input[type=range][data-player-volume]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
input[type=range][data-player-volume]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }

/* ---------- Barra de reproductor fija ---------- */
.player-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--bar-h); background: color-mix(in srgb, var(--dark) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 20px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(255,255,255,.08); }
.pb-play { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.pb-play .ic { grid-area: 1/1; }
.pb-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.pb-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.pb-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
body.is-playing .pb-live i { animation: pulse 1.4s infinite; }
.pb-title { font-family: var(--head-font); font-size: 17px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-hosts { font-size: 13px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i { width: 4px; height: 20%; background: var(--accent); border-radius: 2px; }
body.is-playing .eq i { animation: wave .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; } .eq i:nth-child(4) { animation-delay: -.15s !important; } .eq i:nth-child(5) { animation-delay: -.45s !important; }
.player-bar input[type=range][data-player-volume] { background: linear-gradient(90deg, var(--accent) var(--vol, 100%), rgba(255,255,255,.25) var(--vol, 100%)); }
.pb-pop { color: #fff; opacity: .7; display: inline-flex; padding: 6px; }
.pb-pop:hover { opacity: 1; }

/* ---------- WhatsApp ---------- */
.wa-float { position: fixed; left: 16px; bottom: calc(var(--bar-h) + 16px); z-index: 55; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; padding: 11px 18px 11px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { transform: translateY(-3px); }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-soft { background: #ebebf1; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 3px solid currentColor; margin-bottom: 26px; }
.section-dark .section-head { border-color: #fff; }
.section-head { border-bottom-color: var(--text); }
.section-title { display: inline-block; background: #fff; color: #111; font-size: 17px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; margin: 0; }
.section:not(.section-dark) .section-title { background: var(--text); color: #fff; }
.link-more { font-family: var(--head-font); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--primary); text-decoration: none; padding-bottom: 6px; }
.section-dark .link-more { color: var(--accent); }
.empty { color: var(--muted); padding: 20px 0; }

/* Carrusel de próximos programas */
.carousel-nav { display: flex; gap: 6px; padding-bottom: 6px; }
.car-btn { width: 40px; height: 40px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; transition: filter .2s; }
.car-btn:hover { filter: brightness(1.1); }
.car-btn:disabled { opacity: .35; cursor: default; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 22px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.carousel::-webkit-scrollbar { display: none; }
.prog-card { scroll-snap-align: start; }
.prog-card-link { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; color: #fff; text-decoration: none; background: #000; }
.prog-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s; }
.prog-card-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.65)); }
.prog-card-link:hover .prog-card-bg { transform: scale(1.06); }
.prog-card .tag { position: absolute; top: 0; left: 0; z-index: 2; }
.prog-card-body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 50px; }
.prog-when { font-family: var(--head-font); font-size: 15px; letter-spacing: .04em; }
.prog-card h3 { font-size: clamp(20px, 2.2vw, 28px); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prog-hosts { font-size: 13px; opacity: .85; }
.prog-card-more { position: absolute; right: 0; bottom: 0; z-index: 2; width: 42px; height: 40px; background: var(--primary); display: grid; place-items: center; }
.prog-card.is-live .prog-card-link { outline: 3px solid var(--primary); outline-offset: -3px; }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: rgba(0,0,0,.6); padding: 6px 10px; border-top: 3px solid var(--accent); }
.tag-live { color: #fff; background: var(--primary); border-top-color: #fff; }
.tag-live i { width: 7px; height: 7px; background: #fff; }

/* Programación del día */
.day-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; padding: 12px 0 4px; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { flex: 1; min-width: 92px; position: relative; padding: 12px 10px; border: 0; background: #fff; color: var(--text); font-family: var(--head-font); font-size: 16px; letter-spacing: .05em; text-transform: uppercase; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: background .2s, color .2s; }
.day-tab:hover { background: #f0f0f4; }
.day-tab.active { background: var(--primary); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); }
.day-tab em { position: absolute; top: -8px; right: 8px; font-style: normal; font-family: var(--body-font); font-size: 10px; font-weight: 700; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 6px; }
.day-tab .short { display: none; }
.day-panel { display: none; }
.day-panel.active { display: block; animation: fadein .3s; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.schedule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sched-item { display: grid; grid-template-columns: 84px 150px 1fr; gap: 20px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); border-left: 4px solid transparent; transition: box-shadow .2s, transform .2s; }
.sched-item:hover { box-shadow: var(--shadow); }
.sched-item.is-live { border-left-color: var(--primary); box-shadow: var(--shadow); }
.sched-time { text-align: center; font-family: var(--head-font); line-height: 1.2; }
.sched-time strong { display: block; font-size: 24px; font-weight: 600; }
.sched-time span { font-size: 14px; color: var(--muted); }
.sched-time span::before { content: 'hasta '; }
.sched-img { aspect-ratio: 16/10; border-radius: 10px; background-size: cover; background-position: center; }
.sched-body h3 { font-size: 22px; text-transform: uppercase; margin: 4px 0 2px; }
.sched-body h3 a { text-decoration: none; }
.sched-body h3 a:hover { color: var(--primary); }
.sched-body .tag { font-size: 11px; padding: 3px 8px; border-top-width: 2px; background: color-mix(in srgb, var(--accent) 12%, #fff); }
.sched-body .tag-live { background: var(--primary); }
.sched-hosts { margin: 0; font-weight: 600; font-size: 14px; }
.sched-summary { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Eventos */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.event-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.event-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-img { position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center; }
.event-date { position: absolute; left: 14px; top: 14px; background: var(--primary); color: #fff; text-align: center; border-radius: 10px; padding: 6px 12px; line-height: 1; font-family: var(--head-font); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.event-date strong { display: block; font-size: 28px; }
.event-date span { font-size: 13px; letter-spacing: .1em; }
.event-body { padding: 18px 20px 22px; }
.event-body h3 { font-size: 21px; text-transform: uppercase; }
.event-meta { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.event-meta .ic { color: var(--primary); }
.event-summary { margin: 10px 0 0; font-size: 15px; }
.events-grid.is-past { opacity: .7; }

/* Videos */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.video-card h3 { font-size: 19px; margin: 12px 0 4px; text-transform: uppercase; }
.video-card p { margin: 0; color: var(--muted); font-size: 14px; }
.video-frame { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-thumb { width: 100%; height: 100%; border: 0; padding: 0; background-size: cover; background-position: center; display: grid; place-items: center; }
.yt-play { width: 68px; height: 68px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .2s; }
.yt-play .ic { margin-left: 4px; }
.video-thumb:hover .yt-play { transform: scale(1.1); }

/* Auspiciantes */
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; align-items: center; }
.sponsors-grid a, .sponsors-grid span { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 16px; height: 100px; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.sponsors-grid a:hover { filter: none; opacity: 1; }
.sponsors-grid img { max-height: 68px; width: auto; object-fit: contain; }

/* Páginas internas */
.page-hero { position: relative; background: var(--dark) center/cover no-repeat; color: #fff; padding: 72px 0 64px; text-align: center; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 55%); }
.page-hero.has-img::before { background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.7)); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.page-hero p { margin: 10px auto 0; max-width: 640px; opacity: .9; font-size: 17px; }
.content { font-size: 17px; }
.content img, .content iframe { max-width: 100%; border-radius: 12px; }
.content iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.content h2 { font-size: 30px; margin-top: 1.4em; }
.content h3 { font-size: 23px; margin-top: 1.2em; }
.content a { color: var(--primary); }
.content blockquote { border-left: 4px solid var(--primary); margin: 1.5em 0; padding: .5em 1.2em; background: #fff; border-radius: 0 10px 10px 0; }
.content .lead { font-size: 20px; color: var(--muted); }
.content-img { width: 100%; margin: 0 0 24px; border-radius: var(--radius); }
.event-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; font-weight: 600; }
.event-facts span { display: inline-flex; align-items: center; gap: 8px; }
.event-facts .ic { color: var(--primary); }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff !important; border: 2px solid var(--primary); border-radius: 999px; padding: 11px 24px; font-family: var(--head-font); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; text-decoration: none; transition: filter .2s; }
.btn:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--primary) !important; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.wa-card { display: flex; align-items: center; gap: 16px; background: #25d366; color: #fff; text-decoration: none; padding: 22px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(37,211,102,.35); margin-bottom: 26px; }
.wa-card strong { display: block; font-size: 19px; }
.wa-card small { opacity: .9; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.contact-form small { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #d5d5de; border-radius: 10px; font: inherit; background: #fafafc; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); border-color: transparent; background: #fff; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 10px; margin: 16px 0; }
.alert-success { background: #e7f7ec; color: #14532d; }
.alert-error { background: #fdecea; color: #8a1020; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 56px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { max-height: 64px; width: auto; margin-bottom: 12px; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.footer-links li { padding: 3px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--primary); }
.socials.dark a { background: var(--dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 18px; font-size: 13px; opacity: .7; }

/* ---------- Popup player ---------- */
body.popup { padding: 0; background: var(--dark); color: #fff; min-height: 100vh; display: grid; place-items: center; text-align: center; }
.popup-wrap { padding: 30px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.popup .lp-title { color: #fff; }
.popup .lp-controls { justify-content: center; margin: 16px 0; }
.popup input[type=range][data-player-volume] { background: linear-gradient(90deg, var(--accent) var(--vol, 100%), rgba(255,255,255,.25) var(--vol, 100%)); }

/* Transición de navegación */
main { transition: opacity .2s; }
body.is-navigating main { opacity: .4; }

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
  .main-nav a { padding: 0 12px; font-size: 14px; letter-spacing: .04em; }
  .listen-btn { padding: 0 18px; }
  .brand { padding: 8px 18px; }
  .main-nav a::before { display: none; }
}
@media (max-width: 1240px) {
  .listen-label { display: none; }
  .listen-btn .pp { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); align-items: center; justify-content: center; }
}
@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; margin-left: auto; }
  .listen-btn { margin-left: auto; padding: 0 16px; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--dark); transform: translateX(100%); transition: transform .3s; overflow-y: auto; z-index: 40; }
  .main-nav ul { flex-direction: column; width: 100%; padding: 12px 0 100px; }
  .main-nav a { padding: 16px 24px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
  body.nav-open .main-nav { transform: none; }
  body.nav-open .wa-float { display: none; }
  body.nav-open .nav-toggle .ic-menu { display: none; }
  body.nav-open .nav-toggle .ic-close { display: inline-block; }
  .header-inner { position: relative; }
  .carousel { grid-auto-columns: calc((100% - 22px) / 2); }
  .lp-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 22px; }
  .lp-controls { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand { padding: 8px 14px; }
  .brand img { max-height: 44px; }
  .brand-name { font-size: 19px; }
  .brand-tag { font-size: 11px; }
  .listen-label { display: none; }
  .listen-btn { border-left: 0; padding: 0 10px; }
  .listen-btn .pp { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); align-items: center; justify-content: center; }
  .ticker-label { font-size: 12px; padding: 0 10px; }
  .hero, .program-hero { min-height: 480px; }
  .onair-badge { font-size: 17px; }
  .carousel { grid-auto-columns: 86%; gap: 14px; }
  .section { padding: 44px 0; }
  .day-tab { min-width: 64px; font-size: 15px; padding: 10px 6px; }
  .day-tab .full { display: none; }
  .day-tab .short { display: inline; }
  .sched-item { grid-template-columns: 64px 1fr; gap: 12px; }
  .sched-img { display: none; }
  .sched-time strong { font-size: 20px; }
  .sched-body h3 { font-size: 18px; }
  .eq, .player-bar .pb-volume input { display: none; }
  .player-bar { gap: 12px; padding: 0 12px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lp-wave { min-width: 100%; order: 3; height: 40px; }
  .container { padding: 0 16px; }
}
/* Si Windows/celular tiene "reducir animaciones" activado, se frenan sólo los efectos decorativos
   (zoom del fondo, aros, disco girando). El ticker y las barras de sonido siguen moviéndose. */
@media (prefers-reduced-motion: reduce) {
  .lp-fill::after { animation: none; }
}

/* ===== v1.2: reproductor más interactivo ===== */
.lp-controls { gap: 26px; }
.lp-volume-box { display: flex; flex-direction: column; gap: 4px; flex: none; }
.vol-label { font-family: var(--head-font); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.vol-label b { color: var(--primary); font-weight: 600; margin-left: 4px; }
.lp-volume input[type=range][data-player-volume] { width: 150px; height: 6px; }
.lp-wave { min-width: 140px; }
.lp-wave i { animation: wave-idle 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.17s); }
@keyframes wave-idle { from { height: 12%; } to { height: 30%; } }

.lp-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--head-font); font-size: 14px; color: var(--muted); }
.lp-progress[hidden] { display: none; }
.lp-track { position: relative; flex: 1; height: 6px; border-radius: 6px; background: #e6e6ec; }
.lp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width 1s linear; }
.lp-knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); transition: left 1s linear; }
body.is-playing .lp-knob { animation: pulse 1.4s infinite; }
.lp-listen { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-listen .live-dot { animation: none; background: #bbb; }
body.is-playing .lp-listen .live-dot { animation: pulse 1.4s infinite; background: var(--primary); }

.player-bar .pb-info { flex: 0 1 320px; }
.player-bar .pb-volume { gap: 10px; }
.player-bar .vol-label { color: rgba(255,255,255,.65); font-size: 12px; }
.player-bar .pb-eq { margin-left: auto; }
.pb-progress { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: rgba(255,255,255,.08); }
.pb-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width 1s linear; }

@media (max-width: 980px) {
  .lp-progress { width: 100%; }
  .lp-listen { justify-content: center; }
}
@media (max-width: 640px) {
  .player-bar .vol-label { display: none; }
  .lp-controls { gap: 16px; }
  .lp-volume input[type=range][data-player-volume] { width: 120px; }
}

/* ===== v1.5: imágenes completas, foto fija, progreso sin "botón" ===== */
/* Imagen sin recortes: la foto entera centrada y la misma desenfocada rellenando los costados */
.fit { position: relative; overflow: hidden; background-color: #0d0d13; }
.fit::before { content: ''; position: absolute; inset: -30px; background: var(--img) center / cover no-repeat; filter: blur(22px) brightness(.55); }
.fit::after { content: ''; position: absolute; inset: 0; background: var(--img) center / contain no-repeat; }
.fit.no-img::before, .fit.no-img::after { display: none; }
.hero-bg.fit { position: absolute; }
.prog-card-link .prog-card-bg.fit { position: absolute; }
.sched-img { aspect-ratio: 16 / 9; }

/* Foto del reproductor: fija, rectangular como el banner del programa */
.lp-card { grid-template-columns: 280px 1fr; }
.lp-art { width: 280px; height: auto; display: block; }
.lp-disc { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.25); animation: none !important; }
.lp-rings { display: none; }
.popup .lp-art { width: 260px; margin-bottom: 14px; }

/* Barra de progreso del programa: sin botón, con un brillo que avanza */
.lp-knob { display: none; }
.lp-track { height: 8px; overflow: hidden; cursor: default; }
.lp-fill { overflow: hidden; }
.lp-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); width: 60px; animation: shine 2.2s ease-in-out infinite; }
@keyframes shine { from { transform: translateX(-60px); } to { transform: translateX(900px); } }

@media (max-width: 980px) {
  /* Sin botón de play en la cabecera: en celular ya está el reproductor y la barra de abajo */
  .listen-btn { display: none; }
  .lp-card { grid-template-columns: 1fr; }
  .lp-art { width: 100%; max-width: 420px; }
}
@media (max-width: 640px) {
}

/* ===== v1.6 ===== */
/* PC: la foto del programa ocupa todo el ancho de la portada (como antes) */
.hero-bg.fit::before { display: none; }
.hero-bg.fit::after { background-size: cover; }

/* Celular: igual que en PC, foto de fondo ocupando todo y el texto encima */
@media (max-width: 640px) {
  .hero, .program-hero { display: flex; align-items: center; min-height: 480px; }
  .hero-bg.fit, .program-hero .hero-bg.fit { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-shade { display: block; }
  .hero-content, .program-hero-content { padding: 40px 16px 90px; }
  .onair-badge { font-size: 16px; padding: 6px 14px; margin-bottom: 16px; }
  .hero-title { font-size: 34px; }
  .hero-hosts { font-size: 15px; }
}

/* Pie: copyright centrado + crédito */
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.footer-bottom .credit a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-bottom .credit a:hover { color: var(--accent); }

/* ===== v1.9 ===== */
.wa-card.wa-quote { background: var(--dark); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.wa-card.wa-quote .ic { color: #25d366; }
.contact-form-wrap.is-embed { padding: 0; overflow: hidden; }
.contact-iframe { display: block; width: 100%; border: 0; background: #fff; }
.iframe-alt { margin: 0; padding: 10px 20px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.iframe-alt a { color: var(--primary); }
/* En celular/tablet no se ofrece abrir el reproductor en otra ventana */
@media (max-width: 980px), (hover: none) {
  .pb-pop { display: none; }
}

/* ===== v2.0 ===== */
.footer-grid { grid-template-columns: 2fr 1fr; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr; } }

/* Estilos de animación de las barras del reproductor (tocá las barras para cambiar) */
.lp-wave { cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* 2 · Ecualizador: barras desde abajo con degradé */
.lp-wave.w1 { align-items: flex-end; }
.lp-wave.w1 i { border-radius: 4px 4px 1px 1px; }
body.is-playing .lp-wave.w1 i { background: linear-gradient(0deg, var(--accent), var(--primary)); }
/* 3 · Puntos: una onda de puntos que viaja */
.lp-wave.w2 i { height: 8px !important; width: 8px; max-width: 8px; flex: none; border-radius: 50%; animation: dot-idle 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.15s); }
body.is-playing .lp-wave.w2 { justify-content: space-between; }
body.is-playing .lp-wave.w2 i { background: var(--primary); animation: dot-wave 1.3s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.12s); }
@keyframes dot-idle { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes dot-wave { from { transform: translateY(-18px); } to { transform: translateY(18px); } }
/* 4 · Espejo con brillo: barras finas en degradé */
.lp-wave.w3 { gap: 3px; }
.lp-wave.w3 i { max-width: 4px; }
body.is-playing .lp-wave.w3 i { background: linear-gradient(180deg, var(--accent), var(--primary) 50%, var(--accent)); box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 45%, transparent); animation-duration: .7s; }

/* ===== v2.1 (celular) ===== */
.lp-wave { max-width: 100%; overflow: hidden; }
@media (max-width: 640px) {
  /* Foto del programa entera (escalada), con la misma foto desenfocada de fondo y el texto encima */
  .hero-bg.fit::before { display: block; }
  .hero-bg.fit::after { background-size: contain; background-position: center; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55) 60%, rgba(0,0,0,.75)); }
  /* Onda de puntos: menos puntos para que entre en pantallas angostas */
  .lp-wave.w2 i:nth-child(2n) { display: none; }
  .lp-wave.w2 { justify-content: space-between; }
}

/* ===== v2.2: portada en celular como en el sitio anterior =====
   La foto ocupa todo el ancho con proporción 16:9 (se ve entera, sin bordes desenfocados)
   y el texto va centrado encima, en tamaño chico. */
@media (max-width: 640px) {
  .hero, .program-hero { display: flex; align-items: center; justify-content: center; min-height: 0; aspect-ratio: 16 / 9; }
  .hero-bg.fit, .program-hero .hero-bg.fit { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-bg.fit::before { display: none; }
  .hero-bg.fit::after { background-size: cover; background-position: center; }
  .hero-shade { display: block; background: rgba(0,0,0,.38); }
  .hero-content, .program-hero-content { padding: 8px 12px; }
  .onair-badge { font-size: 11px; padding: 3px 8px; gap: 6px; margin-bottom: 6px; }
  .onair-badge i { width: 7px; height: 7px; }
  .hero-title { font-size: clamp(22px, 7.5vw, 30px); margin-bottom: 2px; }
  .hero-hosts { font-size: clamp(11px, 3.4vw, 14px); margin-bottom: 2px; }
  .hero-time { font-size: 12px; }
  .hero-time .ic { width: 12px; height: 12px; }
  .hero-play { display: none; }
  .lp-card { margin-top: 18px; }
  .lp-body { width: 100%; min-width: 0; }
  .lp-next:not(:empty) { justify-content: center; font-size: 13px; gap: 4px; }
}
