
/* =========================================================
   ARTÍCULOS DEL BLOG - CAMINO INCA MACHU PICCHU
   Archivo: css/articulo-blog.css
   Paleta azul marino + naranja
   Diseño responsive y encapsulado
========================================================= */

/* =========================================================
   1. VARIABLES Y BASE
========================================================= */

.article-page {
    --article-primary: #14253d;
    --article-secondary: #ff9624;
    --article-accent: #ff9624;
    --article-cream: #fff3e5;
    --article-dark: #14253d;
    --article-text: #263140;
    --article-muted: #6d7785;
    --article-border: #dfe4e8;
    --article-white: #ffffff;
    --article-soft: #f5f7f9;

    background: #ffffff;
    color: var(--article-text);
    font-family: inherit;
}

.article-page *,
.article-page *::before,
.article-page *::after {
    box-sizing: border-box;
}

.article-page img {
    display: block;
    max-width: 100%;
}

/* Los enlaces del artículo, sin alterar botones globales */

.article-page .article-content a,
.article-page .article-breadcrumb a,
.article-page .article-sidebar a,
.article-page .article-sources a,
.article-page .article-back a {
    text-decoration: none;
    transition: color .25s ease, background .25s ease;
}

/* Mantener el color de los enlaces de lectura */

.article-page .article-content p a {
    color: #ff9624;
}

/* Proteger el botón flotante global de WhatsApp */

.article-page .whatsapp-float,
.article-page .whatsapp-float a,
.article-page .whatsapp-button {
    color: #ffffff !important;
}

.article-page a:hover {
    color: var(--article-secondary);
}

.article-main {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding-bottom: 80px;
}

/* =========================================================
   2. BREADCRUMB
========================================================= */

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 25px 0;
    color: var(--article-muted);
    font-size: 13px;
}

.article-breadcrumb a {
    color: var(--article-muted);
}

.article-breadcrumb a:hover {
    color: var(--article-primary);
}

.article-breadcrumb span[aria-current="page"] {
    color: var(--article-primary);
    font-weight: 600;
}

/* =========================================================
   3. HERO
========================================================= */

.article-hero {
    position: relative;
    min-height: 490px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    border-radius: 20px;
    background: var(--article-dark);
}

.article-hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.article-hero__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(10, 25, 29, .88) 0%,
            rgba(10, 25, 29, .62) 52%,
            rgba(10, 25, 29, .12) 100%
        ),
        linear-gradient(
            0deg,
            rgba(10, 25, 29, .48),
            transparent 65%
        );
}

.article-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero__content {
    width: min(780px, 100%);
    padding: 65px 60px;
    color: #ffffff;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--article-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.article-category::before {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--article-accent);
}

.article-hero__content h1 {
    max-width: 750px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.12;
    letter-spacing: -1.5px;
    font-weight: 800;
}

.article-hero__content > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 25px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
}

/* =========================================================
   4. LAYOUT
========================================================= */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 65px;
    align-items: start;
    margin-top: 65px;
}

.article-content {
    min-width: 0;
}

.article-sidebar {
    position: sticky;
    top: 35px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* =========================================================
   5. INTRODUCCIÓN
========================================================= */

.article-introduction {
    margin-bottom: 38px;
}

.article-introduction p {
    margin: 0 0 18px;
    color: var(--article-text);
    font-size: 17px;
    line-height: 1.9;
}

.article-introduction strong {
    color: var(--article-primary);
    font-weight: 750;
}

/* =========================================================
   6. TABLA DE CONTENIDOS
========================================================= */

.article-toc {
    margin: 40px 0 55px;
    padding: 30px 34px;
    border: 1px solid var(--article-border);
    border-left: 4px solid var(--article-primary);
    border-radius: 12px;
    background: var(--article-soft);
}

.article-toc h2 {
    margin: 0 0 20px;
    color: var(--article-dark);
    font-size: 20px;
    font-weight: 800;
}

.article-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 30px;
    margin: 0;
    padding-left: 20px;
}

