/* =====================================================================
   WIP Radio · Hoja de estilos · Diseño final "Negro sobrio" (v2)
   ---------------------------------------------------------------------
   Idea: fondo claro y cálido; el negro se usa solo donde da elegancia
   (tarjeta "Ahora suena", fecha del especial, chat, pie de página) y el
   dorado como acento, igual que la palabra "Radio" del logo.
   Letras: Yeseva One solo para títulos (clase .t) y Libre Franklin
   para todo lo demás (lectura cómoda).

   Índice:
     1. Colores y medidas (variables)
     2. Base y utilidades
     3. Botones
     4. Encabezado
     5. Portada y "Ahora suena" (con ecualizador)
     6. Publicidad
     7. Especial / evento
     8. Noticias
     9. Columna lateral y formularios
    10. Páginas internas (artículo, quiénes somos, chat, cuenta, ingreso)
    11. Pie de página
    12. Reproductor fijo y chat
    13. Ventana de ingreso / registro
    14. Celular y tableta
   ===================================================================== */

/* ---------- 1. Colores y medidas ---------- */
:root {
    --bg: #FAF8F4;        /* fondo general, blanco cálido */
    --bg2: #F1ECE3;       /* fondo secundario */
    --card: #FFFFFF;
    --ink: #1A1918;       /* negro suave (no puro) */
    --muted: #66605A;     /* texto secundario */
    --line: #E6E0D6;      /* bordes suaves */
    --soft: #B9AFA2;      /* borde del buscador: marca sin saturar */
    --gold: #C9A24A;      /* dorado de acento */
    --golddk: #8A6A22;    /* dorado oscuro: texto legible sobre fondo claro */
    --wine: #7A2232;      /* vino: botón "Recordármelo" */
    --band: #F4EBD3;      /* franja del especial */
    --bandline: #E2CF9B;
    --ok: #2E7D4F;
    --danger: #A3352C;

    --f-title: 'Yeseva One', Georgia, 'Times New Roman', serif;
    --f-body: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --wrap: 1240px;
    --gutter: clamp(16px, 3vw, 32px);
    --radius: 20px;
    --radius-sm: 12px;
    --player-h: 88px;
    color-scheme: light;
}

/* ---------- 2. Base y utilidades ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    /* deja espacio para que el reproductor fijo no tape el pie de página */
    padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px) + 16px);
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: #561622; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; font-weight: 400; }
p { margin: 0 0 1em; }

