.article-detail-section {
    margin-top: 18px;
    margin-bottom: 30px;
    align-items: start;
}

.article-detail-main {
    grid-column: 1 / span 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* TARJETA PRINCIPAL DEL ARTÍCULO */
.article-paper-card {
    background: #ffffff;
    border: 2px solid var(--border, #d8d8d8);
    border-radius: var(--radius, 18px);
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
}

/* CONTENEDOR FLOTANTE DEL AUTOR */
.article-author-badge-box {
    width: 210px;
    height: 270px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    float: left;
    margin: 0 28px 20px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: 2px solid #e2e8f0;
    background-color: #f1f5f9;
}

.article-author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-author-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 12px 10px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 60%,
        transparent 100%
    );
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    letter-spacing: 0.3px;
}

/* TÍTULO DEL ARTÍCULO */
.article-main-title {
    font-family: "Anton", sans-serif;
    font-weight: 100;
    font-size: 34px;
    line-height: 1.15;
    color: #0f172a;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

/* META INFO (FECHA, CATEGORÍA) */
.article-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
}

.article-category-badge {
    background-color: #d32027;
    color: #ffffff;
    font-family: "Anton", sans-serif;
    font-weight: 100;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* SELECTOR DE IDIOMA / LANGUAGE SWITCHER */
.article-lang-switcher {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    margin-left: auto;
    gap: 2px;
}

.btn-lang {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 5px 14px;
    border-radius: 999px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    user-select: none;
}

.btn-lang:hover {
    color: #0f172a;
}

.btn-lang.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

/* CUERPO DEL CONTENIDO */
.article-body-text {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
}

.article-body-text p {
    margin-bottom: 18px;
    text-align: justify;
}

.article-body-text p:last-child {
    margin-bottom: 0;
}

/* IMAGEN DESTACADA O ILUSTRATIVA */
.article-featured-image-box {
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    clear: both;
}

.article-featured-image-box img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

/* INLINE ILUSTRACIÓN FLOTANTE (ESTILO MOCKUP) */
.article-inline-image-box {
    float: right;
    margin: 12px 0 20px 28px;
    width: 48%;
    max-width: 460px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.article-inline-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* BARRA INFERIOR DE ACCIONES Y COMPARTIR */
.article-footer-actions {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 2px dashed #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    clear: both;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #075ba8;
    color: #ffffff;
    font-family: "Anton", sans-serif;
    font-weight: 100;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 10px 22px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.article-back-link:hover {
    background-color: #054580;
    color: #ffffff;
}

.article-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-share-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.btn-share {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.btn-share:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #ffffff;
}

.btn-share.facebook {
    background-color: #1877f2;
}

.btn-share.whatsapp {
    background-color: #25d366;
}

.btn-share.twitter {
    background-color: #000000;
}

.btn-share.copy {
    background-color: #64748b;
}

/* SECCIÓN DE COMENTARIOS */
.article-comments-card {
    background: #ffffff;
    border: 2px solid var(--border, #d8d8d8);
    border-radius: var(--radius, 18px);
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.article-comments-title {
    font-family: "Anton", sans-serif;

    font-size: 22px;
    color: #0f172a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.article-comments-title .dot {
    width: 10px;
    height: 10px;
    background-color: #d32027;
    border-radius: 50%;
    display: inline-block;
}

#disqus_thread {
    min-height: 100px;
}

/* SECCIÓN DE MÁS ARTÍCULOS RECIENTES */
.recent-articles-card {
    background: #ffffff;
    border: 2px solid var(--border, #d8d8d8);
    border-radius: var(--radius, 18px);
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.recent-articles-title {
    font-family: "Anton", sans-serif;
    font-size: 22px;
    font-weight: 100;
    color: #0f172a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.recent-articles-title .dot {
    width: 10px;
    height: 10px;
    background-color: #d32027;
    border-radius: 50%;
    display: inline-block;
}

.recent-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.recent-article-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.recent-article-item:hover {
    transform: translateY(-3px);
    border-color: #d32027;
}

.recent-article-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.recent-article-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recent-article-title-text {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.recent-article-read-btn {
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    color: #d32027;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* PUBLICIDAD LATERAL (Columnas 11-12) */
.article-detail-sidebar {
    grid-column: 11 / span 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-side-ad-card {
    display: block;
    width: 100%;
    border-radius: var(--radius, 18px);
    overflow: hidden;
    border: 2px solid var(--border, #d8d8d8);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.article-side-ad-card:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.article-side-ad-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 1199px) {
    .article-detail-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px;
    }

    .article-detail-main {
        grid-column: auto !important;
        width: 100% !important;
    }

    .article-detail-sidebar {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .article-paper-card,
    .article-comments-card {
        padding: 20px 16px;
    }

    .article-main-title {
        font-size: 22px;
    }

    .article-author-badge-box {
        float: none;
        width: 100%;
        max-width: 220px;
        height: 250px;
        margin: 0 auto 20px auto;
    }

    .article-inline-image-box {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 16px 0;
    }

    .recent-articles-grid {
        grid-template-columns: 1fr;
    }

    .article-lang-switcher {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }

    .btn-lang {
        flex: 1;
        justify-content: center;
        text-align: center;
        font-size: 12px;
        padding: 6px 12px;
    }

    .article-detail-sidebar {
        display: none !important;
    }
}
