/**
 * MyMediaCMS — estilo periódico digital (referencia editorial: elmundo.com, elconfidencial.com)
 */

:root {
    --paper: #ffffff;
    --paper-muted: #f4f4f4;
    --ink: #111111;
    --ink-soft: #333333;
    --ink-muted: #666666;
    --line: #d8d8d8;
    --line-dark: #1a1a1a;
    --accent: var(--color-primary, #b91c1c);
    --accent-dark: var(--color-secondary, #7f1d1d);
    --max: 1320px;
    --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
    --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
    --body-serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--link-color, var(--accent)); }

img { max-width: 100%; height: auto; display: block; }

/* —— Top bar —— */
.top-bar {
    background: var(--line-dark);
    color: #fff;
    font-size: .75rem;
    letter-spacing: .02em;
}
.top-bar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: .45rem 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem 1rem;
}
.top-bar-start {
    display: flex;
    align-items: center;
    gap: .75rem 1rem;
    flex-wrap: wrap;
    min-width: 0;
    justify-self: start;
}
.top-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem 1.15rem;
    flex-wrap: wrap;
    justify-self: center;
}
.top-bar-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    min-width: 0;
}
.top-bar-date { white-space: nowrap; }
.top-bar-weather {
    color: rgba(255, 255, 255, .9);
    white-space: nowrap;
}
.top-bar-weather:hover { color: #fff; }
.top-bar-sponsor {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .15rem;
    padding: .18rem .55rem .2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    opacity: 1;
    line-height: 1.2;
}
.top-bar-sponsor-label {
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}
.top-bar-sponsor-link,
.top-bar-sponsor-name {
    color: #fff;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .02em;
    text-decoration: none;
}
.top-bar-sponsor-link {
    text-underline-offset: .12em;
}
.top-bar-sponsor-link:hover {
    color: #fff;
    text-decoration: underline;
    opacity: 1;
}
.top-bar-edition-form {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-shrink: 0;
    margin-left: 0;
}
.top-bar-edition-label {
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
}
.top-bar-edition-label-short { display: none; }
.top-bar-edition-input {
    padding: .22rem .4rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 4px;
    font: inherit;
    font-size: .72rem;
    line-height: 1.3;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    color-scheme: dark;
    max-width: 128px;
}
.top-bar-edition-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .18);
}
.top-bar-edition-today {
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    opacity: .85;
    white-space: nowrap;
}
.top-bar-edition-today:hover { opacity: 1; color: #fff; }

/* —— Herramientas archivo (búsqueda + cuenta) —— */
.masthead-tools-wrap {
    border-bottom: 1px solid var(--line);
    background: var(--paper-muted);
}
.masthead-tools-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: .55rem 1.25rem;
}
.archive-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.archive-search-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 320px;
    width: 100%;
    min-width: 0;
    margin-left: auto;
    order: 2;
}
.masthead-account {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-shrink: 0;
    order: 1;
}
.masthead-account-login,
.masthead-account-register,
.masthead-account-logout,
.masthead-account-profile {
    text-decoration: none;
    font-size: .82rem;
    line-height: 1.2;
    white-space: nowrap;
}
.masthead-account-login {
    display: inline-flex;
    align-items: center;
    padding: .2rem 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink-muted);
    font-weight: 600;
}
.masthead-account-login:hover {
    filter: none;
    color: var(--link-color);
}
.masthead-account-register {
    color: var(--ink);
    font-weight: 600;
    padding: .35rem .2rem;
    border-bottom: 1px solid transparent;
}
.masthead-account-register:hover {
    color: var(--link-color);
    border-bottom-color: var(--link-color);
}
.masthead-account-profile {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--ink);
    font-weight: 700;
    max-width: 14rem;
}
.masthead-account-profile:hover { color: var(--link-color); }
.masthead-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: var(--nav-accent, var(--color-primary));
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    flex-shrink: 0;
}
.masthead-account-name {
    overflow: hidden;
    text-overflow: ellipsis;
}
.masthead-account-logout {
    color: var(--ink-muted);
    font-weight: 600;
    padding: .35rem .15rem;
}
.masthead-account-logout:hover { color: var(--ink); }

@media (max-width: 1100px) {
    .top-bar-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: .45rem .65rem;
        padding: .4rem 1rem;
    }
    .top-bar-start,
    .top-bar-center,
    .top-bar-end {
        justify-self: auto;
    }
    .top-bar-start {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: .45rem .65rem;
    }
    .top-bar-center {
        justify-content: center;
        flex-wrap: nowrap;
        gap: .55rem .75rem;
        padding: 0;
        border: none;
        min-width: 0;
    }
    .top-bar-end {
        justify-content: flex-end;
    }
    .top-bar-center .top-bar-community {
        font-size: .7rem;
    }
}

@media (max-width: 640px) {
    .top-bar-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: .35rem .5rem;
        padding: .4rem .75rem;
    }
    .top-bar-start {
        gap: .35rem .5rem;
        flex: 0 0 auto;
        min-width: 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
        order: 0;
    }
    .top-bar-center {
        order: 0;
        width: auto;
        justify-content: center;
        flex-wrap: nowrap;
        gap: .45rem .55rem;
        padding: 0;
        border: none;
        min-width: 0;
    }
    .top-bar-end {
        order: 0;
        width: auto;
        justify-content: flex-end;
    }
    .top-bar-weather,
    .top-bar-horoscope,
    .top-bar-rotator,
    .top-bar-games-link,
    .top-bar-markets-link {
        display: none !important;
    }
    .top-bar-center .top-bar-community {
        font-size: .68rem;
    }
    .top-bar-edition-form {
        margin-left: 0;
        width: auto;
        max-width: none;
        flex: 0 1 auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: .3rem;
        min-width: 0;
    }
    .top-bar-edition-label-full { display: none; }
    .top-bar-edition-label-short { display: inline; }
    .top-bar-edition-input {
        flex: 0 1 auto;
        width: auto;
        max-width: 6.75rem;
        min-width: 0;
    }

    .masthead-tools-wrap {
        background: var(--paper);
    }
    .masthead-tools-inner {
        padding: .45rem .85rem .5rem;
    }
    .archive-tools {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: .55rem;
    }
    .archive-search-form {
        order: 1;
        flex: 1 1 auto;
        max-width: none;
        margin-left: 0;
        min-width: 0;
        width: auto;
    }
    .masthead-account {
        order: 2;
        display: flex;
        flex: 0 0 auto;
        width: auto;
        margin-left: 0;
        gap: .55rem;
        align-items: center;
        min-width: 0;
    }
    .masthead-account-login,
    .masthead-account-register,
    .masthead-account-logout,
    .masthead-account-profile {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: auto;
        min-height: 0;
        padding: .15rem 0;
        border-radius: 0;
        font-size: .78rem;
        font-weight: 600;
        text-align: center;
        box-sizing: border-box;
    }
    .masthead-account-login {
        background: transparent;
        color: var(--ink-muted);
        font-weight: 600;
        padding: .15rem 0;
    }
    .masthead-account-login:hover {
        background: transparent;
        color: var(--link-color);
        filter: none;
    }
    .masthead-account-register {
        background: transparent;
        border: none;
        color: var(--ink-muted);
        padding: .15rem 0;
        border-bottom: 1px solid transparent;
        font-weight: 600;
    }
    .masthead-account-register:hover {
        background: transparent;
        color: var(--link-color);
        border-bottom-color: var(--link-color);
    }
    .masthead-account-profile {
        max-width: 10rem;
        gap: .35rem;
        background: transparent;
        border: none;
        color: var(--ink);
        padding: .1rem 0;
    }
    .masthead-account-avatar {
        width: 1.45rem;
        height: 1.45rem;
        font-size: .68rem;
    }
    .masthead-account-name {
        display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 6.5rem;
    }
    .masthead-account-logout {
        background: transparent;
        border: none;
        color: var(--ink-muted);
        padding: .15rem 0;
    }
    .archive-search-field {
        gap: .35rem;
        width: 100%;
    }
    .archive-search-field input[type="search"] {
        font-size: .9rem;
        padding: .58rem .75rem;
        min-width: 0;
        min-height: 2.5rem;
    }
    .archive-search-btn {
        padding: .58rem .85rem;
        font-size: .78rem;
        flex-shrink: 0;
        min-height: 2.5rem;
    }
}
.archive-tools-label {
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.archive-search-field {
    display: flex;
    gap: .35rem;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.archive-search-field input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .32rem .5rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    font: inherit;
    font-size: .78rem;
    background: var(--paper);
    line-height: 1.3;
}
.archive-search-btn {
    padding: .32rem .6rem;
    border: none;
    border-radius: 5px;
    background: var(--nav-accent, var(--accent));
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    cursor: pointer;
    white-space: nowrap;
}
.archive-search-btn:hover { filter: brightness(1.08); }

.search-page-form {
    max-width: 36rem;
    margin: 0 0 1.75rem;
}
.search-page-form .archive-search-field {
    display: flex;
    gap: .5rem;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* —— Páginas archivo —— */
.archive-page-head { margin-bottom: 1.5rem; }
.archive-page-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}
.edition-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.edition-pdf-btn:hover {
    border-color: var(--nav-accent, var(--accent));
    color: var(--nav-accent, var(--accent));
    background: var(--paper-muted);
}
.archive-page-head h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}
.archive-page-intro {
    margin: .5rem 0 0;
    color: var(--ink-muted);
    font-size: .95rem;
}
.archive-empty,
.archive-results-count {
    color: var(--ink-muted);
    margin: 1rem 0;
}
.archive-results-list { margin-top: .5rem; }
.archive-pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.archive-page-link {
    font-weight: 700;
    color: var(--nav-accent, var(--accent));
}
.archive-page-current { font-size: .9rem; color: var(--ink-muted); }

/* —— Edición / búsqueda —— */
.archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}
.archive-main { min-width: 0; }
.archive-sidebar { position: sticky; top: calc(3rem + 52px); }
.archive-story-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}
.archive-story {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.15rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.archive-story--lead {
    grid-template-columns: 1fr;
    padding-top: 0;
}
.archive-story-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-muted);
    border-radius: 6px;
}
.archive-story--lead .archive-story-media {
    aspect-ratio: 21 / 9;
    max-height: 380px;
    border-radius: 8px;
}
.archive-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.archive-story-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: var(--paper-muted);
}
.archive-story-title {
    margin: 0 0 .35rem;
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 800;
}
.archive-story--lead .archive-story-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.15;
}
.archive-story-excerpt {
    margin: .65rem 0 0;
    line-height: 1.55;
    color: var(--ink-soft);
    font-family: var(--body-serif);
}
.archive-story-excerpt--compact {
    font-size: .92rem;
    margin-top: .45rem;
}

.edition-quick-dates {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
}
.agenda-day-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
}
.edition-quick-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-right: .25rem;
}
.edition-quick-date {
    display: inline-block;
    padding: .25rem .55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--paper);
}
.edition-quick-date:hover,
.edition-quick-date.is-active {
    border-color: var(--nav-accent, var(--accent));
    color: var(--nav-accent, var(--accent));
    background: var(--paper-muted);
}
.edition-hero-list {
    display: grid;
    gap: 1.5rem;
}
.edition-story {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.edition-story--lead {
    grid-template-columns: 1fr;
    padding-bottom: 2rem;
}
.edition-story-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-muted);
    border-radius: 4px;
}
.edition-story--lead .edition-story-media {
    aspect-ratio: 21 / 9;
    max-height: 420px;
    border-radius: 6px;
}
.edition-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.edition-story-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: var(--paper-muted);
}
.edition-story-body h2 {
    margin: 0 0 .35rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.2;
}
.edition-story--lead .edition-story-body h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.edition-story-lead {
    margin: .75rem 0 0;
    font-family: var(--body-serif);
    line-height: 1.55;
    color: var(--ink-soft);
}

/* —— Portada moderna —— */
.home-portada { min-width: 0; }
.portada-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--line);
}
.portada-masthead--compact {
    margin-bottom: .5rem;
    padding-bottom: .5rem;
}
.portada-masthead-kicker {
    margin: 0;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-muted);
}
.portada-masthead-edition {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}
.portada-masthead-edition:hover { text-decoration: underline; }
.home-layout--portada {
    margin-top: .5rem;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
}
.home-sidebar-ads {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.home-aside .ad-slot--home_sidebar,
.home-aside .ad-slot--sidebar_top,
.home-aside .ad-slot--sidebar_between_lists,
.home-aside .ad-slot--sidebar_bottom {
    margin: 0;
}
.home-aside .ad-slot--home_sidebar .ad-banner img,
.home-aside .ad-slot--sidebar_top .ad-banner img,
.home-aside .ad-slot--sidebar_between_lists .ad-banner img,
.home-aside .ad-slot--sidebar_bottom .ad-banner img {
    width: 100%;
    max-width: 300px;
}
.portada-hero {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    width: 100%;
}
.portada-hero-media-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #111;
}
.portada-hero-media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 280px;
    max-height: none;
}
.portada-hero-media img,
.portada-band-media img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
}
.portada-hero-media img {
    transition: none;
}
.portada-hero-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: rgba(255,255,255,.35);
    font-family: var(--serif);
    font-size: 1.5rem;
}
.portada-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.15) 68%, transparent 86%),
        linear-gradient(to right, rgba(0,0,0,.22) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}
.portada-hero-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.15rem .75rem 1rem;
    pointer-events: none;
}
.portada-hero-footer a,
.portada-hero-footer .home-related-links {
    pointer-events: auto;
}
.portada-hero-content {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 0;
    z-index: auto;
    color: #fff;
    max-width: min(100%, 46rem);
    pointer-events: none;
}
.portada-hero-content a {
    pointer-events: auto;
}
.portada-hero-cat,
.portada-hero-content .cat-pill {
    display: inline-flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 0 .9rem;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .45rem .85rem;
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.25);
    position: relative;
    z-index: 3;
}
.portada-hero-cat-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 4;
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .6rem;
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.25);
}
.portada-hero-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.7);
}
.portada-hero-title a { color: #fff; }
.portada-hero-title a:hover { color: #fff; opacity: .94; }
.portada-hero-lead {
    margin: .75rem 0 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255,255,255,.92);
    max-width: 42rem;
    text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.portada-hero-meta { color: rgba(255,255,255,.78); margin-top: .5rem; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.portada-hero .home-related-links--hero {
    position: static;
    left: auto;
    bottom: auto;
    z-index: auto;
    margin: 0;
    padding: .75rem .85rem;
    border-top: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, .48);
    backdrop-filter: blur(6px);
    max-width: 34rem;
    width: auto;
}
.portada-hero .home-related-links--hero .home-related-links-label {
    color: #fff;
    font-size: .72rem;
    letter-spacing: .1em;
    margin-bottom: .55rem;
}
.portada-hero .home-related-links--hero .home-related-links-list li {
    border-bottom-color: rgba(255, 255, 255, .22);
}
.portada-hero .home-related-links--hero .home-related-cat {
    color: color-mix(in srgb, var(--accent) 70%, #fff);
    font-size: .64rem;
}
.portada-hero .home-related-links--hero .home-related-title {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}
.portada-hero .home-related-links--hero .home-related-link:hover .home-related-title {
    color: #fff;
    opacity: .92;
}
.portada-hero--magazine {
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0,0,0,.12);
}
.portada-hero-media--magazine {
    aspect-ratio: 21 / 9;
    min-height: 260px;
    max-height: 420px;
}
.portada-band--magazine { margin-bottom: 1.5rem; }

.portada-band {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.portada-band--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.portada-band-card {
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.portada-band-card--featured {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 8px;
}
.portada-band-media-wrap {
    position: relative;
    overflow: hidden;
    background: var(--paper-muted);
    width: 100%;
}
.portada-band-card--featured .portada-band-media-wrap {
    border-radius: 0;
}
.portada-band-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-muted);
    position: relative;
}
.portada-band-card--featured .portada-band-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    max-height: none;
}
.portada-band-media img {
    display: block;
    transition: transform .25s ease;
}
.portada-band-card:hover .portada-band-media img { transform: scale(1.03); }
.portada-band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.3) 45%, transparent 72%);
    pointer-events: none;
    z-index: 1;
}
.portada-band-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: .95rem 1rem 1.05rem;
    color: #fff;
    pointer-events: none;
}
.portada-band-caption .cat-pill,
.portada-band-caption a,
.portada-band-caption .portada-band-title a {
    pointer-events: auto;
}
.portada-band-caption .cat-pill {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: .55rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .28rem .55rem;
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.2);
}
.portada-band-cat-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 3;
    display: inline-flex !important;
    margin: 0 !important;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .6rem;
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.25);
}
@media (min-width: 961px) {
    /* Compensa el borde de la card de la banda para alinear con el hero */
    .portada-hero-cat-badge {
        left: calc(.75rem + 1px);
    }
}
.portada-band-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    font-weight: 800;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 12px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.65);
}
.portada-band-title a { color: #fff; }
.portada-band-title a:hover { color: #fff; opacity: .94; }
.portada-band-card--featured .home-related-links {
    margin-top: 0;
    padding: .75rem .95rem .9rem;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper-muted) 55%, var(--paper));
}
.portada-band-card--featured .home-related-links-label {
    color: var(--ink-muted);
}
.portada-band-body {
    padding: .85rem .9rem 1rem;
}
.portada-band-body h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portada-section { margin-bottom: 2.5rem; }

