/* =========================
   COSMOPOLIS — NEWS (CON PORTADA)
   ========================= */

.news {
    padding: 120px 0;
    background: #000;
    color: #DCDCDC;
}

.news .container {
    padding: 0 40px;
}

/* TÍTULO */
.news h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.news-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    opacity: 0.85;
}

/* GRID */
.news-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(3, 1fr);
}

/* =========================
   ENVOLTORIO (CON PORTADA)
   ========================= */

.news-card-wrapper {
    position: relative;
    height: 100%;
}

/* Imagen portada */
.cover-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    cursor: pointer;
    z-index: 3;

    transition: opacity 0.6s ease;
}

/* Cuando se oculta */
.cover-image.hidden {
    opacity: 0;
    pointer-events: none;
}

/* =========================
   TARJETA DE NOTICIA FINAL
   ========================= */

.news-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.news-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-content h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    color: var(--royal-gold);
}

.news-content p {
    margin-bottom: 20px;
}

.news-link {
    margin-top: auto;
    color: var(--light-gold);
    transition: 0.3s;
}
.news-link:hover {
    color: var(--royal-gold);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
    }
}

@media (max-width: 680px) {
    .news-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}
.cover-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    cursor: pointer;
    z-index: 3;

    opacity: 1;
    filter: brightness(1) blur(0px);
    transition: opacity 0.18s ease-out, filter 0.18s ease-out;
}

/* Estado oculto permanente (click) */
.cover-image.hidden {
    opacity: 0;
    filter: brightness(1) blur(0px);
    pointer-events: none;
}