.article-toc li {
    padding-left: 4px;
    color: var(--article-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.article-toc a {
    color: var(--article-text);
    font-weight: 600;
}

.article-toc a:hover {
    color: var(--article-secondary);
}

/* =========================================================
   7. SECCIONES DEL ARTÍCULO
========================================================= */

.article-section {
    margin-bottom: 58px;
    scroll-margin-top: 110px;
}

.article-section h2 {
    position: relative;
    margin: 0 0 25px;
    padding-bottom: 17px;
    color: var(--article-dark);
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.25;
    letter-spacing: -.6px;
    font-weight: 800;
}

.article-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 58px;
    height: 3px;
    border-radius: 5px;
    background: var(--article-secondary);
}

.article-section h3 {
    margin: 32px 0 13px;
    color: var(--article-primary);
    font-size: 20px;
    line-height: 1.4;
    font-weight: 750;
}

.article-section p {
    margin: 0 0 19px;
    color: var(--article-text);
    font-size: 15.5px;
    line-height: 1.95;
}

.article-section p a {
    color: var(--article-secondary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255,150,36,.4);
    text-underline-offset: 3px;
}

.article-section ul,
.article-section ol {
    margin: 18px 0 25px;
    padding-left: 23px;
}

.article-section li {
    margin-bottom: 12px;
    padding-left: 5px;
    color: var(--article-text);
    font-size: 15px;
    line-height: 1.8;
}

.article-section li::marker {
    color: var(--article-secondary);
}

.article-section li strong {
    color: var(--article-dark);
}

/* =========================================================
   8. IMÁGENES
========================================================= */

.article-figure {
    margin: 32px 0;
}

.article-figure img {
    width: 100%;
    max-height: 440px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.article-figure figcaption {
    margin-top: 12px;
    color: var(--article-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* =========================================================
   9. TARJETAS DE RUTAS
========================================================= */

.article-info-card {
    margin: 24px 0;
    padding: 27px 28px;
    border: 1px solid var(--article-border);
    border-radius: 13px;
    background: #ffffff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.article-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(20,37,61,.07);
}

.article-info-card h3 {
    margin: 0 0 12px;
    color: var(--article-primary);
    font-size: 19px;
}

.article-info-card p {
    margin-bottom: 17px;
}

.article-info-card > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--article-secondary);
    font-size: 14px;
    font-weight: 800;
}

.article-info-card > a:hover {
    gap: 15px;
}

/* =========================================================
   10. CTA INTERMEDIO
========================================================= */

.article-inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 60px 0;
    padding: 35px;
    border-radius: 16px;
    background: var(--article-primary);
    color: #ffffff;
}

.article-inline-cta > div {
    flex: 1;
}

.article-inline-cta > div > span {
    display: block;
    margin-bottom: 10px;
    color: var(--article-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.article-inline-cta h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 23px;
    line-height: 1.3;
}

.article-inline-cta p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.7;
}

.article-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 20px;
    border: 0;
    border-radius: 7px;
    background: var(--article-accent);
    color: var(--article-dark) !important;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    transition: background .25s ease, transform .25s ease;
}

.article-button:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

/* =========================================================
   11. PREGUNTAS FRECUENTES
========================================================= */

.article-faq details {
    margin-bottom: 12px;
    border: 1px solid var(--article-border);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.article-faq summary {
    position: relative;
    padding: 20px 48px 20px 20px;
    color: var(--article-dark);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.article-faq summary::-webkit-details-marker {
    display: none;
}

.article-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--article-soft);
    color: var(--article-primary);
    font-size: 19px;
    font-weight: 500;
}

.article-faq details[open] summary {
    color: var(--article-primary);
}

.article-faq details[open] summary::after {
    content: "−";
    background: var(--article-primary);
    color: #ffffff;
}

.article-faq details p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--article-text);
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   12. FUENTES
========================================================= */

.article-sources {
    margin: 55px 0 35px;
    padding: 28px;
    border-radius: 12px;
    background: var(--article-soft);
}

.article-sources h2 {
    margin: 0 0 15px;
    color: var(--article-dark);
    font-size: 20px;
}

.article-sources p {
    color: var(--article-text);
    font-size: 13px;
    line-height: 1.8;
}

.article-sources ul {
    padding-left: 20px;
}

.article-sources li {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.7;
}

.article-sources a {
    font-weight: 700;
}

.article-sources .article-update {
    margin: 20px 0 0;
    padding-top: 17px;
    border-top: 1px solid var(--article-border);
    color: var(--article-muted);
    font-size: 12px;
}

/* =========================================================
   13. AUTOR
========================================================= */

.article-author {
    margin-top: 45px;
    padding: 28px;
    border: 1px solid var(--article-border);
    border-radius: 12px;
}

