/* ==========================================================================
   CACHIPAYESTÉREO 89.6 FM — components.css
   Componentes reutilizables: botones, chips, tarjetas, formularios, skeletons,
   estados vacíos, header, menú móvil, footer, reproductor flotante, etc.
   Depende de los tokens de base.css.
   ========================================================================== */

/* --- 1. BOTONES ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base); letter-spacing: -.005em; line-height: 1.1;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform var(--t-base) var(--ease-out), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-base) var(--ease-out);
}
.btn:hover { transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 2px), 0); }
.btn:active { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(.97); transition-duration: 80ms; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform var(--t-base) var(--ease-out); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* Principal (acción de marca): amarillo del logo, brillo en oscuro / "sticker" en claro */
.btn--live, .btn--primary {
  --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: transparent;
  box-shadow: var(--glow-amarillo);
}
:root[data-theme="light"] .btn--live, :root[data-theme="light"] .btn--primary { --btn-bd: var(--ink); }
.btn--live:hover, .btn--primary:hover { background: color-mix(in oklab, var(--amarillo) 88%, white); }
:root[data-theme="light"] .btn--live:hover, :root[data-theme="light"] .btn--primary:hover { box-shadow: 0 0 0 2px var(--ink), 2px 3px 0 0 var(--ink); }
.btn--green { --btn-bg: var(--verde); --btn-fg: #fff; --btn-bd: transparent; box-shadow: var(--glow-verde); }
.btn--green:hover { background: color-mix(in oklab, var(--verde) 85%, white); }
.btn--ghost { --btn-bg: transparent; --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: color-mix(in oklab, var(--text) 8%, transparent); border-color: var(--text-mute); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: transparent; }
.btn--light:hover { background: var(--amarillo); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); }
.btn--danger { --btn-bg: var(--rojo); --btn-fg: #fff; --btn-bd: transparent; box-shadow: var(--glow-rojo); }
.btn--sm { min-height: 38px; padding: .45rem 1rem; font-size: var(--fs-sm); }
.btn--lg { min-height: 58px; padding: .9rem 1.9rem; font-size: var(--fs-lg); }
.btn--block { display: flex; width: 100%; }

/* Enlaces: subrayado animado y flecha */
.link-underline {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size var(--t-base) var(--ease-out);
}
.link-underline:hover, .card:hover .link-underline { background-size: 100% 2px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent-text);
  font-family: var(--font-display);
}
.link-arrow svg { transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --- 2. PILLS, CHIPS, INDICADOR EN VIVO ---------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .75rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.pill--verde { color: var(--verde-lux); background: color-mix(in oklab, var(--verde) 22%, transparent); border-color: color-mix(in oklab, var(--verde) 55%, transparent); }
.pill--amarillo { color: var(--amarillo); background: color-mix(in oklab, var(--amarillo) 16%, transparent); border-color: color-mix(in oklab, var(--amarillo) 50%, transparent); }
.pill--rojo { color: var(--rojo-lux); background: color-mix(in oklab, var(--rojo) 18%, transparent); border-color: color-mix(in oklab, var(--rojo) 55%, transparent); }
.pill--ink { color: var(--text); background: var(--surface-3); }
.pill--muted { opacity: .7; }
:root[data-theme="light"] .pill--verde { color: var(--verde-dark); }
:root[data-theme="light"] .pill--amarillo { color: color-mix(in oklab, var(--amarillo) 40%, black); }
:root[data-theme="light"] .pill--rojo { color: var(--rojo-dark); }

.chip, .svc-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1rem;
  font-weight: 600; font-size: var(--fs-sm); color: var(--text-soft);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  transition: transform var(--t-base) var(--ease-spring), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover, .svc-chip:hover { border-color: var(--text-mute); transform: translateY(-2px); }
.chip.is-active, .svc-chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
:root[data-theme="light"] .chip.is-active, :root[data-theme="light"] .svc-chip.is-active { border-color: var(--ink); }

/* Punto que late (EN VIVO) */
.live-dot, .live-chip__dot, .player-badge__dot {
  position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rojo); flex: none;
}
.live-dot::after, .live-chip__dot::after, .player-badge__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }
.live-chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); background: color-mix(in oklab, var(--rojo) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--rojo) 50%, transparent); border-radius: var(--r-pill); white-space: nowrap;
}
.live-chip__label { color: var(--rojo-lux); }
:root[data-theme="light"] .live-chip__label { color: var(--rojo-dark); }
.live-chip.is-on { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.live-chip.is-on .live-chip__label { color: #fff; }
.live-chip.is-on .live-chip__dot { background: #fff; }

/* --- 3. MEDIA + TARJETAS ----------------------------------------------------------- */
.media { position: relative; overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 10; }
.media--16x10 { aspect-ratio: 16 / 10; } .media--16x9 { aspect-ratio: 16 / 9; }
.media--4x5 { aspect-ratio: 4 / 5; } .media--4x3 { aspect-ratio: 4 / 3; } .media--1x1 { aspect-ratio: 1; }
.media--rounded { border-radius: var(--r-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.card:hover .media img, .schedule-item:hover .media img { transform: scale(1.07); }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--t-slow) var(--ease-out), border-color var(--t-base), box-shadow var(--t-slow) var(--ease-out);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card__media { position: relative; }
.card__icon-badge {
  position: absolute; left: 1rem; bottom: -22px; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px;
  color: var(--accent-ink); background: var(--accent); border-radius: 14px; box-shadow: var(--shadow-md);
}
.card__body { display: flex; flex-direction: column; flex: 1; gap: .6rem; padding: 1.4rem 1.4rem 1.5rem; }
.card__media + .card__body { padding-top: 1.7rem; }
.card__title { font-size: var(--fs-xl); }
.card__text { color: var(--text-mute); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line); }
.card--featured { border-color: color-mix(in oklab, var(--amarillo) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--amarillo) 25%, transparent), var(--shadow-md); }
.provisional-tag { display: inline-block; padding: .15rem .6rem; font-size: var(--fs-xs); font-weight: 600; color: var(--amarillo-dark); background: color-mix(in oklab, var(--amarillo) 14%, transparent); border-radius: var(--r-pill); }
:root:not([data-theme="light"]) .provisional-tag { color: var(--amarillo); }

/* Clasificados */
.clasificado-meta { display: grid; gap: .35rem; margin-top: .4rem; color: var(--text-mute); font-size: var(--fs-sm); }
.clasificado-meta > div { display: flex; align-items: center; gap: .5rem; }
.clasificado-meta svg { color: var(--verde-lux); flex: none; }
:root[data-theme="light"] .clasificado-meta svg { color: var(--verde-dark); }
.clasificado-meta dd { margin: 0; }
.classified-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: auto; padding-top: .9rem; }
.classified-card__media { border-radius: 0; }
.classified-image-fallback {
  display: grid; place-content: center; text-align: center; gap: .15rem; width: 100%; aspect-ratio: 16 / 10;
  background: radial-gradient(120% 100% at 20% 0%, color-mix(in oklab, var(--verde) 70%, #000), var(--bg-2));
  color: #fff;
}
.classified-image-fallback span { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 8vw, 4rem); line-height: 1; background: var(--grad-brand-lux); -webkit-background-clip: text; background-clip: text; color: transparent; }
.classified-image-fallback small { letter-spacing: .24em; font-weight: 700; font-size: var(--fs-xs); opacity: .8; }
.media.is-missing { display: grid; place-items: center; background: radial-gradient(120% 100% at 20% 0%, color-mix(in oklab, var(--verde) 60%, #000), var(--bg-2)); }
.media.is-missing::after { content: "89.6"; font-family: var(--font-display); font-weight: 800; font-size: 3rem; background: var(--grad-brand-lux); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- 4. SERVICIOS (tarjetas con inclinación 3D) -------------------------------------------------- */
.svc-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); perspective: 1200px; }
.svc {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 500ms var(--ease-out), border-color var(--t-base), box-shadow var(--t-slow);
  transform-style: preserve-3d;
}
.svc::before {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; top: -22%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--amarillo) 38%, transparent), transparent 68%);
  opacity: .0; transition: opacity var(--t-slow);
}
.svc:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.svc:hover::before { opacity: 1; }
.svc.is-tilting { transition: transform 80ms linear, border-color var(--t-base), box-shadow var(--t-slow); }
.svc.is-featured { border-color: color-mix(in oklab, var(--amarillo) 55%, transparent); }
.svc--plan { background: linear-gradient(160deg, color-mix(in oklab, var(--verde) 28%, var(--surface-2)), var(--surface)); }
.svc__top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.svc__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-right: auto; color: var(--accent-ink); background: var(--accent); border-radius: 16px; transform: translateZ(30px); }
.svc__icon svg { width: 26px; height: 26px; }
.svc__icon .eq-ico line { transform-box: fill-box; transform-origin: center bottom; }
.svc:hover .svc__icon .eq-ico line { animation: eq-ico 900ms ease-in-out infinite alternate; }
.svc:hover .svc__icon .eq-ico line:nth-child(2n) { animation-delay: -300ms; }
.svc:hover .svc__icon .eq-ico line:nth-child(3n) { animation-delay: -600ms; }
@keyframes eq-ico { from { transform: scaleY(.45); } to { transform: scaleY(1.05); } }
.svc__tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.svc__badge { padding: .2rem .65rem; font-size: var(--fs-xs); font-weight: 800; color: #fff; background: var(--rojo); border-radius: var(--r-pill); }
.svc__title { font-size: var(--fs-xl); transform: translateZ(20px); }
.svc__text { color: var(--text-mute); font-size: var(--fs-sm); }
.svc__list { display: grid; gap: .4rem; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--text-soft); }
.svc__list li { position: relative; padding-left: 1.5rem; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .5rem; border-left: 2.5px solid var(--verde-lux); border-bottom: 2.5px solid var(--verde-lux); transform: rotate(-45deg) scale(.9); }
.svc__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line); }
.svc__price strong { font-family: var(--font-display); font-size: var(--fs-xl); }
.svc__price small { margin-left: .25rem; color: var(--text-mute); }
.svc__price--ask { font-size: var(--fs-base) !important; color: var(--text-mute); }
.svc-toolbar { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.svc-tabs { display: inline-flex; gap: .25rem; padding: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); justify-self: start; }
.svc-tab { min-height: 42px; padding: .45rem 1.2rem; font-family: var(--font-display); font-weight: 700; color: var(--text-mute); border-radius: var(--r-pill); transition: background-color var(--t-fast), color var(--t-fast); }
.svc-tab span { margin-left: .3rem; opacity: .7; }
.svc-tab.is-active { color: var(--accent-ink); background: var(--accent); }
.svc-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.svc-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-search { flex: 1 1 240px; max-width: 360px; }

