/* =========================================================
   Radio IC 105.1 FM · hoja de estilos
   Sin dependencias ni compilación: se edita y se sube tal cual.
   ========================================================= */

/* ---------- Colores por tema ---------- */
:root,
[data-theme="dark"] {
    --bg: #120A0C;
    --bg-2: #1A0F12;
    --card: #1E1114;
    --fg: #F4ECE6;
    --fg-2: #D9CCC7;
    --muted: #B8A9A4;
    --line: #2E1A1F;
    --line-2: #3A2228;
    --accent: #E8445E;
    --amber: #FFB547;
    --btn: #C42847;
    --btn-hover: #A81F3A;
    --play-bg: #F4ECE6;
    --play-fg: #120A0C;
    --footer: #0D0708;
    --tick: #8C7A75;
    --tick-2: #4A3439;
    --header: rgba(18, 10, 12, 0.92);
    --placeholder: #2A161B;
    --shape: #E8445E;
    --shape-opacity: 0.09;
    --ok: #7BD88F;
    --error: #FF8A8A;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #FBF6F1;
    --bg-2: #F3EAE3;
    --card: #FFFFFF;
    --fg: #1E1013;
    --fg-2: #4A3A3D;
    --muted: #6E5C60;
    --line: #E7DAD3;
    --line-2: #DCC9C1;
    --accent: #A11D3A;
    --amber: #9A5400;
    --btn: #771227;
    --btn-hover: #5E0E1F;
    --play-bg: #1E1013;
    --play-fg: #FBF6F1;
    --footer: #F3EAE3;
    --tick: #8A7A76;
    --tick-2: #CDBCB5;
    --header: rgba(251, 246, 241, 0.92);
    --placeholder: #EADDD5;
    --shape: #771227;
    --shape-opacity: 0.07;
    --ok: #1F7A3A;
    --error: #B42318;
    color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--fg);
    background: var(--bg);
    overflow-x: hidden;
    transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

.display, .section-title, .page-hero__title, .hero__freq, .card__title, .card__big,
.brand__name, .now-card__song, .track__time {
    font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
}

.eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow--accent { color: var(--amber); }
.eyebrow--live { color: var(--amber); display: inline-flex; align-items: center; gap: 10px; }

.muted { color: var(--muted); }
.fine-print { font-size: 14px; color: var(--muted); margin: 0; }

.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--amber); display: inline-block;
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Siluetas de fondo ---------- */
.silueta {
    position: absolute;
    color: var(--shape);
    opacity: var(--shape-opacity);
    pointer-events: none;
    z-index: 0;
}
.flota { animation: flota 9s ease-in-out infinite alternate; }
@keyframes flota { from { translate: 0 0; } to { translate: 0 -14px; } }

.silueta--hero-a { right: -40px; top: 10px; width: 420px; height: 420px; rotate: 14deg; }
.silueta--hero-b { left: -60px; top: 360px; width: 220px; height: 380px; rotate: -18deg; }
.silueta--hero-c { left: 46%; top: 30px; width: 120px; height: 120px; }
.silueta--band { left: -30px; bottom: -40px; width: 300px; height: 300px; rotate: -10deg; }
.silueta--disco { right: 3%; top: 20px; width: 260px; height: 260px; }
.silueta--publica { right: -30px; top: 30px; width: 200px; height: 350px; rotate: 16deg; }
.silueta--hero { right: 2%; top: 10px; width: 260px; height: 260px; rotate: 10deg; }

