/*
 * FM Play 101.UNO — capa de diseño del sitio público.
 * Se carga después de playlapaz.min.css (barra superior, menú lateral y reproductor siguen allí).
 */
:root {
    --pl-red: #d11b0b;
    --pl-red-dark: #a3140a;
    --pl-purple: #603a78;
    --pl-ink: #1c1b20;
    --pl-muted: #66646e;
    --pl-line: #e7e6ec;
    --pl-bg: #f5f5f7;
    --pl-card: #fff;
    --pl-ok: #1f8a4c;
    --pl-warn: #c27803;
    --pl-danger: #c81e1e;
    --pl-radius: 16px;
    --pl-shadow: 0 1px 2px rgba(20, 16, 30, .06), 0 6px 20px rgba(20, 16, 30, .05);
    --pl-shadow-hover: 0 2px 4px rgba(20, 16, 30, .08), 0 12px 32px rgba(20, 16, 30, .10);
    --pl-display: "Exo", system-ui, sans-serif;
    --pl-text: "Open Sans", system-ui, sans-serif;
}

body {
    font-family: var(--pl-text);
    background: var(--pl-bg);
    color: var(--pl-ink);
    -webkit-font-smoothing: antialiased;
}

.wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; padding-top: 1.25rem; padding-bottom: 3rem; }

h1, h2, h3, .pl-display { font-family: var(--pl-display); }

/* Íconos SVG en línea (Lucide / Simple Icons) */
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }

