/* ============================================================
   CIUDAD URBANA RADIO — diario.css
   Sección de noticias con formato de diario nacional.
   Papel claro + titulares serif, con los colores de la radio
   (Vino Profundo #3D0A1E · Hot Pink #E91E63) como acento.
   Archivo independiente: no afecta al resto del sitio.
   ============================================================ */

:root {
    --papel:      #FBF8F5;
    --papel-2:    #F3EDE8;
    --tinta:      #1B1215;
    --tinta-2:    #4A3F43;
    --tinta-3:    #7C7075;
    --regla:      #D9CFCB;
    --vino:       #3D0A1E;
    --vino-2:     #26050F;
    --rosa:       #E91E63;
    --rosa-claro: #FFC0D9;

    --serif-tit: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --serif:     'Source Serif 4', Georgia, serif;
    --sans:      'Montserrat', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--papel);
    color: var(--tinta);
    font-family: var(--serif);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== BARRA EN VIVO ===== */
.vivo-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--vino-2), var(--vino) 60%, #5a0f2c);
    color: #FFE9F1;
    font-family: var(--sans);
    font-size: 0.82rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.vivo-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
}

.vivo-play {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 0;
    background: var(--rosa);
    color: #fff;
    cursor: pointer;
    font-size: .8rem;
    display: grid;
    place-items: center;
    transition: transform .2s, box-shadow .2s;
}
.vivo-play:hover { transform: scale(1.08); box-shadow: 0 0 14px rgba(233, 30, 99, .7); }
.vivo-play .fa-play { margin-left: 2px; }

.vivo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    letter-spacing: .08em;
    font-size: .7rem;
    padding: 3px 8px;
    border: 1px solid rgba(255, 192, 217, .45);
    border-radius: 3px;
}

.vivo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3b6b;
    display: inline-block;
    animation: latido 1.4s infinite;
}
@keyframes latido {
    0%   { box-shadow: 0 0 0 0 rgba(255, 59, 107, .7); }
    70%  { box-shadow: 0 0 0 7px rgba(255, 59, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 107, 0); }
}

.vivo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vivo-sep { margin: 0 6px; opacity: .5; }
.vivo-sub { color: var(--rosa-claro); }

/* ecualizador: se mueve solo cuando suena */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 4px; background: var(--rosa-claro); border-radius: 1px; }
.sonando .eq i { animation: eq .9s ease-in-out infinite; }
.sonando .eq i:nth-child(2) { animation-delay: .2s; }
.sonando .eq i:nth-child(3) { animation-delay: .4s; }
.sonando .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.vivo-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--rosa-claro);
    white-space: nowrap;
}
.vivo-link:hover { color: #fff; }

/* ===== REPRODUCTOR FLOTANTE (vivo de YouTube) ===== */
.vivo-dock {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    width: min(400px, calc(100vw - 32px));
    background: var(--vino-2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 192, 217, .25);
    animation: aparecer .3s ease both;
}
.dock-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 8px 8px 12px;
    color: #FFE9F1;
    font-family: var(--sans);
    font-size: .8rem;
}
.dock-head .vivo-badge { margin-right: auto; }
.dock-btn {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 192, 217, .12);
    color: #FFE9F1;
    cursor: pointer;
    font-size: .9rem;
}
.dock-btn:hover { background: var(--rosa); color: #fff; }
.dock-video { aspect-ratio: 16 / 9; background: #000; }
/* minimizado: el tamaño más chico que permite YouTube (200 x 200) */
.vivo-dock.minimizado { width: 202px; } /* 200 + borde */
.vivo-dock.minimizado .dock-video { aspect-ratio: auto; height: 200px; }
.vivo-dock.minimizado .dock-head { padding: 6px; gap: 4px; }
.vivo-dock.minimizado .dock-head .vivo-badge { font-size: .6rem; padding: 2px 6px; }
.vivo-dock.minimizado .dock-btn { width: 28px; height: 28px; font-size: .8rem; }
.dock-video iframe, .dock-video > div { width: 100%; height: 100%; display: block; border: 0; }
.vivo-aviso {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    z-index: 61;
    max-width: calc(100vw - 32px);
    background: var(--tinta);
    color: #fff;
    font-family: var(--sans);
    font-size: .85rem;
    padding: 12px 18px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.vivo-aviso.visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== CABECERA TIPO DIARIO ===== */
.masthead { background: var(--papel); }

.masthead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0 10px;
    font-family: var(--sans);
    font-size: .74rem;
    color: var(--tinta-2);
    border-bottom: 1px solid var(--regla);
}
.mt-fecha { font-weight: 600; }
.mt-lugar { text-transform: uppercase; letter-spacing: .12em; }
.mt-redes { display: flex; gap: 12px; font-size: .95rem; }
.mt-redes a:hover { color: var(--rosa); }

.masthead-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 22px 0 6px;
}
/* El logo es blanco con letras caladas: se pinta con el color vino
   para que se lea sobre el papel claro (las letras dejan ver el papel). */
.mh-logo {
    display: block;
    height: 118px;
    aspect-ratio: 246 / 126;
    background: var(--vino);
    -webkit-mask: url("../images/logo2.PNG") center / contain no-repeat;
            mask: url("../images/logo2.PNG") center / contain no-repeat;
    transition: background .25s;
}
.masthead-brand:hover .mh-logo { background: var(--rosa); }

.masthead-sub {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0 16px;
    font-family: var(--sans);
    font-size: .72rem;
    letter-spacing: .32em;
    color: var(--tinta-2);
}
.masthead-sub::before,
.masthead-sub::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--tinta);
}
.masthead-sub strong { color: var(--rosa); }