/* ---------- Encabezado del sitio ---------- */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: var(--header);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.site-header__inner {
    display: flex; align-items: center; gap: 16px;
    min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand__badge {
    width: 44px; height: 44px; border-radius: 12px;
    background: #771227; color: #fff;
    display: grid; place-items: center;
    font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 20px;
}
.brand__logo { height: 48px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 24px; letter-spacing: .02em; }
.brand__sub { font-size: 13px; color: var(--muted); }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav__link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
    font-weight: 500; text-decoration: none; color: var(--fg); border-radius: 8px; cursor: pointer;
}
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__link:hover { color: var(--accent); }
.nav__group { position: relative; }
.nav__details > summary { list-style: none; gap: 6px; }
.nav__details > summary::-webkit-details-marker { display: none; }
.nav__details > summary::after {
    content: ''; width: 8px; height: 8px; margin-left: 4px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    rotate: 45deg; translate: 0 -2px; transition: rotate .2s;
}
.nav__details[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.nav__sub {
    list-style: none;
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 280px; padding: 8px;
    background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}
.nav__sub .nav__link { display: flex; width: 100%; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__actions { position: relative; }

/* Aviso de modo claro / oscuro (solo la primera visita) */
.tema-tip {
    position: absolute; top: calc(100% + 14px); right: 40px; z-index: 50;
    width: 300px; padding: 16px 18px;
    background: var(--card); color: var(--fg);
    border: 1px solid var(--amber); border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
    opacity: 0; translate: 0 -6px; transition: opacity .25s, translate .25s;
}
.tema-tip.is-visible { opacity: 1; translate: 0 0; }
.tema-tip::before {
    content: ''; position: absolute; top: -8px; right: var(--flecha, 96px);
    width: 14px; height: 14px; rotate: 45deg;
    background: var(--card); border-left: 1px solid var(--amber); border-top: 1px solid var(--amber);
}
.tema-tip p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.tema-tip__close {
    min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--btn); color: #fff; font-weight: 600;
}
.tema-tip__close:hover { background: var(--btn-hover); }

.nav-toggle {
    display: none; margin-left: auto;
    align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    background: transparent; color: var(--fg);
    border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
}

.icon-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: transparent; color: var(--fg);
    border: 1px solid var(--line-2); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun { display: none; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.btn--primary, .btn--live { background: var(--btn); color: #fff; }
.btn--primary:hover, .btn--live:hover { background: var(--btn-hover); color: #fff; }
.btn--live { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

.icon-pause { display: none; }
.is-playing .icon-play { display: none; }
.is-playing .icon-pause { display: inline; }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 32px; }
.hero__grid {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.hero__copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__freq {
    font-weight: 900; font-size: clamp(96px, 16vw, 200px); line-height: .85; letter-spacing: -.01em;
}
.hero__freq span { font-size: .35em; color: var(--accent); margin-left: 12px; }
.hero__lead { font-size: 22px; line-height: 1.45; color: var(--fg-2); max-width: 30em; margin: 0; }

.now-card {
    flex: 1 1 420px; min-width: 0;
    background: var(--card); border: 1px solid var(--line-2); border-radius: 24px;
    padding: 28px; display: flex; flex-direction: column; gap: 22px;
}
.now-card__top { display: flex; justify-content: space-between; gap: 12px; }
.now-card__since { font-size: 13px; color: var(--muted); }
.now-card__track { display: flex; gap: 16px; align-items: center; }
.cover {
    border-radius: 10px; flex-shrink: 0; overflow: hidden;
    background: var(--placeholder); color: var(--muted); display: grid; place-items: center;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover__disc { width: 50%; height: 50%; }
.now-card__cover { width: 88px; height: 88px; border-radius: 12px; }
.is-playing .now-card__cover .cover__disc { animation: gira 4s linear infinite; }
.now-card__link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.now-card__link::after { content: ' ↗'; }
@keyframes gira { to { rotate: 360deg; } }
.now-card__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.now-card__song { font-weight: 800; font-size: 36px; line-height: 1; overflow-wrap: anywhere; }
.now-card__artist { color: var(--fg-2); }
.now-card__controls { display: flex; align-items: center; gap: 16px; }
.now-card__controls > div { display: flex; flex-direction: column; gap: 4px; }
.now-card__status { font-weight: 600; font-size: 17px; }
.now-card__hint { font-size: 14px; color: var(--muted); }

.play-big {
    width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; border: 0;
    background: var(--play-bg); color: var(--play-fg);
    display: grid; place-items: center; cursor: pointer;
    transition: transform .15s;
}
.play-big:hover { transform: scale(1.05); }
.play-big svg { width: 26px; height: 26px; }

/* Ecualizador */
.eq { display: flex; align-items: flex-end; gap: 5px; height: 72px; }
.eq span {
    display: block; flex: 1 1 0; max-width: 8px; border-radius: 2px;
    background: var(--accent); height: 30%; transform-origin: bottom;
}
.eq span:nth-child(3n) { background: var(--amber); height: 80%; }
.eq span:nth-child(2n) { height: 55%; }
.eq span:nth-child(5n) { height: 40%; }
.eq span:nth-child(7n) { height: 95%; }
.is-playing .eq span { animation: rebota 1.1s ease-in-out infinite alternate; }
.is-playing .eq span:nth-child(2n) { animation-duration: .8s; }
.is-playing .eq span:nth-child(3n) { animation-duration: 1.4s; }
.is-playing .eq span:nth-child(5n) { animation-duration: .6s; }
@keyframes rebota { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
/* Cuando el ecualizador sigue el audio real, JavaScript controla cada barra. */
.viz-real .eq span { height: 100%; animation: none; transition: transform .05s linear; }

/* Dial de FM */
.dial {
    position: relative; z-index: 1; margin-top: 56px;
    border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
    padding: 18px 0 10px; overflow: hidden;
}
.dial__ticks {
    height: 36px;
    background:
        repeating-linear-gradient(to right, var(--tick) 0 2px, transparent 2px 10%) bottom left / 100% 32px no-repeat,
        repeating-linear-gradient(to right, var(--tick-2) 0 1px, transparent 1px 2.5%) bottom left / 100% 16px no-repeat;
}
.dial__labels {
    display: flex; justify-content: space-between; padding-top: 6px;
    font-family: 'Big Shoulders Display', sans-serif; font-weight: 500; font-size: 18px; color: var(--tick);
}
.dial__needle { position: absolute; left: 85.5%; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.dial__needle span {
    position: absolute; left: 10px; top: 12px;
    font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 20px; color: var(--accent);
}

/* ---------- Secciones ---------- */
.section { position: relative; overflow: hidden; padding: 72px 0; }
.section > .wrap { position: relative; z-index: 1; }
.section--alt, .band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band { position: relative; overflow: hidden; padding: 72px 0; }
.band > .wrap { position: relative; z-index: 1; }

.section-title { font-weight: 800; font-size: clamp(40px, 6vw, 56px); margin-bottom: 16px; }
.section-title--md { font-size: clamp(34px, 5vw, 48px); }
.section-lead { font-size: 18px; color: var(--fg-2); max-width: 40em; }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split--top { align-items: flex-start; }
.split__main { flex: 3 1 520px; min-width: 0; }
.split__side { flex: 2 1 340px; min-width: 0; }

.stack { display: flex; flex-direction: column; gap: 28px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-2--wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }

/* ---------- Tarjetas ---------- */
.card {
    position: relative;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--card); border: 1px solid var(--line-2); border-radius: 22px;
    padding: 26px; color: var(--fg); text-decoration: none;
}
.card p { margin: 0; }
.card--link { transition: border-color .2s, transform .2s; }
.card--link:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-2px); }
.card--tilt { rotate: -1deg; align-self: flex-start; }
.card--accent { background: var(--btn); border-color: var(--btn); color: #fff; }
.card--accent:hover { color: #fff; border-color: var(--amber); }
.card--accent .card__big { color: #fff; }
.card--logo img { height: 90px; width: auto; object-fit: contain; align-self: flex-start; }
[data-theme="dark"] .card--logo img { background: #fff; border-radius: 12px; padding: 8px; }
.card--statement { padding: 36px; }
.card__title { font-weight: 800; font-size: 40px; }
.card__subtitle { font-size: 19px; font-weight: 600; margin: 0; line-height: 1.3; }
.card__big { font-weight: 900; font-size: 44px; line-height: 1; color: var(--accent); }
.statement { font-size: 22px; line-height: 1.5; }

/* ---------- Lo que sonó ---------- */
.tracks { list-style: none; border-top: 1px solid var(--line); margin-top: 8px; }
.tracks > li { border-bottom: 1px solid var(--line); }
.track { display: flex; align-items: center; gap: 18px; padding: 12px 8px; margin: 0 -8px; border-radius: 12px; color: var(--fg); text-decoration: none; }
.track--link { transition: background-color .15s; }
.track--link:hover { background: var(--card); color: var(--fg); }
.track--link:hover .track__song { color: var(--accent); }
.track__time { width: 64px; flex-shrink: 0; font-weight: 800; font-size: 22px; color: var(--muted); }
.track__cover { width: 52px; height: 52px; border-radius: 8px; transition: transform .2s; }
.track--link:hover .track__cover { transform: scale(1.08); }
.track__go { margin-left: auto; color: var(--muted); flex-shrink: 0; }
.track--link:hover .track__go { color: var(--accent); }
.track-empty { padding: 14px 0; color: var(--muted); }
.credits { margin-top: 12px; }
.track__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.track__song { font-weight: 600; overflow-wrap: anywhere; }
.track__artist { font-size: 14px; color: var(--muted); }

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
    width: 100%; min-height: 46px; padding: 10px 14px;
    border-radius: 10px; border: 1px solid var(--line-2);
    background: var(--bg); color: var(--fg); font: 400 16px 'Instrument Sans', sans-serif;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status__ok { color: var(--ok); font-weight: 600; margin: 0; }
.form-status__errors { color: var(--error); padding-left: 20px; font-size: 15px; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.page-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.page-hero__title { font-weight: 900; font-size: clamp(48px, 8vw, 96px); line-height: .95; max-width: 14em; }
.page-hero__lead { font-size: 19px; line-height: 1.6; color: var(--fg-2); max-width: 46em; }

.banner { width: 100%; border-radius: 20px; object-fit: cover; aspect-ratio: 1600 / 416; }

.prose-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.prose { flex: 3 1 520px; min-width: 0; font-size: 18px; line-height: 1.75; color: var(--fg-2); }
.timeline { flex: 1 1 280px; display: flex; flex-direction: column; gap: 24px; }
.timeline__list { list-style: none; border-left: 2px solid var(--accent); padding-left: 18px; display: flex; flex-direction: column; gap: 14px; }
.timeline__list strong {
    display: block; font-family: 'Big Shoulders Display', sans-serif; font-size: 26px; color: var(--accent);
}

.polaroid {
    margin: 0; background: var(--card); border: 1px solid var(--line-2);
    padding: 12px 12px 16px; rotate: -2deg; box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}
.polaroid figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Personas ---------- */
.people {
    list-style: none; display: grid; gap: 28px; margin-top: 24px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.person { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.person__photo {
    width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover;
    border-radius: 50%; border: 3px solid var(--line-2); margin-bottom: 10px;
}
.person__name { font-size: 19px; font-weight: 600; line-height: 1.3; }
.person__role { margin: 0; color: var(--amber); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.person p { margin: 0; }
.person--featured {
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px;
    background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px;
}
.person--featured .person__photo { width: 140px; margin: 0; }
.person--featured > div { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; }

.link-arrow { font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow::after { content: ' →'; }
.link-arrow--back::after { content: ''; }
.link-arrow--back::before { content: '← '; }
.back { margin-top: 32px; }

/* ---------- Documentos ---------- */
.doc-group__title { font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc {
    display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 16px;
    background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
    text-decoration: none; color: var(--fg);
}
.doc:hover { border-color: var(--accent); color: var(--fg); }
.doc__icon { flex-shrink: 0; color: var(--accent); }
.doc__text { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.doc__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; font-size: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex-shrink: 0; color: var(--accent); margin-top: 3px; }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--footer); padding: 56px 0 120px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; color: var(--muted); font-size: 15px; }
.site-footer__brand img { width: 200px; height: auto; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.footer-list a { text-decoration: none; }
.site-footer__legal {
    grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; color: var(--muted);
}
.site-footer__legal img { height: 48px; width: auto; flex: none; }
[data-theme="dark"] .logo-tema--claro,
[data-theme="light"] .logo-tema--oscuro { display: none; }

/* ---------- Reproductor fijo ---------- */
.player {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #771227; color: #fff; border-top: 1px solid #9A2A40;
}
.player__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.player__btn {
    width: 48px; height: 48px; border-radius: 50%; border: 0; flex-shrink: 0;
    background: #F4ECE6; color: #771227; display: grid; place-items: center; cursor: pointer;
}
.player__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.player__song { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta { font-size: 13px; color: #F1D9DE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__volume { display: flex; align-items: center; gap: 8px; color: #F1D9DE; }
.player__volume input { width: 110px; accent-color: #FFB547; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; }
.live-badge .dot { background: #FFB547; }
.player .player__btn:focus-visible { outline-color: #FFB547; }

/* Cuando la página se cambia sin recargar */
#contenido { outline: none; }
.cargando #contenido { opacity: .5; transition: opacity .15s; }

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 1080px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
        margin: 0;
    }
    .nav.is-open { display: block; }
    .nav__list { flex-direction: column; align-items: stretch; }
    .nav__sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; min-width: 0; }
    .site-header__actions { margin-left: 0; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .site-header__inner { gap: 8px; }
    .brand__sub { display: none; }
    .btn--live span { display: none; }
    .btn--live { width: 44px; padding: 0; }
    .nav-toggle span { display: none; }
    .nav-toggle { width: 44px; padding: 0; justify-content: center; }
    .hero { padding-top: 40px; }
    .now-card { padding: 20px; }
    .now-card__song { font-size: 28px; }
    .player__volume, .live-badge { display: none; }
    .tema-tip { position: fixed; top: 76px; left: 16px; right: 16px; width: auto; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__legal { flex-direction: column; align-items: flex-start; }
    .card--tilt, .polaroid { rotate: 0deg; }
    .silueta--hero-a { width: 260px; height: 260px; right: -80px; }
    .silueta--hero-b, .silueta--hero-c { display: none; }
    .track { gap: 12px; }
    .track__cover { width: 44px; height: 44px; }
    .track__time { width: 48px; font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
