/* articles: estilos migrados preservando el diseño original. */

/* ==========================================================
   ANTHORIA — ARTICLES

   Base visual compartida por los artículos de Anthoria.

   Contiene:
   - Variables editoriales.
   - Layout general.
   - Tipografía.
   - Hero editorial.
   - Componentes visuales.
   - Tarjetas.
   - Flujos.
   - Secciones oscuras.
   - Summary.
   - CTA.
   - Animaciones reveal.
   - Tema Dark.
   - Responsive.
   - Reduced Motion.

   Los estilos exclusivos de cada artículo deben permanecer
   en sus respectivos archivos CSS.
   ========================================================== */


/* ==========================================================
   1. VARIABLES Y BASE
   ========================================================== */

body.article-page {
    --article-background: #f3eee5;
    --article-paper: #fffaf2;
    --article-dark: #24211d;
    --article-text: #302c27;
    --article-muted: #746c62;
    --article-gold: #b78a3d;
    --article-light-gold: #d7bc84;
    --article-border: rgba(76, 62, 44, 0.18);

    margin: 0;

    overflow-x: hidden;

    background-color:
        var(--article-background);

    color:
        var(--article-text);

    font-family:
        "Montserrat",
        sans-serif;
}


body.article-page *,
body.article-page *::before,
body.article-page *::after {
    box-sizing: border-box;
}


body.article-page main {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;
}


body.article-page a {
    color: inherit;
}


/* ==========================================================
   2. CONTENEDORES
   ========================================================== */

body.article-page .article-container {
    width:
        min(1180px,
            calc(100% - 80px));

    margin-right: auto;
    margin-left: auto;
}


body.article-page .article-narrow {
    max-width: 820px;
}


body.article-page .article-section {
    width: 100%;

    padding:
        110px 0;
}


body.article-page .article-soft-section {
    background-color:
        rgba(255, 250, 242, 0.68);
}


/* ==========================================================
   3. TIPOGRAFÍA EDITORIAL
   ========================================================== */

body.article-page .article-category,
body.article-page .article-eyebrow {
    margin:
        0 0 18px;

    color:
        var(--article-gold);

    font-size: 0.7rem;
    font-weight: 600;

    line-height: 1.4;

    letter-spacing: 0.2em;

    text-transform: uppercase;
}


body.article-page .article-section-title {
    margin: 0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(2.8rem,
            5vw,
            5rem);

    font-weight: 500;

    line-height: 0.97;

    letter-spacing:
        -0.025em;
}


body.article-page .article-lead {
    margin:
        38px 0 0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(1.8rem,
            3vw,
            2.7rem);

    font-weight: 400;

    line-height: 1.2;
}


body.article-page .article-body-text {
    margin:
        28px 0 0;

    color:
        var(--article-muted);

    font-size: 0.95rem;

    line-height: 1.9;
}


body.article-page .article-heading-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr) minmax(250px, 0.8fr);

    align-items: end;

    gap: 80px;
}


body.article-page .article-heading-row>p {
    margin: 0;

    color:
        var(--article-muted);

    font-size: 0.91rem;

    line-height: 1.8;
}


/* ==========================================================
   4. HERO EDITORIAL
   ========================================================== */

body.article-page .article-hero {
    position: relative;

    width: 100%;
    min-height:
        calc(100vh - 92px);

    overflow: visible;

    background:
        radial-gradient(circle at 82% 38%,
            rgba(183, 138, 61, 0.14),
            transparent 27%),
        repeating-linear-gradient(90deg,
            transparent 0,
            transparent 79px,
            rgba(183, 138, 61, 0.045) 80px),
        var(--article-background);
}


body.article-page .article-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(430px, 0.9fr);

    align-items: center;

    gap: 80px;

    min-height:
        calc(100vh - 92px);

    padding-top: 60px;
    padding-bottom: 80px;
}


body.article-page .article-hero-content {
    position: relative;

    z-index: 4;
}


