@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,500;6..72,700&display=swap");

.Noticias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 22px;
    width: 100%;
    margin: 8% 0;
}

.noticia {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 238, 238, 0.96));
    border: 1px solid rgba(124, 27, 27, 0.14);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.noticia:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 44px rgba(0, 0, 0, 0.2);
}

.imagen-noticia {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 14px;
}

.imagen-noticia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.titulo {
    margin-top: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #310b0b;
}

.introduccion {
    margin-top: 10px;
    color: #594949;
    line-height: 1.55;
    flex: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.news-card-footer__date {
    color: #8a5d5d;
    font-size: 0.92rem;
}

.media-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-summary--overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
}

.media-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 7, 7, 0.78);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.media-pill--video {
    background: rgba(125, 15, 15, 0.88);
}

.article-page {
    max-width: 1220px;
    margin-top: 112px;
    margin-bottom: 88px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-back:hover {
    color: #fff;
}

.article-detail,
.article-empty {
    background: linear-gradient(180deg, rgba(248, 244, 239, 0.98), rgba(244, 239, 234, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 34px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.2);
}

.article-detail {
    padding: 56px;
}

.article-hero {
    max-width: 900px;
    padding-bottom: 34px;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(60, 40, 34, 0.12);
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 18px;
    color: #6e625d;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-kicker {
    color: #8b2a24;
    font-weight: 700;
}

.article-title {
    margin: 0;
    max-width: 13ch;
    font-family: "Newsreader", serif;
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: #1f1713;
    text-wrap: balance;
}

.article-intro {
    max-width: 60rem;
    margin: 22px 0 0;
    color: #5f544f;
    font-size: 1.16rem;
    line-height: 1.8;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 300px;
    gap: 42px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-body {
    color: #211917;
}

.article-body::after {
    content: "";
    display: block;
    clear: both;
}

.article-body p {
    margin: 0 0 1.35em;
    font-size: 1.07rem;
    line-height: 1.95;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-inline-media {
    clear: both;
    width: min(44%, 360px);
    margin: 0.4rem 0 1.6rem;
}

.article-inline-media--right {
    float: right;
    margin-left: 28px;
}

.article-inline-media--left {
    float: left;
    margin-right: 28px;
}

.article-inline-media__trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.article-inline-media__trigger img {
    width: 100%;
    display: block;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 18px 42px rgba(25, 14, 11, 0.14);
}

.article-inline-media__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(31, 23, 19, 0.08);
    color: #5f544f;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.article-inline-media figcaption {
    margin-top: 8px;
    color: #8c7b73;
    font-size: 0.8rem;
}

.article-inline-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.article-inline-gallery__item {
    margin: 0;
}

.article-section {
    clear: both;
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid rgba(60, 40, 34, 0.12);
}

.article-section__heading {
    margin-bottom: 18px;
}

.article-section__heading h2 {
    margin: 6px 0 8px;
    font-family: "Newsreader", serif;
    font-size: 2rem;
    color: #1f1713;
}

.article-section__heading p {
    margin: 0;
    color: #6e625d;
}

.article-section__eyebrow {
    color: #8b2a24;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.article-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.article-video {
    padding: 12px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(92, 73, 66, 0.12);
    border-radius: 22px;
}

.article-video video {
    width: 100%;
    display: block;
    border-radius: 14px;
    background: #000;
}

.article-sidebar {
    position: sticky;
    top: 104px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    padding: 22px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(92, 73, 66, 0.12);
    border-radius: 22px;
}

.article-card h3 {
    margin: 0 0 16px;
    color: #685c57;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-card__copy {
    margin: 0;
    color: #4d433f;
    line-height: 1.7;
}

.article-facts {
    display: grid;
    gap: 14px;
    margin: 0;
}

.article-facts div {
    padding-top: 14px;
    border-top: 1px solid rgba(92, 73, 66, 0.1);
}

.article-facts div:first-child {
    padding-top: 0;
    border-top: 0;
}

.article-facts dt {
    margin-bottom: 4px;
    color: #897a74;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-facts dd {
    margin: 0;
    color: #201815;
    font-weight: 600;
}

.article-source__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #1f1713;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.article-source__link:hover {
    background: #8b2a24;
    color: #fff;
    transform: translateY(-1px);
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(9, 6, 5, 0.76);
    backdrop-filter: blur(6px);
}

.media-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    padding: 18px;
    border-radius: 26px;
    background: rgba(24, 17, 15, 0.94);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.media-lightbox__dialog img {
    max-width: 100%;
    max-height: calc(90vh - 70px);
    display: block;
    border-radius: 18px;
}

.media-lightbox__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.has-media-modal {
    overflow: hidden;
}

.article-empty {
    padding: 64px 40px;
    text-align: center;
}

.article-empty__eyebrow {
    margin: 0 0 8px;
    color: #8b2a24;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.article-empty h1 {
    margin: 0;
    font-family: "Newsreader", serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #1f1713;
}

.article-empty p {
    margin: 18px 0 0;
    color: #5f544f;
}

@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 767px) {
    .Noticias {
        grid-template-columns: 1fr;
        margin: 22% 0 14%;
    }

    .news-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-page {
        margin-top: 92px;
        margin-bottom: 64px;
    }

    .article-detail,
    .article-empty {
        border-radius: 24px;
    }

    .article-detail {
        padding: 26px 20px;
    }

    .article-title {
        max-width: none;
    }

    .article-intro,
    .article-body p {
        font-size: 1rem;
    }

    .article-inline-media,
    .article-inline-media--left,
    .article-inline-media--right {
        float: none;
        width: 100%;
        margin: 0 0 18px;
    }

    .article-inline-media__trigger img {
        border-radius: 18px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .media-lightbox {
        padding: 18px;
    }

    .media-lightbox__dialog {
        width: 100%;
        padding: 14px;
    }
}
