﻿.escritorio {
    display: block;
}

.mobile {
    display: none;
}

: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;
}

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;
}

#contenedor_redes_superior {
    position: absolute;
    right: 0px;
    top: 45px;
    display: inline-block;
}

#contenedorBannersRotatorios1,
#contenedorBannersRotatorios2 {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    display: inline-block !important;
    padding: 0;
}

#contenedorBannersRotatorios1 {
    height: 250px !important;
}

#bannerRotatorio1,
#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;
}

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;
    position: relative;
    margin-bottom: 0px;
}

    .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;
    }

/* ===== Breaking ===== */
.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 ===== */
.grid {
    display: grid;
    gap: 18px;
    margin: 16px 0;
}

@media(min-width:1024px) {
    .grid {
        grid-template-columns: 3fr 2fr;
    }
}

.lead {
    padding-top: 0;
}

    .lead .media {
        border-radius: 14px;
        overflow: hidden;
    }

.eyebrow {
    display: inline-block;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    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;
}

.rail {
    display: grid;
    gap: 16px;
    grid-auto-rows: max-content; /* <-- evita que las filas se estiren */
    align-items: start; /* <-- opcional, pero correcto */
}

.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 ===== */
.river {
    display: grid;
    gap: 16px;
    margin-top: 10px;
}

@media(min-width:1024px) {
    .river {
        grid-template-columns: repeat(3,1fr);
    }
}

/* ===== Cards (versión final: GRID) ===== */
.card {
    display: grid;
    gap: 8px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    grid-auto-rows: max-content; /* <-- evita que las filas se estiren */
    align-items: start; /* <-- opcional, pero correcto */
}



    .card img {
        width: 100%;
        height: auto;
        max-height: 120px;
        object-fit: cover;
    }

    .card h4 {
        font-family: Merriweather, serif;
        font-weight: 700;
        margin: .15em 0;
        font-size: 1.02rem;
    }

/* ===== Opinión ===== */
.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);
}

/* ===== Ads ===== */
.ad-native {
    background: var(--ad);
    border: 1px dashed #cfe0ff;
    border-radius: 12px;
    padding: 12px;
    margin: 14px 0 ;
    max-width: 100%;
    overflow-x: hidden;
    min-width: 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;
}

    .ad-inline img {
        width: 68px;
        height: 68px;
        border-radius: 10px;
        object-fit: cover;
    }


.codigoPublicidad {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    min-width: 0;
}

    .codigoPublicidad * {
        max-width: 100% !important;
        height: auto;
        box-sizing: border-box;
    }


/* ===== 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;
    }

/* ==== LOGO ==== */

#logoPortada {
    position: absolute;
    left: 50%;
    top: 0px;
    margin-left: -260px;
    width: auto;
    height: 90%;
}


.pieFoto {
    margin: 4px;
    font-size: .8rem;
}

.imgMedia {
    width: 100%;
    height: auto;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .escritorio {
        display: none;
    }

    .mobile {
        display: block;
    }

    .masthead {
        margin-bottom: 20px;
    }

    #logoPortada {
        position: absolute;
        left: 0px;
        top: 0px;
        margin-left:unset;
        width: auto;
        height: 80%;
    }

    #contenedor_redes_superior {
        display: block;
        right: 5px;
        top: 60px;
    }

    .imgMedia {
        width: 100%;
        height: auto
    }

}