.article-author__content > span {
    color: var(--article-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.article-author h2 {
    margin: 9px 0;
    color: var(--article-dark);
    font-size: 19px;
}

.article-author p {
    margin: 0;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* =========================================================
   14. VOLVER AL BLOG
========================================================= */

.article-back {
    margin-top: 35px;
}

.article-back a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--article-primary);
    font-size: 13px;
    font-weight: 800;
}

/* =========================================================
   15. BARRA LATERAL
========================================================= */

.article-sidebar__card {
    padding: 27px 23px;
    border-radius: 13px;
    background: var(--article-primary);
    color: #ffffff;
}

.article-sidebar__card > span {
    display: block;
    margin-bottom: 13px;
    color: var(--article-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.article-sidebar__card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.3;
}

.article-sidebar__card p {
    margin: 0 0 22px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.8;
}

.article-sidebar__card > a:not(.article-button) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.18);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.article-sidebar__card > a:not(.article-button):hover {
    color: var(--article-accent);
}

.article-sidebar__card .article-button {
    width: 100%;
    margin-top: 12px;
}

.article-sidebar__links {
    padding: 24px 21px;
    border: 1px solid var(--article-border);
    border-radius: 12px;
    background: #ffffff;
}

.article-sidebar__links h3 {
    margin: 0 0 17px;
    color: var(--article-dark);
    font-size: 16px;
    line-height: 1.4;
}

.article-sidebar__links a {
    display: block;
    padding: 13px 0;
    border-top: 1px solid var(--article-border);
    color: var(--article-text);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 650;
}

.article-sidebar__links a:hover {
    color: var(--article-secondary);
    padding-left: 4px;
}

/* =========================================================
   16. TABLET
========================================================= */

@media (max-width: 1000px) {

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 35px;
    }

    .article-hero {
        min-height: 430px;
    }

    .article-hero__content {
        padding: 50px 40px;
    }

    .article-toc ol {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   17. MÓVIL
========================================================= */

@media (max-width: 760px) {

    .article-main {
        width: min(100% - 30px, 650px);
        padding-bottom: 50px;
    }

    .article-breadcrumb {
        padding: 18px 0;
        font-size: 11px;
        gap: 7px;
    }

    .article-hero {
        min-height: 430px;
        border-radius: 13px;
    }

    .article-hero__image::after {
        background:
            linear-gradient(
                0deg,
                rgba(10, 25, 29, .92) 0%,
                rgba(10, 25, 29, .55) 65%,
                rgba(10, 25, 29, .15) 100%
            );
    }

    .article-hero__content {
        padding: 35px 25px;
    }

    .article-hero__content h1 {
        font-size: clamp(29px, 8vw, 40px);
        letter-spacing: -.8px;
    }

    .article-hero__content > p {
        font-size: 14px;
        line-height: 1.7;
    }

    .article-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin-top: 38px;
    }

    .article-content {
        width: 100%;
    }

    .article-sidebar {
        position: static;
        width: 100%;
    }

    .article-introduction p {
        font-size: 15px;
    }

    .article-toc {
        margin: 30px 0 40px;
        padding: 24px 22px;
    }

    .article-toc h2 {
        font-size: 18px;
    }

    .article-toc ol {
        gap: 11px;
    }

    .article-section {
        margin-bottom: 43px;
        scroll-margin-top: 85px;
    }

    .article-section h2 {
        font-size: 25px;
    }

    .article-section h3 {
        font-size: 18px;
    }

    .article-section p,
    .article-section li {
        font-size: 14px;
        line-height: 1.85;
    }

    .article-figure img {
        border-radius: 10px;
    }

    .article-info-card {
        padding: 22px 19px;
    }

    .article-inline-cta {
        flex-direction: column;
        align-items: flex-start;
        margin: 42px 0;
        padding: 27px 22px;
    }

    .article-inline-cta h2 {
        font-size: 21px;
    }

    .article-inline-cta .article-button {
        width: 100%;
    }

    .article-sources {
        padding: 22px 19px;
    }

    .article-author {
        padding: 22px;
    }

}

/* =========================================================
   18. MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 400px) {

    .article-main {
        width: calc(100% - 24px);
    }

    .article-hero {
        min-height: 410px;
    }

    .article-hero__content {
        padding: 28px 19px;
    }

    .article-hero__content h1 {
        font-size: 29px;
    }

    .article-category {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .article-toc {
        padding: 20px 17px;
    }

    .article-section h2 {
        font-size: 23px;
    }

}

/* =========================================================
   19. ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .article-page *,
    .article-page *::before,
    .article-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

}

/* =========================================================
   20. ADAPTACIÓN PARA EL HTML DEL ARTÍCULO
   VALLE SAGRADO DE LOS INCAS
========================================================= */

/* CONTENEDOR GENERAL */

.article-page {
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow-x: clip;
    overflow-y: visible;
}

.article-page > .article-hero,
.article-page > .article-layout {
    width: min(1200px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

/* HERO */

.article-page > .article-hero {
    margin-top: 30px;
}

/* INTRODUCCIÓN: el HTML utiliza article-intro */

.article-intro {
    margin-bottom: 38px;
}

.article-intro p {
    margin: 0 0 18px;
    color: var(--article-text);
    font-size: 17px;
    line-height: 1.9;
}

.article-intro .article-lead {
    color: var(--article-dark);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.85;
}

.article-intro strong {
    color: var(--article-primary);
    font-weight: 750;
}

/* =========================================================
   CTA: el HTML utiliza article-cta
========================================================= */

.article-cta {
    position: relative;
    margin: 55px 0;
    padding: 42px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--article-primary);
    color: #ffffff;
}

.article-cta__content {
    max-width: 680px;
}

.article-cta__content > span {
    display: block;
    margin-bottom: 13px;
    color: var(--article-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.article-cta h2 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.3;
}

.article-cta p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.85);
    font-size: 14px;
    line-height: 1.85;
}

.article-cta .article-button {
    background: var(--article-accent);
    color: var(--article-dark) !important;
}

/* =========================================================
   TARJETAS INFORMATIVAS
========================================================= */

.article-info-box {
    margin: 22px 0;
    padding: 25px 27px;
    border: 1px solid var(--article-border);
    border-left: 4px solid var(--article-secondary);
    border-radius: 12px;
    background: var(--article-soft);
}

.article-info-box h3 {
    margin: 0 0 10px;
    color: var(--article-primary);
    font-size: 19px;
}

.article-info-box p {
    margin: 0;
}

/* =========================================================
   PREGUNTAS FRECUENTES
   El HTML utiliza botones y divs, no details y summary
========================================================= */

.article-faq .faq-item {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--article-border);
    border-radius: 10px;
    background: #ffffff;
}

