/* ==================================================
   ARTÍCULOS Y GUÍAS LIRO
   Plantilla reutilizable
================================================== */

/* ==================================================
   SEGURIDAD CONTRA DESBORDAMIENTOS
================================================== */

.article-page,
.article-hero,
.article-intro,
.article-body,
.article-faq,
.article-related,
.article-cta{
    width:100%;
    max-width:100%;
    overflow-x:clip;
}

.article-page *,
.article-hero *,
.article-intro *,
.article-body *,
.article-faq *,
.article-related *,
.article-cta *{
    min-width:0;
}

/* ==================================================
   HERO DEL ARTÍCULO
================================================== */

.article-hero{
    width:100%;
    max-width:1360px;
    min-height:690px;
    margin:0 auto;
    padding:165px 40px 105px;
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);
    gap:78px;
    align-items:center;
    background:#FFFFFF;
}

.article-hero-content{
    width:100%;
    max-width:780px;
}

.article-category{
    display:inline-flex;
    align-items:center;
    margin-bottom:24px;
    padding:9px 16px;
    border:1px solid rgba(202,157,33,.28);
    border-radius:999px;
    background:#FAF7F1;
    color:var(--color-primary);
    font-size:12px;
    font-weight:800;
    line-height:1.4;
    letter-spacing:2px;
    text-transform:uppercase;
}

.article-hero h1{
    max-width:780px;
    margin:0 0 30px;
    color:#17263F;
    font-size:62px;
    line-height:1.08;
    letter-spacing:-2.8px;
    font-weight:700;
    overflow-wrap:anywhere;
}

.article-description{
    max-width:730px;
    margin:0;
    color:#667085;
    font-size:19px;
    line-height:1.85;
}

.article-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:14px 28px;
    margin-top:34px;
    padding-top:25px;
    border-top:1px solid var(--color-border);
}

.article-meta-item{
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:#667085;
    font-size:14px;
    line-height:1.5;
    font-weight:600;
}

.article-meta-item i{
    color:var(--color-primary);
    font-size:15px;
}

.article-hero-image{
    position:relative;
    width:100%;
    max-width:600px;
    aspect-ratio:3 / 2;
    margin-left:auto;
    overflow:hidden;
    border-radius:32px;
    background:#F7F4ED;
    box-shadow:0 30px 80px rgba(23,38,63,.09);
}

.article-hero-image::after{
    content:"";
    position:absolute;
    inset:0;
    border:1px solid rgba(202,157,33,.20);
    border-radius:inherit;
    pointer-events:none;
}

.article-hero-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    border-radius:inherit;
    filter:none;
    transform:none;
}

/* ==================================================
   INTRO: APRENDIZAJES + ÍNDICE
================================================== */

.article-intro{
    padding:105px 40px;
    background:#FAF7F1;
}

.article-intro-container{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:28px;
    align-items:start;
}

.article-learnings,
.article-index{
    width:100%;
    height:100%;
    padding:42px 40px;
    background:#FFFFFF;
    border:1px solid #E5DDCE;
    border-radius:28px;
    box-shadow:0 18px 48px rgba(23,38,63,.05);
}

.article-learnings{
    position:relative;
    overflow:hidden;
}

.article-learnings::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg,var(--color-primary),#E7C665);
}

.article-block-label{
    display:block;
    margin-bottom:26px;
    color:var(--color-primary);
    font-size:12px;
    line-height:1.5;
    font-weight:800;
    letter-spacing:2px;
    text-transform:uppercase;
}

.article-learnings ul,
.article-index ol{
    margin:0;
    padding:0;
    list-style:none;
}

.article-learnings ul{
    display:grid;
    gap:18px;
}

.article-learnings li{
    display:grid;
    grid-template-columns:32px minmax(0,1fr);
    gap:14px;
    align-items:start;
    color:#17263F;
    font-size:16px;
    line-height:1.75;
    font-weight:600;
}