/* —— Secciones de portada —— */
.home-section {
    margin-bottom: 2.25rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--line);
}
.home-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
    padding-bottom: .65rem;
    border-bottom: 3px solid var(--ink);
}
.home-section-title {
    margin: 0;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    font-family: var(--sans);
    line-height: 1.2;
}
.home-section-title a {
    color: inherit;
    text-decoration: none;
}
.home-section-title a:hover { opacity: .85; }
.home-section-more {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    text-decoration: none;
    white-space: nowrap;
}
.home-section-more:hover { color: var(--accent); }
.home-section-layout--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.home-section-layout--solo {
    grid-template-columns: 1fr;
    max-width: 52rem;
}

.home-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.75rem;
}
.home-latest-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden;
}
.home-latest-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-muted);
}
.home-latest-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.home-latest-card:hover .home-latest-media img {
    transform: scale(1.03);
}
.home-latest-body {
    padding: 1.05rem 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    flex: 1;
}
.home-latest-body .cat-pill {
    align-self: flex-start;
    margin: 0;
}
.home-latest-title {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.22;
}
.home-latest-title a {
    color: var(--ink);
    text-decoration: none;
}
.home-latest-title a:hover {
    color: var(--accent);
}
.home-latest-excerpt {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
.home-latest-body .meta-line {
    margin-top: .15rem;
}
.home-latest-related {
    margin-top: auto;
    padding: .85rem 1.15rem 1.05rem;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper-muted) 70%, var(--paper));
}
.home-latest-related-label {
    margin: 0 0 .5rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.home-latest-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
}
.home-latest-related-list li {
    margin: 0;
    padding: 0 0 .45rem;
    border-bottom: 1px dashed var(--line);
}
.home-latest-related-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.home-latest-related-list a {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    text-decoration: none;
}
.home-latest-related-list a:hover {
    color: var(--accent);
}

.home-related-links {
    margin-top: .85rem;
}
.home-related-links-label {
    margin: 0 0 .45rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.home-related-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
}
.home-related-links-list li {
    margin: 0;
    padding: 0 0 .45rem;
    border-bottom: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
}
.home-related-links-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.home-related-link {
    display: grid;
    gap: .15rem;
    text-decoration: none;
}
.home-related-cat {
    display: block;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1.2;
}
.home-related-title {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}
.home-related-link:hover .home-related-title {
    color: var(--accent);
}
.home-related-links--on-dark {
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .22);
}
.home-related-links--on-dark .home-related-links-label {
    color: rgba(255, 255, 255, .7);
}
.home-related-links--on-dark .home-related-links-list li {
    border-bottom-color: rgba(255, 255, 255, .18);
}
.home-related-links--on-dark .home-related-cat {
    color: rgba(255, 255, 255, .72);
}
.home-related-links--on-dark .home-related-title {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.home-related-links--on-dark .home-related-link:hover .home-related-title {
    color: #fff;
    opacity: .92;
}
.home-related-links--compact {
    margin-top: .65rem;
}
.home-related-links--compact .home-related-title {
    font-size: .82rem;
    font-weight: 700;
}
.home-related-links--compact .home-related-cat {
    font-size: .58rem;
}
.home-related-links--section {
    margin-top: .9rem;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
}
.home-related-links--stack {
    margin-top: .45rem;
}
.home-related-links--stack .home-related-links-label {
    font-size: .62rem;
    margin-bottom: .25rem;
}
.home-related-links--stack .home-related-title {
    font-size: .78rem;
    font-weight: 700;
}
.home-related-links--stack .home-related-cat {
    font-size: .56rem;
}
.home-related-links--card {
    margin-top: auto;
    padding: .85rem 1.15rem 1.05rem;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper-muted) 70%, var(--paper));
}

.home-section-lead {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden;
}
.home-section-lead-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-muted);
}
.home-section-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.home-section-lead:hover .home-section-lead-media img { transform: scale(1.02); }
.home-section-lead-body {
    padding: 1rem 1.1rem 1.15rem;
}
.home-section-lead-body .cat-pill { margin-bottom: .55rem; }
.home-section-lead-body h3 {
    margin: 0 0 .5rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}
.home-section-lead-body h3 a { color: var(--ink); }
.home-section-lead-body h3 a:hover { color: var(--accent); }
.home-section-lead-excerpt {
    margin: 0 0 .65rem;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-section-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--paper-muted);
    min-width: 0;
}
.home-section-stack--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: none;
    background: transparent;
}
.home-section-stack--grid .home-stack-item {
    border: 1px solid var(--line);
    background: var(--paper);
}
.home-stack-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: .85rem;
    align-items: start;
    padding: .85rem;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}
.home-stack-item:last-child { border-bottom: none; }
.home-stack-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-muted);
    border-radius: 3px;
}
.home-stack-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}
.home-stack-item:hover .home-stack-thumb img { transform: scale(1.04); }
.home-stack-body { min-width: 0; }
.home-stack-cat {
    margin-bottom: .35rem;
    font-size: .58rem;
    padding: .15rem .45rem;
}
.home-stack-body h3 {
    margin: 0 0 .25rem;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-stack-body h3 a { color: var(--ink); }
.home-stack-body h3 a:hover { color: var(--accent); }
.home-stack-body .meta-line {
    margin: 0;
    font-size: .75rem;
}
.home-section--latest .portada-latest-grid {
    border: 1px solid var(--line);
    padding: .25rem 1rem 0;
    background: var(--paper);
}
.home-section--latest .portada-latest-item {
    padding: .85rem 0;
}
.home-section--latest .portada-latest-item:last-child {
    border-bottom: none;
    padding-bottom: .85rem;
}

.home-block-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.home-block-head .section-label { flex: 1; }

.portada-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}
.portada-latest-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: .85rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.portada-latest-thumb {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--paper-muted);
    border-radius: 4px;
}
.portada-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portada-latest-body h4 {
    margin: 0 0 .25rem;
    font-size: .95rem;
    line-height: 1.35;
    font-weight: 700;
}

.portada-trending-band {
    margin-top: 2.5rem;
    padding: 1.25rem 0 0;
    border-top: 2px solid var(--ink);
}
.portada-trending-head .section-label { margin-bottom: 1rem; }
.portada-trending-scroll {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
}
.portada-trending-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .85rem;
    border: 1px solid var(--line);
    background: var(--paper-muted);
    border-radius: 6px;
    min-height: 100%;
}
.portada-trending-card:hover {
    border-color: var(--nav-accent, var(--accent));
    background: var(--paper);
}
.portada-trending-num {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--nav-accent, var(--accent));
    line-height: 1;
}
.portada-trending-title {
    font-size: .82rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portada-trending-card:hover .portada-trending-title { color: var(--nav-accent, var(--accent)); }

.magazine-main--full { margin-top: 2rem; }


/* —— Masthead —— */
.masthead {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.masthead-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.25rem 1.25rem 1rem;
    text-align: center;
}
.site-logo {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-transform: uppercase;
}
.site-logo a { color: var(--ink); }
.site-logo a:hover { color: var(--link-color, var(--accent)); }
.site-logo--image { margin: 0; }
.site-logo-img {
    max-height: 72px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}
.site-logo-img--mark { max-height: 44px; }
.site-logo--mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.site-logo-text {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.site-tagline {
    margin: .5rem 0 0;
    font-size: .95rem;
    color: var(--ink-muted);
    font-weight: 400;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* —— Nav —— */
.main-nav {
    border-bottom: 3px solid var(--nav-accent, var(--accent));
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.main-nav-bar {
    display: none;
}
.main-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .65rem .85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
}
.main-nav-toggle:hover,
.main-nav-toggle:focus-visible {
    border-color: var(--nav-accent, var(--accent));
    color: var(--nav-accent, var(--accent));
    outline: none;
}
.main-nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 1.1rem;
}
.main-nav-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    transition: transform .2s ease, opacity .2s ease;
}
.main-nav.is-open .main-nav-toggle-icon span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.main-nav.is-open .main-nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}
.main-nav.is-open .main-nav-toggle-icon span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}
.main-nav-bar-hint {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.main-nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .25rem;
    overflow: visible;
}
.main-nav-inner::-webkit-scrollbar { display: none; }
.main-nav a {
    display: block;
    padding: .85rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}
/* Alinear Portada con el botón Entrar de la franja superior */
.main-nav-inner > a:first-child,
.main-nav-inner > .nav-item:first-child > .nav-item-link {
    padding-left: 0;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--nav-accent, var(--accent));
    border-bottom-color: var(--nav-accent, var(--accent));
}
.main-nav .nav-admin {
    margin-left: auto;
    font-weight: 600;
    opacity: .7;
}
.nav-item--dropdown {
    position: relative;
    flex-shrink: 0;
}
.nav-item-link::after {
    content: "▾";
    font-size: .55rem;
    margin-left: .25rem;
    opacity: .7;
}
.nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% - 3px);
    left: 0;
    min-width: 14rem;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 200;
    padding: .4rem 0;
}
.nav-submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}
.nav-item--dropdown:hover > .nav-submenu,
.nav-item--dropdown:focus-within > .nav-submenu,
.nav-item--dropdown.is-open > .nav-submenu {
    display: block;
}
.nav-submenu a {
    display: block;
    padding: .7rem 1.15rem;
    font-size: .9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
    margin-bottom: 0;
    color: var(--ink-soft);
    white-space: nowrap;
}
.nav-submenu a:hover,
.nav-submenu a.active {
    background: var(--paper-muted);
    color: var(--nav-accent, var(--accent));
}

@media (max-width: 1024px) {
    body.main-nav-lock {
        overflow: hidden;
    }
    .main-nav-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        max-width: var(--max);
        margin: 0 auto;
        padding: .55rem 1.25rem;
    }
    .main-nav-inner {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: visible;
        max-height: min(75vh, 32rem);
        overflow-y: auto;
        padding: 0 0 .65rem;
        border-top: 1px solid var(--line);
        -webkit-overflow-scrolling: touch;
    }
    .main-nav.is-open .main-nav-inner {
        display: flex;
    }
    .main-nav-inner > a:first-child,
    .main-nav-inner > .nav-item:first-child > .nav-item-link {
        padding-left: 1.25rem;
    }
    .main-nav a,
    .main-nav .nav-item-link {
        white-space: normal;
        border-bottom: 1px solid var(--line);
        margin-bottom: 0;
        padding: .85rem 1.25rem;
        line-height: 1.3;
    }
    .main-nav a:hover,
    .main-nav a.active,
    .main-nav .nav-item-link.active {
        border-bottom-color: var(--line);
        background: color-mix(in srgb, var(--nav-accent, var(--accent)) 8%, var(--paper));
    }
    .main-nav .nav-admin {
        margin-left: 0;
    }
    .nav-item--dropdown {
        width: 100%;
    }
    .nav-item-link::after {
        display: none;
    }
    .nav-submenu {
        display: block;
        position: static;
        min-width: 0;
        border: none;
        border-bottom: 1px solid var(--line);
        box-shadow: none;
        background: var(--paper-muted);
        padding: 0;
    }
    .nav-submenu a {
        padding: .8rem 1.25rem .8rem 2rem;
        font-size: .9rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    }
    .nav-submenu a:last-child {
        border-bottom: none;
    }
}

.category-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}
.category-subnav-item {
    display: inline-block;
    padding: .4rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-soft);
    background: var(--paper);
}
.category-subnav-item:hover,
.category-subnav-item.active {
    border-color: var(--nav-accent, var(--accent));
    color: var(--nav-accent, var(--accent));
    background: var(--paper-muted);
}