body.article-page .article-hero h1 {
    max-width: 760px;

    margin: 0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(4.4rem,
            7vw,
            7.6rem);

    font-weight: 500;

    line-height: 0.86;

    letter-spacing:
        -0.04em;
}


body.article-page .article-hero h1 span {
    display: block;

    color:
        var(--article-gold);
}


body.article-page .article-hero-description {
    max-width: 650px;

    margin:
        34px 0 0;

    color:
        var(--article-muted);

    font-size: 0.98rem;

    line-height: 1.9;
}


/* ==========================================================
   5. META DEL ARTÍCULO
   ========================================================== */

body.article-page .article-meta {
    display: flex;

    align-items: center;

    gap: 32px;

    margin-top: 28px;

    color:
        var(--article-muted);

    font-size: 0.71rem;

    letter-spacing: 0.04em;
}


body.article-page .article-meta span+span::before {
    content: "•";

    margin-right: 32px;

    color:
        var(--article-gold);
}


/* ==========================================================
   6. ILUSTRACIÓN DE ALGORITMO

   Se mantiene como componente compartido mientras
   revisamos los CSS específicos de los artículos.
   ========================================================== */

body.article-page .algorithm-visual {
    position: relative;

    display: block;

    width: 100%;
    min-width: 520px;
    min-height: 560px;

    opacity: 1;
    visibility: visible;
}


body.article-page .algorithm-center,
body.article-page .algorithm-node {
    position: absolute;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(183, 138, 61, 0.50);

    text-align: center;

    box-shadow:
        0 22px 50px rgba(68, 48, 24, 0.12);
}


