/* =========================================================
   FOLCLOREANDO · Estilos
   Minimalista: blanco, azul Radio Activa y una guarda pampa fina.
   ========================================================= */
:root {
  --azul: #0b2db8;
  --azul-osc: #061a6e;
  --rojo: #c8261d;
  --bg: #ffffff;
  --bg-soft: #f4f5f8;
  --ink: #0e1220;
  --ink-2: #5c6170;
  --line: #e4e6ec;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --player-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  padding-bottom: var(--player-h); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--azul); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }

.label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.label--live { color: var(--rojo); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rojo); }

.guarda { line-height: 0; opacity: .9; }
.guarda svg { display: block; }

/* ---------- Encabezado ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--azul); color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__name { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.8); transition: color .15s; }
.nav a:hover { color: #fff; }
.nav-toggle { display: none; padding: 6px; }

/* ---------- Portada: logo al centro, una radio a cada lado ---------- */
.hero { background: var(--azul); color: #fff; padding: 56px 0 0; }
.hero__in { display: grid; grid-template-columns: 1fr minmax(0, 1.5fr) 1fr; gap: 40px; align-items: center; }
.hero__center { text-align: center; }
.hero__logo { margin: 0; }
.hero__logo img { width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.hero__sub { font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin: 18px auto 0; max-width: 32ch; opacity: .92; text-wrap: balance; }

/* Radios */
.station { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.station__logo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #000; border: 3px solid #fff; margin-bottom: 14px; transition: box-shadow .2s; }
.station.is-playing .station__logo { box-shadow: 0 0 0 6px rgba(255,255,255,.25); }
.station__freq { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.station__name { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }
.station__now { font-size: .85rem; opacity: .8; max-width: 100%; min-height: 1.4em; }
.station__now span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.play {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px 11px 18px; border-radius: 999px;
  background: #fff; color: var(--azul); font-weight: 600; font-size: .92rem;
  transition: transform .15s, background .15s;
}
.play::after { content: attr(data-label); }
.play:hover { background: #e8ecfb; }
.play:active { transform: scale(.97); }
.is-playing .play { background: var(--rojo); color: #fff; }
.station__actions { display: flex; gap: 16px; margin-top: 14px; }
.icon-link { display: inline-flex; color: #fff; opacity: .7; transition: opacity .15s; }
.icon-link:hover { opacity: 1; }

/* Pie de portada: programa al aire + clima */
.hero__foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px;
  margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.2);
}
.onair { display: flex; align-items: center; gap: 12px; }
.onair img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.onair .label--live { color: #ffb4ae; }
.onair .dot { background: #ff6a5e; }
.onair strong { display: block; font-weight: 600; line-height: 1.3; }
.onair span:last-child { font-size: .84rem; opacity: .8; }

/* Clima */
.weather { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: .85rem; opacity: .9; }
.weather__now b { font-weight: 600; }
.weather__days { display: flex; gap: 18px; flex-wrap: wrap; }
.wday b { font-weight: 500; margin-right: 4px; opacity: .7; }


/* ---------- Secciones ---------- */
.section { padding: 112px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--azul); color: #fff; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head p { margin: 0; color: var(--ink-2); }
.section--dark .head p { color: rgba(255,255,255,.75); }

/* Pestañas */
.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: 999px; }
.tab { padding: 8px 18px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--azul); box-shadow: 0 1px 2px rgba(14,18,32,.08); }
.tab small { color: var(--rojo); margin-left: 4px; font-size: .78rem; }

/* Grilla de programas */
.schedule { border-top: 1px solid var(--ink); }
.prog {
  display: grid; grid-template-columns: 140px 72px 1fr auto; gap: 28px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); position: relative;
}
.prog__time { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.prog__time small { display: block; font-family: var(--sans); font-size: .78rem; color: var(--ink-2); margin-top: 6px; }
.prog__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.prog h3 { font-size: 1.15rem; }
.prog__sub { color: var(--ink-2); font-weight: 400; }
.prog__host { margin: 2px 0 0; font-size: .92rem; color: var(--ink-2); }
.prog__on { font-size: .8rem; color: var(--ink-2); text-align: right; max-width: 220px; line-height: 1.5; }
.prog.is-live::before { content: ""; position: absolute; left: -20px; top: 22px; bottom: 22px; width: 3px; background: var(--rojo); }
.prog.is-live .prog__time { color: var(--azul); }
.prog .label--live { margin-bottom: 4px; }
.note { margin: 24px 0 0; font-size: .85rem; color: var(--ink-2); }
.empty { padding: 32px 0; color: var(--ink-2); border-bottom: 1px solid var(--line); }

/* TV */
.tv__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.tv__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv__poster { position: absolute; inset: 0; background: center / cover no-repeat; display: grid; place-items: center; }
.tv__poster::before { content: ""; position: absolute; inset: 0; background: rgba(6,26,110,.45); transition: background .2s; }
.tv__poster:hover::before { background: rgba(6,26,110,.3); }
.tv__btn { position: relative; width: 80px; height: 80px; border-radius: 50%; background: #fff; color: var(--azul); display: grid; place-items: center; transition: transform .2s; }
.tv__poster:hover .tv__btn { transform: scale(1.05); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.gallery button { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 90vh; }
.lightbox::backdrop { background: rgba(10,12,20,.92); }
.lightbox img { max-width: 92vw; max-height: 88vh; }
.lightbox__close { position: fixed; top: 16px; right: 16px; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; }

/* Enlaces */
.links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.link-card { padding: 28px 28px 28px 0; border-right: 1px solid var(--line); }
.link-card + .link-card { padding-left: 28px; }
.link-card:last-child { border-right: 0; }
.link-card h3 { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.link-card p { margin: 6px 0 0; color: var(--ink-2); font-size: .92rem; }
a.link-card:hover h3 { color: var(--azul); }
.dolar { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 10px; font-variant-numeric: tabular-nums; }
.dolar th { text-align: left; font-weight: 500; font-size: .75rem; color: var(--ink-2); padding-bottom: 4px; }
.dolar td { padding: 4px 0; }
.dolar td:first-child { color: var(--ink-2); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__lead { color: var(--ink-2); margin: 16px 0 32px; max-width: 36ch; }
.contact__list { border-top: 1px solid var(--ink); }
.ccard { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ccard img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #000; }
.ccard__freq { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); }
.ccard h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.ccard__btns { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.btn:hover { color: var(--azul); }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; line-height: 1.15; transition: background .15s;
}
.store:hover { background: var(--azul); }
.store small { display: block; font-size: .66rem; opacity: .7; }
.store strong { font-size: .95rem; font-weight: 600; }
.store svg { width: 22px; height: 22px; }

/* Pie */
.footer { border-top: 1px solid var(--line); }
.footer__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 28px 0; font-size: .82rem; color: var(--ink-2); }
.footer p { margin: 0; }

/* ---------- Reproductor ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--player-h); background: var(--azul); color: #fff; }
.player__in { height: 100%; display: flex; align-items: center; gap: 14px; }
.player__btn { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--azul); display: grid; place-items: center; }
.player__btn.is-loading { opacity: .6; }
.player__art { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #000; }
.player__meta { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.player__station { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.player__song { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; font-size: .95rem; }
.player__switch { display: flex; gap: 4px; background: rgba(255,255,255,.12); padding: 4px; border-radius: 999px; }
.player__switch button { padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 500; white-space: nowrap; color: rgba(255,255,255,.8); }
.player__switch button[aria-pressed="true"] { background: #fff; color: var(--azul); }
.player__vol { display: flex; align-items: center; gap: 8px; }
.player__vol button { display: grid; place-items: center; padding: 4px; }
.player__vol input { width: 90px; accent-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .hero__center { grid-column: 1 / -1; order: -1; }
  .hero__logo img { max-width: 440px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .prog { grid-template-columns: 110px 56px 1fr; gap: 18px; }
  .prog__img { width: 56px; height: 56px; }
  .prog__on { grid-column: 3; text-align: left; max-width: none; }
  .links { grid-template-columns: 1fr; }
  .link-card, .link-card + .link-card { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .player__vol { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--azul-osc); padding: 8px 20px 16px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.05rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
  .player__art { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 32px; }
  .hero__foot { margin-top: 32px; }
  .weather__days .wday:nth-child(n+4) { display: none; }
  .station__logo { width: 72px; height: 72px; margin-bottom: 8px; }
  .station__name { font-size: 1.2rem; }
  .station__now span { max-width: 150px; }
  .play { padding: 9px 16px 9px 12px; font-size: .85rem; }
  .head { flex-direction: column; align-items: flex-start; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 8px 10px; white-space: nowrap; }
  .tab small { display: none; }
  .prog { grid-template-columns: 1fr auto; gap: 4px 14px; padding: 18px 0; }
  .prog__time { grid-row: 1; font-size: 1.2rem; }
  .prog__time small { display: inline; margin-left: 6px; }
  .prog__img { grid-row: 1 / 3; grid-column: 2; width: 52px; height: 52px; }
  .prog__main, .prog__on { grid-column: 1; }
  .prog.is-live::before { left: -16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .player__switch { display: none; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* TV sobre blanco */
#tv .head p { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Páginas internas (WordPress) ---------- */
body:not(.home) { padding-bottom: 0; }
.entry { max-width: 760px; }
.entry__title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 24px; }
.entry__img { margin-bottom: 24px; }
.entry__body > * + * { margin-top: 1em; }
.entry__body a, .entry a { color: var(--azul); text-decoration: underline; }
.entry__item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.entry__item h2 { font-size: 1.6rem; }
.entry__meta { color: var(--ink-2); font-size: .85rem; margin: 6px 0; }
.entry img { height: auto; }
.wp-block-image img { max-width: 100%; }
.alignwide, .alignfull { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