/* —— Layout —— */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.75rem 1.5rem 3.5rem;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}
.home-main { min-width: 0; }
.home-aside {
    position: sticky;
    top: calc(3rem + 52px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.home-aside .sidebar-block {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 1rem 1.1rem;
    border-radius: 4px;
}
.home-aside .sidebar-label {
    margin: 0 0 .85rem;
    padding-bottom: .55rem;
    border-bottom: 2px solid var(--ink);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
}
.home-aside .trending-item {
    padding: .65rem 0;
}
.home-aside .trending-rank {
    font-size: 1rem;
}
.home-aside .trending-title {
    font-size: .88rem;
    line-height: 1.35;
}
.home-block {
    margin-bottom: 2.5rem;
}
.home-block:last-child { margin-bottom: 0; }
.home-block-head { margin-bottom: 0; }

.section-label {
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin: 0 0 1.15rem;
    padding-bottom: .55rem;
    border-bottom: 2px solid var(--ink);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--sans);
    line-height: 1.2;
}
.section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.section-label a {
    color: inherit;
}
.section-label a:hover { color: var(--accent); }
.section-more {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    white-space: nowrap;
}

/* —— Category pill —— */
.cat-pill {
    display: inline-block;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .2rem .55rem;
    background: var(--accent);
    color: #fff;
    margin-bottom: .6rem;
}
.cat-pill--muted {
    background: var(--ink);
}
a.cat-pill:hover {
    filter: brightness(1.1);
    color: #fff;
}

.meta-line {
    font-size: .8rem;
    color: var(--ink-muted);
    margin-bottom: .5rem;
}

/* —— Hero portada —— */
.hero-story {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    margin-bottom: 2rem;
    background: var(--paper);
    overflow: hidden;
}
.hero-story-media {
    position: relative;
    aspect-ratio: 16 / 10;
    max-height: 420px;
    min-height: 260px;
    background: var(--paper-muted);
}
.hero-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-story-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: rgba(255,255,255,.4);
    font-family: var(--serif);
    font-size: 1.5rem;
}
.hero-story-body {
    padding: 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--line);
    min-width: 0;
}
.hero-story h2 {
    margin: 0 0 .75rem;
    font-family: var(--serif);
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.hero-story h2 a:hover { color: var(--accent); }
.hero-lead {
    font-family: var(--body-serif);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0 0 1rem;
}
.hero-cta {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
}

/* —— Grid secundario —— */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}
.story-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.story-grid--section {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.story-grid--4 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.story-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.story-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.story-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.story-grid--related {
    gap: 1.25rem 1.5rem;
    align-items: stretch;
}
.story-grid--home-section {
    gap: 1.25rem 1.5rem;
    align-items: stretch;
}
.story-card-media-wrap {
    position: relative;
    margin-bottom: .75rem;
}
.story-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-muted);
    border-radius: 2px;
}
.story-card-cat {
    position: absolute;
    bottom: .5rem;
    left: .5rem;
    margin: 0;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.story-card--section {
    border-top: none;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-width: 0;
}
.story-card--section .story-card-media-wrap {
    margin-bottom: 0;
}
.story-card--section .story-card-media {
    border-radius: 0;
}
.story-card--section .story-card-body,
.story-card--section > h3,
.story-card--section > .meta-line,
.story-card--section > p {
    padding-left: .85rem;
    padding-right: .85rem;
}
.story-card--section > h3 {
    padding-top: .75rem;
    font-size: 1.05rem;
    margin-bottom: .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.story-card--section > .meta-line {
    margin-bottom: .5rem;
    padding-bottom: 0;
}
.story-card--section > p {
    font-size: .9rem;
    line-height: 1.45;
    padding-bottom: .85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.story-card--section:last-child > p {
    padding-bottom: .85rem;
}
.category-section.home-block {
    margin-bottom: 2rem;
}
.category-section.home-block:last-of-type {
    margin-bottom: 0;
}
.story-card--grid {
    border-top: none;
    padding: 1rem;
    border: 1px solid var(--line);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.story-card--grid .story-card-media-wrap {
    margin-bottom: .75rem;
}
.story-card--grid .story-card-media {
    border-radius: 2px;
}
.story-card--grid .cat-pill {
    margin-bottom: .35rem;
}
.story-card--grid h3 {
    font-size: 1.05rem;
    margin-bottom: .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.story-card--grid p {
    font-size: .9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: .25rem;
}
.article-related-section {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.article-related-section .section-label {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: .45rem;
}
.article-related-section .section-label::after {
    background: var(--line);
    opacity: .7;
}
.article-related-section .story-card,
.article-related-section .story-card--grid {
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    box-shadow: none;
}

.article-manual-related-section {
    margin-top: 2.5rem;
    padding: 1.35rem 1.25rem 1.4rem;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    background: color-mix(in srgb, var(--accent) 5%, var(--paper));
    border-radius: 2px;
}
.article-manual-related-section .section-label {
    margin-bottom: 1.1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
    padding-bottom: .45rem;
    color: var(--accent);
}
.article-manual-related-section .section-label::after {
    background: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.manual-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.35rem;
}
.manual-related-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: .9rem;
    align-items: start;
    min-width: 0;
}
.manual-related-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-muted);
    border-radius: 2px;
}
.manual-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.manual-related-card:hover .manual-related-media img {
    transform: scale(1.03);
}
.manual-related-body {
    min-width: 0;
}
.manual-related-body .cat-pill {
    margin-bottom: .35rem;
}
.manual-related-body h3 {
    margin: 0 0 .35rem;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.28;
}
.manual-related-body h3 a:hover {
    color: var(--accent);
}
.manual-related-body p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--ink-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card {
    border-top: 3px solid var(--ink);
    padding-top: .85rem;
    min-width: 0;
}
.story-card--grid {
    border-top: none;
    padding-top: 1rem;
}
.story-card-media {
    margin-bottom: .85rem;
}
.story-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.story-card:hover .story-card-media img { transform: scale(1.03); }
.story-card h3 {
    margin: 0 0 .5rem;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.28;
}
.story-card h3 a:hover { color: var(--accent); }
.story-card p {
    margin: 0;
    font-size: .95rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* —— Lista más noticias —— */
.more-stories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}
.more-story {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.more-story:last-child { border-bottom: none; }
.more-story-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-muted);
    display: block;
}
.more-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.more-story-body { min-width: 0; }
.more-story h4 {
    margin: 0 0 .35rem;
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 700;
}
.more-story h4 a:hover { color: var(--accent); }
.more-story p {
    margin: .35rem 0 0;
    font-size: .92rem;
    color: var(--ink-muted);
    line-height: 1.45;
}

/* —— Artículo —— */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}
.article-main { min-width: 0; }
.article-page { max-width: none; }
.article-breadcrumb {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}
.article-breadcrumb a { color: var(--accent); font-weight: 700; }
.article-headline {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.article-subhead {
    font-family: var(--body-serif);
    font-size: 1.2rem;
    line-height: 1.45;
    color: var(--ink-soft);
    margin: 0 0 1.25rem;
    font-weight: 600;
}
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: .75rem 0;
    margin-bottom: 1.25rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: .8rem;
    color: var(--ink-muted);
}
.article-meta-bar a {
    color: var(--accent);
    font-weight: 700;
}
.article-byline {
    font-weight: 700;
    color: var(--ink);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
}
.article-tags-label {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
    flex-shrink: 0;
}
.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.article-tag {
    display: inline-block;
    padding: .2rem .55rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.article-tag:hover {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    border-color: var(--accent);
}

/* —— Compartir / imprimir artículo —— */
.article-share-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1rem;
    margin-bottom: 1.25rem;
    padding: .65rem 0;
}
.article-share-label {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
    flex-shrink: 0;
}
.article-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.article-share-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .65rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink-soft);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.article-share-btn:hover {
    border-color: var(--ink-muted);
    background: var(--paper-muted);
    color: var(--ink);
}
.article-share-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}
.article-share-btn--facebook:hover { color: #1877f2; border-color: #1877f2; }
.article-share-btn--x:hover { color: #111; border-color: #111; }
.article-share-btn--whatsapp:hover { color: #25d366; border-color: #25d366; }
.article-share-btn--linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.article-share-btn--telegram:hover { color: #229ed9; border-color: #229ed9; }
.article-share-btn--email:hover { color: var(--accent); border-color: var(--accent); }
.article-share-btn.is-copied {
    border-color: #2f855a;
    color: #2f855a;
    background: #f0fff4;
}

.article-hero-img {
    margin: 0 0 1.5rem;
    border: 1px solid var(--line);
}
.article-hero-img img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}
.article-hero-img figcaption {
    padding: .6rem 1rem;
    font-size: .85rem;
    color: var(--ink-muted);
    background: var(--paper-muted);
    border-top: 1px solid var(--line);
}
.article-hero-placeholder {
    margin: 0 0 1.5rem;
    min-height: clamp(180px, 28vw, 320px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: .45rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--nav-accent, var(--accent)) 18%, #1a1a1a), #2a2a2a 55%, #111);
    color: #fff;
}
.article-hero-placeholder-brand {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    opacity: .92;
}
.article-hero-placeholder-cat {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
}
.story-card-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: .75rem;
    background: linear-gradient(135deg, #1f1f1f, #3a3a3a);
    color: rgba(255, 255, 255, .4);
    font-family: var(--serif);
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}
.article-content {
    font-family: var(--body-serif);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--ink-soft);
}
.article-content p { margin: 0 0 1.25rem; }
.article-content h2, .article-content h3 {
    font-family: var(--serif);
    color: var(--ink);
    margin: 2rem 0 1rem;
}
.article-gallery--lightbox .article-lightbox-trigger {
    display: block;
    cursor: zoom-in;
}
.article-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.article-lightbox[hidden] { display: none; }
.article-lightbox img {
    max-width: min(1200px, 100%);
    max-height: 90vh;
    object-fit: contain;
}
.article-lightbox-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    text-align: center;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
}
.article-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
}
.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
    margin: 1.5rem 0;
}
.article-gallery-item.featured { grid-column: 1 / -1; }
.article-gallery-item img {
    width: 100%;
    border: 1px solid var(--line);
}
.article-gallery-item.featured img {
    max-height: 480px;
    object-fit: cover;
}
.article-gallery-item figcaption {
    font-size: .8rem;
    color: var(--ink-muted);
    margin-top: .35rem;
}

.article-poll {
    margin: 2rem 0;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent, var(--ink));
    background: var(--surface-muted, #f8f9fa);
}
.article-poll-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin: 0 0 .35rem;
}
.article-poll-question {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0 0 1rem;
    font-family: var(--font-headline, inherit);
}
.article-poll-options {
    border: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}
.article-poll-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .65rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.article-poll-option input { flex-shrink: 0; }
.article-poll-option:hover { border-color: var(--accent, var(--ink)); }
.article-poll-submit {
    margin-top: .85rem;
    padding: .55rem 1.25rem;
    border: none;
    border-radius: 6px;
    background: var(--accent, var(--ink));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.article-poll-submit:hover { opacity: .92; }
.article-poll-results { display: grid; gap: .75rem; }
.article-poll-result-head {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    font-size: .9rem;
    margin-bottom: .25rem;
}
.article-poll-bar {
    height: 8px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
}
.article-poll-bar span {
    display: block;
    height: 100%;
    background: var(--accent, var(--ink));
    border-radius: 4px;
    min-width: 2px;
    transition: width .35s ease;
}
.article-poll-meta,
.article-poll-thanks {
    font-size: .85rem;
    color: var(--ink-muted);
    margin: .75rem 0 0;
}

.article-video {
    margin: 1.5rem 0;
}
.article-video--hero {
    margin: 1.25rem 0 1.75rem;
}
.article-video video {
    width: 100%;
    max-height: 540px;
    background: #111;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.article-video--hero video {
    max-height: 480px;
    object-fit: contain;
}
.article-video figcaption {
    font-size: .8rem;
    color: var(--ink-muted);
    margin-top: .35rem;
}

.related-block {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--ink);
}
.article-section-block {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.article-category-feed-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: .25rem;
}
.article-feed-count {
    font-size: .78rem;
    color: var(--ink-muted);
    font-weight: 600;
}
.more-stories--feed {
    grid-template-columns: 1fr;
    gap: 0;
}
.article-feed-sentinel {
    height: 1px;
    margin-top: .5rem;
}
.article-feed-pagination {
    margin-top: 1.15rem;
}
.article-feed-pagination .list-pagination-btn:disabled,
.article-feed-pagination .list-pagination-link:disabled {
    opacity: .45;
    pointer-events: none;
}
.article-feed-pagination .list-pagination-link {
    cursor: pointer;
    font: inherit;
}
.article-feed-status,
.article-feed-end {
    margin: 1rem 0 0;
    text-align: center;
    font-size: .85rem;
    color: var(--ink-muted);
}
.article-feed-status:not([hidden]) {
    animation: article-feed-pulse 1.2s ease-in-out infinite;
}
@keyframes article-feed-pulse {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

/* —— Sidebar noticia / categoría —— */
.article-sidebar {
    position: sticky;
    top: calc(3rem + 48px);
}
.sidebar-block {
    border: 1px solid var(--line);
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--paper-muted);
}
.sidebar-label {
    margin: 0 0 .75rem;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--accent);
}
.sidebar-list { display: grid; gap: .85rem; }
.popular-sidebar-head {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-bottom: .75rem;
}
.popular-sidebar-head .sidebar-label {
    margin-bottom: 0;
    padding-bottom: .5rem;
}
.popular-period-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}
.popular-period-tab {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink-muted);
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .28rem .55rem;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.2;
}
.popular-period-tab:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    color: var(--ink);
}
.popular-period-tab.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.popular-period-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.popular-sidebar.is-loading .popular-sidebar-list {
    opacity: .55;
    pointer-events: none;
}
.popular-sidebar-empty {
    margin: 0;
    font-size: .85rem;
    color: var(--ink-muted);
    line-height: 1.4;
}
.sidebar-story {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: .65rem;
    align-items: start;
}
.sidebar-story-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
}
.sidebar-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-story-body h4 {
    margin: 0 0 .25rem;
    font-family: var(--serif);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.25;
}
.sidebar-story-body h4 a:hover { color: var(--accent); }

/* —— Categoría —— */
.category-page {
    width: 100%;
}

.category-page-hero {
    margin-bottom: 1.15rem;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}
.category-page-breadcrumb {
    padding: 0;
    margin-bottom: .4rem;
}
.category-page-hero-main {
    display: grid;
    grid-template-columns: 4px 1fr;
    gap: 0;
    padding: 0;
    align-items: stretch;
}
.category-page-hero-accent {
    width: 4px;
    margin-top: .15rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--nav-accent, var(--accent)), color-mix(in srgb, var(--nav-accent, var(--accent)) 35%, transparent));
}
.category-page-hero-content {
    padding: 0 0 0 .85rem;
    min-width: 0;
}
.category-page-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--ink);
}
.category-page-label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-muted);
}
.category-page-description {
    margin: .45rem 0 0;
    max-width: 42rem;
    font-size: .98rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
.category-page-stats {
    margin: .35rem 0 0;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.category-page-stats-sep { margin: 0 .35rem; opacity: .55; }

.category-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .85rem 1.25rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.category-section-nav-item {
    display: inline-flex;
    align-items: center;
    padding: .45rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
    color: var(--ink-soft);
    background: var(--paper-muted);
    transition: border-color .15s, color .15s, background .15s;
}
.category-section-nav-item:hover {
    border-color: var(--nav-accent, var(--accent));
    color: var(--nav-accent, var(--accent));
}
.category-section-nav-item.is-active {
    border-color: var(--nav-accent, var(--accent));
    background: var(--nav-accent, var(--accent));
    color: #fff;
}

.category-subnav--nested {
    padding: .75rem 1.25rem 1rem;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper-muted) 65%, var(--paper));
}

.category-lead-hero {
    margin-bottom: 1.5rem;
}
.category-layout--magazine .category-secondary-band {
    margin-bottom: 1.75rem;
}
.category-secondary-band {
    margin-bottom: 1.75rem;
}
.category-secondary-band .portada-band-card--featured {
    border-radius: 8px;
}
.category-secondary-band .portada-band-media {
    aspect-ratio: 16 / 10;
}
.category-list-head {
    margin-bottom: .25rem;
}
.category-more-stories {
    margin-top: 0;
}
.category-more-stories .more-story {
    padding: 1.15rem 0;
}
.category-layout--magazine .category-more-stories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.75rem;
}
.category-layout--magazine .list-pagination {
    margin-top: 1.25rem;
}
.more-story--row {
    grid-template-columns: 200px 1fr;
    gap: 1.15rem;
}
.more-story--row .more-story-thumb {
    aspect-ratio: 16 / 10;
}

.category-empty-state {
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--line);
    border-radius: 12px;
    text-align: center;
    background: var(--paper-muted);
}
.category-empty-state p {
    margin: 0 0 1rem;
    color: var(--ink-muted);
}
.category-empty-link {
    font-weight: 700;
    color: var(--nav-accent, var(--accent));
}

.category-sidebar .sidebar-block {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    background: var(--paper);
}

.category-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--ink);
}
.category-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.category-description {
    margin: .5rem 0 0;
    color: var(--ink-muted);
    max-width: 40rem;
}
.portada-hero-content--overlay {
    pointer-events: none;
}
.portada-hero-content--overlay a {
    pointer-events: auto;
}
.category-lead {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    margin-bottom: 2rem;
}
.category-lead-media {
    min-height: 280px;
    background: var(--paper-muted);
}
.category-lead-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}
.category-lead-body {
    padding: 1.5rem;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.category-lead-body h2 {
    margin: 0 0 .75rem;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
}
.category-lead-body p {
    margin: 0;
    font-family: var(--body-serif);
    color: var(--ink-soft);
    line-height: 1.5;
}
.category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}
.category-main { min-width: 0; }
.list-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.list-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}
.list-pagination-btn,
.list-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .65rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: .875rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.list-pagination-btn:hover,
.list-pagination-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.list-pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .65rem;
    border-radius: 4px;
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
}
.list-pagination-ellipsis {
    padding: 0 .25rem;
    color: var(--ink-muted);
    font-size: .875rem;
}
.list-pagination-meta {
    font-size: .8rem;
    color: var(--ink-muted);
    margin-left: auto;
}
.category-section { margin-bottom: 0; }
.category-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.category-section-head .section-label { flex: 1; margin-bottom: 1.15rem; }
.category-page-label {
    font-size: .72em;
    font-weight: 600;
    color: var(--ink-muted);
}

/* —— Trending portada —— */
.trending-strip {
    margin-bottom: 2rem;
    border: 1px solid var(--line);
    padding: 1rem 1.25rem;
    background: var(--paper-muted);
}
.trending-sidebar .sidebar-label {
    margin-bottom: .75rem;
}
.trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}
.trending-list--ranked { counter-reset: trending; }
.trending-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: .75rem;
    align-items: start;
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
    text-decoration: none;
    color: inherit;
}
.trending-item:last-child { border-bottom: none; }
.trending-rank {
    font-family: var(--serif);
    font-weight: 800;
    color: var(--accent);
    font-size: 1.15rem;
    line-height: 1.2;
}
.trending-copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}
.trending-title {
    font-weight: 600;
    line-height: 1.35;
    font-size: .98rem;
}
.trending-item:hover .trending-title { color: var(--accent); }
.trending-views,
.trending-meta {
    font-size: .78rem;
    color: var(--ink-muted);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
}
.back-link:hover { color: var(--accent); }

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid var(--line);
    background: var(--paper-muted);
}
.empty-state p { color: var(--ink-muted); max-width: 32rem; margin: 0 auto .75rem; }