/* --- 5. FORMULARIOS ----------------------------------------------------------------- */
input, select, textarea, .input {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  color: var(--text); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-base), background-color var(--t-fast);
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; }
input::placeholder, textarea::placeholder { color: var(--text-mute); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: var(--text-mute); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amarillo); box-shadow: 0 0 0 4px color-mix(in oklab, var(--amarillo) 28%, transparent); }
:root[data-theme="light"] input:focus, :root[data-theme="light"] select:focus, :root[data-theme="light"] textarea:focus { border-color: var(--ink); }
input[type="search"] { padding-left: 1rem; }
input[type="range"] { min-height: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.field { display: grid; gap: .45rem; }
.field__label { font-weight: 700; font-size: var(--fs-sm); }
.req { color: var(--rojo-lux); }
.field__error { display: none; color: var(--danger); font-size: var(--fs-sm); font-weight: 600; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--rojo); }
.form-grid { display: grid; gap: 1rem; }
.form-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.hint { font-size: var(--fs-sm); color: var(--text-mute); }
.form-success { padding: 1.5rem; background: color-mix(in oklab, var(--verde) 18%, var(--surface)); border: 1px solid color-mix(in oklab, var(--verde) 55%, transparent); border-radius: var(--r-lg); }
.form-success__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: .6rem; color: #fff; background: var(--verde); border-radius: 50%; }
.form-success pre { background: var(--surface) !important; border-color: var(--line) !important; color: var(--text); }
.form-success__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.filter-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.filter-search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--text-mute); pointer-events: none; }
.filter-search input { padding-left: 2.8rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.result-count { color: var(--text-mute); font-size: var(--fs-sm); }

/* --- 6. SKELETONS, ESTADOS VACÍOS, AVISOS ------------------------------------------------- */
.skeleton, .sk {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background: var(--surface-2);
}
.skeleton::after, .sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--text) 9%, transparent), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { display: grid; gap: .8rem; padding: 0 0 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.sk-card .sk-img { aspect-ratio: 16 / 10; border-radius: 0; }
.sk-card .sk { height: 14px; margin-inline: 1.4rem; }
.sk-card .sk--w60 { width: 60%; } .sk-card .sk--w40 { width: 40%; } .sk-card .sk--title { height: 24px; width: 80%; }
.sk-block { height: 260px; border-radius: var(--r-lg); }
.empty-state {
  grid-column: 1 / -1; display: grid; justify-items: center; gap: .6rem; padding: clamp(2rem, 6vw, 4rem) 1.5rem; text-align: center;
  color: var(--text-mute); background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg);
}
.empty-state h2, .empty-state h3 { color: var(--text); font-size: var(--fs-xl); }
.empty-state p { max-width: 46ch; }
.empty-state__icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .3rem; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  color: var(--accent-ink); background: var(--accent); border-radius: 22px; transform: rotate(-6deg);
}
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; font-size: var(--fs-sm); color: var(--text-soft); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amarillo); border-radius: var(--r-md); }
.notice svg { flex: none; margin-top: .15rem; color: var(--amarillo); }
.notice a { color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.notice--info { border-left-color: var(--verde-lux); } .notice--info svg { color: var(--verde-lux); }

/* Aviso superior configurable desde el panel */
.site-banner { position: relative; z-index: 120; padding: .65rem 3rem .65rem 1rem; text-align: center; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); background: var(--amarillo); }
.site-banner a { margin-left: .6rem; font-weight: 800; text-decoration: underline; color: inherit; }
.site-banner__x { position: absolute; right: .6rem; top: 50%; translate: 0 -50%; width: 32px; height: 32px; font-size: 1.4rem; line-height: 1; color: inherit; border-radius: 50%; }
.site-banner__x:hover { background: rgba(0,0,0,.12); }
.is-section-hidden { display: none !important; }