/* Barra superior: liviana, violeta como el pie (pedido del cliente) */
.wrapper { padding-top: 0 !important; }
.pl-topbar { position: sticky; top: 0; z-index: 1020; background: var(--pl-purple); color: #fff; box-shadow: 0 2px 12px rgba(30, 12, 42, .22); }
.pl-topbar__inner { display: flex; align-items: center; gap: .5rem; max-width: 1320px; height: 64px; margin: 0 auto; padding: 0 .75rem; }
.pl-topbar__brand { display: flex; align-items: center; margin-right: auto; }
.pl-topbar__brand img { width: 140px; height: auto; display: block; }
.pl-topbar__btn { display: inline-flex; align-items: center; gap: .4rem; height: 44px; min-width: 44px; justify-content: center; padding: 0 .7rem; border: 0; border-radius: 999px; background: transparent; color: #fff; font-family: var(--pl-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.pl-topbar__btn:hover { background: rgba(255, 255, 255, .12); }
.pl-topbar__btn .icon { width: 1.4rem; height: 1.4rem; }
.pl-topbar__search .i-close, .pl-topbar__search[aria-expanded="true"] .i-open { display: none; }
.pl-topbar__search[aria-expanded="true"] .i-close { display: block; }
.pl-topbar__actions { display: flex; align-items: center; gap: .35rem; }
.pl-live { display: inline-flex; align-items: center; gap: .6rem; height: 44px; padding: 0 1rem 0 .3rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; text-align: left; line-height: 1.1; }
.pl-live:hover { background: rgba(255, 255, 255, .16); }
.pl-live__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pl-red); }
.pl-live__icon .icon { width: 1rem; height: 1rem; fill: #fff; }
.pl-live .i-pause, .pl-live[aria-pressed="true"] .i-play { display: none; }
.pl-live[aria-pressed="true"] .i-pause { display: block; }
.pl-live__text { display: flex; flex-direction: column; font-family: var(--pl-display); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.pl-live__text strong { font-size: .85rem; letter-spacing: .02em; }
.pl-live[data-state="playing"] .pl-live__text span::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .3rem; border-radius: 50%; background: #ff5a3c; animation: pl-pulse 1.4s ease-in-out infinite; }
@keyframes pl-pulse { 50% { opacity: .25; } }
.pl-searchbar { background: #4a2c5d; }
.pl-searchbar form { display: flex; gap: .5rem; padding-top: .75rem; padding-bottom: .75rem; }
.pl-searchbar input { flex: 1; min-width: 0; height: 46px; padding: 0 1rem; border: 0; border-radius: 999px; font-size: 1rem; }
.pl-no-scroll { overflow: hidden; }
@media (max-width: 575.98px) {
    .pl-topbar__label, .pl-live__text { display: none; }
    .pl-live { padding: 0 .3rem; border: 0; background: transparent; }
    .pl-topbar__brand img { width: 118px; }
}

/* Botón flotante de WhatsApp */
.pl-wa { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.pl-wa:hover, .pl-wa:focus-visible { color: #fff; transform: scale(1.06); }
.pl-wa .icon { width: 30px; height: 30px; }
.pl-footer { padding-bottom: 5.5rem !important; }

/* Accesibilidad */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; color: var(--pl-ink); padding: .75rem 1rem; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #f5b400;
    outline-offset: 2px;
}
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Barras de desplazamiento con la paleta del sitio */
html { scrollbar-color: #8a6aa0 var(--pl-bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--pl-bg); }
::-webkit-scrollbar-thumb { background: #8a6aa0; border-radius: 999px; border: 2px solid var(--pl-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--pl-purple); }

/* Menú lateral (cajón) */
#sidebar { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent; }
#sidebar::-webkit-scrollbar { width: 6px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .35); border: 0; }
#sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .6); }
.pl-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .75rem; }
#close-sidebar { position: static; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; }
#close-sidebar:hover { background: rgba(255, 255, 255, .3); color: #fff; }
.pl-drawer__title { margin: 1rem 0 .25rem; padding: 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
#sidebar .menu-group > button { background: none; border: 0; color: inherit; width: 100%; text-align: left; padding: 10px; font: inherit; display: flex; justify-content: space-between; align-items: center; }
#sidebar .menu-group > button .icon { transition: transform .2s; }
#sidebar .menu-group > button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.pl-drawer__ctas { display: grid; gap: .5rem; padding: 1rem; }
.pl-drawer__cta { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff !important; font-weight: 700; }
.pl-drawer__cta:hover { background: rgba(255, 255, 255, .24); }
.pl-drawer__cta--wa { background: #25d366; }
.pl-drawer__cta--wa:hover { background: #1ebe5b; }
.pl-drawer__social { display: flex; justify-content: center; gap: 1.1rem; padding: .25rem 1rem 1rem; font-size: 1.25rem; }
.pl-drawer__social a { color: #fff; opacity: .9; }
.pl-drawer__social a:hover { opacity: 1; }

/* Encabezado de bloque */
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2.75rem 0 1.1rem; }
.pl-head h1, .pl-head h2 { position: relative; margin: 0; padding-bottom: .4rem; font-weight: 800; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); letter-spacing: -.01em; color: var(--pl-ink); }
.pl-head h1::after, .pl-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.75rem; height: 3px; border-radius: 2px; background: var(--pl-red); }
.pl-head a.pl-more { font-family: var(--pl-display); font-weight: 700; font-size: .9rem; color: var(--pl-red); white-space: nowrap; }
.pl-head a.pl-more:hover { color: var(--pl-red-dark); text-decoration: underline; }

/* Tarjeta de nota */
.pl-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--pl-card); border-radius: var(--pl-radius); overflow: hidden; box-shadow: var(--pl-shadow); transition: box-shadow .2s ease, transform .2s ease; }
.pl-card:hover { box-shadow: var(--pl-shadow-hover); transform: translateY(-2px); }
.pl-card__media { position: relative; aspect-ratio: 16 / 10; background: #dedce4; overflow: hidden; }
.pl-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pl-card:hover .pl-card__media img { transform: scale(1.03); }
.pl-tag { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-block; max-width: calc(100% - 24px); padding: .28rem .7rem; border-radius: 999px; background: var(--tag, var(--pl-red)); color: #fff; font-family: var(--pl-display); font-size: .75rem; font-weight: 700; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.pl-card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem 1.2rem; }
.pl-card__body time, .pl-meta { font-family: var(--pl-display); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pl-muted); }
.pl-card__title { margin: 0; font-size: 1.06rem; font-weight: 700; line-height: 1.32; color: var(--pl-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pl-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* toda la tarjeta es clicable con un único enlace */
.pl-card__title a:hover { color: var(--pl-red); }

/* Variante superpuesta (portada) */
.pl-card--overlay { color: #fff; background: #111; }
.pl-card--overlay .pl-card__media { aspect-ratio: auto; position: absolute; inset: 0; }
.pl-card--overlay .pl-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 65%, rgba(0, 0, 0, .9) 100%); }
.pl-card--overlay .pl-card__body { position: relative; z-index: 2; margin-top: auto; padding: 1.25rem 1.3rem 1.3rem; }
.pl-card--overlay .pl-card__title, .pl-card--overlay .pl-card__title a:hover { color: #fff; }
.pl-card--overlay time { color: rgba(255, 255, 255, .8); }
.pl-card--overlay { min-height: 230px; }

/* Portada: nota principal + secundarias */
.pl-hero { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.pl-hero .pl-card--main { min-height: 360px; }
.pl-hero .pl-card--main .pl-card__title { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 800; line-height: 1.15; -webkit-line-clamp: 4; text-wrap: balance; }
.pl-hero .pl-card--main .pl-card__lead { margin: 0; color: rgba(255, 255, 255, .88); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) {
    .pl-hero { grid-template-columns: 1fr 1fr; }
    .pl-hero .pl-card--main { grid-column: 1 / -1; min-height: 420px; }
}
@media (min-width: 992px) {
    .pl-hero { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
    .pl-hero .pl-card--main { grid-column: 1; grid-row: 1 / span 2; min-height: 480px; }
}

.pl-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .pl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .pl-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.pl-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .pl-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.pl-aside { display: grid; gap: 1.25rem; }
@media (min-width: 992px) { .pl-aside--sticky { position: sticky; top: 5.5rem; } }

/* Lista "Más leídas" */
.pl-panel { background: var(--pl-card); border-radius: var(--pl-radius); box-shadow: var(--pl-shadow); padding: 1.1rem 1.2rem; }
.pl-panel > h2, .pl-panel > h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 .75rem; }
.pl-ranking { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.pl-ranking li { counter-increment: rank; display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; padding: .7rem 0; border-top: 1px solid var(--pl-line); }
.pl-ranking li:first-child { border-top: 0; padding-top: 0; }
.pl-ranking li::before { content: counter(rank); font-family: var(--pl-display); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--pl-red); }
.pl-ranking a { font-weight: 600; line-height: 1.35; }
.pl-ranking a:hover { color: var(--pl-red); }

/* Bloques informativos (clima, dólar, río) */
.pl-info-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 768px) { .pl-info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pl-info-grid { grid-template-columns: repeat(3, 1fr); } }
.pl-info { display: flex; flex-direction: column; background: var(--pl-card); border-radius: var(--pl-radius); box-shadow: var(--pl-shadow); padding: 1.1rem 1.2rem 1rem; min-height: 100%; }
.pl-info__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.pl-info__head h2 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: .01em; display: flex; align-items: center; gap: .5rem; }
.pl-info__head h2 i { color: var(--pl-red); }
.pl-info__head a { font-size: .82rem; font-weight: 700; color: var(--pl-red); }
.pl-info__foot { margin-top: auto; padding-top: .75rem; font-size: .75rem; color: var(--pl-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; }
.pl-info__foot a { text-decoration: underline; }
.pl-info__empty { color: var(--pl-muted); font-size: .92rem; margin: .5rem 0; }
.pl-info__warn { font-size: .78rem; color: var(--pl-warn); margin: .25rem 0 0; }
.pl-big { font-family: var(--pl-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.pl-big small { font-size: 1.1rem; font-weight: 700; color: var(--pl-muted); margin-left: .15rem; }

.pl-weather-now { display: flex; align-items: center; gap: .75rem; }
.pl-weather-now img { width: 64px; height: 64px; }
.pl-weather-now p { margin: .15rem 0 0; color: var(--pl-muted); font-size: .92rem; }
.pl-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.pl-facts li { background: var(--pl-bg); border-radius: 10px; padding: .45rem .55rem; font-size: .78rem; color: var(--pl-muted); }
.pl-facts strong { display: block; font-family: var(--pl-display); font-size: .98rem; color: var(--pl-ink); }
.pl-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .75rem; }
.pl-day { text-align: center; border: 1px solid var(--pl-line); border-radius: 10px; padding: .4rem .25rem; font-size: .78rem; }
.pl-day img { width: 34px; height: 34px; }
.pl-day b { display: block; font-family: var(--pl-display); text-transform: capitalize; }
.pl-day .pl-rain { color: #1c64f2; }

.pl-quotes { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pl-quotes th { font-family: var(--pl-display); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pl-muted); font-weight: 700; text-align: right; padding: 0 0 .35rem; }
.pl-quotes th:first-child, .pl-quotes td:first-child { text-align: left; }
.pl-quotes td { padding: .45rem 0; border-top: 1px solid var(--pl-line); text-align: right; font-variant-numeric: tabular-nums; }
.pl-quotes td:first-child { font-weight: 700; font-family: var(--pl-display); }
.pl-quotes td:last-child { font-weight: 700; }

.pl-river-now { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.pl-trend { font-family: var(--pl-display); font-weight: 700; font-size: .95rem; }
.pl-trend.up { color: var(--pl-danger); }
.pl-trend.down { color: var(--pl-ok); }
.pl-trend.flat { color: var(--pl-muted); }
.pl-badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; font-family: var(--pl-display); background: #e7f6ec; color: var(--pl-ok); }
.pl-badge.warn { background: #fff4de; color: var(--pl-warn); }
.pl-badge.danger { background: #fde8e8; color: var(--pl-danger); }
.pl-levels { margin: .8rem 0 0; font-size: .8rem; color: var(--pl-muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.pl-levels b { color: var(--pl-ink); }
.pl-spark { display: block; width: 100%; height: 56px; margin-top: .6rem; }
.pl-spark polyline { fill: none; stroke: var(--pl-purple); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pl-spark .pl-spark-alert { stroke: var(--pl-warn); stroke-dasharray: 4 4; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.pl-spark-labels { display: flex; justify-content: space-between; font-size: .7rem; color: var(--pl-muted); }

/* Espacios publicitarios: si no hay anuncio asignado no ocupan lugar */
.ad-slot { display: flex; justify-content: center; margin: 1.5rem 0; }
.ad-slot:has(> .mediakit:empty) { display: none; }
.ad-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.75rem 0; justify-items: center; }
@media (min-width: 768px) { .ad-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ad-row:not(:has(.mediakit:not(:empty))) { display: none; }
.ad-row > .mediakit:empty { display: none; }
.ad-slot .mediakit, .ad-row .mediakit { width: auto !important; max-width: 100% !important; height: auto !important; max-height: none !important; border: 0 !important; min-height: 0 !important; }
.ad-slot img, .ad-row img { max-width: 100% !important; height: auto !important; border-radius: 10px; display: block; }
.ad-slot iframe, .ad-row iframe { max-width: 100%; }
.ad-label { display: block; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-muted); text-align: center; margin-bottom: .25rem; }

/* Nota */
.pl-article { background: var(--pl-card); border-radius: var(--pl-radius); box-shadow: var(--pl-shadow); padding: clamp(1.1rem, 3vw, 2.5rem); }
.pl-breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--pl-muted); }
.pl-breadcrumb li + li::before { content: "›"; margin-right: .35rem; }
.pl-breadcrumb a:hover { color: var(--pl-red); text-decoration: underline; }
.pl-article h1 { font-weight: 800; font-size: clamp(1.55rem, 1.1rem + 2vw, 2.5rem); line-height: 1.15; letter-spacing: -.015em; margin: .5rem 0 .75rem; text-wrap: balance; }
.pl-article .pl-lead { font-size: 1.15rem; line-height: 1.55; color: #3d3b44; margin: 0 0 1.25rem; }
.pl-article .pl-tag-inline { position: static; display: inline-block; }
.pl-figure { margin: 0 0 1.5rem; border-radius: 12px; overflow: hidden; background: #dedce4; }
.pl-figure img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.pl-prose { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
.pl-prose p { margin: 0 0 1.1em; }
.pl-prose img, .pl-prose video { max-width: 100%; height: auto; border-radius: 8px; }
.pl-prose iframe { max-width: 100%; }
.pl-prose a { color: var(--pl-red); text-decoration: underline; }
.pl-prose h2, .pl-prose h3 { font-weight: 800; margin: 1.6em 0 .6em; }
.pl-prose blockquote { position: relative; margin: 1.6em 0; padding: 0 0 0 2.6rem; color: #3d3b44; font-size: 1.15rem; font-style: italic; line-height: 1.6; }
.pl-prose blockquote::before { content: "C"; position: absolute; left: 0; top: -.35rem; font-family: var(--pl-display); font-size: 3.4rem; font-style: normal; line-height: 1; color: var(--pl-red); }
.pl-prose table { width: 100%; display: block; overflow-x: auto; }
.pl-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.pl-tags a { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--pl-bg); border: 1px solid var(--pl-line); font-size: .85rem; font-weight: 600; }
.pl-tags a:hover { border-color: var(--pl-red); color: var(--pl-red); }
.pl-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--pl-line); }
.pl-share span { font-weight: 700; margin-right: .25rem; }
.pl-share a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; color: #fff; font-size: .88rem; font-weight: 700; }
.pl-share a:hover { filter: brightness(.92); color: #fff; }
.pl-share .wa { background: #1f9e55; }
.pl-share .fb { background: #1877f2; }
.pl-share .x { background: #111; }
.pl-related { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.pl-related a { display: grid; grid-template-columns: 96px 1fr; gap: .75rem; align-items: center; font-weight: 600; line-height: 1.3; font-size: .92rem; }
.pl-related img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; background: #dedce4; }
.pl-related a:hover { color: var(--pl-red); }

/* Paginación y búsqueda */
.pl-pager { display: flex; justify-content: center; gap: .75rem; margin: 2rem 0 0; }
.pl-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.4rem; border-radius: 999px; background: var(--pl-red); color: #fff !important; font-family: var(--pl-display); font-weight: 700; border: 0; }
.pl-btn:hover { background: var(--pl-red-dark); }
.pl-btn--ghost { background: transparent; color: var(--pl-ink) !important; border: 2px solid var(--pl-line); }
.pl-btn--ghost:hover { background: #fff; border-color: var(--pl-red); }
.pl-search { display: flex; gap: .5rem; margin: 0 0 1.5rem; }
.pl-search input { flex: 1; min-width: 0; padding: .75rem 1rem; border: 2px solid var(--pl-line); border-radius: 999px; font-size: 1rem; }
.pl-search input:focus { border-color: var(--pl-red); outline: none; }
.pl-empty { text-align: center; color: var(--pl-muted); padding: 2.5rem 1rem; background: var(--pl-card); border-radius: var(--pl-radius); }

/* Clima extendido */
.pl-forecast { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pl-forecast .pl-day { padding: .8rem .5rem; background: var(--pl-card); border: 0; box-shadow: var(--pl-shadow); border-radius: 12px; font-size: .85rem; }
.pl-forecast .pl-day img { width: 52px; height: 52px; }
.pl-forecast .pl-temp { font-family: var(--pl-display); font-weight: 800; font-size: 1.15rem; }
.pl-forecast .pl-temp span { color: var(--pl-muted); font-weight: 600; }
.pl-history { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: .5rem; align-items: end; height: 180px; margin-top: 1rem; }
.pl-history div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; font-size: .75rem; color: var(--pl-muted); }
.pl-history span.bar { display: block; background: linear-gradient(180deg, #8b62a6, var(--pl-purple)); border-radius: 8px 8px 2px 2px; min-height: 6px; }
.pl-history b { color: var(--pl-ink); font-family: var(--pl-display); font-size: .85rem; }

/* Pie de página */
.pl-footer { background: var(--pl-purple); color: rgba(255, 255, 255, .85); padding: 2rem 0 1.5rem; font-size: .9rem; }
.pl-footer a { color: #fff; }
.pl-footer a:hover { text-decoration: underline; }
.pl-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.pl-footer .pl-social { display: flex; gap: .9rem; font-size: 1.25rem; }

/* Formularios públicos */
.pl-form label { font-weight: 600; margin-bottom: .3rem; }
.pl-form .form-control, .pl-form .form-select { border-radius: 10px; padding: .65rem .85rem; border: 2px solid var(--pl-line); }
.pl-form .form-control:focus, .pl-form .form-select:focus { border-color: var(--pl-red); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .pl-card:hover, .pl-card:hover .pl-card__media img { transform: none; }
}