/* —— Footer —— */
.site-footer {
    margin-top: 2.5rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--footer-bg) 88%, #ffffff 12%) 0%, var(--footer-bg) 100%);
    color: rgba(255,255,255,.78);
    border-top: 3px solid var(--accent);
}
.site-footer-top {
    padding: 2.5rem 0 2rem;
}
.site-footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(14rem, 1.45fr) repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    align-items: start;
}
.footer-brand-col { max-width: 22rem; }
.footer-brand {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .6rem;
}
.footer-brand a {
    color: #fff;
    text-decoration: none;
}
.footer-brand a:hover { color: var(--accent); }
.footer-logo-img {
    max-height: 40px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}
.footer-tagline {
    font-size: .875rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    color: rgba(255,255,255,.65);
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}
.footer-social-title {
    margin-top: .35rem;
}
.footer-brand-col .footer-social {
    margin-top: .15rem;
}
.footer-social--bottom {
    gap: .4rem;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.footer-social-link:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.45);
    color: #fff;
    transform: translateY(-1px);
}
.footer-social-link .social-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.footer-social-link--facebook:hover { color: #1877f2; border-color: #1877f2; }
.footer-social-link--twitter:hover { color: #fff; border-color: #fff; }
.footer-social-link--instagram:hover { color: #e4405f; border-color: #e4405f; }
.footer-social-link--youtube:hover { color: #ff0000; border-color: #ff0000; }
.footer-social-link--linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.footer-social-link--whatsapp:hover { color: #25d366; border-color: #25d366; }
.footer-social-link--tiktok:hover { color: #fff; border-color: #fff; }
.footer-social-link--telegram:hover { color: #229ed9; border-color: #229ed9; }
.footer-social-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.footer-social a.footer-social-link:has(.footer-social-label) {
    width: auto;
    height: auto;
    padding: .35rem .7rem;
    border-radius: 999px;
}
.footer-bottom-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
}
.footer-col-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin: 0 0 .85rem;
}
.footer-links-list,
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links-list li,
.footer-contact-list li {
    margin-bottom: .55rem;
    font-size: .875rem;
    line-height: 1.4;
}
.footer-links-list a,
.footer-contact-list a {
    color: rgba(255,255,255,.88);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .15s, border-color .15s;
}
.footer-links-list a:hover,
.footer-contact-list a:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.35);
}
.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.22);
}
.site-footer-network {
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.12);
    padding: 1.15rem 0 1.25rem;
}
.site-footer-network-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem 1.5rem;
}
.site-footer-network-label {
    margin: 0;
    flex: 0 0 auto;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.48);
    white-space: nowrap;
}
.site-footer-network .footer-media-list {
    flex: 1 1 12rem;
    min-width: 0;
    gap: .55rem 1.35rem;
}
.site-footer-network .footer-media-link {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
}
.site-footer-network .footer-media-name {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(255,255,255,.88);
    border-bottom: 1px solid transparent;
    transition: color .15s, border-color .15s;
}
.site-footer-network .footer-media-link:hover .footer-media-name {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.4);
}
.site-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    padding: 1rem 1.25rem;
}
.footer-copy {
    font-size: .78rem;
    margin: 0;
    color: rgba(255,255,255,.55);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .85rem;
}
.footer-cms-version {
    color: rgba(255,255,255,.42);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.footer-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.25rem;
}
.footer-legal-nav a {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    text-decoration: none;
}
.footer-legal-nav a:hover { color: #fff; }

/* —— Páginas estáticas —— */
.static-page {
    min-width: 0;
}
.archive-main.static-page,
.static-page.archive-main {
    max-width: none;
    margin: 0;
    padding: 0;
}
.static-page-title {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    margin: 0 0 1.25rem;
    line-height: 1.15;
}
.static-page-body {
    max-width: 42rem;
}
.static-page-content {
    font-size: 1.05rem;
    line-height: 1.7;
}
.static-page-content p { margin: 0 0 1rem; }
.static-page-content p:last-child { margin-bottom: 0; }
.static-page-contact-box {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line);
    background: var(--paper-muted);
    border-radius: 8px;
}
.static-page-contact-box p { margin: 0 0 .5rem; }
.static-page-contact-box p:last-child { margin-bottom: 0; }

.local-services-cp-form {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    background: var(--paper-muted);
    border-radius: 8px;
}
.local-services-cp-form > label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .45rem;
}
.local-services-cp-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: stretch;
}
.local-services-cp-row input {
    flex: 1 1 8rem;
    max-width: 12rem;
    padding: .65rem .75rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    font-size: 1.05rem;
    letter-spacing: .08em;
}
.local-services-cp-row input.error {
    border-color: #b91c1c;
}
.local-services-cp-form .hint {
    margin: .55rem 0 0;
    font-size: .85rem;
    color: var(--ink-muted);
}
.local-services-error {
    margin: .55rem 0 0;
    color: #b91c1c;
    font-size: .9rem;
    font-weight: 600;
}
.local-services-place {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
}
.local-services-cp-badge {
    display: inline-block;
    margin-left: .35rem;
    padding: .15rem .45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ink-muted);
}
.local-services-block {
    margin-bottom: 1.75rem;
}
.local-services-block h2 {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin: 0 0 .85rem;
}
.local-services-links,
.local-services-phones {
    list-style: none;
    margin: 0;
    padding: 0;
}
.local-services-links li,
.local-services-phones li {
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
}
.local-services-links li:last-child,
.local-services-phones li:last-child {
    border-bottom: none;
}
.local-services-links a {
    font-weight: 700;
    color: var(--link-color);
}
.local-services-links span,
.local-services-phone-hint {
    display: block;
    margin-top: .2rem;
    font-size: .85rem;
    color: var(--ink-muted);
}
.local-services-phone-num {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--link-color);
    margin-right: .5rem;
}
.local-services-phone-label {
    font-weight: 600;
}
.local-services-siblings {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.local-services-siblings a {
    display: inline-block;
    padding: .4rem .75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.local-services-siblings a:hover {
    color: var(--nav-accent, var(--accent));
    border-color: var(--nav-accent, var(--accent));
}

.contact-page-intro { margin-bottom: 1.5rem; }
.contact-form-panel {
    margin-top: 1.5rem;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 1.5rem;
    border-radius: 8px;
}
.contact-form-title {
    margin: 0 0 .35rem;
    font-family: var(--serif);
    font-size: 1.35rem;
}
.contact-form-hint {
    margin: 0 0 1.25rem;
    color: var(--ink-muted);
    font-size: .92rem;
}
.contact-form .field { margin-bottom: 1rem; }
.contact-form label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .35rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    background: var(--paper);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-color: var(--accent);
}
.contact-form input.error,
.contact-form textarea.error { border-color: #c53030; }
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.field-error {
    color: #c53030;
    font-size: .82rem;
    margin-top: .35rem;
}
.field-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-muted);
    font-size: .85rem;
}
.contact-form-submit {
    margin-top: .25rem;
    padding: .7rem 1.5rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}
.contact-form-submit:hover { filter: brightness(1.05); }
.contact-form-legal {
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper-muted);
    font-size: .88rem;
    line-height: 1.5;
}
.contact-form-legal-check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--ink-soft);
}
.contact-form-legal-check input {
    width: auto;
    margin-top: .2rem;
    flex-shrink: 0;
}
.contact-form-legal-check a {
    color: var(--accent);
    font-weight: 700;
}
.contact-form-legal-note {
    margin: .75rem 0 0;
    color: var(--ink-muted);
    font-size: .82rem;
    line-height: 1.45;
}
.contact-info-card {
    border: 1px solid var(--line);
    background: var(--paper-muted);
    padding: 1.25rem 1.35rem;
    border-radius: 8px;
}
.contact-info-card--inline {
    margin-top: 1.5rem;
}

.static-page-news {
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 3px solid var(--ink);
}
.content-modules {
    display: grid;
    gap: 1.35rem;
    margin-top: .25rem;
}
.content-modules .content-module {
    margin: 0;
}
.content-modules .section-label {
    margin-bottom: .85rem;
}
.content-modules .home-section {
    margin-bottom: 0;
}
.content-modules .home-section-more {
    display: none;
}
.content-module--grid .story-grid--content-module {
    gap: 1rem 1.15rem;
}
.content-module--grid .story-card--section > h3,
.content-module--grid .story-card--grid > h3 {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    padding-bottom: .85rem;
}
.content-module--grid .story-card--section > p,
.content-module--grid .story-card--grid > p {
    display: none;
}
.content-module--wide .story-card--section .story-card-media {
    aspect-ratio: 16 / 9;
    min-height: 180px;
}
.content-module--wide .story-card--section > h3 {
    font-size: 1.2rem;
}
.content-module--quad .story-card--section .story-card-media {
    aspect-ratio: 16 / 10;
}
.content-module--quad .story-card--section > h3 {
    font-size: 1rem;
}
.content-module--triple .story-card--section > h3 {
    font-size: 1.05rem;
}
.content-module--dense .story-card--section > h3 {
    font-size: .95rem;
    padding-top: .65rem;
}
.content-module--dense .story-card--section .story-card-media {
    aspect-ratio: 16 / 10;
}
.content-module--dense .story-card--section > .meta-line {
    display: none;
}
.content-module--list-2col .content-module-list-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.35rem;
}
.content-module-list-item {
    display: grid;
    grid-template-columns: minmax(7.5rem, 38%) 1fr;
    gap: .85rem;
    align-items: start;
}
.content-module-list-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    min-height: 5.5rem;
    overflow: hidden;
    background: var(--paper-muted);
}
.content-module-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.content-module-list-body h3 {
    margin: .15rem 0 .35rem;
    font-size: 1.02rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.content-module-list-body .content-module-excerpt {
    margin: 0 0 .4rem;
    font-size: .88rem;
    line-height: 1.45;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.content-module-list-body .meta-line {
    margin-bottom: 0;
}
.content-module--list .content-module-list {
    display: grid;
    gap: 0;
}
.content-module-list-row {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 1rem;
    align-items: start;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
}
.content-module-list-row:first-child { padding-top: 0; }
.content-module-list-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.content-module-list-row-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-muted);
}
.content-module-list-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.content-module-list-row-body h3 {
    margin: .15rem 0 .35rem;
    font-size: 1.08rem;
    line-height: 1.3;
}
.content-module-list-row-body .content-module-excerpt {
    margin: 0 0 .35rem;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.content-module--headlines .content-module-headlines {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}
.content-module-headlines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
}
.content-module-headlines a {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}
.content-module-headlines a:hover { color: var(--accent); }
.content-module-headlines time {
    flex: 0 0 auto;
    font-size: .78rem;
    color: var(--ink-muted);
    white-space: nowrap;
}
.content-module-hero-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
}
.content-module-hero-card {
    border: 1px solid var(--line);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.content-module-hero-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-muted);
}
.content-module-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.content-module-hero-body {
    padding: .9rem 1rem 1.1rem;
}
.content-module-hero-body h3 {
    margin: .35rem 0 .45rem;
    font-size: 1.25rem;
    line-height: 1.25;
}
.content-module-hero-body p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.content-module-magazine {
    display: grid;
    grid-template-columns: 1.35fr minmax(16rem, .85fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
}
.content-module-magazine-lead {
    display: grid;
    gap: .85rem;
}
.content-module-magazine-lead-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-muted);
}
.content-module-magazine-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.content-module-magazine-lead-body h3 {
    margin: .35rem 0 .45rem;
    font-size: 1.45rem;
    line-height: 1.2;
}
.content-module-magazine-lead-body p {
    margin: 0 0 .5rem;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
.content-module-magazine-side {
    display: grid;
    gap: .85rem;
}
.content-module-mosaic {
    display: grid;
    gap: 1rem;
}
.content-module-mosaic-lead {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem 1.25rem;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--paper);
}
.content-module-mosaic-lead-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-muted);
    min-height: 100%;
}
.content-module-mosaic-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.content-module-mosaic-lead-body {
    padding: 1rem 1.1rem 1rem 0;
}
.content-module-mosaic-lead-body h3 {
    margin: .35rem 0 .45rem;
    font-size: 1.35rem;
    line-height: 1.22;
}
.content-module-mosaic-lead-body p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
@media (max-width: 900px) {
    .content-module--grid.content-module--cols-4 .story-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .content-module-magazine {
        grid-template-columns: 1fr;
    }
    .content-module-mosaic-lead {
        grid-template-columns: 1fr;
    }
    .content-module-mosaic-lead-body {
        padding: 0 1rem 1rem;
    }
}
@media (max-width: 700px) {
    .content-module--list-2col .content-module-list-2col {
        grid-template-columns: 1fr;
    }
    .content-module--wide .story-grid--cols-2,
    .content-module--grid .story-grid--cols-2,
    .content-module-hero-pair {
        grid-template-columns: 1fr;
    }
    .content-module--grid.content-module--cols-3 .story-grid--cols-3,
    .content-module--grid.content-module--cols-4 .story-grid--cols-4 {
        grid-template-columns: 1fr;
    }
    .content-module-list-item,
    .content-module-list-row {
        grid-template-columns: 6.5rem 1fr;
    }
}
.contact-info-title {
    margin: 0 0 1rem;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--accent);
}
.contact-info-item {
    margin: 0 0 .85rem;
    font-size: .95rem;
    line-height: 1.45;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-bottom: .2rem;
}
.contact-info-empty,
.contact-info-note {
    font-size: .88rem;
    color: var(--ink-muted);
    line-height: 1.45;
}
.contact-info-note {
    margin-top: 1rem;
    padding: .75rem;
    border: 1px dashed var(--line);
    border-radius: 6px;
    background: var(--paper);
}