/* --- 7. MIGAS, SECTION-HEAD, VALORES --------------------------------------------------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; font-size: var(--fs-sm); color: var(--text-mute); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-fast), color var(--t-fast); }
.breadcrumbs a:hover { color: var(--text); text-decoration-color: currentColor; }
.breadcrumbs [aria-current] { color: var(--text-soft); font-weight: 600; }

.section-head { display: grid; gap: .9rem; max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--text-mute); font-size: var(--fs-lg); max-width: 56ch; }
.section-head__kicker, .kicker {
  display: inline-flex; align-items: center; gap: .6rem; width: fit-content;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text);
}
.section-head__kicker::before, .kicker::before {
  content: ""; width: 26px; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12' fill='none' stroke='%23ffb902' stroke-width='2.2' stroke-linecap='round'><path d='M1 6c3-7 5-7 8 0s5 7 8 0 5-7 8 0'/></svg>") center / contain no-repeat;
}
:root[data-theme="light"] .section-head__kicker::before, :root[data-theme="light"] .kicker::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12' fill='none' stroke='%232a5614' stroke-width='2.2' stroke-linecap='round'><path d='M1 6c3-7 5-7 8 0s5 7 8 0 5-7 8 0'/></svg>");
}
.value { position: relative; display: grid; align-content: start; gap: .7rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t-slow) var(--ease-out), border-color var(--t-base); }
.value:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.value__line { display: block; width: 56px; height: 5px; border-radius: 4px; background: var(--grad-brand); }

/* --- 8. CONTACTO ------------------------------------------------------------------------- */
.contact-layout { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }
.contact-card { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--t-base) var(--ease-out), border-color var(--t-base), box-shadow var(--t-base); }
a.contact-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.contact-card__icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 16px; }
.icon-verde { color: #fff; background: var(--verde); } .icon-amarillo { color: var(--ink); background: var(--amarillo); }
.icon-rojo { color: #fff; background: var(--rojo); } .icon-ink { color: var(--text); background: var(--surface-3); }
.contact-card__label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.contact-card__value { display: block; font-weight: 700; word-break: break-word; }
.map-embed { border: 1px solid var(--line); background: var(--surface-2); }
:root[data-theme="dark"] .map-embed iframe, :root:not([data-theme]) .map-embed iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95); }
.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; transition: transform var(--t-base) var(--ease-spring), background-color var(--t-fast), color var(--t-fast); }
.socials a:hover { transform: translateY(-4px) rotate(-6deg); background: var(--accent); color: var(--accent-ink); }
.socials-note { margin-top: .6rem; font-size: var(--fs-sm); color: var(--text-mute); }
.footer-title { margin-bottom: .9rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }

