/* ============================================================
   LOEX — Página: Detalle de noticia
   ============================================================ */

.news-detail {
    width: 100%;
    background-color: var(--color-white);
}

body[data-page="noticia"] .site-header__inner {
    margin-top: 63px;
}

.news-detail__hero {
    width: calc(100% - 32px);
    min-height: 505px;
    margin: 11px auto 31px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.76) 28%, rgba(0,0,0,0.28) 60%, rgba(0,0,0,0) 100%),
        image-set(
            url('../../img/news/news9.webp') type('image/webp'),
            url('../../img/news/news9.jpg') type('image/jpeg')
        ) center / cover no-repeat;
    border-radius: 0 0 18px 18px;
    padding: 0 9.1% 39px;
    overflow: hidden;
}

.news-detail__content {
    width: min(100%, 620px);
    color: var(--color-white);
}

.news-detail__content time {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
}

.news-detail__content h1 {
    font-size: clamp(2.2rem, 3vw, 2.95rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 15px;
}

.news-detail__content p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.68;
}

/* --- Body section: text + image --- */

.news-detail__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 9.1%;
}

.news-detail__text {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.news-detail__text p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-dark);
}

.news-detail__image picture,
.news-detail__image img {
    width: 100%;
    height: 100%;
    display: block;
}

.news-detail__image img {
    object-fit: cover;
    border-radius: 18px;
}

@media (max-width: 1024px) {
    body[data-page="noticia"] .site-header__inner {
        margin-top: 34px;
    }

    .news-detail__hero {
        width: 100%;
        margin-top: 0;
        padding: 0 7% 44px;
    }

    .news-detail__body {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 0 7%;
    }
}

@media (max-width: 600px) {
    .news-detail__hero {
        min-height: 520px;
        padding: 0 6% 38px;
        border-radius: 0 0 14px 14px;
    }

    .news-detail__body {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 6%;
        margin-bottom: 56px;
    }
}