body.article-page .algorithm-center {
    top: 50%;
    left: 50%;
    z-index: 5;

    width: 210px;
    height: 210px;

    background:
        radial-gradient(circle at 34% 25%,
            #e5cb99,
            transparent 24%),
        linear-gradient(145deg,
            #bd9147,
            #785523);

    border-radius: 50%;

    color: #fff9ec;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 2rem;

    transform:
        translate(-50%, -50%);

    animation:
        article-pulse 3.5s ease-in-out infinite;
}


body.article-page .algorithm-center::before {
    content: "";

    position: absolute;

    inset: -28px;

    border:
        1px dashed rgba(183, 138, 61, 0.38);

    border-radius: 50%;

    animation:
        article-spin 22s linear infinite;
}


body.article-page .algorithm-node {
    z-index: 4;

    width: 105px;
    height: 105px;

    background-color:
        rgba(255, 250, 242, 0.90);

    border-radius: 30px;

    color:
        var(--article-gold);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.2rem;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    animation:
        article-float 5s ease-in-out infinite;
}


body.article-page .algorithm-node-search {
    top: 5%;
    left: 10%;
}


body.article-page .algorithm-node-social {
    top: 8%;
    right: 5%;

    animation-delay: -1s;
}


body.article-page .algorithm-node-video {
    top: 43%;
    right: -2%;

    animation-delay: -2.2s;
}


body.article-page .algorithm-node-shopping {
    right: 13%;
    bottom: 2%;

    animation-delay: -3.1s;
}


body.article-page .algorithm-node-music {
    bottom: 8%;
    left: 4%;

    animation-delay: -1.8s;
}


/* ==========================================================
   CONEXIONES DEL ALGORITMO
   ========================================================== */

body.article-page .algorithm-line {
    position: absolute;

    top: 50%;
    left: 50%;
    z-index: 2;

    width: 190px;
    height: 1px;

    background:
        linear-gradient(90deg,
            rgba(183, 138, 61, 0.20),
            rgba(183, 138, 61, 0.85));

    transform-origin:
        left center;
}


body.article-page .line-one {
    transform:
        rotate(-139deg);
}


body.article-page .line-two {
    transform:
        rotate(-43deg);
}


body.article-page .line-three {
    transform:
        rotate(4deg);
}


body.article-page .line-four {
    transform:
        rotate(48deg);
}


body.article-page .line-five {
    transform:
        rotate(139deg);
}


/* ==========================================================
   7. TARJETAS DE INFORMACIÓN
   ========================================================== */

body.article-page .article-three-column-grid {
    display: grid;

    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap: 24px;

    margin-top: 66px;
}


body.article-page .article-info-card {
    min-height: 310px;

    padding: 34px;

    background-color:
        var(--article-paper);

    border:
        1px solid var(--article-border);

    border-radius:
        4px 28px 4px 28px;

    box-shadow:
        0 18px 38px rgba(66, 50, 31, 0.07);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


body.article-page .article-info-card:hover {
    border-color:
        rgba(183, 138, 61, 0.65);

    transform:
        translateY(-8px);

    box-shadow:
        0 24px 50px rgba(66, 50, 31, 0.12);
}


body.article-page .article-card-number {
    color:
        var(--article-gold);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 2.5rem;
}


body.article-page .article-info-card h3 {
    margin:
        78px 0 18px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 2rem;
    font-weight: 500;
}


body.article-page .article-info-card p {
    margin: 0;

    color:
        var(--article-muted);

    font-size: 0.87rem;

    line-height: 1.8;
}


/* ==========================================================
   8. FLUJO DE RECOMENDACIÓN
   ========================================================== */

body.article-page .algorithm-flow {
    display: grid;

    grid-template-columns:
        1fr auto 1fr auto 1fr auto 1fr;

    align-items: stretch;

    gap: 14px;

    margin-top: 68px;
}


body.article-page .algorithm-flow-step {
    min-height: 230px;

    padding:
        30px 24px;

    background-color:
        var(--article-paper);

    border:
        1px solid var(--article-border);

    border-radius: 22px;

    text-align: center;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


body.article-page .algorithm-flow-step:hover {
    border-color:
        rgba(183, 138, 61, 0.65);

    transform:
        translateY(-5px);
}


body.article-page .algorithm-flow-step span {
    color:
        var(--article-gold);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 2.4rem;
}


body.article-page .algorithm-flow-step strong {
    display: block;

    margin-top: 44px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.6rem;
    font-weight: 500;
}


body.article-page .algorithm-flow-step p {
    margin:
        14px 0 0;

    color:
        var(--article-muted);

    font-size: 0.8rem;

    line-height: 1.6;
}


body.article-page .algorithm-flow-arrow {
    display: grid;

    place-items: center;

    color:
        var(--article-gold);

    font-size: 1.5rem;
}


/* ==========================================================
   9. SECCIÓN OSCURA
   ========================================================== */

body.article-page .article-dark-section {
    background-color:
        var(--article-dark);

    color: #fff8ed;
}


body.article-page .article-dark-section .article-section-title {
    color: #fff8ed;
}


body.article-page .article-business-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr) minmax(420px, 1.1fr);

    gap: 100px;
}


body.article-page .article-business-points {
    display: grid;

    gap: 18px;
}


body.article-page .article-business-point {
    padding:
        28px 30px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025));

    border:
        1px solid rgba(215, 188, 132, 0.24);

    border-radius:
        4px 22px 4px 22px;

    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}


body.article-page .article-business-point:hover {
    border-color:
        rgba(215, 188, 132, 0.62);

    transform:
        translateX(6px);
}


body.article-page .article-business-point h3 {
    margin: 0;

    color:
        var(--article-light-gold);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.7rem;
    font-weight: 500;
}


body.article-page .article-business-point p {
    margin:
        14px 0 0;

    color:
        rgba(255, 248, 237, 0.68);

    font-size: 0.85rem;

    line-height: 1.75;
}


/* ==========================================================
   10. SUMMARY
   ========================================================== */

body.article-page .article-summary-box {
    padding: 68px;

    background:
        linear-gradient(rgba(255, 250, 242, 0.94),
            rgba(255, 250, 242, 0.94)),
        repeating-linear-gradient(0deg,
            transparent 0,
            transparent 29px,
            rgba(70, 54, 35, 0.055) 30px);

    border:
        1px solid var(--article-border);

    box-shadow:
        0 24px 60px rgba(67, 50, 30, 0.10);
}


body.article-page .article-summary-box h2 {
    margin: 0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(3rem,
            5vw,
            5rem);

    font-weight: 500;
}