/* --- 9. ARTÍCULOS, EQUIPO, AGENDA, AUDIOS, HISTORIA -------------------------------------- */
.article-container { max-width: 820px; }
.article h1 { font-size: var(--fs-3xl); margin: 1rem 0; }
.article .breadcrumbs { margin-bottom: 1.2rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--text-mute); font-size: var(--fs-sm); }
.article__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article__excerpt { margin: 1.25rem 0; font-size: var(--fs-lg); color: var(--text-soft); }
.article__hero { margin: 1.5rem 0; }
.article__body { display: grid; gap: 1.25rem; font-size: var(--fs-lg); color: var(--text-soft); line-height: 1.8; }
.article__body > p:first-child::first-letter { float: left; margin: .1em .12em 0 0; font-family: var(--font-display); font-weight: 800; font-size: 4.2em; line-height: .8; color: var(--accent-text); }
.post-nav { display: grid; gap: .3rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.post-nav small { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.post-nav a { font-weight: 700; } .post-nav a:hover { color: var(--accent-text); }
.team-profile__hero { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: center; }
.team-profile__hero > .media { max-width: 440px; }
.team-profile__hero h1 { margin: .6rem 0 1rem; font-size: var(--fs-3xl); overflow-wrap: anywhere; }
.team-profile__socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.team-profile__section { margin-top: 2rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.team-profile__section h2 { margin-bottom: .8rem; font-size: var(--fs-xl); }
.team-profile__section p { color: var(--text-soft); line-height: 1.8; white-space: pre-line; }
.team-profile__section ul { padding-left: 1.25rem; color: var(--text-soft); }
.story-page { display: grid; gap: 1.25rem; max-width: 820px; }
.story-page p { color: var(--text-soft); font-size: var(--fs-lg); line-height: 1.8; }
.timeline__item { display: flex; gap: 1.25rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.timeline__rail { display: flex; flex-direction: column; align-items: center; }
.timeline__dot { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--accent-ink); background: var(--accent); border-radius: 50%; }
.timeline__line { width: 2px; flex: 1; margin-top: .5rem; background: var(--line-strong); }
.timeline__year { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.ev-list, .au-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ev { display: flex; gap: 1.1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--t-slow) var(--ease-out), border-color var(--t-base); }
.ev:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.ev__date { flex: 0 0 74px; align-self: flex-start; padding: .7rem .3rem; text-align: center; font-family: var(--font-display); color: var(--accent-ink); background: var(--accent); border-radius: var(--r-md); }
.ev__date strong { display: block; font-size: 2rem; line-height: 1; }
.ev__date span { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; }
.ev h3 { margin-bottom: .3rem; } .ev p { margin: .2rem 0; color: var(--text-mute); font-size: var(--fs-sm); }
.au { display: grid; gap: .6rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.au small { color: var(--text-mute); } .au audio { width: 100%; accent-color: var(--amarillo); }

/* Detalle de clasificado */
.classified-detail__layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.classified-detail__image { overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); }
.classified-detail__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.classified-detail__location { color: var(--text-mute); font-size: var(--fs-sm); }
.classified-detail h1 { font-size: var(--fs-3xl); }
.classified-detail__price { margin: .8rem 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); color: var(--accent-text); }
.classified-detail__description { color: var(--text-soft); font-size: var(--fs-lg); line-height: 1.75; }
.classified-detail__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Carrusel de clasificados (portada) */
.classified-carousel { position: relative; }
.classified-carousel__stage { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--surface-2); aspect-ratio: 21 / 9; min-height: 280px; box-shadow: var(--shadow-md); }
.classified-carousel__image { position: absolute; inset: 0; }
.classified-carousel__image img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s var(--ease-out) both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.classified-carousel__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 55%); }
.classified-carousel__read { position: absolute; left: 1.25rem; bottom: 1.25rem; }
.classified-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.classified-carousel__arrow { display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.2rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 50%; transition: transform var(--t-base) var(--ease-spring), background-color var(--t-fast); }
.classified-carousel__arrow:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); transform: scale(1.1); }
.classified-carousel__dots { display: flex; gap: .5rem; }
.classified-carousel__dot { width: 10px; height: 10px; padding: 0; background: var(--line-strong); border-radius: var(--r-pill); transition: width var(--t-base) var(--ease-out), background-color var(--t-base); }
.classified-carousel__dot.is-active { width: 30px; background: var(--accent); }
.classified-carousel__count { font-size: var(--fs-sm); color: var(--text-mute); font-variant-numeric: tabular-nums; }