.article-faq .faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 21px;
    border: 0;
    background: #ffffff;
    color: var(--article-dark);
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.article-faq .faq-question:hover,
.article-faq .faq-question[aria-expanded="true"] {
    background: var(--article-soft);
    color: var(--article-primary);
}

.article-faq .faq-question span {
    flex-shrink: 0;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: var(--article-soft);
    color: var(--article-primary);
    font-size: 19px;
    font-weight: 500;
}

.article-faq .faq-answer {
    display: none;
    padding: 0 21px 19px;
}

.article-faq .faq-item.active .faq-answer {
    display: block;
}

.article-faq .faq-answer p {
    margin: 0;
    color: var(--article-text);
    font-size: 14px;
    line-height: 1.85;
}

/* =========================================================
   SIDEBAR: el HTML utiliza sidebar-card
========================================================= */

.article-sidebar .sidebar-card {
    padding: 25px 22px;
    border: 1px solid var(--article-border);
    border-radius: 13px;
    background: #ffffff;
}

.article-sidebar .sidebar-card h3 {
    margin: 0 0 13px;
    color: var(--article-dark);
    font-size: 18px;
    line-height: 1.4;
}

.article-sidebar .sidebar-card p {
    margin: 0 0 19px;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.8;
}

.article-sidebar .sidebar-button {
    display: flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 12px 17px;
    border-radius: 7px;
    background: var(--article-primary);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    transition: background .25s ease, transform .25s ease;
}

.article-sidebar .sidebar-button:hover {
    transform: translateY(-2px);
    background: var(--article-secondary);
    color: #ffffff !important;
}

/* =========================================================
   ENLACES RELACIONADOS
========================================================= */

.article-sidebar .sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-sidebar .sidebar-links li {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--article-border);
}

.article-sidebar .sidebar-links a {
    display: block;
    padding: 12px 0;
    color: var(--article-text);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 650;
}

.article-sidebar .sidebar-links a:hover {
    padding-left: 5px;
    color: var(--article-secondary);
}

/* =========================================================
   TARJETA DE CONTACTO
========================================================= */

.article-sidebar .sidebar-contact {
    border: 0;
    background: var(--article-primary);
    color: #ffffff;
}

