﻿.escritorio {
    display: block;
}

.mobile {
    display: none;
}

:root {
    --ink: #111315; /* texto principal */
    --paper: #ffffff; /* fondo base */
    --tint: #0f172a; /* masthead */
    --muted: #6b7280; /* textos de apoyo */
    --rule: #e5e7eb; /* líneas divisorias */
    --accent: #f8fafc; /* bandas suaves */
    --brand: #0b3d91; /* acento institucional */
    --ad: #f5f8ff; /* fondo ads nativos */
    --radius: 14px;
    --shadow: 0 8px 26px rgba(0,0,0,.06);
    --maxw: 1180px;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    line-height: 1.6
}

#contenedorBannersRotatorios1 {
    width: 100%;
    height: 250px !important;
    text-align: center;
    margin-bottom: 0px;
    display: inline-block !important;
    padding: 0;
}

#bannerRotatorio1 {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: none;
    margin: 0;
}

#contenedorBannersRotatorios2 {
    border:0px solid red;
    margin-top: 5px;
    width: 100%;
    height: auto !important;
    text-align: center;
    margin-bottom: 0px;
    display: inline-block !important;
    padding: 0;
}

#bannerRotatorio2 {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: none;
    margin: 0;
}

.banner-rotatorio {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

article h2:hover,
article h3:hover,
article h4:hover {
    text-decoration: underline;
    text-underline-offset: 3px; /* opcional: separa la línea del texto */
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px
}

/* ===== Header masthead (clásico) ===== */
header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--rule)
}

.dateline {
    font-size: .85rem;
    color: var(--muted);
    padding: 6px 0
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0
}

    .masthead h1 {
        font-family: Merriweather,serif;
        font-weight: 900;
        letter-spacing: .4px;
        font-size: clamp(1.6rem,3.4vw,2.4rem);
        margin: 0;
        color: var(--tint)
    }

.util {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0
}

    .util .links {
        padding: 5px 0px;
        font-size: .92rem;
    }

    .util .cta {
        display: flex;
        gap: 10px
    }

.btn {
    border: 1px solid var(--rule);
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff
}

    .btn:hover {
        background: #f8fafc
    }

/* ===== Nav de sectiones (scrollable en móvil) ===== */
nav.primary {
    position: relative
}

    nav.primary .scroller {
        display: flex;
        gap: 14px;
        overflow: auto;
        padding: 10px 2px
    }

    nav.primary a {
        white-space: nowrap;
        padding: 6px 10px;
        border-radius: 8px;
        color: #0f172a
    }

        nav.primary a.active, nav.primary a:hover {
            background: #f1f5f9
        }

/* ===== Breaking strip ===== */
.breaking {
    margin: 10px 0;
    background: var(--accent);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    gap: 12px;
    align-items: center
}

    .breaking .tag {
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .12em;
        color: #b91c1c;
        font-size: .75rem
    }

    .breaking .sep {
        opacity: .35
    }

/* ===== Grid portada (estilo diario) ===== */
.grid {
    display: grid;
    gap: 18px;
    margin: 16px 0
}

@media(min-width:1024px) {
    .grid {
        grid-template-columns: 3fr 2fr
    }
}

/* Lead story grande con serif */
.lead {
    padding-top: 0px
}

    .lead .media {
        border-radius: 14px;
        overflow: hidden
    }

.eyebrow {
    display: inline-block;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0b3d91;
    font-weight: 700;
    font-size: .8rem;
    margin: 10px 0 6px
}

.lead h2 {
    font-family: Merriweather,serif;
    font-weight: 900;
    font-size: clamp(1.6rem,3vw,2.2rem);
    line-height: 1.2;
    margin: .1em 0 .2em
}

.meta {
    color: var(--muted);
    font-size: .88rem
}

/* Dos secundarias a la derecha (stack en móvil) */
.rail {
    display: grid;
    gap: 16px
}