/* —— Responsive —— */
@media (max-width: 960px) {
    .hero-story { grid-template-columns: 1fr; }
    .hero-story-body { border-left: none; border-top: 1px solid var(--line); }
    .hero-story-media { max-height: 360px; }
    .portada-hero {
        border: 1px solid var(--line);
        background: var(--paper);
        border-radius: 8px;
        overflow: hidden;
    }
    .portada-hero-media-wrap {
        background: var(--paper-muted);
    }
    .portada-hero-media,
    .portada-hero-media--magazine {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
    .portada-hero-lead,
    .portada-hero-meta {
        display: none;
    }
    .portada-hero-footer {
        gap: 0;
        padding: .95rem .75rem 1rem;
    }
    .portada-hero-content {
        max-width: none;
        padding: 0;
    }
    .portada-hero-title {
        font-size: clamp(1.28rem, 5.4vw, 1.65rem);
        line-height: 1.18;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        letter-spacing: -0.015em;
        font-weight: 800;
    }
    .portada-hero-cat-badge {
        top: .75rem;
        left: .75rem;
        font-size: .68rem;
        padding: .3rem .6rem;
    }
    .portada-hero .home-related-links--hero {
        position: static;
        display: none;
    }
    .story-grid--featured { grid-template-columns: 1fr 1fr; }
    .story-grid { grid-template-columns: 1fr 1fr; }
    .story-grid--4 { grid-template-columns: 1fr 1fr; }
    .story-grid--cols-3,
    .story-grid--cols-4,
    .story-grid--home-section.story-grid--cols-3,
    .story-grid--home-section.story-grid--cols-4 { grid-template-columns: 1fr 1fr; }
    .manual-related-grid { grid-template-columns: 1fr; }
    .home-layout,
    .home-layout--portada,
    .magazine-row { grid-template-columns: 1fr; }
    .home-section-layout--lead { grid-template-columns: 1fr; }
    .home-section-stack--grid { grid-template-columns: 1fr; }
    .home-latest-grid { grid-template-columns: 1fr; }
    .home-aside,
    .magazine-aside { position: static; }
    .more-stories { grid-template-columns: 1fr; }
    .article-layout,
    .category-layout,
    .archive-layout,
    .weather-layout,
    .markets-layout,
    .tv-layout,
    .games-layout,
    .horoscope-layout,
    .category-lead { grid-template-columns: 1fr; }
    .markets-current-main { grid-template-columns: 1fr; }
    .markets-current-price { font-size: 2.1rem; }
    .markets-sidebar,
    .tv-sidebar { position: static; }
    .tv-program-item { grid-template-columns: 1fr; gap: .35rem; }
    .category-lead-body { border-left: none; border-top: 1px solid var(--line); }
    .article-sidebar { position: static; }
    .archive-sidebar { position: static; }
    .contact-form-grid { grid-template-columns: 1fr; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { max-width: none; }
    .footer-col--newsletter { display: none; }
    .portada-band--3 { grid-template-columns: 1fr 1fr; }
    .portada-trending-scroll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .portada-latest-grid { grid-template-columns: 1fr; }
    .edition-story { grid-template-columns: 140px 1fr; }
    .archive-tools { justify-content: stretch; }
    .archive-search-form { max-width: none; }
}

@media (max-width: 640px) {
    .wrap { padding: 1.25rem 1rem 2.5rem; }
    .story-grid,
    .story-grid--featured,
    .story-grid--4,
    .story-grid--cols-2,
    .story-grid--cols-3,
    .story-grid--cols-4,
    .story-grid--home-section { grid-template-columns: 1fr; }
    .more-stories { grid-template-columns: 1fr; gap: 0; }
    .more-story { grid-template-columns: 90px 1fr; gap: .75rem; }
    .manual-related-card { grid-template-columns: 100px 1fr; gap: .75rem; }
    .related-grid { grid-template-columns: 1fr; }
    .site-footer-grid { grid-template-columns: 1fr; }
    .footer-brand-col { max-width: none; }
    .site-footer-network-inner { flex-direction: column; align-items: flex-start; gap: .65rem; }
    .site-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .portada-band--3 { grid-template-columns: 1fr; }
    .category-layout--magazine .category-more-stories {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .portada-trending-scroll { grid-template-columns: 1fr 1fr; }
    .portada-latest-item { grid-template-columns: 80px 1fr; }
    .edition-story,
    .edition-story--lead { grid-template-columns: 1fr; }
    .archive-story,
    .archive-story--lead { grid-template-columns: 1fr; }
    .archive-story-media { max-height: 240px; }
}

/* —— Publicidad —— */
.ad-slot {
    margin: 1rem 0;
    text-align: center;
    clear: both;
}
.ad-slot--header_below_nav {
    max-width: var(--max);
    margin: 0 auto;
    padding: .5rem 1.25rem;
    background: var(--paper-muted);
    border-bottom: 1px solid var(--line);
}
.ad-slot--footer_above {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1rem 1.25rem;
}
.ad-slot--home_sidebar,
.ad-slot--article_sidebar,
.ad-slot--games_sidebar,
.ad-slot--markets_sidebar,
.ad-slot--tv_sidebar,
.ad-slot--weather_sidebar,
.ad-slot--sidebar_top,
.ad-slot--sidebar_between_lists {
    min-height: 0;
}
.article-sidebar .ad-slot,
.home-aside .ad-slot,
.games-sidebar .ad-slot,
.archive-sidebar .ad-slot {
    margin: 0 0 1rem;
    display: block;
    text-align: center;
}
.article-sidebar .ad-slot .ad-banner,
.home-aside .ad-slot .ad-banner,
.games-sidebar .ad-slot .ad-banner {
    display: block;
    width: 100%;
}
.article-sidebar .ad-text-banner,
.home-aside .ad-text-banner,
.games-sidebar .ad-text-banner {
    max-width: 100%;
}
.ad-slot--home_sidebar,
.ad-slot--article_sidebar {
    min-height: 0;
}
.ad-banner {
    display: inline-block;
    max-width: 100%;
    margin: .25rem auto;
    line-height: 0;
}
.ad-banner--text,
.ad-banner--generated {
    line-height: 1.35;
    width: 100%;
}
.ad-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.ad-format-leaderboard img { max-height: 90px; }
.ad-format-medium_rectangle img { max-width: 300px; }
.ad-format-half_page img { max-width: 300px; }
.ad-format-billboard img { max-width: 970px; }
.ad-format-mobile_banner img { max-width: 320px; }

.ad-text-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: .85rem 1rem .9rem;
    border-radius: 10px;
    background: var(--ad-bg, #0f172a);
    color: var(--ad-fg, #f8fafc);
    text-align: left;
    box-sizing: border-box;
}
.ad-text-banner-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.ad-text-banner-kicker {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .72;
    margin-bottom: .45rem;
}
.ad-text-banner-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .35rem;
}
.ad-text-banner-body {
    margin: 0 0 .55rem;
    font-size: .92rem;
    line-height: 1.45;
    opacity: .92;
}
.ad-text-banner-cta {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: var(--ad-accent, #f59e0b);
    color: #111;
    font-size: .82rem;
    font-weight: 700;
}
.ad-format-leaderboard .ad-text-banner,
.ad-format-mobile_banner .ad-text-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    padding: .7rem 1rem;
}
.ad-format-leaderboard .ad-text-banner-kicker,
.ad-format-mobile_banner .ad-text-banner-kicker { margin: 0; }
.ad-format-leaderboard .ad-text-banner-title,
.ad-format-mobile_banner .ad-text-banner-title {
    margin: 0;
    font-size: 1rem;
}
.ad-format-leaderboard .ad-text-banner-body,
.ad-format-mobile_banner .ad-text-banner-body {
    margin: 0;
    flex: 1 1 160px;
    font-size: .85rem;
}
.ad-format-medium_rectangle .ad-text-banner,
.ad-format-half_page .ad-text-banner {
    max-width: 300px;
    min-height: 0;
}
.ad-format-billboard .ad-text-banner {
    max-width: 970px;
    padding: 1.25rem 1.5rem;
}
.ad-format-billboard .ad-text-banner-title { font-size: 1.45rem; }

/* —— Portada magazine / compact —— */
.hero-story--magazine { border: none; margin-bottom: 1rem; }
.hero-story-media--full { position: relative; min-height: 420px; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,.75));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}
.hero-overlay h2 { margin: .5rem 0 0; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.hero-overlay h2 a { color: #fff; }
.hero-overlay .cat-pill { margin-bottom: .5rem; }
.magazine-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}
.magazine-aside { position: sticky; top: calc(3rem + 48px); }
.story-grid--2 { grid-template-columns: repeat(2, 1fr); }

.compact-hero {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 3px solid var(--ink);
    margin-bottom: 1rem;
    align-items: start;
}
.compact-hero h2 { margin: .35rem 0; font-family: var(--serif); font-size: 1.35rem; }
.compact-hero-lead {
    margin: .35rem 0 0;
    font-size: .95rem;
    line-height: 1.45;
    color: var(--ink-muted);
}
.compact-hero-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-muted); }
.compact-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-list { display: grid; gap: 0; }
.compact-list-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.compact-list-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-muted); }
.compact-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-list-item h3 { margin: 0 0 .35rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; }
.home-layout--compact .compact-list { margin-top: 0; }
.more-stories--full { grid-template-columns: 1fr; }

/* —— Artículo wide / immersive —— */
.article-layout--wide {
    grid-template-columns: minmax(0, 1.4fr) 260px;
}
.article-layout--immersive .article-hero-img {
    margin: 0 -1.25rem 1.5rem;
    border: none;
    max-width: calc(100% + 2.5rem);
}
.article-layout--immersive .article-hero-img img {
    max-height: 70vh;
}

@media (max-width: 960px) {
    .magazine-row { grid-template-columns: 1fr; }
    .magazine-aside { position: static; }
    .compact-hero { grid-template-columns: 1fr; }
    .compact-hero-thumb { max-height: 200px; }
    .article-layout--wide { grid-template-columns: 1fr; }
}

/* —— Boletín —— */
.newsletter-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.newsletter-page {
    padding: 0 0 3rem;
    max-width: none;
    margin: 0;
}
.newsletter-page--status .newsletter-page-head { margin-bottom: 1rem; }
.newsletter-page-head { margin-bottom: 0; }
.newsletter-page-head h1 {
    font-family: var(--serif);
    font-size: 2rem;
    margin: 0;
}
.newsletter-intro {
    color: var(--ink-muted);
    line-height: 1.55;
    margin: .45rem 0 1.25rem;
    font-size: .95rem;
}
.newsletter-page-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.35rem;
    background: var(--paper);
}
.newsletter-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.newsletter-form-row {
    margin-bottom: 1rem;
}
.newsletter-form-fields .newsletter-form-row { margin-bottom: 0; }
.newsletter-form-row label,
.newsletter-categories-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-muted);
    margin-bottom: .35rem;
}
.newsletter-form input[type=email],
.newsletter-form select {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .95rem;
    background: #fff;
}
.newsletter-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .45rem .85rem;
}
.newsletter-cat-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    cursor: pointer;
}
.newsletter-cat-check--child {
    padding-left: .75rem;
    font-size: .85rem;
}
.newsletter-submit {
    display: inline-block;
    width: auto;
    min-width: 12rem;
    margin-top: .75rem;
    padding: .7rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
}
.newsletter-submit:hover { filter: brightness(1.05); }
@media (max-width: 640px) {
    .newsletter-form-fields { grid-template-columns: 1fr; }
    .newsletter-categories { grid-template-columns: 1fr; }
    .newsletter-submit { width: 100%; }
}
.newsletter-form--footer {
    display: grid;
    gap: .5rem;
    margin-top: .5rem;
}
.newsletter-form--footer input,
.newsletter-form--footer select {
    width: 100%;
    padding: .5rem .65rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: .85rem;
}
.newsletter-form--footer input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form--footer select option { color: #111; }
.newsletter-form--footer button {
    padding: .55rem .75rem;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
}
.footer-newsletter-text {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    margin: 0 0 .5rem;
    line-height: 1.45;
}
.footer-newsletter-more {
    margin: .65rem 0 0;
    font-size: .8rem;
}
.footer-newsletter-more a { color: rgba(255,255,255,.75); }

/* —— Cuenta y participación —— */
.nav-account { font-size: .9rem; opacity: .9; }
.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .95rem; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.account-card { border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; background: var(--paper); }
.account-card h1 { font-family: var(--serif); margin: 0 0 .5rem; font-size: 1.75rem; }
.account-intro { color: var(--ink-muted); margin: 0 0 1.25rem; line-height: 1.5; }
.account-form { display: grid; gap: .85rem; }
.account-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem 1.25rem;
}
.account-field label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .35rem; }
.account-field input { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.account-field input.is-error { border-color: #dc2626; }
.field-error { color: #dc2626; font-size: .85rem; }
.field-hint { color: var(--ink-muted); font-size: .8rem; }
.account-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.account-hint { font-size: .9rem; color: var(--ink-muted); margin: 0 0 1rem; line-height: 1.5; }
.captcha-question { margin: 0 0 .35rem; font-size: .95rem; font-weight: 600; }
.account-captcha { margin-top: .25rem; }
.account-form--resend { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.account-submit {
    display: inline-block;
    width: auto;
    min-width: 12rem;
    padding: .7rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.account-submit--inline { display: inline-block; text-decoration: none; }
.account-alert { background: #fef2f2; color: #991b1b; padding: .65rem .85rem; border-radius: 8px; margin-bottom: 1rem; }
.account-footer-link { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-muted); }
.account-profile { margin: 1rem 0; }
.account-profile dt { font-size: .75rem; text-transform: uppercase; color: var(--ink-muted); margin-top: .75rem; }
.account-profile dd { margin: .2rem 0 0; font-size: 1rem; }
.account-field .error-msg { color: #dc2626; font-size: .85rem; margin-top: .25rem; }
.main-nav a.nav-account--profile { font-weight: 700; }

/* —— Área de cuenta —— */
.account-page { width: 100%; }
.account-page--auth {
    max-width: 440px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
}
.account-auth-layout .account-page--auth {
    max-width: none;
    margin: 0;
    padding: 0 0 3rem;
}
.account-auth-layout .account-page-head--auth {
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
}
.account-auth-layout .account-page-head--auth h1 {
    font-family: var(--serif);
    font-size: 2rem;
    margin: 0;
}
.account-breadcrumb {
    margin-bottom: 1rem;
}
@media (max-width: 640px) {
    .account-form-fields { grid-template-columns: 1fr; }
    .account-auth-layout .account-submit { width: 100%; }
}
.account-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.account-page-head h1 {
    font-family: var(--serif);
    margin: 0 0 .35rem;
    font-size: clamp(1.65rem, 2.5vw, 2rem);
    line-height: 1.15;
}
.account-page-lead { margin: 0; color: var(--ink-muted); font-size: .95rem; }
.account-page-user {
    text-align: right;
    font-size: .9rem;
    color: var(--ink-muted);
}
.account-page-user strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
}
.account-page-grid {
    display: grid;
    grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: start;
}
.account-page-grid--with-rail {
    grid-template-columns: minmax(200px, 220px) minmax(0, 1fr) minmax(240px, 300px);
}
.account-nav-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-muted);
    padding: .75rem;
}
.account-user-chip {
    padding: .65rem .75rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--line);
}
.account-user-chip strong { display: block; font-size: .95rem; }
.account-user-chip span { font-size: .8rem; color: var(--ink-muted); }
.account-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.account-nav a {
    display: block;
    padding: .5rem .65rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
}
.account-nav a:hover { background: rgba(0,0,0,.04); }
.account-nav a.is-active { background: var(--color-primary); color: #fff; }
.account-nav a.account-nav-logout { color: var(--ink-muted); font-weight: 500; margin-top: .35rem; }
.account-main-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    padding: 1.35rem 1.5rem;
    min-width: 0;
}
.account-main-panel h2 { font-family: var(--serif); margin: 0 0 1rem; font-size: 1.25rem; }
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.account-stat {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .85rem;
    background: var(--paper-muted);
}
.account-stat strong { display: block; font-size: 1.5rem; line-height: 1.1; }
.account-stat span { font-size: .8rem; color: var(--ink-muted); }
.account-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.account-list-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .85rem 1rem;
}
.account-list-item h3 { margin: 0 0 .35rem; font-size: 1rem; line-height: 1.35; }
.account-list-item h3 a { color: inherit; text-decoration: none; }
.account-list-item h3 a:hover { color: var(--link-color); }
.account-list-meta { font-size: .8rem; color: var(--ink-muted); margin-bottom: .35rem; }
.account-list-excerpt { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; margin: 0; }
.account-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .15rem .45rem;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
    margin-left: .35rem;
    vertical-align: middle;
}
.account-badge--muted { background: #f3f4f6; color: #6b7280; }
.account-empty { color: var(--ink-muted); font-size: .95rem; line-height: 1.5; }
.account-profile-dl {
    margin: 0;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: .35rem .75rem;
    font-size: .9rem;
}
.account-profile-dl dt { color: var(--ink-muted); font-weight: 600; }
.account-profile-dl dd { margin: 0; }
.account-news-rail {
    position: sticky;
    top: calc(3rem + 52px);
}
.account-news-rail .sidebar-block { margin-bottom: 0; }
.account-interest-band {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--line);
}
.account-interest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-bottom: 1.25rem;
}
.account-interest-head h2 {
    font-family: var(--serif);
    margin: 0;
    font-size: 1.35rem;
}
.account-interest-more {
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.account-interest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.account-interest-grid .story-card--grid { min-width: 0; }

.community-news-below {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--line);
}
.community-news-band + .community-news-band {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.community-news-band-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-bottom: 1.25rem;
}
.community-news-band-head h2 {
    font-family: var(--serif);
    margin: 0;
    font-size: 1.35rem;
}
.community-news-band-more {
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.community-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.community-news-grid .story-card--grid { min-width: 0; }
@media (max-width: 960px) {
    .community-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .community-news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
    .account-page-grid--with-rail {
        grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
    }
    .account-news-rail {
        position: static;
        grid-column: 1 / -1;
    }
    .account-interest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .account-page-grid,
    .account-page-grid--with-rail {
        grid-template-columns: 1fr;
    }
    .account-page-user { text-align: left; }
    .account-interest-grid { grid-template-columns: 1fr; }
}

.article-engagement { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.article-engagement-title { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.article-engagement-head { margin-bottom: 1rem; }

.article-main .article-manual-related-section,
.article-main .article-related-section,
.article-main .article-category-feed {
    margin-top: 2rem;
}
.article-main .manual-related-grid {
    grid-template-columns: 1fr;
}
.article-main .story-grid--related.story-grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
    .article-main .story-grid--related.story-grid--cols-4 {
        grid-template-columns: 1fr;
    }
}

.accommodations-widget {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.accommodations-widget-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: 1rem;
}
.accommodations-widget-head .section-label {
    margin-bottom: 0;
    flex: 1;
}
.accommodations-widget-place {
    margin: 0;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-muted);
}
.accommodations-widget-body {
    min-width: 0;
}
.accommodations-widget-body iframe,
.accommodations-widget-body img {
    max-width: 100%;
}
.category-main + .accommodations-widget,
.category-empty-state + .accommodations-widget,
.category-layout + .accommodations-widget {
    margin-top: 2.5rem;
}
.article-rating-summary { margin: .35rem 0 0; color: var(--ink-muted); font-size: .9rem; }
.article-rating-summary.muted { margin-top: .5rem; }
.article-rating-stars .star { color: #d1d5db; }
.article-rating-stars .star.is-on { color: #f59e0b; }
.engagement-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 .5rem; }
.article-rating-form-wrap, .article-comment-form-wrap { margin-bottom: 1.25rem; }
.rating-stars-input { display: flex; gap: .25rem; flex-direction: row-reverse; justify-content: flex-end; }
.rating-stars-input label { cursor: pointer; }
.rating-stars-input input { position: absolute; opacity: 0; }
.rating-stars-input span { font-size: 1.75rem; color: #d1d5db; transition: color .15s; }
.rating-stars-input label:hover span,
.rating-stars-input label:hover ~ label span,
.rating-stars-input input:checked ~ span,
.rating-stars-input input:checked ~ label span { color: #f59e0b; }
.article-comment-form textarea { width: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; font-family: var(--sans); font-size: .95rem; resize: vertical; }
.engagement-btn { margin-top: .5rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; font-weight: 600; }
.engagement-guest {
    display: grid;
    gap: .85rem;
    margin: 1rem 0 1.25rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    background: color-mix(in srgb, var(--accent) 6%, var(--paper));
    border-radius: 8px;
}
.engagement-guest-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}
.engagement-guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.engagement-guest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: .55rem 1.1rem;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.engagement-guest-btn--primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
}
.engagement-guest-btn--primary:hover {
    filter: brightness(1.05);
    color: #fff;
    transform: translateY(-1px);
}
.engagement-guest-btn--secondary {
    background: var(--paper);
    border: 2px solid var(--ink);
    color: var(--ink);
}
.engagement-guest-btn--secondary:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-1px);
}
.engagement-empty { color: var(--ink-muted); font-size: .95rem; }
.article-comments { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .85rem; }
.article-comment { padding: .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-muted); }
.article-comment-meta { display: flex; gap: .75rem; align-items: baseline; font-size: .85rem; color: var(--ink-muted); margin-bottom: .35rem; }
.article-comment p { margin: 0; line-height: 1.5; }