/* --- 10. ESPECTRO / ECUALIZADOR ----------------------------------------------------------- */
.spectrum { display: inline-flex; align-items: flex-end; gap: 3px; height: 30px; }
.spectrum span { width: 4px; height: 100%; border-radius: 3px; background: var(--grad-brand); transform: scaleY(.16); transform-origin: bottom; }
.spectrum--lg { height: 48px; gap: 5px; } .spectrum--lg span { width: 7px; }
.is-playing .spectrum span, .spectrum.is-playing span { animation: eq 900ms ease-in-out infinite alternate; }
.spectrum span:nth-child(1) { animation-duration: 720ms; } .spectrum span:nth-child(2) { animation-duration: 1040ms; animation-delay: -200ms; }
.spectrum span:nth-child(3) { animation-duration: 860ms; animation-delay: -420ms; } .spectrum span:nth-child(4) { animation-duration: 1180ms; animation-delay: -90ms; }
.spectrum span:nth-child(5) { animation-duration: 780ms; animation-delay: -560ms; } .spectrum span:nth-child(6) { animation-duration: 1000ms; animation-delay: -310ms; }
.spectrum span:nth-child(7) { animation-duration: 900ms; animation-delay: -700ms; } .spectrum span:nth-child(8) { animation-duration: 1120ms; animation-delay: -150ms; }
@keyframes eq { from { transform: scaleY(.14); } to { transform: scaleY(1); } }

