﻿.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
}

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 secciones (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
}

@media (max-width: 768px) {

    .escritorio {
        display: none;
    }

    .mobile {
        display: block;
    }
}