/* —— El tiempo —— */
.top-bar-weather { color: rgba(255,255,255,.85); text-decoration: none; }
.top-bar-weather:hover { text-decoration: underline; }
.weather-page { padding: 0 0 3rem; }
.weather-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}
.weather-main { min-width: 0; }
.weather-latest-news {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.weather-latest-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.weather-latest-head .section-label { margin-bottom: 1.15rem; }
.weather-page-head h1 { font-family: var(--serif); font-size: 2rem; margin: 0; }
.weather-location { color: var(--ink-muted); margin: .35rem 0 0; }
.weather-postal { opacity: .75; }
.weather-current-card {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-muted);
}
.weather-current-main { display: flex; align-items: center; gap: 1rem; }
.weather-current-temp { font-size: 2.5rem; font-weight: 700; margin: 0; line-height: 1; }
.weather-current-desc { margin: .25rem 0 0; color: var(--ink-muted); }
.weather-updated { margin: .75rem 0 0; font-size: .85rem; color: var(--ink-muted); }
.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
    margin-top: 1.5rem;
}
.weather-day-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .85rem;
    text-align: center;
    background: #fff;
}
.weather-day-label { font-weight: 700; margin: 0 0 .35rem; font-size: .9rem; }
.weather-day-desc { font-size: .8rem; color: var(--ink-muted); margin: .35rem 0; }
.weather-day-temps { margin: 0; font-size: .95rem; }
.temp-max { font-weight: 700; }
.temp-min { color: var(--ink-muted); margin-left: .35rem; }
.weather-day-precip { font-size: .75rem; color: var(--ink-muted); margin: .35rem 0 0; }
.weather-ai-summary { margin-top: 2rem; }
.weather-ai-summary .section-label { margin-bottom: 1rem; }
.weather-ai-summary-body {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, var(--paper-muted) 0%, #fff 55%);
}
.weather-ai-headline {
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 1.3;
    margin: 0 0 1rem;
}
.weather-ai-paragraph {
    margin: 0 0 .85rem;
    line-height: 1.7;
    font-size: 1.02rem;
    color: var(--ink);
}
.weather-ai-paragraph:last-child { margin-bottom: 0; }
.weather-empty { color: var(--ink-muted); margin-top: 1rem; }
.weather-webcams { margin-top: 2.5rem; }
.weather-webcam-grid { display: grid; gap: 1.25rem; margin-top: 1rem; }
.weather-webcam-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.weather-webcam-embed iframe,
.weather-webcam-image img {
    width: 100%;
    border: none;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #111;
}
.weather-icon::before { font-size: 2.5rem; line-height: 1; }
.weather-icon--sm::before { font-size: 1.5rem; }
.weather-icon--sun::before { content: "☀️"; }
.weather-icon--cloud::before { content: "☁️"; }
.weather-icon--rain::before { content: "🌧️"; }
.weather-icon--snow::before { content: "❄️"; }
.weather-icon--storm::before { content: "⛈️"; }
.weather-icon--fog::before { content: "🌫️"; }