.secciones {
    border-top: 3px double var(--tinta);
    border-bottom: 1px solid var(--tinta);
    background: var(--papel);
}
.secciones-inner {
    display: flex;
    justify-content: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.secciones a {
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 11px 14px;
    white-space: nowrap;
    color: var(--tinta-2);
    border-bottom: 3px solid transparent;
}
.secciones a:hover { color: var(--rosa); }
.secciones a.activa { color: var(--tinta); border-bottom-color: var(--rosa); }

/* ===== ÚLTIMO MOMENTO ===== */
.ticker {
    background: var(--papel-2);
    border-bottom: 1px solid var(--regla);
    font-family: var(--sans);
    font-size: .8rem;
}
.ticker-inner { display: flex; align-items: center; height: 38px; gap: 14px; }
.ticker-label {
    flex-shrink: 0;
    background: var(--rosa);
    color: #fff;
    font-weight: 800;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 2px;
}
.ticker-track {
    overflow: hidden;
    flex: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-move {
    display: inline-flex;
    gap: 40px;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: var(--tinta); font-weight: 500; }
.ticker-move a b { color: var(--rosa); margin-right: 4px; }
.ticker-move a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== LAYOUT ===== */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    padding-top: 28px;
    padding-bottom: 50px;
}
.contenido { min-width: 0; }

/* ===== BLOQUE POR DÍA ===== */
.dia { margin-bottom: 44px; scroll-margin-top: 60px; animation: aparecer .5s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dia-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    border-top: 4px solid var(--tinta);
    padding-top: 8px;
    margin-bottom: 18px;
}
.dia-etiqueta {
    font-family: var(--sans);
    font-weight: 800;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rosa);
}
.dia-fecha {
    font-family: var(--serif-tit);
    font-style: italic;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--tinta);
}
.dia-cant {
    margin-left: auto;
    font-family: var(--sans);
    font-size: .72rem;
    color: var(--tinta-3);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ===== NOTAS ===== */
.nota-link { display: block; height: 100%; }
.nota-img {
    overflow: hidden;
    background: var(--papel-2);
    aspect-ratio: 16 / 10;
}
.nota-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.nota-link:hover .nota-img img { transform: scale(1.04); }
.nota-link:hover .nota-titulo { color: var(--vino); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.nota-titulo {
    font-family: var(--serif-tit);
    font-weight: 700;
    color: var(--tinta);
    line-height: 1.18;
    margin: 12px 0 8px;
    font-size: 1.22rem;
}
.nota-bajada {
    margin: 0 0 10px;
    color: var(--tinta-2);
    font-size: .98rem;
    line-height: 1.5;
}
.meta {
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    color: var(--tinta-3);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.meta i { color: var(--rosa); margin-right: 3px; }

/* Nota principal del día */
.nota-lead { padding-bottom: 22px; border-bottom: 1px solid var(--regla); margin-bottom: 22px; }
.nota-lead .nota-link {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 26px;
    align-items: center;
}
.nota-lead .nota-link:not(:has(.nota-img)) { grid-template-columns: 1fr; }
.nota-lead .nota-titulo { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-top: 0; }
.nota-lead .nota-bajada { font-size: 1.08rem; }
.dia:not(.dia-primero) .nota-lead .nota-titulo { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

/* Resto de notas del día, en columnas separadas por filetes */
.grilla {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grilla .nota {
    padding: 0 18px 22px;
    border-left: 1px solid var(--regla);
}
.grilla .nota:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.grilla .nota:nth-child(3n) { padding-right: 0; }

/* ===== BOTÓN EDICIONES ANTERIORES ===== */
.mas-wrap { text-align: center; }
.btn-mas {
    font-family: var(--sans);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: transparent;
    color: var(--tinta);
    border: 2px solid var(--tinta);
    padding: 12px 28px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn-mas:hover { background: var(--tinta); color: var(--papel); }

/* ===== LATERAL ===== */
.lateral { display: flex; flex-direction: column; gap: 26px; }
.lat-box { border-top: 4px solid var(--tinta); padding-top: 10px; }
.lat-head {
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.lat-radio {
    border-top: 0;
    background: radial-gradient(ellipse at 0% 100%, #6b1235 0%, var(--vino) 50%, var(--vino-2) 100%);
    color: #FFE9F1;
    padding: 20px;
    border-radius: 4px;
}
.lat-kicker {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rosa-claro);
}
.lat-title { font-family: var(--serif-tit); font-weight: 800; font-size: 1.6rem; margin: 8px 0 4px; }
.lat-text { margin: 0 0 16px; font-size: .92rem; color: #F6CADB; }
.lat-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .8rem;
    padding: 11px;
    border-radius: 30px;
    border: 0;
    cursor: pointer;
    background: var(--rosa);
    color: #fff;
    margin-bottom: 8px;
    transition: filter .2s;
}
.lat-btn:hover { filter: brightness(1.12); }
.lat-btn-alt { background: transparent; border: 1px solid rgba(255, 192, 217, .45); color: var(--rosa-claro); margin-bottom: 0; }

.ediciones { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .85rem; }
.ediciones a {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dotted var(--regla);
    color: var(--tinta-2);
}
.ediciones a:hover { color: var(--rosa); }
.ediciones small { color: var(--tinta-3); margin-left: 4px; }
.ediciones b { color: var(--tinta); }

.publi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.publi-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--regla);
    padding: 6px;
}

/* ===== PROGRAMACIÓN: franja entre días ===== */
.franja-prog {
    margin: 0 0 44px;
    padding: 22px 22px 24px;
    background: radial-gradient(ellipse at 0% 100%, #6b1235 0%, var(--vino) 45%, var(--vino-2) 100%);
    color: #FFE9F1;
}
.franja-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    border-bottom: 1px solid rgba(255, 192, 217, .25);
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.franja-kicker {
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rosa-claro);
}
.franja-kicker i { margin-right: 4px; }
.franja-titulo {
    font-family: var(--serif-tit);
    font-weight: 800;
    font-size: 1.6rem;
    margin: 0;
}
.franja-link {
    margin-left: auto;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 700;
    color: var(--rosa-claro);
}
.franja-link:hover { color: #fff; }

.franja-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(96px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 192, 217, .35) transparent;
}
@media (min-width: 641px) {
    /* filas de 6, la última centrada (funciona con cualquier cantidad de programas) */
    .franja-track {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 22px 12px;
        overflow: visible;
    }
    .franja-track .prog-card { width: calc((100% - 5 * 12px) / 6); }
}
.prog-card { display: block; scroll-snap-align: start; }
.prog-logo {
    position: relative;
    aspect-ratio: 1;
    transition: transform .25s;
}
.prog-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
    transition: filter .25s;
}
a.prog-card:hover .prog-logo { transform: translateY(-3px); }
.prog-aire {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    align-items: center;
    gap: 5px;
    background: var(--rosa);
    color: #fff;
    font-family: var(--sans);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 6px;
}
.prog-aire .vivo-dot { background: #fff; width: 6px; height: 6px; }
.prog-card.en-aire .prog-logo img { filter: drop-shadow(0 0 14px rgba(255, 77, 141, .85)); }
.prog-card.en-aire .prog-aire { display: inline-flex; }
.prog-nombre {
    font-family: var(--serif-tit);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.2;
    margin: 10px 0 4px;
}
.prog-hora {
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 600;
    color: var(--rosa-claro);
    margin: 0;
    line-height: 1.4;
}

/* ===== PROGRAMACIÓN: lateral ===== */
.aire-prog { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
.aire-prog img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4));
}
.aire-prog .lat-title { margin: 0 0 2px; font-size: 1.3rem; line-height: 1.15; }
.aire-prog .lat-text { margin: 0; }
.aire-prox {
    font-family: var(--sans);
    font-size: .74rem;
    color: #F6CADB;
    margin: -4px 0 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 192, 217, .2);
}
.aire-prox strong { color: #fff; }

.grilla-hoy { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .85rem; }
.grilla-hoy li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dotted var(--regla);
}
.gh-hora { font-weight: 700; color: var(--tinta); width: 42px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.gh-nombre { color: var(--tinta-2); }
.gh-tag {
    margin-left: auto;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    background: var(--rosa);
    padding: 3px 6px;
}
.grilla-hoy li.en-aire .gh-nombre { color: var(--tinta); font-weight: 700; }
.grilla-hoy li.paso { opacity: .45; }

/* ===== INICIO ===== */
.dia-vertodas { color: var(--tinta-2); font-weight: 700; }
.dia-vertodas:hover { color: var(--rosa); }
a.btn-mas { display: inline-block; }
.dia .mas-wrap { margin-top: 6px; }
.publi-video { margin-bottom: 44px; }
.publi-video video { width: 100%; display: block; background: #000; }

/* ===== SECCIONES ===== */
.subsecciones { background: var(--papel); border-bottom: 1px solid var(--regla); }
.subsecciones-inner { display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subsecciones a {
    font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 9px 12px; white-space: nowrap; color: var(--tinta-3);
}
.subsecciones a:hover { color: var(--rosa); }
.subsecciones a.activa { color: var(--rosa); }
@media (max-width: 640px) { .subsecciones-inner { justify-content: flex-start; } }

/* ===== BUSCADOR ===== */
.lat-buscar { margin: 0; }
.lat-buscar .lat-head { display: block; border-top: 4px solid var(--tinta); padding-top: 10px; }
.lat-buscar .lat-head i { margin-right: 4px; }
.buscar-campo { display: flex; border: 2px solid var(--tinta); background: #fff; }
.buscar-campo input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font-family: var(--sans); font-size: .9rem; background: transparent; color: var(--tinta); outline: none; }
.buscar-campo button { border: 0; background: var(--tinta); color: var(--papel); padding: 0 14px; cursor: pointer; }
.buscar-campo button:hover { background: var(--rosa); }
.busqueda-cant { font-family: var(--sans); font-size: .85rem; color: var(--tinta-3); margin: 6px 0 0; }
.grilla-busqueda .nota { padding-bottom: 22px; }
.seccion-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rosa);
    margin-bottom: 4px;
}
.nota-lead .seccion-tag { font-size: .74rem; }
.art-seccion {
    display: inline-block;
    font-family: var(--sans);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--rosa);
    padding: 4px 10px;
    margin-bottom: 10px;
}
.art-seccion:hover { background: var(--vino); }
.seccion-head { margin-bottom: 18px; }
.seccion-titulo { font-family: var(--serif-tit); font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }

/* ===== EL TIEMPO ===== */
.lat-clima .lat-head i { color: #e3a008; margin-right: 4px; }
.clima-ahora { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; font-family: var(--sans); }
.clima-ahora > i { font-size: 2.4rem; color: #e3a008; }
.clima-ahora strong { display: block; font-family: var(--sans); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--tinta); }
.clima-ahora span { font-size: .8rem; color: var(--tinta-2); }
.clima-dias { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .85rem; }
.clima-dias li { display: grid; grid-template-columns: 44px 24px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dotted var(--regla); }
.cd-dia { font-weight: 700; color: var(--tinta); }
.clima-dias li > i { color: var(--vino); text-align: center; }
.cd-lluvia { font-size: .75rem; color: #2b6cb0; }
.cd-lluvia i { margin-right: 3px; }
.cd-temp { color: var(--tinta-3); }
.cd-temp b { color: var(--tinta); }
.clima-fuente { font-family: var(--sans); font-size: .68rem; color: var(--tinta-3); margin: 8px 0 0; }
.clima-fuente a { text-decoration: underline; }

/* ===== FARMACIAS DE TURNO ===== */
.lat-farm .lat-head i { color: #1b8a4b; margin-right: 4px; }
.farm-lat-sub { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rosa); margin: -4px 0 8px; }
.farm-lat { list-style: none; margin: 0 0 14px; padding: 0; font-family: var(--sans); font-size: .85rem; }
.farm-lat li { padding: 8px 0; border-bottom: 1px dotted var(--regla); display: flex; flex-direction: column; }
.farm-lat li strong { color: var(--tinta); }
.farm-lat li span { color: var(--tinta-2); font-size: .8rem; }
.farm-lat-vacio { color: var(--tinta-3); }
.farm-lat-btn { background: var(--vino); }
.farm-lat-btn:hover { background: var(--rosa); filter: none; }
.farm-tabs { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.farm-tabs button {
    font-family: var(--sans); font-weight: 700; font-size: .85rem; letter-spacing: .04em;
    padding: 10px 20px; border: 2px solid var(--tinta); background: transparent; color: var(--tinta); cursor: pointer;
}
.farm-tabs button.activa, .farm-tabs button:hover { background: var(--tinta); color: var(--papel); }
.farm-hoy { background: var(--papel-2); border-left: 5px solid var(--rosa); padding: 20px 22px; margin-bottom: 30px; }
.farm-kicker { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rosa); }
.farm-hoy h2 { font-family: var(--serif-tit); font-weight: 800; font-size: 1.7rem; margin: 6px 0 4px; }
.farm-horario { font-family: var(--sans); font-size: .85rem; color: var(--tinta-2); margin: 0 0 12px; }
.farm-vacio { font-family: var(--sans); color: var(--tinta-3); margin: 12px 0 0; }
.farm-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--regla); padding: 14px 16px; margin-top: 10px; flex-wrap: wrap; }
.farm-card > i { font-size: 1.4rem; color: #1b8a4b; }
.farm-datos { flex: 1; min-width: 180px; display: flex; flex-direction: column; font-family: var(--sans); }
.farm-datos strong { font-size: 1.05rem; color: var(--tinta); }
.farm-datos span { font-size: .88rem; color: var(--tinta-2); }
.farm-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.farm-acciones a { font-family: var(--sans); font-size: .8rem; font-weight: 700; padding: 8px 12px; border-radius: 30px; background: var(--vino); color: #fff; }
.farm-acciones a:hover { background: var(--rosa); }
.farm-mes h3 { font-family: var(--sans); font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-top: 2px solid var(--tinta); padding-top: 10px; margin: 0 0 6px; }
.farm-dia { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--regla); font-family: var(--sans); font-size: .88rem; }
.farm-fecha { font-weight: 700; color: var(--tinta); }
.farm-item { display: block; color: var(--tinta-2); }
.farm-item strong { color: var(--tinta); }
.farm-vacio a { color: var(--rosa); font-weight: 700; text-decoration: underline; }
.farm-crono { margin: 14px 0 24px; }
.farm-crono figcaption { font-family: var(--sans); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.farm-crono figcaption a { color: var(--rosa); }
.farm-crono img { width: 100%; border: 1px solid var(--regla); }
.farm-fuente { font-family: var(--sans); font-size: .78rem; color: var(--tinta-3); margin-top: 18px; }
@media (max-width: 640px) { .farm-dia { grid-template-columns: 1fr; gap: 2px; } }

/* ===== NOTA INDIVIDUAL ===== */
.volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tinta-2);
    margin-bottom: 18px;
}
.volver:hover { color: var(--rosa); }

.articulo { max-width: 760px; }
.art-kicker {
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rosa);
    margin: 0 0 10px;
}
.art-titulo {
    font-family: var(--serif-tit);
    font-weight: 900;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    line-height: 1.08;
    margin: 0 0 18px;
}
.art-firma {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--regla);
    border-bottom: 1px solid var(--regla);
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 600;
    color: var(--tinta-2);
    margin-bottom: 22px;
}
.art-firma > span:first-child { display: flex; align-items: center; gap: 10px; }
.art-firma .autor img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rosa); }
.art-firma .autor strong { color: var(--tinta); font-weight: 800; }
.compartir { display: flex; gap: 6px; }
.compartir a,
.compartir button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--regla);
    background: transparent;
    color: var(--tinta-2);
    cursor: pointer;
    font-size: .9rem;
}
.compartir a:hover,
.compartir button:hover { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }

.art-img { margin: 0 0 24px; }
.art-foto { display: table; margin: 1.6em auto; }   /* el pie toma el ancho de la foto */
.art-foto figcaption { display: table-caption; caption-side: bottom; }
.art-foto video { display: block; width: auto; max-width: 100%; max-height: 640px; height: auto; margin: 0 auto; background: #000; }
.art-foto img { display: block; width: auto; max-width: 100%; max-height: 640px; height: auto; margin: 0 auto; }
.art-img figcaption, .art-foto figcaption, .galeria-grid figcaption { font-family: var(--sans); font-size: .78rem; color: var(--tinta-3); margin-top: 8px; line-height: 1.4; }
.art-galeria { margin: 30px 0 10px; }
.art-galeria h3 { font-family: var(--sans); font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-top: 2px solid var(--tinta); padding-top: 10px; margin: 0 0 14px; }
.galeria-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.galeria-grid figure { margin: 0; }
.galeria-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 640px) { .galeria-grid { grid-template-columns: 1fr; } }
.art-img img { width: 100%; max-height: 520px; object-fit: cover; }

.art-cuerpo p {
    font-size: 1.16rem;
    line-height: 1.75;
    margin: 0 0 1.1em;
    color: #241A1E;
}
.art-cuerpo p:first-child::first-letter {
    font-family: var(--serif-tit);
    font-weight: 900;
    float: left;
    font-size: 3.6em;
    line-height: .85;
    padding: 6px 10px 0 0;
    color: var(--vino);
}