/* --- 11. HEADER ------------------------------------------------------------------------------- */
/* El header ocupa 0 px de flujo: flota sobre el hero (translúcido con desenfoque) */
.site-header { position: sticky; top: 0; z-index: 100; height: 0; }
.header-inner {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem;
  margin: 12px auto 0; width: min(100% - var(--gutter) * 2, var(--container)); min-height: 64px; padding: .5rem .6rem .5rem .8rem;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  transition: min-height var(--t-base) var(--ease-out), margin var(--t-base) var(--ease-out), box-shadow var(--t-base), background-color var(--t-base);
  view-transition-name: site-header;
}
.site-header.is-scrolled .header-inner { min-height: 54px; margin-top: 8px; background: var(--glass-strong); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark { width: 46px; height: 46px; border-radius: 50%; transition: transform var(--t-slow) var(--ease-spring), width var(--t-base), height var(--t-base); }
.site-header.is-scrolled .brand__mark { width: 40px; height: 40px; }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand__name span { color: var(--accent-text); }
.brand__freq { font-size: var(--fs-xs); font-weight: 600; color: var(--text-mute); letter-spacing: .04em; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: .15rem; list-style: none; }
.nav__link { position: relative; display: block; white-space: nowrap; padding: .55rem .9rem; font-weight: 600; font-size: var(--fs-sm); color: var(--text-soft); border-radius: var(--r-pill); transition: color var(--t-fast), background-color var(--t-fast); }
.nav__link::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); transform: translateX(-50%) scaleX(0); transition: transform var(--t-base) var(--ease-spring); }
.nav__link:hover { color: var(--text); background: color-mix(in oklab, var(--text) 7%, transparent); }
.nav__link:hover::after, .nav__link.is-active::after { transform: translateX(-50%) scaleX(1); }
.nav__link.is-active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 50%; transition: transform var(--t-base) var(--ease-spring), background-color var(--t-fast); }
.theme-toggle:hover { background: color-mix(in oklab, var(--text) 9%, transparent); transform: rotate(18deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; } :root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); }
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: var(--accent-ink); transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast); }
.nav-toggle__bars span:nth-child(1) { top: 0; } .nav-toggle__bars span:nth-child(2) { top: 6px; } .nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil a pantalla completa con entrada escalonada */
.nav-mobile {
  position: fixed; inset: 0; z-index: 1; display: grid; align-content: center; padding: calc(var(--header-h) + 1rem) 0 2rem;
  background: color-mix(in oklab, var(--bg) 98%, transparent); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  opacity: 0; visibility: hidden; clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 700ms var(--ease-inout), opacity 300ms, visibility 0s 700ms;
  overflow-y: auto;
}
.nav-mobile::before { content: "89.6"; position: absolute; right: -4%; bottom: -3%; font: 800 clamp(9rem, 50vw, 20rem)/.8 var(--font-display); color: transparent; -webkit-text-stroke: 2px var(--line); pointer-events: none; }
.nav-mobile.is-open { opacity: 1; visibility: visible; clip-path: circle(150% at calc(100% - 40px) 40px); transition: clip-path 800ms var(--ease-inout), opacity 200ms, visibility 0s; }
.nav-mobile__list { display: grid; gap: .25rem; list-style: none; }
.nav-mobile__link { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 9vw, 3.2rem); letter-spacing: -.03em; color: var(--text-soft); border-bottom: 1px solid var(--line); transition: color var(--t-fast), padding-left var(--t-base) var(--ease-out); }
.nav-mobile__link:hover, .nav-mobile__link.is-active { color: var(--text); padding-left: .5rem; }
.nav-mobile__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--t-base) var(--ease-spring); }
.nav-mobile__link.is-active .nav-mobile__dot { transform: scale(1); }
.nav-mobile__list li, .nav-mobile__cta { opacity: 0; transform: translateY(26px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.nav-mobile.is-open .nav-mobile__list li, .nav-mobile.is-open .nav-mobile__cta { opacity: 1; transform: none; transition-delay: calc(260ms + var(--i, 0) * 70ms); }
.nav-mobile__list li:nth-child(1) { --i: 0; } .nav-mobile__list li:nth-child(2) { --i: 1; } .nav-mobile__list li:nth-child(3) { --i: 2; }
.nav-mobile__list li:nth-child(4) { --i: 3; } .nav-mobile__list li:nth-child(5) { --i: 4; } .nav-mobile__list li:nth-child(6) { --i: 5; }
.nav-mobile__list li:nth-child(7) { --i: 6; } .nav-mobile__list li:nth-child(8) { --i: 7; } .nav-mobile__list li:nth-child(n+9) { --i: 8; }
.nav-mobile__cta { --i: 8; display: grid; gap: .75rem; margin-top: 2rem; }
@media (max-width: 991px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
}
@media (max-width: 480px) {
  .brand__freq { display: none; }
  .live-chip { padding-inline: .6rem; }
  .live-chip [data-live-text] { display: none; }
}
@media (min-width: 992px) { .nav-mobile { display: none; } }

/* --- 12. FOOTER --------------------------------------------------------------------------------- */
.site-footer { position: relative; margin-top: clamp(3rem, 6vw, 6rem); padding-top: clamp(3rem, 6vw, 5rem); background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__bar { position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }
.site-footer__glow { position: absolute; width: 60vw; aspect-ratio: 1; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--verde) 40%, transparent), transparent 65%); opacity: .5; pointer-events: none; }
.site-footer__mega {
  position: absolute; left: 50%; bottom: -.12em; translate: -50% 0; font: 800 var(--fs-mega)/.78 var(--font-display); letter-spacing: -.05em; white-space: nowrap; pointer-events: none; user-select: none;
  color: transparent; background: var(--grad-brand-lux); -webkit-background-clip: text; background-clip: text; opacity: .17;
}
.site-footer__inner { position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; padding-bottom: 3rem; }
.footer-brand p { color: var(--text-mute); max-width: 38ch; }
.footer-brand .btn { margin-top: 1rem; }
.footer-list { display: grid; gap: .6rem; list-style: none; color: var(--text-mute); font-size: var(--fs-sm); }
.footer-list a { transition: color var(--t-fast), padding-left var(--t-base) var(--ease-out); }
.footer-list a:hover { color: var(--text); padding-left: .35rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact svg { margin-top: .2rem; flex: none; color: var(--accent-text); }
.footer-player { display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem; padding: .75rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); width: fit-content; max-width: 100%; }
.footer-player__text { display: grid; line-height: 1.2; font-size: var(--fs-sm); }
.footer-player__text small { color: var(--text-mute); font-size: var(--fs-xs); }
.footer-player .spectrum { height: 24px; }
.btn--round { width: 46px; min-height: 46px; padding: 0; border-radius: 50%; }
.btn--round svg { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.btn--round svg.icon-loading { fill: none; stroke: currentColor; stroke-width: 3; animation: spin 900ms linear infinite; }
.footer-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.5rem 0 calc(var(--player-h) + 2.5rem); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-mute); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- 13. REPRODUCTOR FLOTANTE (pieza estrella) -------------------------------------------- */
.player-spacer { height: 0; }
.player { position: fixed; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 90; padding-inline: var(--gutter); pointer-events: none; transition: transform 700ms var(--ease-out), opacity 400ms; }
.player.is-hidden { transform: translateY(150%); opacity: 0; visibility: hidden; transition: transform 500ms var(--ease-out), opacity 300ms, visibility 0s 500ms; }
.player .container { position: relative; width: min(100%, 980px); pointer-events: auto; }
.player__bar { position: absolute; left: 50%; bottom: -4px; width: min(70%, 620px); height: 22px; translate: -50% 0; border-radius: 50%; background: var(--grad-brand); filter: blur(22px); opacity: 0; transition: opacity 600ms; pointer-events: none; }
.player.is-playing .player__bar { opacity: .55; animation: bar-breathe 3.2s ease-in-out infinite alternate; }
@keyframes bar-breathe { to { opacity: .28; transform: scaleX(.9); } }
.player__inner {
  position: relative; display: flex; align-items: center; gap: .9rem; padding: .55rem .8rem .55rem .55rem;
  background: var(--glass-strong); border: 1px solid var(--line-strong); border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  view-transition-name: site-player;
}
.player__cover { position: relative; flex: none; width: 58px; height: 58px; }
.player__cover img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 2px var(--line-strong); }
.player__cover::after { content: ""; position: absolute; inset: 41%; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--line-strong); opacity: 0; transition: opacity var(--t-base); }
.player.is-playing .player__cover img { animation: spin 7s linear infinite; box-shadow: 0 0 0 2px var(--amarillo), 0 0 28px color-mix(in oklab, var(--amarillo) 55%, transparent); }
.player.is-playing .player__cover::after { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.player__toggle { position: relative; display: grid; place-items: center; flex: none; width: 58px; height: 58px; color: var(--accent-ink); background: var(--accent); border-radius: 50%; box-shadow: var(--glow-amarillo); transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base); }
.player__toggle:hover { transform: scale(1.08); }
.player__toggle:active { transform: scale(.94); }
.player__toggle svg { width: 26px; height: 26px; fill: currentColor; stroke: none; animation: icon-pop 360ms var(--ease-spring) both; }
.player__toggle svg.icon-loading { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; animation: spin 900ms linear infinite; }
@keyframes icon-pop { from { transform: scale(.4) rotate(-90deg); opacity: 0; } }
.player.is-playing .player__toggle::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--amarillo); animation: ping 2s var(--ease-out) infinite; }
.player__info { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.player__name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__freq { margin-left: .25rem; padding: .1rem .5rem; font-size: var(--fs-xs); color: var(--accent-ink); background: var(--accent); border-radius: var(--r-pill); }
.player__status { display: flex; align-items: center; gap: .6rem; min-width: 0; font-size: var(--fs-xs); color: var(--text-mute); }
.player-badge { display: inline-flex; align-items: center; gap: .4rem; flex: none; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); }
.player-badge__dot { background: var(--text-mute); } .player-badge__dot::after { animation: none; }
.player-badge.is-live { color: var(--rojo-lux); } .player-badge.is-live .player-badge__dot { background: var(--rojo); } .player-badge.is-live .player-badge__dot::after { animation: ping 1.6s var(--ease-out) infinite; }
.player-badge.is-loading { color: var(--amarillo); } .player-badge.is-loading .player-badge__dot { background: var(--amarillo); }
.player-badge.is-loading .player-badge__dot::after { animation: ping 900ms var(--ease-out) infinite; }
.player-badge.is-error { color: var(--rojo-lux); } .player-badge.is-error .player-badge__dot { background: var(--rojo); }
:root[data-theme="light"] .player-badge.is-live, :root[data-theme="light"] .player-badge.is-error { color: var(--rojo-dark); }
:root[data-theme="light"] .player-badge.is-loading { color: var(--amarillo-dark); }
.player__now { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .spectrum { flex: none; }
.player__volume { display: flex; align-items: center; gap: .4rem; flex: none; }
.player__mute { display: grid; place-items: center; width: 38px; height: 38px; color: var(--text-soft); border-radius: 50%; transition: background-color var(--t-fast), color var(--t-fast); }
.player__mute:hover { color: var(--text); background: color-mix(in oklab, var(--text) 10%, transparent); }
.player__mute svg { width: 20px; height: 20px; }
.player__range { width: 96px; height: 24px; -webkit-appearance: none; appearance: none; cursor: pointer; --pct: 100%; }
.player__range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--amarillo) var(--pct), var(--line-strong) var(--pct)); }
.player__range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line-strong); }
.player__range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--amarillo); }
.player__range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; border: 3px solid var(--amarillo); box-shadow: var(--shadow-sm); }
.player__range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--amarillo); }
.player__expand, .player__close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: var(--text-mute); border-radius: 50%; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-base) var(--ease-out); }
.player__expand { display: none; }
.player__expand:hover, .player__close:hover { color: var(--text); background: color-mix(in oklab, var(--text) 10%, transparent); }
.player__expand svg, .player__close svg { width: 18px; height: 18px; }
.player.is-expanded .player__expand { transform: rotate(180deg); }
.player__nosignal, .player__retry { display: none; align-items: center; flex: none; padding: .35rem .85rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--r-pill); }
.player__nosignal { color: var(--text-soft); background: var(--surface-3); }
.player__retry { color: #fff; background: var(--rojo); box-shadow: var(--glow-rojo); }
.player__retry:hover { background: var(--rojo-dark); }
.player__alert { position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 0; max-width: 92%; padding: .45rem 1rem; font-size: var(--fs-sm); font-weight: 600; text-align: center; color: var(--text); background: var(--glass-strong); border: 1px solid var(--line-strong); border-radius: var(--r-pill); box-shadow: var(--shadow-md); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: icon-pop 400ms var(--ease-spring) both; }

@media (max-width: 800px) {
  .player__inner { gap: .6rem; padding: .45rem .55rem .45rem .45rem; border-radius: 34px; flex-wrap: wrap; }
  .player__cover, .player__toggle { width: 52px; height: 52px; }
  .player .spectrum, .player__volume { display: none; }
  .player__expand { display: grid; }
  .player.is-expanded .player__inner { border-radius: var(--r-lg); }
  .player.is-expanded .player .spectrum { display: inline-flex; }
  .player.is-expanded .spectrum { display: inline-flex; margin-left: .3rem; }
  .player.is-expanded .player__volume { display: flex; flex: 1 1 100%; justify-content: center; padding: .25rem 0 .35rem; order: 9; }
  .player.is-expanded .player__range { width: min(100%, 320px); }
  .player__now { display: none; }
  .player.is-expanded .player__now { display: block; }
}
@media (max-width: 420px) { .player__cover { display: none; } .player__freq { display: none; } }
.player-spacer + .whatsapp-float, .whatsapp-float {
  position: fixed; right: clamp(.75rem, 2vw, 1.5rem); bottom: calc(var(--player-h) + 1.75rem); z-index: 80;
  display: inline-flex; align-items: center; gap: .55rem; padding: .75rem; color: #fff; font-weight: 700; font-size: var(--fs-sm);
  background: #1f8f3a; border-radius: var(--r-pill); box-shadow: 0 12px 30px -8px rgba(31, 143, 58, .75);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-slow) var(--ease-spring), padding var(--t-base);
}
.whatsapp-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width var(--t-slow) var(--ease-out); }
.whatsapp-float:hover { padding-right: 1.1rem; }
.whatsapp-float:hover span { max-width: 120px; }
@media (max-width: 800px) { .whatsapp-float { bottom: calc(var(--player-h) + 1.25rem); } }

/* --- 14. EFECTOS AUXILIARES (cursor, magnético, revelado completado) ---------------------- */
.js-anim .reveal.is-done { transition-delay: 0s; transition-property: transform, box-shadow, border-color, background-color, color, opacity; transition-duration: var(--t-slow); filter: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--amarillo); pointer-events: none; mix-blend-mode: difference; transition: width var(--t-base) var(--ease-out), height var(--t-base) var(--ease-out), margin var(--t-base) var(--ease-out), opacity var(--t-base); will-change: transform; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: .85; }
.cursor.is-hidden { opacity: 0; }
@media (pointer: coarse), (hover: none) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; } html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; } }

/* --- Ajustes móviles del header ------------------------------------------------------------ */
@media (max-width: 560px) {
  .header-inner { gap: .5rem; padding-inline: .6rem; }
  .live-chip { display: none; }
  .brand__name { font-size: 1.05rem; }
  .header-actions { gap: .4rem; }
}