body.article-page .article-summary-box>p:last-child {
    max-width: 780px;

    margin:
        28px 0 0;

    color:
        var(--article-muted);

    font-size: 0.95rem;

    line-height: 1.9;
}


/* ==========================================================
   11. CTA FINAL
   ========================================================== */

body.article-page .article-cta {
    width: 100%;

    padding:
        120px 0;

    background-color: #1f1c18;

    color: #fff8ed;

    text-align: center;
}


body.article-page .article-cta-content {
    max-width: 850px;
}


body.article-page .article-cta h2 {
    margin: 0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(3.2rem,
            6vw,
            6rem);

    font-weight: 500;

    line-height: 0.95;
}


body.article-page .article-cta p:not(.article-eyebrow) {
    max-width: 650px;

    margin:
        28px auto 0;

    color:
        rgba(255, 248, 237, 0.70);

    font-size: 0.92rem;

    line-height: 1.8;
}


body.article-page .article-cta-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 25px;

    margin-top: 36px;

    padding:
        15px 24px;

    background-color:
        var(--article-light-gold);

    border:
        1px solid var(--article-light-gold);

    border-radius: 999px;

    color: #1f1c18;

    font-size: 0.78rem;
    font-weight: 600;

    letter-spacing: 0.06em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


body.article-page .article-cta-button:hover {
    background-color: transparent;

    color:
        var(--article-light-gold);

    transform:
        translateY(-4px);
}


/* ==========================================================
   12. REVEAL
   ========================================================== */

body.article-page .article-reveal {
    opacity: 0;

    transform:
        translateY(38px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.2,
            0.7,
            0.2,
            1);
}


body.article-page .article-reveal.article-visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* ==========================================================
   13. ANIMACIONES
   ========================================================== */

@keyframes article-float {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-13px);
    }

}


@keyframes article-spin {

    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }

}


@keyframes article-pulse {

    0%,
    100% {
        box-shadow:
            0 22px 50px rgba(68, 48, 24, 0.12),
            0 0 0 0 rgba(183, 138, 61, 0.12);
    }

    50% {
        box-shadow:
            0 22px 50px rgba(68, 48, 24, 0.12),
            0 0 0 28px rgba(183, 138, 61, 0);
    }

}


/* ==========================================================
   14. HERO DE ESCRITORIO

   Esta es la versión consolidada del hero editorial.
   Sustituye las dos versiones antiguas que competían
   entre sí mediante la cascada.
   ========================================================== */

@media (min-width: 1051px) {

    body.article-page .article-hero {
        min-height: auto;
    }


    body.article-page .article-hero .article-container {
        width:
            min(1380px,
                calc(100% - 90px));

        max-width: none;
    }


    body.article-page .article-hero-grid {
        display: block;

        min-height: auto;

        padding-top: 65px;
        padding-bottom: 85px;
    }


    body.article-page .article-hero-content {
        display: grid;

        grid-template-columns:
            minmax(600px, 1.3fr) minmax(320px, 0.7fr);

        grid-template-rows:
            auto auto auto;

        column-gap: 90px;

        align-items: end;

        width: 100%;
        max-width: none;
    }


    body.article-page .article-category {
        grid-column: 1;
        grid-row: 1;

        margin-bottom: 20px;
    }


    body.article-page .article-hero h1 {
        grid-column: 1;
        grid-row:
            2 / 4;

        width: 100%;
        max-width: 800px;

        font-size:
            clamp(4.5rem,
                5.5vw,
                6.4rem);

        line-height: 0.88;

        letter-spacing:
            -0.045em;
    }


    body.article-page .article-hero-description {
        grid-column: 2;
        grid-row: 2;

        max-width: 430px;

        margin:
            0 0 32px;

        font-size: 1rem;

        line-height: 1.9;
    }


    body.article-page .article-meta {
        grid-column: 2;
        grid-row: 3;

        margin-top: 0;
        margin-bottom: 4px;
    }


    body.article-page .algorithm-visual {
        display: none;
    }

}