.article-learnings li i{
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:1px;
    border-radius:50%;
    background:#F8F2E4;
    color:var(--color-primary);
    font-size:12px;
}

.article-index ol{
    border-top:1px solid var(--color-border);
}

.article-index li{
    border-bottom:1px solid var(--color-border);
}

.article-index a{
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:16px;
    align-items:center;
    padding:18px 0;
    color:#17263F;
    font-size:15px;
    line-height:1.55;
    font-weight:700;
    transition:color .25s ease,padding-left .25s ease;
}

.article-index a:hover{
    padding-left:5px;
    color:var(--color-primary);
}

.article-index-number{
    color:var(--color-primary);
    font-size:12px;
    font-weight:800;
    letter-spacing:1.5px;
}

/* ==================================================
   CUERPO DEL ARTÍCULO
================================================== */

.article-body{
    padding:110px 40px 120px;
    background:#FFFFFF;
}

.article-body-container{
    width:100%;
    max-width:940px;
    margin:0 auto;
}

.article-body-content{
    width:100%;
}

.article-body-content > *:first-child{
    margin-top:0;
}

.article-body-content > *:last-child{
    margin-bottom:0;
}

.article-body h2{
    scroll-margin-top:125px;
    margin:82px 0 26px;
    color:#17263F;
    font-size:46px;
    line-height:1.14;
    letter-spacing:-1.7px;
}

.article-body h3{
    scroll-margin-top:125px;
    margin:48px 0 18px;
    color:#17263F;
    font-family:"Cormorant Garamond",serif;
    font-size:34px;
    line-height:1.18;
    font-weight:650;
}

.article-body h4{
    margin:34px 0 14px;
    color:#17263F;
    font-size:20px;
    line-height:1.4;
    font-weight:750;
}

.article-body p{
    margin:0 0 24px;
    color:#566173;
    font-size:18px;
    line-height:1.9;
}

.article-body strong{
    color:#17263F;
    font-weight:750;
}

.article-body a{
    color:var(--color-primary);
    font-weight:700;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:4px;
}

.article-body a:hover{
    color:#A97B12;
}

/* ==================================================
   LISTAS DEL ARTÍCULO
================================================== */

.article-body ul,
.article-body ol{
    margin:28px 0 34px;
    padding:0;
}

.article-body ul{
    list-style:none;
}

.article-body ul li{
    position:relative;
    margin-bottom:15px;
    padding-left:32px;
    color:#566173;
    font-size:17px;
    line-height:1.8;
}

.article-body ul li::before{
    content:"";
    position:absolute;
    top:.72em;
    left:5px;
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--color-primary);
    box-shadow:0 0 0 5px rgba(202,157,33,.12);
}

.article-body ol{
    padding-left:25px;
}

.article-body ol li{
    margin-bottom:15px;
    padding-left:8px;
    color:#566173;
    font-size:17px;
    line-height:1.8;
}

.article-body ol li::marker{
    color:var(--color-primary);
    font-weight:800;
}

/* ==================================================
   BLOQUES DESTACADOS
================================================== */

.article-callout{
    position:relative;
    margin:42px 0;
    padding:32px 34px 32px 40px;
    overflow:hidden;
    background:#FAF7F1;
    border:1px solid #E5D7B9;
    border-radius:22px;
}

.article-callout::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:5px;
    height:100%;
    background:var(--color-primary);
}

.article-callout-label{
    display:block;
    margin-bottom:12px;
    color:var(--color-primary);
    font-size:11px;
    line-height:1.4;
    font-weight:800;
    letter-spacing:2px;
    text-transform:uppercase;
}

.article-callout h3{
    margin:0 0 12px;
    font-family:Manrope,Arial,sans-serif;
    font-size:23px;
    line-height:1.35;
    letter-spacing:-.4px;
    font-weight:750;
}

.article-callout p{
    margin:0;
    color:#566173;
    font-size:16px;
    line-height:1.8;
}

.article-callout-warning{
    background:#FFF8F3;
    border-color:#EED7C8;
}

