/* ===== CONTENEDOR ===== */
.container {
    max-width: 1200px;
}

/* ===== GRID BENTO ===== */
.news-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.25rem;
}

/* ===== CARD BASE ===== */
.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    cursor: pointer;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.news-card:hover {
    transform: translateY(-6px);
}

/* ===== IMAGEN ===== */
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s;
    opacity: 0;
}

.news-card img.loaded {
    opacity: 1;
}

/* ===== OVERLAY ===== */
.news-card .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .85) 0%,
            rgba(0, 0, 0, .5) 40%,
            rgba(0, 0, 0, .15) 70%,
            transparent 100%);
}

/* contenido */
.news-card .content {
    transform: translateY(12px);
    opacity: .9;
    transition: all .5s cubic-bezier(.2, .8, .2, 1);
}

/* ===== TEXTO ===== */
.news-card h2 {
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.news-card:not(.main) h2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== BADGE ===== */
.badge {
    font-size: .7rem;
    padding: .35em .6em;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    background: rgba(220, 53, 69, 0.85);
}

/* ===== HOVER PRO ===== */
.news-card:hover img {
    transform: scale(1.12);
    filter: blur(2px) brightness(.55);
}

.news-card:hover .content {
    transform: translateY(0);
    opacity: 1;
}

/* luz tipo Stripe */
.news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity .5s;
}

.news-card:hover::after {
    opacity: 1;
}

/* ===== SIZES ===== */
.news-card.main {
    grid-column: span 2;
    grid-row: span 2;
}

.news-card.wide {
    grid-column: span 2;
}

/* ===== SKELETON ===== */
.skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, #222 25%, #333 37%, #222 63%);
    background-size: 200% 100%;
    animation: skeleton 1.2s infinite;
    z-index: 1;
}

@keyframes skeleton {
    to {
        background-position: -200% 0;
    }
}

/* ===== ANIMACIÓN ENTRADA ===== */
.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.show {
    opacity: 1;
    transform: translateY(0);
    transition: all .6s cubic-bezier(.2, .8, .2, 1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .news-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card.main {
        grid-column: span 2;
        grid-row: span 1;
    }

    .news-card.wide {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .news-bento {
        grid-template-columns: 1fr;
    }

    .news-card.main,
    .news-card.wide {
        grid-column: span 1;
    }
}

/* ============================================
=========== LISTADO DE NOTICIAS ================
============================================= */
/* ===== CARD BASE ===== */
.news-item {
    position: relative;
    transition: all .35s cubic-bezier(.2, .8, .2, 1);
    padding-bottom: 10px;
}

/* Línea inferior (inicial invisible) */
.news-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background: var(--bs-link-hover-color);
    transition: width .3s ease;
}

/* Hover */
.news-item:hover {
    transform: translateY(-6px);
}

/* Activar línea */
.news-item:hover::after {
    width: 100%;
}

/* ===== IMG ===== */
.news-item img {
    transition: transform .6s ease, filter .4s ease;
}

/* Hover imagen */
.news-item:hover img {
    transform: scale(1.04);
    filter: brightness(.95);
}

/* ===== TITLE ===== */
.news-title {
    font-weight: 600;
    line-height: 1.45;
    color: #2b2b2b;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    transition: color .25s ease;
}

/* Hover título */
.news-item:hover .news-title {
    color: var(--bs-primary);
}

/* ===== BADGE ===== */
.news-item .badge {
    font-size: .75rem;
    padding: .35rem .7rem;
}

/* ===== SPACING ===== */
.news-item small {
    font-size: .85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .news-title {
        font-size: 1rem;
    }
}

.z-full{
    z-index: 999;
}
.shadow-bottom {
    box-shadow: 0 8px 6px -6px rgba(0, 0, 0, .15) !important;
}