/* —— Bolsa y mercados —— */
.top-bar-markets {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    margin-left: .75rem;
}
.top-bar-markets:hover { color: #fff; text-decoration: underline; }
.top-bar-markets.market-up { color: #86efac; }
.top-bar-markets.market-down { color: #fca5a5; }

.top-bar-rotator {
    position: relative;
    margin-left: .75rem;
    max-width: min(46vw, 360px);
    height: 1.35em;
    flex-shrink: 1;
    min-width: 0;
}
.top-bar-rotator-item {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    pointer-events: none;
}
.top-bar-rotator-item.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.top-bar-rotator-item:hover { color: #fff; text-decoration: underline; }

.markets-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}
.markets-main { min-width: 0; }
.markets-page { padding: 0 0 3rem; }
.markets-page-head { margin-bottom: 0; }
.markets-page-head h1 { font-family: var(--serif); font-size: 2rem; margin: 0; }
.markets-page-meta {
    color: var(--ink-muted);
    margin: .35rem 0 0;
    font-size: .95rem;
}
.markets-page-meta-sep { opacity: .55; margin: 0 .15rem; }
.markets-sentiment {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: .85rem 0 0;
}
.markets-sentiment-pill {
    font-size: .75rem;
    font-weight: 800;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: var(--paper-muted);
}
.markets-sentiment-pill.market-up { background: #ecfdf5; color: #15803d; }
.markets-sentiment-pill.market-down { background: #fef2f2; color: #b91c1c; }
.markets-sentiment-pill.market-flat { background: var(--paper-muted); color: var(--ink-muted); }

.markets-current-card {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-muted);
    border-left: 4px solid var(--line);
}
.markets-current-card.market-up { border-left-color: #16a34a; }
.markets-current-card.market-down { border-left-color: #dc2626; }
.markets-current-card.market-flat { border-left-color: var(--ink-muted); }
.markets-current-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 200px);
    gap: 1.25rem;
    align-items: center;
}
.markets-current-label {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
    margin: 0 0 .35rem;
}
.markets-current-name {
    font-family: var(--serif);
    font-size: 1.75rem;
    margin: 0;
    line-height: 1.15;
}
.markets-current-price {
    margin: .5rem 0 .25rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.markets-current-change {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .55rem;
}
.markets-current-card.market-up .markets-current-change { color: #16a34a; }
.markets-current-card.market-down .markets-current-change { color: #dc2626; }
.markets-current-exchange { margin: .5rem 0 0; font-size: .8rem; color: var(--ink-muted); }
.markets-current-chart .market-sparkline { width: 100%; height: 72px; }
.markets-current-range {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin: 1.15rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.markets-current-range div { min-width: 0; }
.markets-current-range dt {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin: 0;
}
.markets-current-range dd {
    margin: .15rem 0 0;
    font-size: .95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.markets-region { margin-top: 1.75rem; }
.markets-region .section-label { margin-bottom: 1rem; }
.markets-index-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.market-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .9rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.market-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.market-card.market-up { border-color: color-mix(in srgb, #16a34a 35%, var(--line)); }
.market-card.market-down { border-color: color-mix(in srgb, #dc2626 35%, var(--line)); }
.market-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}
.market-card-name {
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.25;
}
.market-card-badge {
    font-size: .72rem;
    font-weight: 800;
    padding: .15rem .4rem;
    border-radius: 999px;
    background: var(--paper-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.market-card-badge.market-up { background: #ecfdf5; color: #15803d; }
.market-card-badge.market-down { background: #fef2f2; color: #b91c1c; }
.market-card-price {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.market-card-change {
    margin: 0;
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink-muted);
}
.market-card.market-up .market-card-change > span:first-child { color: #16a34a; }
.market-card.market-down .market-card-change > span:first-child { color: #dc2626; }
.market-sparkline {
    display: block;
    width: 100%;
    height: 36px;
    margin-top: .35rem;
    opacity: .85;
}
.market-sparkline.market-up { color: #16a34a; }
.market-sparkline.market-down { color: #dc2626; }
.market-sparkline.market-flat { color: var(--ink-muted); }
.market-card-range-line {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .75rem;
    margin: .25rem 0 0;
    padding-top: .45rem;
    border-top: 1px dashed var(--line);
    font-size: .72rem;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.markets-empty {
    color: var(--ink-muted);
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--paper-muted);
    border-radius: 12px;
}
.markets-disclaimer {
    margin: 2rem 0 0;
    padding: .85rem 1rem;
    font-size: .8rem;
    color: var(--ink-muted);
    background: var(--paper-muted);
    border-radius: 10px;
    border-left: 3px solid var(--line);
}
.markets-disclaimer p { margin: 0; }
.markets-ai-summary { margin: 2rem 0; }
.markets-ai-summary .section-label { margin-bottom: 1rem; }
.markets-ai-summary-body {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, var(--paper-muted) 0%, #fff 55%);
}
.markets-ai-badge {
    margin: 0 0 .65rem;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
}
.markets-ai-headline {
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 1.3;
    margin: 0 0 1rem;
}
.markets-ai-paragraph {
    margin: 0 0 .85rem;
    line-height: 1.7;
    font-size: 1.02rem;
    color: var(--ink);
}
.markets-ai-paragraph:last-of-type { margin-bottom: .65rem; }
.markets-ai-meta {
    margin: 0;
    font-size: .78rem;
    color: var(--ink-muted);
    border-top: 1px dashed var(--line);
    padding-top: .75rem;
}
.markets-detail-table-wrap { margin: 2rem 0; }
.markets-equity-table-wrap { margin: 1.75rem 0 2rem; }
.markets-equity-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .65rem 1rem;
    margin-bottom: .35rem;
}
.markets-equity-head .section-label { margin-bottom: 0; }
.markets-sentiment--compact { margin: 0; }
.markets-equity-note {
    margin: 0 0 .85rem;
    font-size: .88rem;
    color: var(--ink-muted);
    line-height: 1.45;
}
.markets-table-ticker {
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--ink-muted);
    white-space: nowrap;
}
.markets-table-pct { font-weight: 800; }
.markets-equity-table tbody tr.market-up .markets-table-pct { color: #15803d; }
.markets-equity-table tbody tr.market-down .markets-table-pct { color: #b91c1c; }
.markets-detail-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}
.markets-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
}
.markets-detail-table th,
.markets-detail-table td {
    padding: .65rem .85rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.markets-detail-table th {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-muted);
    background: var(--paper-muted);
}
.markets-detail-table tbody tr:last-child td { border-bottom: none; }
.markets-detail-table tbody tr:hover { background: var(--paper-muted); }
.markets-table-name { display: block; font-weight: 700; }
.markets-table-exchange {
    display: block;
    font-size: .75rem;
    color: var(--ink-muted);
    margin-top: .1rem;
}
.markets-table-num { white-space: nowrap; font-weight: 600; }
.markets-table-trend {
    font-size: .75rem;
    font-weight: 800;
    padding: .2rem .45rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.markets-table-trend--alcista { background: #ecfdf5; color: #15803d; }
.markets-table-trend--bajista { background: #fef2f2; color: #b91c1c; }
.markets-table-trend--lateral { background: var(--paper-muted); color: var(--ink-muted); }
.markets-table-trend--neutral { color: var(--ink-muted); }
.markets-latest-news { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.markets-latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.markets-latest-head .section-label { margin-bottom: 0; }
.market-up { color: #16a34a; }
.market-down { color: #dc2626; }
.market-flat { color: var(--ink-muted); }
.markets-current-card.market-up,
.markets-current-card.market-down,
.markets-current-card.market-flat,
.market-card.market-up,
.market-card.market-down,
.market-card.market-flat {
    color: inherit;
}

/* —— Guía TV —— */
.top-bar-tv {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    margin-left: .75rem;
}
.top-bar-tv:hover { color: #fff; text-decoration: underline; }
.top-bar-games,
.top-bar-horoscope,
.top-bar-community,
.top-bar-account {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    margin-left: 0;
    white-space: nowrap;
    font-weight: 600;
}
.top-bar-start .top-bar-games,
.top-bar-start .top-bar-horoscope {
    margin-left: .75rem;
}
.top-bar-games:hover,
.top-bar-horoscope:hover,
.top-bar-community:hover,
.top-bar-account:hover { color: #fff; text-decoration: underline; }
.top-bar-markets-link.market-up { color: #86efac; }
.top-bar-markets-link.market-down { color: #fca5a5; }
.top-bar-account { font-weight: 600; }

/* —— Pasatiempos —— */
.games-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}
.games-main { min-width: 0; }
.games-sidebar {
    position: sticky;
    top: calc(3rem + 48px);
}
.games-page { padding: 0 0 3rem; }
.games-page--sudoku { padding-bottom: 3.5rem; }
.games-page-head { margin-bottom: 1.35rem; }
.games-page-head h1 {
    font-family: var(--serif);
    font-size: 2rem;
    margin: 0;
    line-height: 1.1;
}
.games-page-meta {
    margin: .45rem 0 0;
    font-size: .9rem;
    color: var(--ink-muted);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
.games-page-meta-sep { opacity: .55; }
.games-page-lead {
    color: var(--ink-muted);
    margin: .55rem 0 0;
    font-size: .95rem;
    line-height: 1.45;
    max-width: 40rem;
}
.games-latest-news {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.games-latest-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.games-latest-head .section-label { margin-bottom: 1.15rem; }
.games-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: .35rem;
}
.games-hub-card {
    display: block;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-muted);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.games-hub-card:hover {
    border-color: var(--nav-accent);
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.games-hub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: var(--nav-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: .75rem;
}
.games-hub-card h2 { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 800; }
.games-hub-card p { margin: 0; font-size: .9rem; color: var(--ink-muted); line-height: 1.45; }
.games-empty { color: var(--ink-muted); margin-top: 1rem; }

.sudoku-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
    gap: 1.35rem;
    align-items: start;
}
.sudoku-board-panel {
    padding: 1.35rem 1.35rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--paper-muted) 65%, #fff) 0%, #fff 42%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}
.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0;
    width: min(100%, 460px);
    margin: 0 auto;
    border: 3px solid var(--ink);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}
.sudoku-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid color-mix(in srgb, var(--line) 80%, var(--ink));
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, var(--ink));
    font-weight: 700;
    font-size: clamp(.95rem, 2.4vw, 1.35rem);
    font-variant-numeric: tabular-nums;
    font-family: ui-sans-serif, system-ui, sans-serif;
    color: var(--ink);
    transition: background .12s;
}
.sudoku-cell--col-end { border-right: 0; }
.sudoku-cell--row-end { border-bottom: 0; }
.sudoku-cell--col-border { border-left: 2px solid var(--ink); }
.sudoku-cell--row-border { border-top: 2px solid var(--ink); }
.sudoku-cell--fixed {
    background: color-mix(in srgb, var(--paper-muted) 88%, #fff);
    color: var(--ink);
}
.sudoku-cell--active {
    background: color-mix(in srgb, var(--nav-accent, var(--accent)) 12%, #fff);
}
.sudoku-cell--error { background: #fee2e2; }
.sudoku-cell--ok { background: #dcfce7; }
.sudoku-input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font: inherit;
    font-weight: 700;
    color: var(--nav-accent, var(--accent));
    background: transparent;
    caret-color: var(--nav-accent, var(--accent));
}
.sudoku-input:focus { outline: none; }
.sudoku-status {
    margin: 1rem 0 0;
    text-align: center;
    font-size: .95rem;
    color: var(--ink-muted);
    min-height: 1.4em;
}
.sudoku-status.is-ok { color: #047857; font-weight: 700; }
.sudoku-status.is-warn { color: #b45309; font-weight: 600; }

.sudoku-side {
    display: grid;
    gap: .9rem;
}
.sudoku-side-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.05rem 1.1rem;
    background: #fff;
}
.sudoku-side-card h2 {
    margin: 0 0 .65rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.sudoku-side-hint {
    margin: -.25rem 0 .75rem;
    font-size: .84rem;
    color: var(--ink-muted);
    line-height: 1.4;
}
.sudoku-side-card--rules ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: .45rem;
    color: var(--ink-muted);
    font-size: .88rem;
    line-height: 1.45;
}
.sudoku-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
}
.sudoku-pad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
}
.sudoku-pad-key {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-muted);
    color: var(--ink);
    font-weight: 800;
    font-size: 1.05rem;
    padding: .7rem 0;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
}
.sudoku-pad-key:hover {
    border-color: var(--nav-accent, var(--accent));
    color: var(--nav-accent, var(--accent));
    background: #fff;
}
.sudoku-pad-key--wide {
    grid-column: 1 / -1;
    font-size: .88rem;
    letter-spacing: .02em;
}
.sudoku-more-link {
    display: block;
    text-align: center;
    padding: .85rem 1rem;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--nav-accent, var(--accent)) 45%, var(--line));
    color: var(--nav-accent, var(--accent));
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    background: color-mix(in srgb, var(--nav-accent, var(--accent)) 6%, #fff);
}
.sudoku-more-link:hover { text-decoration: underline; }

.anagrama-wrap {
    margin-top: .35rem;
    padding: 1.5rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.anagrama-more {
    margin: 1.15rem 0 0;
    text-align: center;
}
.anagrama-more a {
    color: var(--nav-accent, var(--accent));
    font-weight: 700;
    text-decoration: none;
    font-size: .9rem;
}
.anagrama-more a:hover { text-decoration: underline; }
.btn-game {
    padding: .65rem 1rem;
    border: none;
    border-radius: 10px;
    background: var(--nav-accent);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
}
.btn-game:hover { filter: brightness(.95); }
.btn-game--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-game--ghost:hover {
    filter: none;
    background: var(--paper-muted);
    border-color: var(--nav-accent, var(--accent));
    color: var(--nav-accent, var(--accent));
}
.anagrama-scrambled {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
    margin: 0 0 .75rem;
    font-family: var(--serif);
}
.anagrama-hint {
    text-align: center;
    color: var(--ink-muted);
    margin: 0 0 1rem;
    font-size: .95rem;
}
.anagrama-form {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    align-items: center;
}
.anagrama-input {
    min-width: 200px;
    padding: .55rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 1rem;
    text-transform: uppercase;
}
.anagrama-status {
    margin: .85rem 0 0;
    text-align: center;
    font-size: .95rem;
    color: var(--ink-muted);
}

@media (max-width: 1100px) {
    .sudoku-stage {
        grid-template-columns: 1fr;
    }
    .sudoku-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sudoku-grid {
        width: min(100%, 420px);
    }
}
@media (max-width: 560px) {
    .sudoku-actions {
        grid-template-columns: 1fr;
    }
    .sudoku-board-panel {
        padding: 1rem .85rem .9rem;
    }
}

/* —— Horóscopo —— */
.horoscope-layout {
    max-width: var(--content-max, 1100px);
    margin: 0 auto;
    padding: 0 1rem;
}
.horoscope-main { min-width: 0; }
.horoscope-page { padding: 1.25rem 0 3rem; }
.horoscope-breadcrumb { margin-bottom: 1rem; }
.horoscope-page-head { margin-bottom: 1.5rem; }
.horoscope-page-head-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    align-items: flex-end;
}
.horoscope-page-head h1 { font-family: var(--serif); font-size: 2.15rem; margin: 0; line-height: 1.1; }
.horoscope-page-lead { color: var(--ink-muted); margin: .45rem 0 0; font-size: .95rem; }
.horoscope-updated {
    font-size: .82rem;
    color: var(--ink-muted);
    margin: 0;
}
.horoscope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.horoscope-card {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.horoscope-card-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .65rem;
}
.horoscope-symbol {
    font-size: 1.75rem;
    line-height: 1;
}
.horoscope-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}
.horoscope-card-head h2 a {
    color: inherit;
    text-decoration: none;
}
.horoscope-card-head h2 a:hover { color: var(--link-color); }
.horoscope-dates {
    margin: .15rem 0 0;
    font-size: .78rem;
    color: var(--ink-muted);
}
.horoscope-headline {
    margin: 0 0 .45rem;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.3;
}
.horoscope-text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--ink-muted);
}
.horoscope-more {
    display: inline-block;
    margin-top: .65rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--link-color);
    text-decoration: none;
}
.horoscope-more:hover { text-decoration: underline; }
.horoscope-empty { color: var(--ink-muted); margin-top: 1rem; }
.horoscope-disclaimer {
    margin-top: 2rem;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    background: var(--paper-muted);
    border: 1px solid var(--line);
}
.horoscope-disclaimer p { margin: 0; font-size: .85rem; color: var(--ink-muted); }
.horoscope-sign-body .horoscope-text { font-size: 1rem; color: var(--ink); }
.horoscope-detail-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.horoscope-symbol--lg { font-size: 3rem; line-height: 1; }
.horoscope-detail-headline {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}
.horoscope-detail-body {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    line-height: 1.6;
    font-size: 1rem;
}
.horoscope-other { margin-top: 2rem; }
.horoscope-other-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .85rem;
    margin-top: .75rem;
}
.horoscope-other-links a {
    color: var(--link-color);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
}
.horoscope-other-links a:hover { text-decoration: underline; }

.tv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}
.tv-main { min-width: 0; }
.tv-page { padding: 0 0 3rem; }
.tv-page-head { margin-bottom: 0; }
.tv-page-head h1 { font-family: var(--serif); font-size: 2rem; margin: 0; }
.tv-page-meta {
    color: var(--ink-muted);
    margin: .35rem 0 0;
    font-size: .95rem;
}
.tv-page-meta-sep { opacity: .55; margin: 0 .15rem; }

.tv-now { margin-top: 1.25rem; }
.tv-now .section-label { margin-bottom: 1rem; }
.tv-now-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tv-now-card {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .85rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.tv-now-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    border-color: color-mix(in srgb, var(--nav-accent, var(--accent)) 35%, var(--line));
}
.tv-channel-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--paper-muted);
    flex-shrink: 0;
}
.tv-channel-logo--md { width: 44px; height: 44px; }
.tv-channel-logo--sm {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}
.tv-channel-logo--sm.tv-channel-logo--fallback { font-size: .7rem; }
.tv-channel-logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 800;
    color: var(--ink-muted);
    text-transform: uppercase;
}
.tv-now-channel {
    margin: 0;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
}
.tv-now-title { margin: .2rem 0 0; font-size: .95rem; font-weight: 800; line-height: 1.25; }
.tv-now-time { margin: .25rem 0 0; font-size: .8rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.tv-channel-jump {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 1.5rem 0 1.25rem;
    padding: .85rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.tv-channel-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .65rem .3rem .35rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tv-channel-chip .tv-channel-logo { background: #fff; }
.tv-channel-chip:hover {
    background: var(--paper-muted);
    border-color: color-mix(in srgb, var(--nav-accent, var(--accent)) 40%, var(--line));
    color: var(--nav-accent, var(--accent));
}

.tv-schedule { margin-top: .5rem; }
.tv-schedule > .section-label { margin-bottom: 1rem; }
.tv-channel-block {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 1rem;
    background: var(--paper);
    overflow: hidden;
    scroll-margin-top: 1rem;
}
.tv-channel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem 1rem;
    padding: .85rem 1rem;
    background: var(--paper-muted);
    border-bottom: 1px solid var(--line);
}
.tv-channel-head-main { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.tv-channel-name { margin: 0; font-size: 1.05rem; font-weight: 800; }
.tv-channel-meta { margin: .1rem 0 0; font-size: .75rem; color: var(--ink-muted); }
.tv-channel-now {
    margin: 0;
    font-size: .82rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: .4rem;
    max-width: 100%;
}
.tv-live-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 3px color-mix(in srgb, #dc2626 20%, transparent);
    flex-shrink: 0;
}
.tv-program-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tv-program-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: .75rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--line);
}
.tv-program-item:last-child { border-bottom: none; }
.tv-program-item--now {
    background: color-mix(in srgb, var(--nav-accent, var(--accent)) 8%, var(--paper));
    box-shadow: inset 3px 0 0 var(--nav-accent, var(--accent));
}
.tv-program-time {
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink-soft, var(--ink));
    line-height: 1.25;
}
.tv-program-duration {
    display: block;
    margin-top: .1rem;
    font-size: .7rem;
    font-weight: 600;
    color: var(--ink-muted);
}
.tv-program-body { min-width: 0; }
.tv-program-title { margin: 0; font-size: .92rem; font-weight: 800; line-height: 1.3; }
.tv-live-pill {
    display: inline-block;
    margin-left: .35rem;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .12rem .35rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    vertical-align: middle;
}
.tv-program-meta { margin: .2rem 0 0; font-size: .75rem; color: var(--ink-muted); }
.tv-channel-empty,
.tv-empty {
    margin: 0;
    padding: 1rem;
    color: var(--ink-muted);
}
.tv-disclaimer {
    margin: 2rem 0 0;
    padding: .85rem 1rem;
    font-size: .8rem;
    color: var(--ink-muted);
    background: var(--paper-muted);
    border-radius: 10px;
    border-left: 3px solid var(--line);
}
.tv-disclaimer p { margin: 0; }
.tv-latest-news { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.tv-latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.tv-latest-head .section-label { margin-bottom: 0; }
.tv-sidebar-channels {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.tv-sidebar-channel {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .88rem;
    text-decoration: none;
    color: var(--ink);
    padding: .4rem 0;
    border-bottom: 1px solid var(--line);
}
.tv-sidebar-channel:last-child { border-bottom: none; }
.tv-sidebar-channel:hover { color: var(--nav-accent, var(--accent)); }
.tv-sidebar-channel .tv-channel-logo { background: #fff; }
.tv-sidebar-channel-name { line-height: 1.2; }

/* —— Patrocinio del tiempo —— */
.weather-sponsor {
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--paper-muted) 0%, #fff 100%);
    overflow: hidden;
}
.weather-sponsor-inner { padding: 1rem 1.25rem; }
.weather-sponsor-headline {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin: 0 0 .75rem;
}
.weather-sponsor-inline-link {
    color: var(--link-color, var(--accent));
    text-decoration: underline;
    text-underline-offset: .12em;
    font-weight: 800;
}
.weather-sponsor-inline-link:hover { opacity: .85; }
.weather-sponsor-inline-name { font-weight: 800; color: var(--ink); }
.weather-sponsor-body { display: grid; gap: .85rem; }
.weather-sponsor-brand { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.weather-sponsor-link { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.weather-sponsor-link:hover .weather-sponsor-name { color: var(--link-color); }
.weather-sponsor-logo { max-height: 48px; max-width: 160px; object-fit: contain; }
.weather-sponsor-name { font-size: 1.15rem; font-weight: 700; font-family: var(--serif); }
.weather-sponsor-banner img { width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px; }
.weather-sponsor-html { font-size: .9rem; color: var(--ink-muted); }
.weather-sponsor-placeholder {
    margin: 0;
    font-size: .9rem;
    color: var(--ink-muted);
    font-style: italic;
}
.ad-slot--weather_sponsor,
.ad-slot--weather_footer { margin: 1rem 0; }
.top-bar-sponsor {
    opacity: 1;
}

/* —— Enlaces: interés en el pie —— */
.site-footer-links-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
}
.site-footer-links-row .footer-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.25rem;
}
.site-footer-links-row .footer-links-list li {
    margin-bottom: 0;
}
.footer-media-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    align-items: center;
}
.footer-media-list a {
    display: block;
    text-decoration: none;
    color: rgba(255,255,255,.9);
}
.footer-media-logo {
    max-height: 36px;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .85;
    transition: opacity .15s;
}
.footer-media-list a:hover .footer-media-logo { opacity: 1; }
.footer-media-name {
    font-size: .875rem;
    border-bottom: 1px solid transparent;
}
.footer-media-list a:hover .footer-media-name { border-bottom-color: rgba(255,255,255,.5); }
.sidebar-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-links-list li { margin-bottom: .55rem; }
.sidebar-links-list a {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--ink);
    text-decoration: none;
    font-size: .9rem;
    line-height: 1.35;
}
.sidebar-links-list a:hover { color: var(--link-color); }
.sidebar-link-logo {
    max-height: 22px;
    max-width: 72px;
    object-fit: contain;
}
.home-links-strip {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--line);
    display: grid;
    gap: 1.5rem;
}
.home-media-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.home-media-logo-link img {
    max-height: 40px;
    max-width: 140px;
    object-fit: contain;
}
.home-media-logo-link span {
    font-weight: 600;
    color: var(--ink-soft);
}
.home-interest-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
}
.home-interest-links a {
    color: var(--link-color);
    text-decoration: none;
    font-size: .95rem;
}
.home-interest-links a:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .site-footer-links-row { grid-template-columns: 1fr; gap: 1.25rem; }
    .article-share-tools {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
    .article-share-actions {
        width: 100%;
    }
    .article-share-btn span {
        font-size: .7rem;
    }
}

.preview-banner {
    background: #1e40af;
    color: #fff;
    text-align: center;
    padding: .55rem 1rem;
    font-size: .9rem;
}
.preview-banner a { color: #fff; font-weight: 700; margin-left: .5rem; }

.admin-edit-chip {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 500;
    padding: .55rem 1rem;
    background: #1e40af;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: .88rem;
    box-shadow: 0 8px 24px rgba(30, 64, 175, .45);
}
.admin-edit-chip:hover { background: #1e3a8a; }
@media (max-width: 640px) {
    .admin-edit-chip { bottom: .75rem; right: .75rem; font-size: .8rem; }
}

/* —— Impresión de artículos —— */
@media print {
    .no-print,
    .top-bar,
    .masthead,
    .masthead-tools,
    .main-nav,
    .article-sidebar,
    .site-footer,
    .flash,
    .admin-edit-chip,
    .preview-banner,
    .ad-slot,
    .article-engagement,
    .article-category-feed,
    .article-related-section,
    .article-manual-related-section,
    .back-link,
    .article-share-tools,
    .article-poll,
    .article-breadcrumb { display: none !important; }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    .wrap {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    .article-layout,
    .article-layout--wide,
    .article-layout--immersive {
        display: block;
    }
    .article-headline {
        font-size: 22pt;
        line-height: 1.2;
        margin-bottom: .5rem;
    }
    .article-subhead {
        font-size: 13pt;
        color: #333;
    }
    .article-meta-bar {
        border: none;
        padding: 0;
        margin-bottom: 1rem;
        font-size: 10pt;
        color: #555;
    }
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    .article-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
    .article-content a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        font-weight: normal;
    }
}

/* —— Comunidad: avisos y foro —— */
.community-layout {
    width: 100%;
    padding-bottom: 3rem;
}
.community-layout--full {
    max-width: none;
}
.community-page-wrap {
    padding: 0 1rem 3rem;
    max-width: var(--content-max, 1100px);
    margin: 0 auto;
}
.community-page-wrap--narrow { max-width: 640px; }
.community-page-head-actions {
    margin-top: 1rem;
}
.community-category-nav {
    margin-bottom: 1.25rem;
}
.community-category-pill {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--paper-muted);
    border: 1px solid var(--line);
    font-size: .75rem;
    font-weight: 700;
    color: var(--ink-muted);
}
.community-category-pill--link {
    text-decoration: none;
    color: var(--nav-accent);
    border-color: color-mix(in srgb, var(--nav-accent) 35%, var(--line));
}
.community-category-pill--link:hover {
    background: color-mix(in srgb, var(--nav-accent) 8%, var(--paper));
}
.community-form-panel--wide {
    max-width: 820px;
}
.forum-thread-panel--full,
.classified-detail--full {
    width: 100%;
}
.classified-detail--full {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    background: var(--paper);
}
.classified-contact-inline {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-muted);
}
.classified-contact-inline h2 {
    margin: 0 0 .75rem;
    font-size: 1rem;
}
.community-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
    align-items: center;
}
.classified-grid--full {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.community-breadcrumb { margin-bottom: 1rem; }
.community-page-head { margin-bottom: 1.25rem; }

.community-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: border-color .15s, color .15s, background .15s;
}
.community-action-btn:hover {
    border-color: var(--nav-accent);
    color: var(--nav-accent);
    background: var(--paper-muted);
}
.community-action-btn--primary {
    background: var(--nav-accent);
    border-color: var(--nav-accent);
    color: #fff;
}
.community-action-btn--primary:hover {
    filter: brightness(1.06);
    color: #fff;
    border-color: var(--nav-accent);
}
.community-action-btn--danger {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}
.community-action-btn--danger:hover {
    border-color: #b91c1c;
    color: #991b1b;
    background: #fee2e2;
}

.community-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.community-filter {
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-muted);
    background: var(--paper);
}
.community-filter.is-active {
    background: var(--nav-accent);
    border-color: var(--nav-accent);
    color: #fff;
}
.community-filter:hover:not(.is-active) {
    border-color: var(--nav-accent);
    color: var(--nav-accent);
}

.community-empty-panel,
.community-notice {
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-muted);
    text-align: center;
}
.community-empty-panel p,
.community-notice { margin: 0 0 .75rem; color: var(--ink-muted); }
.community-notice--muted { margin-top: 1.5rem; text-align: left; }
.community-login-hint { margin: 0; font-size: .92rem; color: var(--ink-muted); }
.community-login-hint a { font-weight: 600; }

.community-sidebar-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-muted);
    margin-bottom: 1rem;
}
.community-sidebar-text {
    margin: 0 0 .85rem;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--ink-muted);
}
.community-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
}
.community-sidebar-links a {
    display: block;
    padding: .5rem .65rem;
    border-radius: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    color: var(--ink);
}
.community-sidebar-links a:hover {
    border-color: var(--nav-accent);
    color: var(--nav-accent);
}
.community-sidebar-notes {
    margin: 0 0 .85rem;
    padding-left: 1.1rem;
    font-size: .85rem;
    line-height: 1.45;
    color: var(--ink-muted);
}
.community-sidebar-link {
    font-size: .88rem;
    font-weight: 700;
    color: var(--nav-accent);
    text-decoration: none;
}
.community-sidebar-link:hover { text-decoration: underline; }

/* Avisos — grid de tarjetas */
.classified-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.classified-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.classified-card:hover {
    border-color: var(--nav-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transform: translateY(-1px);
}
.classified-card-link {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1rem 1.1rem 1.05rem;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
}
.classified-badge {
    display: inline-block;
    align-self: flex-start;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--paper-muted);
    color: var(--ink-muted);
    border: 1px solid var(--line);
}
.classified-badge--lg { font-size: .72rem; margin-bottom: .35rem; }
.classified-badge--sale { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.classified-badge--wanted { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.classified-badge--notice { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.classified-badge--services { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.classified-card-title {
    font-family: var(--serif);
    font-size: 1.12rem;
    line-height: 1.25;
    margin: 0;
    color: var(--ink);
}
.classified-card-price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--nav-accent);
}
.classified-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-top: auto;
    padding-top: .5rem;
    font-size: .8rem;
    color: var(--ink-muted);
    border-top: 1px solid var(--line);
}

/* Avisos — detalle */
.community-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.75rem;
    align-items: start;
}
.community-detail-main {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    background: var(--paper);
}
.classified-detail-head h1 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.15;
    margin: .5rem 0 0;
}
.classified-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin: .65rem 0 0;
    font-size: .88rem;
    color: var(--ink-muted);
}
.classified-detail-price {
    margin: .75rem 0 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--nav-accent);
}
.community-prose {
    line-height: 1.6;
    font-size: 1rem;
    color: var(--ink-soft);
}
.community-prose p { margin: 0 0 .65rem; }
.community-prose p:last-child { margin-bottom: 0; }
.community-prose ul,
.community-prose ol { margin: .35rem 0 .65rem; padding-left: 1.35rem; }
.community-prose li { margin: .2rem 0; }
.community-prose a { color: var(--link-color); }
.community-prose strong { font-weight: 700; }
.community-field--editor .tox-tinymce {
    border-radius: 8px;
    border-color: var(--line) !important;
}
.community-field--editor .tox .tox-toolbar__primary {
    background: var(--paper-muted);
}
.article-comment-body { margin: 0; }
.article-comment-form .tox-tinymce { margin-bottom: .65rem; }
.classified-detail-body { margin-top: 1.25rem; }

.community-aside-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: var(--paper-muted);
    margin-bottom: .85rem;
}
.community-aside-card h2 {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin: 0 0 .75rem;
}
.classified-contact-line {
    margin: 0 0 .65rem;
    font-size: .95rem;
}
.classified-contact-line:last-child { margin-bottom: 0; }
.classified-contact-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: .15rem;
}
.community-aside-actions {
    display: grid;
    gap: .5rem;
}
.classified-delete-form { margin: 0; }

/* Foro — tabla de temas */
.forum-table-wrap {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper);
}
.forum-table-head,
.forum-topic-row-link {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, .95fr) minmax(0, 1fr) 72px minmax(0, 1fr);
    gap: .75rem 1rem;
    align-items: center;
}
.forum-table-head {
    padding: .65rem 1rem;
    background: var(--paper-muted);
    border-bottom: 1px solid var(--line);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-muted);
}
.forum-topic-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.forum-topic-row { border-bottom: 1px solid var(--line); }
.forum-topic-row:last-child { border-bottom: none; }
.forum-topic-row.is-pinned { background: linear-gradient(90deg, rgba(0,0,0,.02), transparent); }
.forum-topic-row-link {
    padding: .85rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.forum-topic-row-link:hover { background: var(--paper-muted); }
.forum-col-topic {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    min-width: 0;
}
.forum-col-topic strong {
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.3;
    color: var(--ink);
}
.forum-col-author,
.forum-col-category,
.forum-col-replies,
.forum-col-activity {
    font-size: .86rem;
    color: var(--ink-muted);
}
.forum-col-replies {
    font-weight: 700;
    color: var(--ink);
    text-align: center;
}
.forum-status {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: 4px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.forum-status--pin { background: #fef3c7; color: #92400e; }
.forum-status--lock { background: #f3f4f6; color: #6b7280; }

/* Foro — hilo */
.forum-thread-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    background: var(--paper);
}
.forum-thread-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--line);
}
.forum-thread-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .5rem;
}
.forum-thread-head h1 {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.5vw, 1.95rem);
    line-height: 1.15;
    margin: 0;
}
.forum-thread-meta {
    margin: .5rem 0 0;
    font-size: .88rem;
    color: var(--ink-muted);
}
.forum-message {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: .85rem 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.forum-message--opening {
    padding-top: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: .25rem;
}
.forum-replies { list-style: none; margin: 0; padding: 0; }
.forum-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nav-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.forum-message-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .75rem;
    margin-bottom: .45rem;
    font-size: .86rem;
    color: var(--ink-muted);
}
.forum-message-head strong { color: var(--ink); font-size: .92rem; }
.forum-message-role {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--nav-accent);
}
.forum-message-body { font-size: .98rem; }
.forum-replies-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin: 1.25rem 0 .5rem;
}
.forum-reply-panel {
    margin-top: 1.25rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-muted);
}
.forum-reply-panel h2 {
    font-size: 1rem;
    margin: 0 0 .75rem;
    font-family: var(--serif);
}