/* ==========================================================
   15. GRÁFICA DEL HERO

   Se mantiene una sola definición.
   ========================================================== */

body.article-page .hero-mini-chart {
    position: absolute;

    top: 250px;
    right: 5%;

    z-index: 5;

    width: 310px;
    height: 245px;

    margin: 0;

    padding:
        26px 28px 22px;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            rgba(255, 250, 242, 0.96),
            rgba(242, 232, 214, 0.78));

    border:
        1px solid rgba(183, 138, 61, 0.30);

    border-radius:
        4px 28px 4px 28px;

    box-shadow:
        0 22px 55px rgba(65, 45, 22, 0.11);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    pointer-events: none;
}


body.article-page .hero-mini-chart::before {
    content: "";

    position: absolute;

    inset:
        65px 28px 48px;

    background:
        repeating-linear-gradient(to bottom,
            transparent 0,
            transparent 32px,
            rgba(91, 71, 47, 0.09) 33px);

    pointer-events: none;
}


/* ==========================================================
   CABECERA DE LA GRÁFICA
   ========================================================== */

body.article-page .hero-mini-chart-header,
body.article-page .hero-mini-chart-footer {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: space-between;
}


body.article-page .hero-mini-chart-header span {
    color:
        var(--article-muted);

    font-size: 0.62rem;
    font-weight: 600;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


body.article-page .hero-mini-chart-header strong {
    color:
        var(--article-gold);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.75rem;
    font-weight: 500;
}


/* ==========================================================
   BARRAS DE LA GRÁFICA
   ========================================================== */

body.article-page .hero-mini-chart-bars {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: end;

    gap: 10px;

    height: 125px;

    margin:
        18px 0 14px;

    padding:
        0 5px;

    border-bottom:
        1px solid rgba(76, 62, 44, 0.18);
}


body.article-page .hero-mini-chart-bars span {
    flex: 1;

    max-width: 22px;

    height:
        var(--bar-height);

    background:
        linear-gradient(180deg,
            #dfc58f 0%,
            #b78a3d 100%);

    border-radius:
        20px 20px 3px 3px;

    opacity: 0.90;

    transform-origin: bottom;

    animation:
        hero-chart-rise 0.8s ease both;
}


body.article-page .hero-mini-chart-bars span:nth-child(2) {
    animation-delay: 0.08s;
}


body.article-page .hero-mini-chart-bars span:nth-child(3) {
    animation-delay: 0.16s;
}


body.article-page .hero-mini-chart-bars span:nth-child(4) {
    animation-delay: 0.24s;
}


body.article-page .hero-mini-chart-bars span:nth-child(5) {
    animation-delay: 0.32s;
}


body.article-page .hero-mini-chart-bars span:nth-child(6) {
    animation-delay: 0.40s;
}


body.article-page .hero-mini-chart-bars span:nth-child(7) {
    animation-delay: 0.48s;
}


body.article-page .hero-mini-chart-footer span {
    color:
        var(--article-muted);

    font-size: 0.62rem;

    letter-spacing: 0.04em;
}


@keyframes hero-chart-rise {

    from {
        opacity: 0;

        transform:
            scaleY(0);
    }

    to {
        opacity: 0.90;

        transform:
            scaleY(1);
    }

}


/* ==========================================================
   16. DARK THEME
   ========================================================== */

body.article-page.dark-theme {
    --article-background: #171512;
    --article-paper: #24211d;
    --article-dark: #100f0d;
    --article-text: #f3ecdf;
    --article-muted: #b9ad9c;
    --article-gold: #c79a4b;
    --article-light-gold: #dfc489;
    --article-border:
        rgba(223, 196, 137, 0.18);

    background-color:
        var(--article-background);

    color:
        var(--article-text);
}


/* Hero oscuro. */
body.article-page.dark-theme .article-hero {
    background:
        radial-gradient(circle at 82% 38%,
            rgba(199, 154, 75, 0.13),
            transparent 29%),
        repeating-linear-gradient(90deg,
            transparent 0,
            transparent 79px,
            rgba(223, 196, 137, 0.025) 80px),
        var(--article-background);
}


/* Tipografía oscura. */
body.article-page.dark-theme .article-hero h1,
body.article-page.dark-theme .article-section-title,
body.article-page.dark-theme .article-lead,
body.article-page.dark-theme .article-summary-box h2 {
    color:
        var(--article-text);
}


body.article-page.dark-theme .article-hero h1 span {
    color:
        var(--article-gold);
}


body.article-page.dark-theme .article-hero-description,
body.article-page.dark-theme .article-body-text,
body.article-page.dark-theme .article-heading-row>p,
body.article-page.dark-theme .article-info-card p,
body.article-page.dark-theme .algorithm-flow-step p,
body.article-page.dark-theme .article-summary-box>p:last-child {
    color:
        var(--article-muted);
}


/* Sección intermedia oscura. */
body.article-page.dark-theme .article-soft-section {
    background-color:
        rgba(255, 255, 255, 0.018);
}


/* Tarjetas oscuras. */
body.article-page.dark-theme .article-info-card,
body.article-page.dark-theme .algorithm-flow-step {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018));

    border-color:
        rgba(223, 196, 137, 0.18);

    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.24);
}


