* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face { 
    font-family: 'Inter_18pt-Regular'; 
    font-style: normal; 
    font-weight: normal; 
    src: local('Inter_18pt-Regular'), 
            url('../assets/fonts/Inter_18pt-Regular.ttf') 
            format('ttf'); 
    font-display: swap
}
.container {
    padding-bottom: 1rem;
}
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px) {
    .container,
    .container-sm {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .container,
    .container-md,
    .container-sm {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1140px;
    }
}
@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1320px;
    }
}
.section-revista .container-revista{
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 40% 1fr;
}
/* Noticias */
.section-revista .container-revista .portada-revista{
    padding: 0rem 1rem 1rem 1rem;
    position: relative;
}
.section-revista .container-revista .portada{
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 1rem;
}   
.section-revista .container-revista .portada-revista img{
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
    max-height: 550px;
}
.section-revista .container-revista .portada-revista .btn-download{
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-family: "Inter_18pt-Regular", sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: clamp(1rem, 1.2rem, 2rem);
    min-height: 70px;
    display: flex;
    align-items: center;
    min-width: 200px;
    justify-content: center;    
}
.section-revista .container-revista .portada-revista .btn-download img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 40px;
    filter: invert(1);
    padding-left: 1rem;
}
/* Noticias */
.news-section {
    display: flex;
    gap: 20px;
}

/* Primera columna 70% */
.cell:first-child {
    flex: 7;
}

/* Segunda columna 30% */
.cell:last-child {
    flex: 3;
}

/* Left */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.news-container a{
    text-decoration: none;
}
.news-card {
    background-color: #292524;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 370px;
    max-height: 370px;
}

.news-card-revistas {
    background-color: #292524;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 478px;
}

.image-wrapper {
    height: 220px;
    overflow: hidden;
}

.image-wrapper-revistas {
    overflow: hidden;
}

.image-wrapper-revistas img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

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

.content {
    padding: 20px;
}

.badge {
    background-color: #e10600;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
    padding: 4px 8px;
}

.news-card h2 {
    color: #fff;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 16px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 12px;
}

.meta .category {
    font-weight: bold;
    margin-right: 10px;
}

.news-card p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Right */
/* Elemento fijo */
.latest-news-container {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 25px);
    overflow-y: auto;
}

.latest-news-item {
    position: relative;
}

.latest-news-item:before {
    position: absolute;
    bottom: 0;
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: #701D47;
    transition: all .3s;
    left: 50%;
}

.latest-news-item:hover:before {
    left: 0;
    width: 100%;
}

.latest-news-item a {
    text-decoration: none;
}
.latest-news-item a span {
    font-size: 12px;
    display: block;
    position: relative;
    color: #fff;
    line-height: 25px;
    margin-bottom: 10px;
}

.latest-news-item:hover a h3 {
    color: #970e20;
    /* margin: 10px 0; */
}

.latest-news-item a h3 {
    font-size: 18px;
}

@media screen and (max-width: 1100px) {
    .news-section {
        flex-direction: column;
        gap: 1rem;
    }

    .latest-news-container {
        background-color: #D6D3D1;
        border-radius: 5px;
    }
}
@media (max-width: 991px){ 
    .section-revista .container-revista{
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .section-revista .container-revista .portada-revista{
        padding: 0;
    }
}
@media (max-width: 650px){ 
    .news-card-revistas{
        max-height: 100%;
    }
}