.t { font-family: var(--f-title); font-weight: 400; font-synthesis: none; letter-spacing: .01em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.selectable { user-select: all; }
.icon, .ico { width: 18px; height: 18px; flex: none; fill: currentColor; }
.ey { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--golddk); margin: 0 0 .5rem; display: inline-block; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--golddk); margin: 0 0 .5rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip-link:focus { left: 8px; }
.flash { margin: 18px 0 0; padding: 12px 18px; border-radius: var(--radius-sm); background: #EAF4EC; border: 1px solid #BFDCC7; color: #1E4A2E; }
.flash-warn { background: #FBF1DC; border-color: #EBD3A0; color: #5C4513; }
.flash-error { background: #F9E6E3; border-color: #E8B9B2; color: #6E1F17; }

/* ---------- 3. Botones (todos con puntas redondeadas) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 999px;
    font: 600 15px var(--f-body); white-space: nowrap; text-decoration: none; cursor: pointer;
    border: 2px solid var(--ink); background: transparent; color: var(--ink);
    transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--bg2); color: var(--ink); }
.btn-acc, .btn-silver { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-acc:hover, .btn-silver:hover { background: #000; color: #fff; }
.btn-ghost { border-color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D8B35E; }
.btn-danger { color: var(--danger); border-color: #DDB3AD; }
.btn-danger:hover { background: #F9E6E3; color: var(--danger); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .4; pointer-events: none; }
.iconbtn {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink);
    background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none;
}
.iconbtn:hover { background: var(--bg2); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow:hover { color: var(--wine); }
.link-back { display: inline-block; margin-bottom: 1rem; color: var(--muted); text-decoration: none; }

/* ---------- 4. Encabezado ---------- */
.hdr {
    position: sticky; top: 0; z-index: 45;
    background: rgba(250, 248, 244, .96);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1.5px solid var(--line);
}
.hdr .wrap { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 56px; height: 56px; }
.brand-t { display: flex; flex-direction: column; gap: 4px; }
.brand-t > a { text-decoration: none; color: var(--ink); font-size: 28px; line-height: 1; }
.brand-t > a span, .h1 span { color: var(--golddk); }
.soc { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.soc a {
    width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
    background: var(--card); border: 1.5px solid var(--line); color: var(--ink);
}
.soc a:hover { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.soc svg { width: 13px; height: 13px; }
.hdr-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--bg2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--gold); }
.sep { width: 1px; height: 28px; background: var(--line); }
.acts { display: flex; gap: 8px; align-items: center; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, 86vw);
    background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(26, 25, 24, .16); padding: 8px; z-index: 50;
}
.mobile-nav-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav-panel a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; }
.mobile-nav-panel a[aria-current="page"] { background: var(--ink); color: var(--gold); }

/* ---------- 5. Portada y "Ahora suena" ---------- */
.hero { padding: 52px 0 44px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.h1 { font-family: var(--f-title); font-size: clamp(64px, 9vw, 124px); line-height: .95; margin: 10px 0 8px; color: var(--ink); }
.slogan { font-size: 22px; font-style: italic; font-weight: 500; color: var(--golddk); margin: 0 0 16px; letter-spacing: .02em; }
.lead { font-size: 18px; max-width: 31em; margin: 0 0 22px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 14px; font-size: 14px; font-weight: 600; }

.np {
    background: var(--ink); color: #EFE9DF; border: 2px solid var(--ink);
    border-radius: 22px; padding: 24px; box-shadow: 8px 8px 0 var(--golddk);
}
.np-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #9A938A; flex: none; }
[data-state="live"] .dot, [data-state="playing"] .dot { background: #D9564F; box-shadow: 0 0 0 4px rgba(217, 86, 79, .2); }
[data-state="loading"] .dot { background: var(--gold); }

/* Ecualizador: 7 barras doradas que suben y bajan a ritmos distintos */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i {
    display: block; width: 4px; height: 100%; border-radius: 2px;
    background: linear-gradient(180deg, #E7C978, #C9A24A 55%, #8A6A22);
    transform-origin: bottom; animation: eq 1.1s ease-in-out infinite;
}
/* duraciones y desfases distintos para que no se muevan todas igual */
.eq i:nth-child(1) { animation-duration: .9s;  animation-delay: -.2s; }
.eq i:nth-child(2) { animation-duration: 1.2s; animation-delay: -.5s; }
.eq i:nth-child(3) { animation-duration: .8s;  animation-delay: -.1s; }
.eq i:nth-child(4) { animation-duration: 1.05s; animation-delay: -.7s; }
.eq i:nth-child(5) { animation-duration: .95s; animation-delay: -.35s; }
.eq i:nth-child(6) { animation-duration: 1.25s; animation-delay: -.6s; }
.eq i:nth-child(7) { animation-duration: .85s; animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 25% { transform: scaleY(.9); } 50% { transform: scaleY(.45); } 75% { transform: scaleY(1); } }
/* fuera del aire, el ecualizador baja el ritmo */
.np[data-state="offline"] .eq i { animation-duration: 2.6s; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; transform: scaleY(.6); } }

.np-body { display: flex; gap: 20px; align-items: center; }
.cover {
    width: 176px; height: 176px; border-radius: 16px; flex: none; object-fit: cover;
    background: #2B2724; box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
.np-title { font-family: var(--f-title); font-size: 36px; line-height: 1.05; margin: 0 0 4px; color: #FAF6EE; overflow-wrap: anywhere; }
.np-artist { font-size: 19px; font-weight: 600; margin: 0; color: var(--gold); }
.np-album { color: #BDB4A6; margin: 4px 0 14px; font-size: 14.5px; min-height: 1.4em; }
/* botones "Me gusta" y "Pedir otra": dorado transparente, resaltan sin romper la armonía */
.btn-soft { background: rgba(201, 162, 74, .16); border: 1.5px solid rgba(201, 162, 74, .55); color: #F3E3B8; }
.btn-soft:hover { background: rgba(201, 162, 74, .28); color: #FFF3D1; }
.btn-soft[aria-pressed="true"] { background: rgba(201, 162, 74, .36); color: #FFF3D1; }
.btn-soft[aria-pressed="true"] svg { fill: currentColor; }
.recent { margin-top: 18px; border-top: 1.5px dashed rgba(201, 162, 74, .4); padding-top: 12px; }
.recent ol { list-style: none; margin: 6px 0 0; padding: 0; }
.recent li { display: flex; gap: 12px; padding: 6px 0; font-size: 14.5px; border-bottom: 1px solid rgba(239, 233, 223, .1); }
.recent li:last-child { border-bottom: 0; }
.recent time { color: #8F877B; font-variant-numeric: tabular-nums; min-width: 74px; }
.recent b { font-weight: 600; color: #FAF6EE; }

/* ---------- 6. Publicidad ---------- */
.ad {
    border: 1.5px dashed #BEB3A2; border-radius: 16px; display: grid; place-items: center;
    text-align: center; color: #857C70; font-size: 14px; overflow: hidden;
    background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(0, 0, 0, .025) 12px 24px);
}
.ad b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.ad a { color: inherit; }
.ad-lb { height: 110px; margin: 8px auto 40px; max-width: 970px; }
.ad-sq { height: 250px; }
.ad.has-banner { border: 0; background: none; display: block; position: relative; }
.ad.has-banner img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.ad.has-adsense { border: 0; background: none; display: block; position: relative; height: auto; min-height: 90px; text-align: center; }
.ad.has-adsense .ad-label { z-index: 1; }
.ad-label { position: absolute; right: 8px; top: 8px; background: rgba(255, 255, 255, .85); color: #66605A; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }

/* ---------- 7. Especial / evento ---------- */
.event {
    background: var(--band); border: 2px solid var(--bandline); border-radius: 26px;
    padding: 26px 32px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
    position: relative; overflow: hidden; margin-bottom: 8px;
}
.coin {
    width: 108px; height: 108px; border-radius: 50%; background: var(--ink); color: var(--gold);
    display: grid; place-items: center; text-align: center; line-height: 1.05; flex: none;
    box-shadow: inset 0 0 0 5px rgba(201, 162, 74, .45);
}
.coin b { font-family: var(--f-title); font-weight: 400; font-size: 42px; display: block; }
.coin span { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: #EFE9DF; }
.event-body { flex: 1; min-width: 260px; }
.event h3 { font-size: 32px; line-height: 1.1; margin: 4px 0 6px; }
.event p { margin: 0; color: var(--muted); }
/* anillos circulares alrededor del botón (inspirados en la opción 1) */
.cta { position: relative; padding: 22px; display: grid; place-items: center; }
.cta::before, .cta::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.cta::before { width: 210px; height: 210px; border: 26px solid rgba(255, 255, 255, .55); }
.cta::after { width: 290px; height: 290px; border: 2px solid rgba(26, 25, 24, .18); }
.btn-cta { position: relative; z-index: 1; background: var(--wine); border-color: var(--wine); color: #FFF8F0; }
.btn-cta:hover { background: #5E1826; color: #fff; }

/* ---------- 8. Noticias ---------- */
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-block: 48px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2, .section-title { font-family: var(--f-title); font-size: 50px; line-height: 1; margin: 0; }
.search {
    display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--soft); border-radius: 999px;
    padding: 0 6px 0 18px; background: var(--card); min-width: 340px; min-height: 50px; color: var(--muted);
}
.search:focus-within { border-color: var(--golddk); box-shadow: 0 0 0 3px rgba(201, 162, 74, .18); }
.search input { border: 0; background: transparent; font: inherit; flex: 1; min-width: 0; outline: none; color: var(--ink); padding: 0; min-height: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.filters a {
    display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { background: var(--card); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; border: 1.5px solid var(--line); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26, 25, 24, .08); }
.ph { aspect-ratio: 4 / 3; position: relative; margin: 10px 10px 0; border-radius: 16px; overflow: hidden; display: block; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-0 { background: linear-gradient(135deg, #2B2724, #151413); }
.ph-1 { background: radial-gradient(circle at 50% 50%, #C9A24A 0 10%, #151413 10% 12%, #2B2724 12% 40%, #151413 40%); }
.ph-2 { background: linear-gradient(135deg, #7A2232, #3E0F18); }
.ph-3 { background: linear-gradient(135deg, #EDE6DA, #C9BDA8); }
.ph-4 { background: repeating-linear-gradient(90deg, #151413 0 2px, #2B2724 2px 10px); }
.ph-5 { background: linear-gradient(135deg, #C9A24A, #7A5C1F); }
.ph .tag { position: absolute; left: 10px; top: 10px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.card-b { padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-b time { font-size: 13px; color: var(--muted); }
.card-b h3 { font-family: var(--f-title); font-size: 20px; line-height: 1.25; margin: 0; }
.card-b h3 a { color: var(--ink); text-decoration: none; }
.card-b h3 a:hover { color: var(--wine); }
.card-b p { margin: 0; font-size: 14.5px; color: var(--muted); }
.more { display: flex; justify-content: center; margin: 26px 0 8px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.empty-results { padding: 32px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ---------- 9. Columna lateral y formularios ---------- */
.side { display: flex; flex-direction: column; gap: 24px; }
.box { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box h3 { font-family: var(--f-title); font-size: 26px; margin: 2px 0 6px; }
.box p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.box label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.card-title { font-family: var(--f-title); font-size: 26px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-inline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
label { font-weight: 600; font-size: 14px; }
.req { color: var(--wine); }
.optional { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"],
input[type="number"], input[type="date"], input[type="datetime-local"], input[type="file"], select, textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
    border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--golddk); box-shadow: 0 0 0 3px rgba(201, 162, 74, .18); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #D9897F; }
input[disabled] { opacity: .6; }
textarea { resize: vertical; min-height: 90px; }
::placeholder { color: #9A938A; }
.help { margin: 0; font-size: 13px; color: var(--muted); }
.field-error { margin: 0; font-size: 13px; color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.consent { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.aside-note { padding: 4px 4px 4px 24px; border-left: 1.5px solid var(--line); min-width: 0; }
.aside-note h2 { font-family: var(--f-title); font-size: 24px; }
.steps, .rules { padding-left: 1.2em; color: var(--muted); }
.steps li, .rules li { margin-bottom: .5em; }

/* ---------- 10. Páginas internas ---------- */
.page-head { padding: clamp(36px, 5vw, 56px) 0 24px; }
.page-title { font-family: var(--f-title); font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 0 0 .25em; }
.page-lead { font-size: 18px; color: var(--muted); max-width: 40em; margin: 0; }
.section { padding: clamp(32px, 5vw, 56px) 0; }
.section-tight { padding-top: 8px; }
.article { padding: clamp(32px, 5vw, 56px) 0 8px; }
.article-title { font-family: var(--f-title); font-size: clamp(34px, 5vw, 52px); }
.article-lead { font-size: 20px; color: var(--muted); }
.article-figure { margin: 8px auto 28px; }
.article-figure img { width: 100%; border-radius: var(--radius); }
.article-credit { margin-top: 6px; font-size: 12.5px; color: var(--muted); text-align: right; }
.prose { font-size: 17px; }
.prose h2 { font-family: var(--f-title); font-size: 26px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.article-source { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.legal-highlight { padding: 16px 18px; border: 1.5px solid var(--bandline); border-radius: var(--radius-sm); background: var(--band); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.about-aside img { width: min(260px, 80%); margin: 0 auto 24px; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--golddk); }
.facts dd { margin: 2px 0 0; }
.chat-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.chat-box { padding: 0; overflow: hidden; min-height: 320px; }
.chat-box iframe { display: block; width: 100%; height: 560px; border: 0; background: #fff; }
.empty-state { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-icon { width: 40px; height: 40px; color: var(--soft); margin-bottom: 8px; }
.auth { display: grid; place-items: center; }
.auth-box { width: min(520px, 100%); }
.auth-logo { width: 64px; height: 64px; margin-bottom: 12px; }
.auth-title { font-family: var(--f-title); font-size: 32px; margin-bottom: .2em; }
.auth .form { margin-top: 18px; }
.auth-switch { margin: 20px 0 0; text-align: center; color: var(--muted); }
.logout-form { margin-top: 24px; }

/* ---------- 11. Pie de página ---------- */
.ftr { background: var(--ink); color: #BDB4A6; padding: 24px 0 18px; margin-top: 24px; }
.ftr-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ftr-brand { display: flex; align-items: center; gap: 12px; color: #FAF6EE; }
.ftr-brand img { width: 48px; height: 48px; }
.ftr-links { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0 0 0 auto; padding: 0; }
.ftr-links a { color: #EFE9DF; text-decoration: none; font-size: 14.5px; }
.ftr-links a:hover { color: var(--gold); }
.ftr .soc a { width: 36px; height: 36px; background: transparent; border-color: rgba(201, 162, 74, .5); color: var(--gold); }
.ftr .soc a:hover { background: var(--gold); color: var(--ink); }
.ftr .soc svg { width: 15px; height: 15px; }
.legal { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(201, 162, 74, .25); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.legal a { color: #EFE9DF; }

/* ---------- 12. Reproductor fijo y chat ---------- */
.player {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #FFFFFF; border-top: 3px solid var(--gold);
    box-shadow: 0 -8px 24px rgba(26, 25, 24, .10);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.player .wrap { display: flex; align-items: center; gap: 16px; min-height: var(--player-h); }
.player-logo { width: 66px; height: 58px; object-fit: contain; }
.pl-play {
    width: 58px; height: 58px; border-radius: 50%; border: 0; flex: none;
    background: var(--ink); color: var(--gold); display: grid; place-items: center; cursor: pointer; position: relative;
}
.pl-play svg { width: 22px; height: 22px; }
.pl-play .i-pause, .pl-play .spinner { display: none; }
.player[data-state="playing"] .pl-play .i-play { display: none; }
.player[data-state="playing"] .pl-play .i-pause { display: block; }
.player[data-state="loading"] .pl-play .i-play { display: none; }
.player[data-state="loading"] .pl-play .spinner { display: block; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(201, 162, 74, .3); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pl-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pl-meta b { font-family: var(--f-title); font-weight: 400; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-meta span.pl-artist { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .live { color: var(--golddk); }
.pl-vol { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pl-mute { background: none; border: 0; color: inherit; cursor: pointer; display: grid; place-items: center; padding: 6px; }
.pl-mute .i-muted { display: none; }
.pl-mute[aria-pressed="true"] .i-vol { display: none; }
.pl-mute[aria-pressed="true"] .i-muted { display: block; }
.pl-vol input { accent-color: var(--ink); width: 110px; min-height: 0; padding: 0; border: 0; }
.pl-legal { font-size: 11.5px; color: var(--muted); max-width: 170px; line-height: 1.3; margin: 0; }
.chat-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px;
    border: 2px solid var(--ink); background: var(--ink); color: #FAF6EE; font: 600 14px var(--f-body); cursor: pointer;
}
.chat-btn[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.badge { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.chat-btn[aria-expanded="true"] .badge { background: var(--ink); color: var(--gold); }
/* Enlace pequeño «Pide tu canción» a la derecha del botón de chat: discreto, para no competir con él */
.pl-req {
    display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 4px;
    color: var(--golddk); text-decoration: none; font-size: 12.5px; font-weight: 700; line-height: 1.1;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.pl-req .icon { width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--gold); fill: var(--golddk); flex: none; }
.pl-req:hover { color: var(--ink); }
.pl-req:hover .icon { background: var(--gold); fill: var(--ink); }

.chat {
    position: fixed; right: 24px; bottom: calc(var(--player-h) + 16px + env(safe-area-inset-bottom, 0px));
    width: 360px; z-index: 35; background: var(--card); border-radius: 24px; overflow: hidden;
    border: 2px solid var(--ink); box-shadow: 0 20px 50px rgba(26, 25, 24, .25);
    display: flex; flex-direction: column;
}
.chat-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; background: var(--ink); color: #FAF6EE; font-weight: 600; }
.chat-h button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: inherit; cursor: pointer; display: grid; place-items: center; }
.chat-frame { width: 100%; height: min(420px, 55vh); border: 0; display: block; background: #fff; }
.chat-empty { padding: 28px 22px; text-align: center; color: var(--muted); }
.chat-foot { padding: 8px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- 13. Ventana de ingreso / registro ---------- */
.ovl { position: fixed; inset: 0; background: rgba(26, 25, 24, .6); z-index: 60; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal {
    width: min(460px, 100%); background: var(--card); border: 2px solid var(--ink); border-radius: 24px;
    box-shadow: 10px 10px 0 var(--golddk); padding: 28px; position: relative; max-height: calc(100vh - 32px); overflow-y: auto;
}
.modal .x { position: absolute; right: 14px; top: 14px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 14px 0 18px; }
.tabs button { min-height: 42px; border: 0; background: transparent; font: 600 15px var(--f-body); cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--gold); }
html.modal-open { overflow: hidden; }

/* ---------- Complementos usados por formularios y tablas ---------- */
.actions, .form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.article-head { margin-bottom: 18px; }
.has-error input, .has-error textarea, .has-error select { border-color: #D9897F; }
.table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
/* Botón de la portada: muestra "Escuchar" o "Pausar" según el estado del reproductor (lo marca player.js en <html>) */
.when-playing { display: none; }
html[data-wip-state="playing"] .when-playing, html[data-wip-state="loading"] .when-playing { display: inline; }
html[data-wip-state="playing"] svg.when-playing, html[data-wip-state="loading"] svg.when-playing { display: block; }
html[data-wip-state="playing"] .when-stopped, html[data-wip-state="loading"] .when-stopped { display: none; }

/* ---------- 14. Celular y tableta ---------- */
@media (max-width: 1180px) {
    .nav, .sep { display: none; }
    .mobile-nav { display: block; }
}
@media (max-width: 1100px) {
    .hero .wrap { grid-template-columns: minmax(0, 1fr); }
    .main-grid, .form-layout, .chat-layout, .about-grid { grid-template-columns: minmax(0, 1fr); }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aside-note { border-left: 0; padding: 0; }
}
@media (max-width: 640px) {
    :root { --player-h: 76px; }
    .hdr .wrap { min-height: 72px; gap: 12px; }
    .brand img { width: 46px; height: 46px; }
    .brand-t > a { font-size: 23px; }
    .acts .btn-acc, .acts .search-btn { display: none; }
    .news-grid { grid-template-columns: minmax(0, 1fr); }
    .np-body { flex-direction: column; align-items: flex-start; }
    .cover { width: 140px; height: 140px; }
    .search { min-width: 0; width: 100%; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .sec-head h2, .section-title { font-size: 40px; }
    .event { padding: 22px; }
    .cta { padding: 12px 0; }
    .pl-vol, .pl-legal, .player-logo { display: none; }
    .player .wrap { gap: 12px; }
    .pl-play { width: 52px; height: 52px; }
    .chat-btn .tx, .pl-req .tx { display: none; }
    .pl-req { padding: 0; }
    .chat { left: 12px; right: 12px; width: auto; }
    .ftr-links { margin-left: 0; }
}
