/* Layout 70/30 */
.article-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* Contenido Principal */
.article-main h1 {
    font-size: 2.8em;
    line-height: 1.1;
    margin: 15px 0;
}

.lead-text {
    font-size: 1.3em;
    color: var(--date-text);
    margin-bottom: 20px;
}

.main-img-container img {
    width: 100%;
    height: 50vh;
    border-radius: 12px;
    margin-bottom: 30px;
}

.article-body p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.img-article {
    width: 100%;
}

.category-badge {
    background: var(--primary-orange);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8em;

    text-transform: uppercase;
}

.btn-return {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: bold;
}

/* Sidebar Estilo Azul (Como en tu referencia) */
.sidebar-wrapper {
    background-color: var(--primary-blue);
    padding: 25px;
    border-radius: 12px;
    color: white;
    position: sticky;
    top: 100px;
}

body.dark-mode .sidebar-wrapper{
    background-color: #313131;
    border: 1px solid #a3a3a3;
}

.sidebar-wrapper h3 {
    margin-top: 0;
    font-size: 1.6em;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.side-item {
    background-color: var(--light-card);
    color: var(--light-text);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Ajuste de tarjetas en sidebar para modo oscuro */
body.dark-mode .side-item {
    background-color: var(--dark-card);
    color: var(--dark-text);
}

.side-tag {
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 0.75em;
    text-transform: uppercase;
}

.side-item h4 {
    margin: 8px 0;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .main-img-container img {
        height: auto;
        object-fit: contain;
        border-radius: 5px;
    }

    .article-main h1, .article-main .lead-text {
        text-align: left;
        font-size: 2.1em;
    }

}

/* Responsividad para móviles */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-wrapper {
        position: static;
    }
}