.story {
    display: grid;
    gap: 10px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 12px
}

    .story:last-child {
        border-bottom: none
    }

    .story h3 {
        font-family: Merriweather,serif;
        font-weight: 700;
        margin: .1em 0;
        font-size: 1.15rem
    }

/* River de noticias en 3 columnas en desktop */
.river {
    display: grid;
    gap: 16px;
    margin-top: 10px
}

@media(min-width:1024px) {
    .river {
        grid-template-columns: repeat(3,1fr)
    }
}

.card {
    display: flex;           /* usa flexbox en lugar de grid */
    flex-direction: column;  /* apila los hijos en columna */
    gap: 8px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.card img {
    width: 100%;             /* que la imagen ocupe todo el ancho del contenedor */
    height: auto;            /* mantiene proporción */
    max-height: 120px;       /* límite de altura */
    object-fit: cover;       /* recorta si es necesario */
}

.card h4 {
    font-family: Merriweather, serif;
    font-weight: 700;
    margin: .15em 0;
    font-size: 1.02rem;
    align-self: flex-start;  /* asegura que se alinee al inicio horizontal */
}


/* Opinión destacada tipo columna */
.opinion {
    display: grid;
    gap: 12px;
    border-top: 2px solid var(--rule);
    padding-top: 12px;
    margin-top: 6px
}

    .opinion .col {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        border-bottom: 1px dashed var(--rule);
        padding: 10px 0
    }

        .opinion .col:last-child {
            border-bottom: none
        }

.by {
    font-size: .86rem;
    color: var(--muted)
}

/* Publicidad nativa (no intrusiva) */
.ad-native {
    background: var(--ad);
    border: 1px dashed #cfe0ff;
    border-radius: 12px;
    padding: 12px
}

    .ad-native .sponsor {
        font-size: .72rem;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: #6b7280;
        margin-bottom: 6px
    }

.ad-inline {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px dashed #e5efff;
    background: #fff;
    border-radius: 12px;
    padding: 10px
}

    .ad-inline img {
        width: 68px;
        height: 68px;
        border-radius: 10px;
        object-fit: cover
    }

/* Footer minimal */
footer {
    margin: 30px 0;
    color: #475569
}

    footer .foot {
        border-top: 1px solid var(--rule);
        padding: 14px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        font-size: .9rem
    }

/* Utilidades */
.sr {
    position: absolute;
    left: -9999px
}

.spinner {
    display: inline-block;
    width: 42px;
    height: 42px;
    margin-top: 10px;
    border: 4px solid rgba(0,0,0,.15);
    border-top-color: rgba(0,0,0,.75);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Respeta "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
    }
}

@media (max-width: 768px) {

    .escritorio {
        display: none;
    }

    .mobile {
        display: block;
    }
}



:root {
    --ink: #111315;
    --paper: #ffffff;
    --tint: #0f172a;
    --muted: #6b7280;
    --rule: #e5e7eb;
    --accent: #f8fafc;
    --brand: #0b3d91;
    --ad: #f5f8ff;
    --radius: 14px;
    --shadow: 0 8px 26px rgba(0,0,0,.06);
    --maxw: 1180px;
    --maxw-article: 760px;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px
}

/* Header */
header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.dateline {
    font-size: .85rem;
    color: var(--muted);
    padding: 6px 0
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

    .masthead h1 {
        font-family: Merriweather,serif;
        font-weight: 900;
        font-size: clamp(1.6rem,3.4vw,2.4rem);
        margin: 0;
        color: var(--tint);
    }

.util {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
}

    .util .links {
        display: flex;
        gap: 14px;
        font-size: .92rem
    }

.btn {
    border: 1px solid var(--rule);
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff;
}

    .btn:hover {
        background: #f8fafc
    }

nav.primary .scroller {
    display: flex;
    gap: 14px;
    overflow: auto;
    padding: 10px 2px;
}

nav.primary a {
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    color: #0f172a;
}

    nav.primary a.active,
    nav.primary a:hover {
        background: #f1f5f9
    }

/* Progreso lectura */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg,var(--brand),#3b82f6);
    z-index: 60;
}

