.news-page {
    min-height: 100vh;
}

.news-page {
    min-height: 100vh;

    --community-border: rgba(30, 45, 65, 0.12);
    --community-border-strong: rgba(30, 45, 65, 0.22);

    --community-text: #18212d;
    --community-text-soft: #687383;
    --community-text-muted: #929ba8;
}

/* =========================================================
   INTRODUCCIÓN
   ========================================================= */

.news-intro {
    position: relative;

    padding: 105px 24px 75px;

    overflow: hidden;

    border-bottom: 1px solid var(--community-border);
}

.news-intro::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(63, 109, 246, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(63, 109, 246, 0.035) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

.news-intro::after {
    display: none;
}

.news-intro-content {
    position: relative;
    z-index: 1;

    width: min(100%, 1500px);
    margin: 0 auto;

    text-align: left;
}

.news-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.78);
}

.news-label::before {
    content: "";

    width: 18px;
    height: 1px;

    background: currentColor;
}

.news-intro h1 {
    max-width: 800px;

    margin: 16px 0 0;

    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;

    color: #ffffff;
}

.news-intro p {
    max-width: 650px;

    margin: 24px 0 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
}


/* =========================================================
   NOTICIA DESTACADA
   ========================================================= */

.news-featured {
    max-width: 1200px;
    margin: 50px auto 80px;
    padding: 0 40px;
}

.news-featured-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.13),
        rgba(255, 255, 255, 0.055)
    );

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-featured-image {
    position: absolute;
    inset: 0;

    overflow: hidden;
}

.news-featured-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.news-featured-image::after {
    display: none;
}

.news-featured-label {
    position: absolute;
    top: 20px;
    left: 20px;

    z-index: 2;

    padding: 7px 11px;

    border-radius: 6px;

    background: rgba(63, 109, 246, 0.9);

    color: #ffffff;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-featured-date {
    position: absolute;
    top: 22px;
    right: 24px;

    z-index: 2;

    padding: 7px 11px;

    border-radius: 6px;

    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.10);

    color: #ffffff;

    font-size: 0.8rem;
    font-weight: 600;

    opacity: 0.95;
}

.news-featured-content {
    position: absolute;
    left: 0;
    bottom: 24px;

    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: min(850px, 100%);

    padding: 10px 24px 10px 28px;

    border-left: 4px solid rgba(63, 109, 246, 0.9);

    background: rgba(0, 0, 0, 0.30);
    border-radius: 0 12px 12px 0;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.85),
        0 1px 3px rgba(0, 0, 0, 0.95);
}

.news-featured-content h2 {
    max-width: 900px;

    margin: 0 0 14px;

    color: #ffffff;

    font-size: 2.4rem;
    line-height: 1.15;
}

.news-featured-content p {
    max-width: 850px;

    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    line-height: 1.6;
}

.news-featured-content a {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-top: 20px;

    color: rgba(255, 255, 255, 0.95);

    font-size: 0.85rem;
    font-weight: 700;

    text-decoration: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.5);

    transition:
        color 160ms ease,
        border-color 160ms ease;
}

.news-featured-content a:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   LISTADO
   ========================================================= */

.news-list {
    padding: 0 40px 100px;
}

.news-list-content {
    max-width: 1200px;
    margin: 0 auto;
}

.news-list-header {
    margin-bottom: 35px;
}

.news-list-header h2 {
    margin: 10px 0 0;

    font-size: 1.8rem;
}


/* =========================================================
   GRID
   ========================================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.13),
        rgba(255, 255, 255, 0.055)
    );

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card-image {
    aspect-ratio: 16 / 9;

    min-width: 0;

    overflow: hidden;
}

.news-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    object-fit: cover;
}

.news-card-content {
    display: flex;
    flex-direction: column;

    padding: 22px;
}

.news-card-date {
    margin-bottom: 10px;

    font-size: 0.72rem;
    opacity: 0.6;
}

.news-card-content h3 {
    margin: 0 0 12px;

    font-size: 1.2rem;
    line-height: 1.3;
}

.news-card-content p {
    margin: 0;

    line-height: 1.6;
    opacity: 0.75;
}

.news-card-content a {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-top: 18px;

    color: rgba(255, 255, 255, 0.95);

    font-size: 0.85rem;
    font-weight: 700;

    text-decoration: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.5);

    transition:
        color 160ms ease,
        border-color 160ms ease;
}

.news-card-content a:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   SIN NOTICIAS
   ========================================================= */

.news-empty {
    padding: 60px 20px;

    text-align: center;

    opacity: 0.6;
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin-top: 30px;
    padding: 0 40px 100px;
}

.news-pagination .pagination-button,
.news-pagination .pagination-number {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--community-border);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.75);

    color: var(--community-text-soft);

    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.news-pagination .pagination-button:hover:not([aria-disabled="true"]),
.news-pagination .pagination-number:hover {
    border-color: var(--community-border-strong);

    color: var(--community-text);
}

.news-pagination .pagination-number.active {
    border-color: rgba(255, 255, 255, 0.65);

    background: rgba(255, 255, 255, 0.18);

    color: #ffffff;
}

.news-pagination .pagination-button[aria-disabled="true"] {
    opacity: 0.35;
    cursor: default;
}

.news-pagination .pagination-button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .news-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

}

/* =========================================================
   LANDSCAPE
   ========================================================= */

@media (orientation: landscape) and (max-width: 1150px) {

    .news-intro {
        padding: 90px 32px 50px;
    }

    .news-list {
        padding: 0 32px 80px;
    }

    .news-pagination {
        padding: 0 32px 80px;
    }

}


@media (orientation: landscape) and (max-width: 800px) {

    .news-intro {
        padding: 75px 28px 40px;
    }

    .news-intro h1 {
        font-size: 2.5rem;
    }

    .news-list {
        padding: 0 28px 70px;
    }

    .news-list-header {
        margin-bottom: 28px;
    }

    .news-pagination {
        padding: 0 28px 70px;
    }

}

/* =========================================================
   DESTACADA — FORMATO TARJETA EN RESOLUCIONES PEQUEÑAS
   ========================================================= */

@media (max-width: 800px) {

    .news-featured {
        padding: 0 28px;
    }

    .news-featured-card {
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;

        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.055)
        );
    }

    .news-featured-image {
        position: relative;
        inset: auto;

        aspect-ratio: 16 / 9;
        min-width: 0;
        overflow: hidden;
    }

    .news-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .news-featured-label {
        position: absolute;
        top: 16px;
        left: 16px;
    }

    .news-featured-date {
        position: absolute;
        top: 18px;
        right: 18px;
        color: #ffffff;
    }

    .news-featured-content {
        position: static;
        width: auto;
        padding: 22px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .news-featured-content h2 {
        max-width: none;
        margin: 0 0 12px;
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .news-featured-content {
        text-shadow: none;
        border-radius: 0;
        border-left: 0;
    }

    .news-featured-content p {
        max-width: none;
        line-height: 1.6;
        color: inherit;
    }

    .news-featured-content a {
        margin-top: 18px;
    }

}