body.article-page.dark-theme .article-info-card:hover,
body.article-page.dark-theme .algorithm-flow-step:hover {
    border-color:
        rgba(223, 196, 137, 0.55);

    box-shadow:
        0 26px 58px rgba(0, 0, 0, 0.34);
}


/* Bloque oscuro. */
body.article-page.dark-theme .article-dark-section {
    background-color: #0f0e0c;
}


body.article-page.dark-theme .article-business-point {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.018));

    border-color:
        rgba(223, 196, 137, 0.20);
}


/* Summary oscuro. */
body.article-page.dark-theme .article-summary-box {
    background:
        linear-gradient(rgba(36, 33, 29, 0.96),
            rgba(36, 33, 29, 0.96)),
        repeating-linear-gradient(0deg,
            transparent 0,
            transparent 29px,
            rgba(223, 196, 137, 0.045) 30px);

    border-color:
        rgba(223, 196, 137, 0.20);

    box-shadow:
        0 26px 65px rgba(0, 0, 0, 0.32);
}


/* Gráfica oscura. */
body.article-page.dark-theme .hero-mini-chart {
    background:
        linear-gradient(145deg,
            rgba(40, 36, 31, 0.97),
            rgba(25, 23, 20, 0.90));

    border-color:
        rgba(223, 196, 137, 0.28);

    box-shadow:
        0 26px 65px rgba(0, 0, 0, 0.38);
}


body.article-page.dark-theme .hero-mini-chart::before {
    background:
        repeating-linear-gradient(to bottom,
            transparent 0,
            transparent 32px,
            rgba(223, 196, 137, 0.07) 33px);
}


body.article-page.dark-theme .hero-mini-chart-bars {
    border-bottom-color:
        rgba(223, 196, 137, 0.18);
}


body.article-page.dark-theme .hero-mini-chart-bars span {
    background:
        linear-gradient(180deg,
            #dfc489 0%,
            #9d6e27 100%);

    box-shadow:
        0 8px 20px rgba(199, 154, 75, 0.18);
}


body.article-page.dark-theme .hero-mini-chart-header span,
body.article-page.dark-theme .hero-mini-chart-footer span {
    color: #b9ad9c;
}


body.article-page.dark-theme .article-cta {
    background-color: #0c0b09;
}


/* ==========================================================
   17. TABLET
   ========================================================== */

@media (max-width: 1050px) {

    body.article-page .article-hero-grid,
    body.article-page .article-business-grid {
        grid-template-columns: 1fr;
    }


    body.article-page .article-hero-grid {
        padding-top: 100px;
    }


    body.article-page .algorithm-visual {
        width:
            min(600px, 100%);

        margin-right: auto;
        margin-left: auto;
    }


    body.article-page .article-heading-row {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    body.article-page .article-three-column-grid {
        grid-template-columns: 1fr;
    }


    body.article-page .article-info-card {
        min-height: 260px;
    }


    body.article-page .algorithm-flow {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));
    }


    body.article-page .algorithm-flow-arrow {
        display: none;
    }


    body.article-page .article-business-grid {
        gap: 60px;
    }


    body.article-page .hero-mini-chart {
        display: none;
    }

}