/* Formularios comunidad */
.community-form-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem 1.35rem;
    background: var(--paper-muted);
}
.community-form-panel-head h1 {
    font-family: var(--serif);
    font-size: 1.75rem;
    margin: 0 0 .35rem;
}
.community-page-lead {
    margin: 0 0 1.25rem;
    color: var(--ink-muted);
    font-size: .92rem;
    line-height: 1.5;
}
.community-form { display: grid; gap: .9rem; }
.community-field label {
    display: block;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-muted);
    margin-bottom: .35rem;
}
.community-optional {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: .72rem;
    color: var(--ink-muted);
}
.community-field input,
.community-field select,
.community-field textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: .95rem;
    background: var(--paper);
}
.community-field textarea { resize: vertical; min-height: 120px; }
.community-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.community-error { color: #dc2626; font-size: .85rem; margin: .25rem 0 0; }
.community-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    margin-top: .25rem;
}

@media (max-width: 900px) {
    .classified-grid { grid-template-columns: 1fr; }
    .community-detail-layout { grid-template-columns: 1fr; }
    .category-page-hero-main { grid-template-columns: 1fr; }
    .category-page-hero-accent { display: none; }
    .category-page-hero-content { padding-left: 0; }
    .more-story--row { grid-template-columns: 120px 1fr; }
    .forum-table-head { display: none; }
    .forum-topic-row-link {
        grid-template-columns: 1fr;
        gap: .35rem;
    }
    .forum-col-replies { text-align: left; }
    .forum-col-author::before { content: 'Por '; }
    .forum-col-category::before { content: 'Categoría: '; }
    .forum-col-replies::before { content: 'Respuestas: '; }
    .forum-col-activity::before { content: 'Actividad: '; }
}

@media (max-width: 640px) {
    .community-field-row { grid-template-columns: 1fr; }
    .archive-page-head-row { flex-direction: column; align-items: stretch; }
    .community-action-btn { width: 100%; }
}

.home-community-block { margin-top: 0; }
.home-community-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}
.home-community-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: .88rem;
    color: var(--ink);
    background: var(--paper);
}
.home-community-links a::after {
    content: '→';
    color: var(--nav-accent);
    font-weight: 800;
}
.home-community-links a:hover {
    border-color: var(--nav-accent);
    color: var(--nav-accent);
    background: var(--paper-muted);
}

/* —— Botones: contraste en hover / pressed / focus —— */
:root {
    --btn-press: color-mix(in srgb, var(--nav-accent, var(--accent)) 72%, #000);
    --btn-press-soft: color-mix(in srgb, var(--nav-accent, var(--accent)) 14%, var(--paper));
}

button:focus-visible,
.archive-search-btn:focus-visible,
.masthead-account-login:focus-visible,
.masthead-account-register:focus-visible,
.edition-pdf-btn:focus-visible,
.article-share-btn:focus-visible,
.article-poll-submit:focus-visible,
.list-pagination-btn:focus-visible,
.list-pagination-link:focus-visible,
.contact-form-submit:focus-visible,
.newsletter-submit:focus-visible,
.newsletter-form--footer button:focus-visible,
.account-submit:focus-visible,
.engagement-btn:focus-visible,
.btn-game:focus-visible,
.community-action-btn:focus-visible {
    outline: 2px solid var(--nav-accent, var(--accent));
    outline-offset: 2px;
}

/* Primarios rellenos: al pulsar oscurecer y mantener texto blanco */
.archive-search-btn:hover,
.contact-form-submit:hover,
.newsletter-submit:hover,
.newsletter-form--footer button:hover,
.account-submit:hover,
.article-poll-submit:hover,
.community-action-btn--primary:hover,
.btn-game:not(.btn-game--ghost):hover {
    filter: none;
    background: color-mix(in srgb, var(--nav-accent, var(--accent)) 88%, #fff);
    color: #fff;
}

.archive-search-btn:active,
.contact-form-submit:active,
.newsletter-submit:active,
.newsletter-form--footer button:active,
.account-submit:active,
.article-poll-submit:active,
.community-action-btn--primary:active,
.btn-game:not(.btn-game--ghost):active {
    filter: none;
    background: var(--btn-press);
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22);
}

/* Secundarios / outline */
.edition-pdf-btn:active,
.list-pagination-btn:active,
.list-pagination-link:active,
.engagement-btn:active,
.community-action-btn:not(.community-action-btn--primary):not(.community-action-btn--danger):active,
.btn-game--ghost:active {
    background: var(--btn-press-soft);
    border-color: var(--nav-accent, var(--accent));
    color: var(--btn-press);
}

.community-action-btn--danger:active {
    background: #fecaca;
    border-color: #991b1b;
    color: #7f1d1d;
}

.article-share-btn:active {
    background: var(--btn-press-soft);
    border-color: var(--nav-accent, var(--accent));
    color: var(--btn-press);
}

.article-poll-option:active {
    border-color: var(--nav-accent, var(--accent));
    background: var(--btn-press-soft);
}

.home-community-links a:active {
    border-color: var(--nav-accent, var(--accent));
    color: var(--btn-press);
    background: var(--btn-press-soft);
}


/* —— Error 404 —— */
.error404-page {
    padding: 2.5rem 1rem 3.5rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--paper-muted) 70%, #fff) 0%, var(--paper) 48%);
}
.error404-inner {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}
.error404-preview-note {
    display: inline-block;
    margin: 0 0 1rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: .78rem;
    font-weight: 700;
}
.error404-code {
    margin: 0;
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
    color: color-mix(in srgb, var(--color-primary) 75%, var(--ink));
    opacity: .9;
}
.error404-inner h1 {
    margin: .65rem 0 .5rem;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
}
.error404-message {
    margin: 0 auto;
    max-width: 32rem;
    color: var(--ink-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}
.error404-path {
    margin: .85rem 0 0;
}
.error404-path code {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: .25rem .55rem;
    border-radius: 6px;
    background: var(--paper-muted);
    color: var(--ink-soft);
    font-size: .82rem;
}
.error404-actions {
    display: flex;
    gap: .55rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.35rem;
}
.error404-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: .55rem 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
}
.error404-btn--primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.error404-btn--primary:hover { filter: brightness(1.05); color: #fff; }
.error404-btn--ghost {
    background: #fff;
    color: var(--ink);
}
.error404-btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.error404-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .4rem;
    margin: 1.5rem auto 0;
    max-width: 28rem;
    text-align: left;
}
.error404-search input {
    width: 100%;
    min-height: 2.6rem;
    padding: .55rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}
.error404-search button {
    min-height: 2.6rem;
    padding: .55rem 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--line-dark);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.error404-extra {
    margin-top: 1.35rem;
    text-align: left;
    color: var(--ink-muted);
    font-size: .95rem;
}
.error404-latest {
    margin-top: 2.25rem;
    text-align: left;
    border-top: 1px solid var(--line);
    padding-top: 1.35rem;
}
.error404-latest h2 {
    margin: 0 0 .75rem;
    font-size: 1rem;
    font-family: var(--serif);
}
.error404-latest ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}
.error404-latest li {
    display: grid;
    gap: .1rem;
}
.error404-latest a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.3;
}
.error404-latest a:hover { color: var(--color-primary); }
.error404-latest span {
    font-size: .78rem;
    color: var(--ink-muted);
}