.article-callout-warning::before{
    background:#C26E3D;
}

.article-callout-warning .article-callout-label{
    color:#A95B31;
}

/* ==================================================
   TARJETAS / PASOS
================================================== */

.article-steps{
    display:grid;
    gap:18px;
    margin:34px 0 42px;
}

.article-step{
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    gap:20px;
    padding:26px 28px;
    background:#FFFFFF;
    border:1px solid #E7E1D6;
    border-radius:20px;
}

.article-step-number{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:#F8F2E4;
    color:var(--color-primary);
    font-size:13px;
    font-weight:800;
    letter-spacing:1px;
}

.article-step h3{
    margin:0 0 8px;
    font-family:Manrope,Arial,sans-serif;
    font-size:20px;
    line-height:1.4;
    font-weight:750;
}

.article-step p{
    margin:0;
    font-size:16px;
    line-height:1.75;
}

/* ==================================================
   TABLAS
================================================== */

.article-table-wrap{
    width:100%;
    margin:36px 0 44px;
    overflow-x:auto;
    border:1px solid #E3DED5;
    border-radius:20px;
    background:#FFFFFF;
}

.article-table{
    width:100%;
    min-width:680px;
    border-collapse:collapse;
}

.article-table th,
.article-table td{
    padding:18px 20px;
    border-bottom:1px solid #ECE8DF;
    text-align:left;
    vertical-align:top;
    font-size:15px;
    line-height:1.65;
}

.article-table th{
    background:#FAF7F1;
    color:#17263F;
    font-size:12px;
    font-weight:800;
    letter-spacing:1px;
    text-transform:uppercase;
}

.article-table td{
    color:#566173;
}

.article-table tr:last-child td{
    border-bottom:none;
}

/* ==================================================
   IMÁGENES Y PIES
================================================== */

.article-figure{
    margin:42px 0;
}

.article-figure img{
    display:block;
    width:100%;
    height:auto;
    border-radius:24px;
    box-shadow:0 20px 55px rgba(23,38,63,.08);
}

.article-figure figcaption{
    margin-top:13px;
    color:#7A8290;
    font-size:13px;
    line-height:1.65;
    text-align:center;
}

/* ==================================================
   FAQ DEL ARTÍCULO
================================================== */

.article-faq{
    padding:110px 40px;
    background:#FAF7F1;
}

.article-faq-container{
    width:100%;
    max-width:980px;
    margin:0 auto;
}

.article-faq-header{
    max-width:760px;
    margin:0 auto 54px;
    text-align:center;
}

.article-faq-header h2{
    margin:0 0 20px;
    color:#17263F;
    font-size:50px;
    line-height:1.12;
    letter-spacing:-1.8px;
}

.article-faq-header p{
    margin:0;
    color:#667085;
    font-size:18px;
    line-height:1.8;
}

.article-faq-list{
    border-top:1px solid #DED7C9;
}

.article-faq-item{
    padding:30px 0;
    border-bottom:1px solid #DED7C9;
}

.article-faq-item h3{
    margin:0 0 13px;
    color:#17263F;
    font-family:"Cormorant Garamond",serif;
    font-size:31px;
    line-height:1.2;
    font-weight:650;
}

.article-faq-item p{
    margin:0;
    color:#667085;
    font-size:16px;
    line-height:1.8;
}

/* ==================================================
   SERVICIO RELACIONADO
================================================== */

.article-related{
    padding:105px 40px;
    background:#FFFFFF;
}

.article-related-card{
    position:relative;
    width:100%;
    max-width:1120px;
    margin:0 auto;
    padding:55px 58px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:45px;
    align-items:center;
    overflow:hidden;
    background:#FAF7F1;
    border:1px solid #E4D8BE;
    border-radius:30px;
}

.article-related-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg,var(--color-primary),#E7C665);
}

.article-related-label{
    display:block;
    margin-bottom:16px;
    color:var(--color-primary);
    font-size:12px;
    font-weight:800;
    letter-spacing:2px;
    text-transform:uppercase;
}