/* ==========================================================
   18. MÓVIL
   ========================================================== */

@media (max-width: 700px) {

    body.article-page .article-container {
        width:
            calc(100% - 36px);
    }


    body.article-page .article-hero {
        min-height: auto;
    }


    body.article-page .article-hero-grid {
        min-height: auto;

        gap: 20px;

        padding-top: 70px;
        padding-bottom: 40px;
    }


    body.article-page .article-hero h1 {
        font-size:
            clamp(3.7rem,
                17vw,
                5.3rem);
    }


    body.article-page .article-hero-description {
        font-size: 0.9rem;
    }


    body.article-page .article-meta {
        display: grid;

        gap: 8px;
    }


    body.article-page .article-meta span+span::before {
        display: none;
    }


    body.article-page .algorithm-visual {
        min-width: 0;
        min-height: 430px;

        transform:
            scale(0.82);

        transform-origin: center;
    }


    body.article-page .algorithm-center {
        width: 175px;
        height: 175px;

        font-size: 1.65rem;
    }


    body.article-page .algorithm-node {
        width: 86px;
        height: 86px;

        border-radius: 24px;

        font-size: 1rem;
    }


    body.article-page .algorithm-line {
        width: 150px;
    }


    body.article-page .article-section {
        padding:
            84px 0;
    }


    body.article-page .article-section-title {
        font-size:
            clamp(2.8rem,
                13vw,
                4rem);
    }


    body.article-page .article-lead {
        margin-top: 28px;
    }


    body.article-page .article-three-column-grid {
        margin-top: 46px;
    }


    body.article-page .article-info-card {
        min-height: auto;
    }


    body.article-page .article-info-card h3 {
        margin-top: 42px;
    }


    body.article-page .algorithm-flow {
        grid-template-columns: 1fr;
    }


    body.article-page .algorithm-flow-step {
        min-height: auto;
    }


    body.article-page .algorithm-flow-step strong {
        margin-top: 28px;
    }


    body.article-page .article-business-grid {
        gap: 48px;
    }


    body.article-page .article-summary-box {
        padding:
            42px 28px;
    }


    body.article-page .article-cta {
        padding:
            90px 0;
    }

}


/* ==========================================================
   19. MÓVILES PEQUEÑOS
   ========================================================== */

@media (max-width: 430px) {

    body.article-page .article-container {
        width:
            calc(100% - 28px);
    }


    body.article-page .article-hero-grid {
        padding-top: 92px;
    }


    body.article-page .article-hero h1 {
        font-size:
            clamp(3.1rem,
                17vw,
                4.5rem);
    }


    body.article-page .article-section {
        padding:
            70px 0;
    }


    body.article-page .article-info-card {
        padding: 27px;

        border-radius:
            4px 22px 4px 22px;
    }


    body.article-page .algorithm-flow-step {
        padding:
            26px 20px;
    }


    body.article-page .article-business-point {
        padding:
            24px 22px;
    }


    body.article-page .article-summary-box {
        padding:
            34px 22px;
    }


    body.article-page .article-cta {
        padding:
            76px 0;
    }

}


/* ==========================================================
   20. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    body.article-page .article-reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }


    body.article-page .algorithm-center,
    body.article-page .algorithm-center::before,
    body.article-page .algorithm-node,
    body.article-page .hero-mini-chart-bars span {
        animation: none;
    }


    body.article-page .article-info-card,
    body.article-page .algorithm-flow-step,
    body.article-page .article-business-point,
    body.article-page .article-cta-button {
        transition: none;
    }


    body.article-page .article-info-card:hover,
    body.article-page .algorithm-flow-step:hover,
    body.article-page .article-business-point:hover,
    body.article-page .article-cta-button:hover {
        transform: none;
    }

}