.article-sidebar .sidebar-contact > span {
    display: block;
    margin-bottom: 12px;
    color: var(--article-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.article-sidebar .sidebar-contact h3 {
    color: #ffffff;
}

.article-sidebar .sidebar-contact p {
    color: rgba(255,255,255,.82);
}

.article-sidebar .sidebar-contact .sidebar-button {
    background: var(--article-accent);
    color: var(--article-dark) !important;
}

.article-sidebar .sidebar-contact .sidebar-button:hover {
    background: #ffffff;
}

/* =========================================================
   AUTOR: el HTML utiliza article-author__info
========================================================= */

.article-author__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.article-author__info .article-author__label {
    color: var(--article-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.article-author__info h3 {
    margin: 9px 0;
    color: var(--article-dark);
    font-size: 19px;
}

.article-author__info p {
    margin: 0;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* =========================================================
   TABLET Y MÓVIL
========================================================= */

@media (max-width: 1000px) {

    .article-page > .article-hero,
    .article-page > .article-layout {
        width: min(100% - 36px, 850px);
    }

}

@media (max-width: 760px) {

    .article-page > .article-hero,
    .article-page > .article-layout {
        width: calc(100% - 30px);
    }

    .article-page > .article-hero {
        margin-top: 18px;
    }

    .article-intro p {
        font-size: 15px;
    }

    .article-intro .article-lead {
        font-size: 16px;
    }

    .article-cta {
        margin: 40px 0;
        padding: 27px 22px;
    }

    .article-cta .article-button {
        width: 100%;
    }

    .article-info-box {
        padding: 21px 19px;
    }

    .article-sidebar .sidebar-card {
        padding: 23px 20px;
    }

}

@media (max-width: 400px) {

    .article-page > .article-hero,
    .article-page > .article-layout {
        width: calc(100% - 24px);
    }

    .article-cta {
        padding: 23px 18px;
    }

}

/* =========================================================
   21. CORRECCIÓN DEL DESPLAZAMIENTO VERTICAL
========================================================= */

html {
    min-height: 100%;
    height: auto !important;
    overflow-y: auto !important;
}

body.article-page {
    display: block !important;
    position: relative !important;
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.article-page main,
body.article-page .article-main,
body.article-page .article-layout,
body.article-page .article-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* =========================================================
   SIDEBAR - TAMBIÉN TE PUEDE INTERESAR
   SELECTORES CORREGIDOS SEGÚN EL HTML REAL
========================================================= */

/* Tarjeta completa */
.article-page .article-sidebar .sidebar-card.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0;

    width: 100%;
    padding: 25px 23px;

    background: #ffffff;
    border: 1px solid #dfe4e8;
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(20, 37, 61, .04);
}

/* Título */
.article-page .article-sidebar .sidebar-card.sidebar-links h3 {
    margin: 0 0 17px !important;
    padding: 0;

    color: #14253d !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.4;

    border: 0;
}

/* Enlaces */
.article-page .article-sidebar .sidebar-card.sidebar-links > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    margin: 0;
    padding: 14px 0;

    color: #263140 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5;

    text-decoration: none !important;
    border-bottom: 1px solid #edf0f3;

    transition: color .25s ease, padding-left .25s ease;
}

/* Último enlace sin borde */
.article-page .article-sidebar .sidebar-card.sidebar-links > a:last-child {
    border-bottom: 0;
}

/* Flechas del HTML */
.article-page .article-sidebar .sidebar-card.sidebar-links > a span {
    flex-shrink: 0;

    color: #ff9624 !important;
    font-family: Arial, sans-serif !important;
    font-size: 19px;
    font-weight: 600;

    transition: transform .25s ease;
}

/* Efecto al pasar el cursor */
.article-page .article-sidebar .sidebar-card.sidebar-links > a:hover {
    color: #ff9624 !important;
    padding-left: 5px;
}

.article-page .article-sidebar .sidebar-card.sidebar-links > a:hover span {
    transform: translateX(4px);
}

/* MÓVIL */
@media (max-width: 600px) {

    .article-page .article-sidebar .sidebar-card.sidebar-links {
        padding: 22px 19px;
    }

    .article-page .article-sidebar .sidebar-card.sidebar-links h3 {
        font-size: 18px !important;
    }

    .article-page .article-sidebar .sidebar-card.sidebar-links > a {
        font-size: 13px !important;
    }

}