.article-related h2{
    max-width:720px;
    margin:0 0 15px;
    color:#17263F;
    font-size:42px;
    line-height:1.14;
    letter-spacing:-1.4px;
}

.article-related p{
    max-width:680px;
    margin:0;
    color:#667085;
    font-size:17px;
    line-height:1.8;
}

.article-related-actions{
    min-width:230px;
}

/* ==================================================
   RECURSOS RELACIONADOS
================================================== */

.article-more{
    padding:105px 40px 115px;
    background:#FAF7F1;
}

.article-more-container{
    width:100%;
    max-width:1180px;
    margin:0 auto;
}

.article-more-header{
    max-width:760px;
    margin:0 auto 52px;
    text-align:center;
}

.article-more-header h2{
    margin:0 0 18px;
    color:#17263F;
    font-size:48px;
    line-height:1.13;
    letter-spacing:-1.7px;
}

.article-more-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}

.article-more-card{
    display:flex;
    flex-direction:column;
    min-height:260px;
    padding:34px 32px;
    background:#FFFFFF;
    border:1px solid #E5DDCE;
    border-radius:24px;
    transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;
}

.article-more-card:hover{
    transform:translateY(-5px);
    border-color:rgba(202,157,33,.55);
    box-shadow:0 20px 48px rgba(23,38,63,.07);
}

.article-more-category{
    display:block;
    margin-bottom:16px;
    color:var(--color-primary);
    font-size:11px;
    font-weight:800;
    letter-spacing:1.8px;
    text-transform:uppercase;
}

.article-more-card h3{
    margin:0 0 16px;
    color:#17263F;
    font-family:"Cormorant Garamond",serif;
    font-size:31px;
    line-height:1.2;
    font-weight:650;
}

.article-more-card p{
    margin:0 0 25px;
    color:#667085;
    font-size:15px;
    line-height:1.75;
}

.article-more-card a{
    margin-top:auto;
    color:var(--color-primary);
    font-size:14px;
    font-weight:800;
}

/* ==================================================
   CTA FINAL
================================================== */

.article-cta{
    padding:105px 40px;
    background:#FFFFFF;
}

.article-cta-content{
    width:100%;
    max-width:940px;
    margin:0 auto;
    padding:68px 60px;
    text-align:center;
    background:#FAF7F1;
    border:1px solid #E4D8BE;
    border-radius:32px;
    box-shadow:0 24px 60px rgba(23,38,63,.05);
}

.article-cta h2{
    max-width:760px;
    margin:0 auto 23px;
    color:#17263F;
    font-size:50px;
    line-height:1.12;
    letter-spacing:-1.8px;
}

.article-cta p{
    max-width:690px;
    margin:0 auto 38px;
    color:#667085;
    font-size:18px;
    line-height:1.85;
}

.article-cta-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:16px;
}

/* ==================================================
   TABLET
================================================== */

@media(max-width:1100px){

    .article-hero{
        min-height:auto;
        grid-template-columns:minmax(0,1fr) minmax(350px,.85fr);
        gap:50px;
        padding:145px 30px 90px;
    }

    .article-hero h1{
        font-size:51px;
        letter-spacing:-2.1px;
    }

    .article-intro-container{
        grid-template-columns:1fr;
        max-width:820px;
    }

    .article-related-card{
        grid-template-columns:1fr;
    }

    .article-related-actions{
        min-width:0;
    }

}

/* ==================================================
   MÓVIL
================================================== */