.art-cuerpo h3 {
    font-family: var(--sans);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--vino);
    border-top: 2px solid var(--tinta);
    padding-top: 10px;
    margin: 1.8em 0 .6em;
}
.art-cuerpo ul { margin: 0 0 1.1em; padding: 0; list-style: none; }
.art-cuerpo li {
    font-size: 1.05rem;
    line-height: 1.55;
    padding: 7px 0 7px 18px;
    border-bottom: 1px dotted var(--regla);
    position: relative;
    color: #241A1E;
}
.art-cuerpo li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 7px;
    height: 7px;
    background: var(--rosa);
}

.art-radio {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0 10px;
    padding: 16px 18px;
    background: var(--papel-2);
    border-left: 4px solid var(--rosa);
    font-family: var(--sans);
    font-size: .88rem;
    color: var(--tinta-2);
}
.art-radio > i { font-size: 1.5rem; color: var(--rosa); }
.art-radio button {
    margin-left: auto;
    flex-shrink: 0;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .78rem;
    background: var(--vino);
    color: #fff;
    border: 0;
    border-radius: 30px;
    padding: 10px 18px;
    cursor: pointer;
}
.art-radio button:hover { background: var(--rosa); }

.mas-notas { margin-top: 44px; }

/* ===== CARGA ===== */
.sk {
    background: linear-gradient(90deg, var(--papel-2) 25%, #fff 50%, var(--papel-2) 75%);
    background-size: 200% 100%;
    animation: brillo 1.4s infinite;
    height: 200px;
}
.sk-lead { height: 340px; margin-bottom: 22px; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@keyframes brillo { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.vacio { font-size: 1.1rem; color: var(--tinta-3); text-align: center; padding: 60px 0; }

/* ===== PIE ===== */
.pie-diario {
    background: var(--vino-2);
    color: #F6CADB;
    font-family: var(--sans);
    font-size: .82rem;
    padding: 28px 0;
}
.pie-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.pie-marca { display: flex; align-items: center; gap: 12px; color: #FFE9F1; }
.pie-marca img { height: 46px; width: auto; }
.pie-links { display: flex; flex-wrap: wrap; gap: 16px; }
.pie-links a:hover { color: #fff; text-decoration: underline; }
.pie-copy { color: #C77294; width: 100%; border-top: 1px solid rgba(255, 192, 217, .15); padding-top: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .layout { grid-template-columns: 1fr; gap: 30px; }
    .lateral { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .lat-publi { grid-column: 1 / -1; }
    .publi-grid { grid-template-columns: repeat(4, 1fr); }
    .grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grilla .nota:nth-child(n) { padding: 0 0 22px 18px; border-left: 1px solid var(--regla); }
    .grilla .nota:nth-child(2n + 1) { padding: 0 18px 22px 0; border-left: 0; }
}

@media (max-width: 640px) {
    .mt-lugar { display: none; }
    .mh-logo { height: 84px; }
    .masthead-brand { padding-top: 16px; gap: 10px; }
    .masthead-sub { letter-spacing: .2em; }
    .secciones-inner { justify-content: flex-start; }
    .vivo-sub, .vivo-sep, .vivo-link span { display: none; }
    .nota-lead .nota-link { grid-template-columns: 1fr; gap: 0; }
    .grilla { grid-template-columns: 1fr; }
    .grilla .nota:nth-child(n) {
        padding: 0 0 18px;
        border-left: 0;
        border-bottom: 1px solid var(--regla);
        margin-bottom: 18px;
    }
    .grilla .nota .nota-link { display: grid; grid-template-columns: 1fr 112px; gap: 14px; }
    .grilla .nota .nota-img { order: 2; aspect-ratio: 1; }
    .grilla .nota .nota-titulo { margin-top: 0; font-size: 1.08rem; }
    .grilla .nota .nota-bajada { display: none; }
    .grilla .nota .nota-link:not(:has(.nota-img)) { grid-template-columns: 1fr; }
    .lateral { grid-template-columns: 1fr; }
    .publi-grid { grid-template-columns: repeat(3, 1fr); }
    .sk-row { grid-template-columns: 1fr; }
    .art-cuerpo p { font-size: 1.08rem; }
    .art-radio { flex-wrap: wrap; }
    .franja-prog { margin-left: -16px; margin-right: -16px; padding: 20px 16px; }
    .franja-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 118px; overflow-x: auto; }
    .franja-link { margin-left: 0; width: 100%; }
}

/* ---------- Comentarios de los lectores (debajo de cada nota) ---------- */
.comentarios { margin: 36px 0 10px; }
.com-lista { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.com-vacio { font-family: var(--sans); font-size: .9rem; color: var(--tinta-3); margin: 0; }
.com-item { padding: 0 0 14px; border-bottom: 1px solid var(--regla); }
.com-cab { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-family: var(--sans); font-size: .88rem; }
.com-cab strong { color: var(--tinta); }
.com-cab time { color: var(--tinta-3); font-size: .78rem; }
.com-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--vino); color: var(--rosa-claro); font-weight: 800; font-size: .85rem;
}
.com-item p { margin: 8px 0 0 40px; font-size: 1rem; line-height: 1.6; color: var(--tinta-2); overflow-wrap: anywhere; }
.com-form { background: var(--papel-2); border-left: 4px solid var(--rosa); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.com-form h3 { margin: 0 0 2px; font-family: var(--sans); font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta); }
.com-form input, .com-form textarea {
    width: 100%; border: 1px solid var(--regla); background: #fff; color: var(--tinta);
    padding: 10px 12px; font-family: var(--sans); font-size: 16px; border-radius: 0; outline: none;
}
.com-form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.com-form input:focus, .com-form textarea:focus { border-color: var(--rosa); }
.com-form .com-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.com-pie { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.com-pie small { font-family: var(--sans); font-size: .72rem; color: var(--tinta-3); line-height: 1.4; }
.com-pie button {
    flex: none; border: 0; background: var(--rosa); color: #fff; cursor: pointer;
    font-family: var(--sans); font-weight: 800; font-size: .85rem; padding: 11px 22px; border-radius: 999px;
}
.com-pie button:hover { background: var(--vino); }
.com-pie button:disabled { opacity: .6; cursor: wait; }
.com-aviso { margin: 0; font-family: var(--sans); font-size: .85rem; color: #1b8a4b; }
.com-aviso.error { color: #c0392b; }
@media (max-width: 640px) {
    .com-pie { flex-direction: column; align-items: stretch; }
    .com-item p { margin-left: 0; }
}

/* ---------- Publicaciones de X insertadas en la nota (galeria: {tweet}) ---------- */
.art-tweet { margin: 26px auto; max-width: 550px; }
.art-tweet .twitter-tweet { margin: 0 auto !important; }
.art-tweet blockquote.twitter-tweet {   /* cómo se ve hasta que carga el script de X (o si no carga) */
    border: 1px solid var(--regla); border-left: 4px solid var(--tinta); background: #fff;
    padding: 14px 16px; font-family: var(--sans); font-size: .9rem; color: var(--tinta-2);
}
.art-tweet blockquote.twitter-tweet strong { display: block; margin: 0 0 6px; color: var(--tinta); }
.art-tweet blockquote.twitter-tweet a { color: var(--rosa); font-weight: 700; }
.art-tweet figcaption { margin-top: 8px; }

/* ---------- "Nuestros programas": carrusel (un programa por vez) ---------- */
.pc { display: flex; align-items: center; gap: 10px; }
.pc-vista { flex: 1; min-width: 0; display: grid; }
.pc-slide {
    grid-area: 1 / 1;
    display: flex; align-items: center; justify-content: center; gap: 36px;
    opacity: 0; visibility: hidden; transform: translateX(14px);
    transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.pc-slide.activo { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease; }
.pc-slide .prog-logo { width: 260px; flex: none; aspect-ratio: 4 / 3; }
.pc-info { min-width: 0; max-width: 340px; }
.pc-dias {
    margin: 0 0 6px; font-family: var(--sans); font-size: .72rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; color: var(--rosa-claro);
}
.pc-slide .prog-nombre { font-size: 2rem; margin: 0 0 6px; }
.pc-slide .prog-hora { font-size: 1rem; font-weight: 700; color: #fff; }
.pc-slide .prog-aire { font-size: .7rem; padding: 4px 8px; }
.pc-flecha {
    flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255, 192, 217, .35); background: rgba(0, 0, 0, .15); color: #FFE9F1;
}
.pc-flecha:hover { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.pc-pie { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.pc-puntos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pc-puntos button {
    width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.pc-puntos button::after {
    content: ""; position: absolute; inset: 7px; border-radius: 50%;
    background: rgba(255, 192, 217, .35); transition: background .2s, transform .2s;
}
.pc-puntos button.activo::after { background: var(--rosa); transform: scale(1.35); }
.pc-pausa {
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: .7rem;
    border: 1px solid rgba(255, 192, 217, .35); background: none; color: var(--rosa-claro);
}
.pc-pausa:hover { color: #fff; border-color: #fff; }
@media (max-width: 640px) {
    .pc { gap: 4px; }
    .pc-flecha { width: 32px; height: 32px; }
    .pc-slide { flex-direction: column; gap: 10px; text-align: center; }
    .pc-slide .prog-logo { width: min(220px, 62vw); aspect-ratio: 3 / 2; }
    .pc-pie { gap: 8px; }
    .pc-puntos { gap: 0; flex-wrap: nowrap; }
    .pc-puntos button { width: 18px; }
    .pc-puntos button::after { inset: 6px 5px; }
    .pc-slide .prog-nombre { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pc-slide, .pc-slide.activo { transition: none; transform: none; }
}

/* ---------- Publicaciones de Instagram insertadas en la nota (galeria: {instagram}) ---------- */
.art-insta { margin: 26px auto; max-width: 540px; }
.art-insta .instagram-media { margin: 0 auto !important; min-width: 0 !important; width: 100% !important; }
.art-insta blockquote.instagram-media {   /* cómo se ve hasta que carga el script de Instagram */
    border: 1px solid var(--regla); border-left: 4px solid #d6249f; background: #fff;
    padding: 14px 16px; font-family: var(--sans); font-size: .9rem;
}
.art-insta blockquote.instagram-media strong { display: block; margin: 0 0 6px; color: var(--tinta); }
.art-insta blockquote.instagram-media a { color: var(--rosa); font-weight: 700; }
.art-insta figcaption { margin-top: 8px; }