/* Breadcrumb */
.crumbs {
    max-width: var(--maxw-article);
    margin: 14px auto 6px;
    padding: 0 16px;
    color: #475569;
    font-size: .9rem;
}

    .crumbs .sep {
        opacity: .5;
        margin: 0 6px
    }

/* Artículo */
.article {
    max-width: var(--maxw-article);
    margin: 0 auto;
    padding: 0 16px;
}

.kicker {
    display: inline-block;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 700;
    font-size: .78rem;
    margin: 10px 0 6px;
}

h1.title {
    font-family: Merriweather,serif;
    font-weight: 900;
    font-size: clamp(1.6rem,3vw,2.4rem);
    line-height: 1.2;
    margin: .1em 0 .3em;
}

.meta {
    color: var(--muted);
    font-size: .92rem
}

.byline {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.share {
    margin-left: auto;
    display: flex;
    gap: 8px
}

    .share a {
        border: 1px solid var(--rule);
        padding: 6px 10px;
        border-radius: 8px;
        background: #fff;
        font-size: .88rem;
    }

.hero {
    margin: 14px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.caption {
    color: #64748b;
    font-size: .85rem;
    margin-top: 6px;
}

.article-body {
    font-size: 1.05rem;
    color: #0f172a
}

    .article-body p {
        margin: 1em 0
    }

    .article-body h2 {
        font-family: Merriweather,serif;
        font-size: 1.3rem;
        margin: 1.6em 0 .6em;
    }

    .article-body ul {
        padding-left: 20px
    }

    .article-body li {
        margin: .4em 0
    }

.dropcap:first-letter {
    float: left;
    font-family: Merriweather,serif;
    font-weight: 900;
    font-size: 3.2rem;
    line-height: .9;
    padding-right: .18em;
    color: var(--tint);
}

/* Cita destacada */
.pull {
    border-left: 4px solid var(--tint);
    padding: 10px 14px;
    margin: 18px 0;
    background: var(--accent);
    border-radius: 12px;
}

    .pull em {
        font-family: Merriweather,serif;
        font-weight: 700;
        font-style: normal;
    }

/* Publicidad */
.ad-native {
    background: var(--ad);
    border: 1px dashed #cfe0ff;
    border-radius: 12px;
    padding: 12px;
    margin: 18px 0;
}

    .ad-native .sponsor {
        font-size: .72rem;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: #6b7280;
        margin-bottom: 6px;
    }

.ad-inline {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px dashed #e5efff;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin: 18px 0;
}

    .ad-inline img {
        width: 68px;
        height: 68px;
        border-radius: 10px;
        object-fit: cover;
    }

/* Relacionados */
.related {
    max-width: var(--maxw-article);
    margin: 20px auto;
    padding: 0 16px;
}

    .related h3 {
        font-family: Merriweather,serif;
        margin: .2em 0 .6em;
    }

.cards {
    display: grid;
    gap: 14px
}

@media(min-width:760px) {
    .cards {
        grid-template-columns: repeat(3,1fr)
    }
}

.card {
    display: grid;
    gap: 8px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

    .card h4 {
        font-family: Merriweather,serif;
        font-weight: 700;
        margin: .15em 0;
        font-size: 1.02rem;
    }

/* Pager */
.pager {
    max-width: var(--maxw-article);
    margin: 28px auto;
    padding: 0 16px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

    .pager a {
        border: 1px solid var(--rule);
        border-radius: 10px;
        padding: 10px 12px;
        background: #fff;
        max-width: 48%;
        flex: 1 1 auto;
    }

    .pager small {
        display: block;
        color: #64748b;
        margin-bottom: 4px;
    }

/* Footer */
footer {
    margin: 30px 0;
    color: #475569;
}

    footer .foot {
        border-top: 1px solid var(--rule);
        padding: 14px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        font-size: .9rem;
    }