@media(max-width:768px){

    .article-hero{
        width:100%;
        max-width:100%;
        min-height:auto;
        margin:0;
        padding:130px 22px 75px;
        grid-template-columns:minmax(0,1fr);
        gap:42px;
        overflow:hidden;
    }

    .article-hero-content{
        width:100%;
        max-width:none;
    }

    .article-category{
        margin-bottom:19px;
        font-size:10px;
        letter-spacing:1.6px;
    }

    .article-hero h1{
        max-width:100%;
        margin-bottom:24px;
        font-size:40px;
        line-height:1.09;
        letter-spacing:-1.6px;
    }

    .article-description{
        max-width:100%;
        font-size:17px;
        line-height:1.75;
    }

    .article-meta{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
        margin-top:28px;
    }

    .article-hero-image{
        width:100%;
        max-width:none;
        aspect-ratio:3 / 2;
        margin:0;
        border-radius:24px;
    }

    .article-intro{
        padding:82px 22px;
    }

    .article-intro-container{
        width:100%;
        max-width:100%;
        grid-template-columns:minmax(0,1fr);
        gap:18px;
    }

    .article-learnings,
    .article-index{
        padding:34px 25px;
        border-radius:23px;
    }

    .article-learnings li{
        grid-template-columns:29px minmax(0,1fr);
        gap:12px;
        font-size:15px;
    }

    .article-learnings li i{
        width:27px;
        height:27px;
    }

    .article-index a{
        grid-template-columns:35px minmax(0,1fr);
        gap:12px;
        font-size:14px;
    }

    .article-body{
        padding:85px 22px 95px;
    }

    .article-body-container{
        width:100%;
        max-width:100%;
    }

    .article-body h2{
        margin-top:64px;
        font-size:37px;
        line-height:1.16;
        letter-spacing:-1.2px;
    }

    .article-body h3{
        margin-top:40px;
        font-size:30px;
    }

    .article-body p{
        font-size:17px;
        line-height:1.82;
    }

    .article-body ul li,
    .article-body ol li{
        font-size:16px;
    }

    .article-callout{
        padding:28px 24px 28px 31px;
        border-radius:19px;
    }

    .article-step{
        grid-template-columns:44px minmax(0,1fr);
        gap:15px;
        padding:23px 21px;
    }

    .article-step-number{
        width:42px;
        height:42px;
    }

    .article-faq{
        padding:85px 22px;
    }

    .article-faq-header{
        margin-bottom:42px;
    }

    .article-faq-header h2{
        font-size:39px;
        letter-spacing:-1.3px;
    }

    .article-faq-item h3{
        font-size:28px;
    }

    .article-related{
        padding:82px 22px;
    }

    .article-related-card{
        padding:40px 27px;
        grid-template-columns:minmax(0,1fr);
        gap:30px;
        border-radius:24px;
    }

    .article-related h2{
        font-size:36px;
        letter-spacing:-1px;
    }

    .article-related-actions,
    .article-related-actions a{
        width:100%;
    }

    .article-more{
        padding:85px 22px 95px;
    }

    .article-more-header h2{
        font-size:38px;
        letter-spacing:-1.2px;
    }

    .article-more-grid{
        grid-template-columns:minmax(0,1fr);
        gap:17px;
    }

    .article-more-card{
        min-height:auto;
        padding:30px 26px;
    }

    .article-cta{
        padding:82px 22px;
    }

    .article-cta-content{
        padding:47px 27px;
        border-radius:25px;
    }

    .article-cta h2{
        max-width:100%;
        font-size:39px;
        letter-spacing:-1.3px;
    }

    .article-cta p{
        max-width:100%;
        font-size:17px;
    }

    .article-cta-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .article-cta-actions a{
        width:100%;
    }

}

/* ==================================================
   MÓVIL PEQUEÑO
================================================== */

@media(max-width:480px){

    .article-hero,
    .article-intro,
    .article-body,
    .article-faq,
    .article-related,
    .article-more,
    .article-cta{
        padding-left:18px;
        padding-right:18px;
    }

    .article-hero h1{
        font-size:37px;
        letter-spacing:-1.3px;
    }

    .article-learnings,
    .article-index{
        padding-left:21px;
        padding-right:21px;
    }

    .article-body h2{
        font-size:34px;
    }

    .article-related-card,
    .article-cta-content{
        padding-left:22px;
        padding-right:22px;
    }

}
