/* =========================================================
   SATINFLAGS BLOG
   Sistema editorial general
   ========================================================= */

:root {
    --blog-bg: #ffffff;
    --blog-surface: #f7f7f5;
    --blog-surface-soft: #fafaf9;

    --blog-text: #343434;
    --blog-text-soft: #646464;
    --blog-heading: #171717;

    --blog-accent: #9d2029;
    --blog-accent-dark: #781820;
    --blog-accent-soft: #f7eeee;

    --blog-border: #e6e4df;
    --blog-border-dark: #d3d0c9;

    --blog-max: 850px;
    --blog-wide: 1060px;

    --blog-radius: 10px;

    --blog-shadow:
        0 8px 30px rgba(0, 0, 0, 0.055);
}


/* =========================================================
   ARTÍCULO
   ========================================================= */

.blog-article {
    width: min(calc(100% - 40px), var(--blog-max));
    margin: 0 auto;
    padding: 72px 0 100px;

    background: var(--blog-bg);

    color: var(--blog-text);

    font-family: inherit;
    font-size: 17px;
    line-height: 1.78;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================================================
   CABECERA
   ========================================================= */

.blog-header {
    max-width: 790px;
    margin: 0 auto 54px;
    text-align: center;
}

.blog-kicker {
    margin: 0 0 18px;

    color: var(--blog-accent);

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;

    letter-spacing: .13em;
}

.blog-article h1 {
    margin: 0 0 26px;

    color: var(--blog-heading);

    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.1;
    font-weight: 650;

    letter-spacing: -.035em;
}

.blog-intro {
    max-width: 750px;
    margin: 0 auto 16px;

    color: #404040;

    font-size: 20px;
    line-height: 1.65;
}

.blog-header > p:not(.blog-kicker):not(.blog-intro) {
    max-width: 710px;
    margin: 0 auto;

    color: var(--blog-text-soft);
}


/* =========================================================
   TEXTO
   ========================================================= */

.blog-article p {
    margin: 0 0 21px;
}

.blog-article strong {
    color: var(--blog-heading);
    font-weight: 650;
}


/* =========================================================
   TÍTULOS
   ========================================================= */

.blog-article h2 {
    margin: 72px 0 24px;

    color: var(--blog-heading);

    font-size: 30px;
    line-height: 1.25;
    font-weight: 650;

    letter-spacing: -.018em;
}

.blog-article section > h2::before,
.blog-article footer > h2::before {
    content: "";

    display: block;

    width: 34px;
    height: 3px;

    margin-bottom: 17px;

    background: var(--blog-accent);

    border-radius: 2px;
}

.blog-article h3 {
    margin: 0 0 10px;

    color: var(--blog-heading);

    font-size: 21px;
    line-height: 1.38;
    font-weight: 650;
}


/* =========================================================
   ENLACES
   ========================================================= */

.blog-article a {
    color: var(--blog-accent-dark);

    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-article a:hover {
    color: var(--blog-accent);
}

.blog-article a:focus-visible {
    outline: 3px solid rgba(157, 32, 41, .3);
    outline-offset: 4px;

    border-radius: 3px;
}


/* =========================================================
   IMAGEN PRINCIPAL
   ========================================================= */

.blog-hero {
    width: min(100vw - 40px, var(--blog-wide));

    margin:
        0
        calc((min(var(--blog-wide), 100vw - 40px) - 100%) / -2)
        58px;
}

.blog-hero img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: var(--blog-radius);

    box-shadow: var(--blog-shadow);
}

.blog-hero figcaption {
    margin-top: 13px;

    color: var(--blog-text-soft);

    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}


/* =========================================================
   BLOQUE RESUMEN
   ========================================================= */

.blog-highlight {
    margin: 44px 0 55px;
    padding: 28px 31px;

    background:
        linear-gradient(
            135deg,
            #faf8f7 0%,
            var(--blog-accent-soft) 100%
        );

    border: 1px solid #ebdfe0;
    border-left: 4px solid var(--blog-accent);
    border-radius: 8px;
}

.blog-highlight__title {
    margin: 0 0 7px !important;

    color: var(--blog-accent-dark);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.blog-highlight p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   DATOS
   ========================================================= */

.blog-fact {
    margin: 32px 0;
    padding: 24px 27px;

    background: var(--blog-surface);

    border-radius: var(--blog-radius);
}

.blog-fact__label {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--blog-accent);

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.blog-fact p {
    margin: 0;
}


/* =========================================================
   CRONOLOGÍA
   ========================================================= */

.history-timeline {
    position: relative;

    margin: 42px 0 60px;
}

.history-timeline::before {
    content: "";

    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 59px;

    width: 1px;

    background: var(--blog-border-dark);
}

.history-event {
    position: relative;

    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;

    padding: 0 0 45px;
}

.history-event:last-child {
    padding-bottom: 0;
}

.history-year {
    position: relative;
    z-index: 1;

    width: 78px;

    padding: 9px 8px;

    background: #fff;

    border: 1px solid var(--blog-border-dark);
    border-radius: 999px;

    color: var(--blog-heading);

    font-size: 15px;
    font-weight: 700;

    text-align: center;
}

.history-content {
    padding-top: 4px;
}

.history-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   NOTA HISTORIOGRÁFICA
   ========================================================= */

.blog-note {
    margin: 36px 0;
    padding: 27px 30px;

    background: #fafafa;

    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
}

.blog-note__title {
    margin-bottom: 8px !important;

    color: var(--blog-heading);

    font-weight: 700;
}

.blog-note p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   COMPARACIÓN
   ========================================================= */

.blog-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;

    margin: 35px 0 50px;
}

.blog-comparison__item {
    padding: 28px;

    background: var(--blog-surface-soft);

    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
}

.blog-comparison__eyebrow {
    display: block;

    margin-bottom: 9px;

    color: var(--blog-accent);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .11em;
}

.blog-comparison__item p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CURIOSIDAD
   ========================================================= */

.blog-curiosity {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 19px;

    margin: 52px 0;
    padding: 27px 30px;

    background: #181818;

    color: #f5f5f5;

    border-radius: var(--blog-radius);
}

.blog-curiosity__icon {
    color: #fff;
    font-size: 25px;
    line-height: 1;
}

.blog-curiosity__title {
    margin-bottom: 7px !important;

    color: #fff;

    font-weight: 700;
}

.blog-curiosity p {
    color: #e3e3e3;
}

.blog-curiosity p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   PRODUCTO
   ========================================================= */

.product-feature {
    margin: 70px 0 25px !important;
    padding: 43px 44px;

    background:
        linear-gradient(
            145deg,
            #f8f8f6,
            #f1efeb
        );

    border: 1px solid var(--blog-border);
    border-radius: 12px;
}

.product-feature h2 {
    margin-top: 0;
}

.product-feature h2::before {
    display: none !important;
}

.product-feature__eyebrow {
    margin-bottom: 10px !important;

    color: var(--blog-accent);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .11em;
}

.product-feature__details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px 30px;

    margin: 26px 0 31px;
    padding: 0;

    list-style: none;
}

.product-feature__details li {
    position: relative;

    padding-left: 18px;
}

.product-feature__details li::before {
    content: "✓";

    position: absolute;
    left: 0;

    color: var(--blog-accent);

    font-weight: 700;
}


/* =========================================================
   BOTÓN
   ========================================================= */

.blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 24px;

    background: var(--blog-accent);
    color: #fff !important;

    border-radius: 6px;

    font-size: 15px;
    font-weight: 650;

    text-decoration: none !important;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.blog-button:hover {
    background: var(--blog-accent-dark);

    transform: translateY(-1px);
}

.blog-button:focus-visible {
    outline: 3px solid rgba(157, 32, 41, .35);
    outline-offset: 4px;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq {
    margin-top: 75px;
}

.faq-item {
    padding: 26px 0;

    border-bottom: 1px solid var(--blog-border);
}

.faq-item:first-of-type {
    border-top: 1px solid var(--blog-border);
}

.faq-item p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FUENTES
   ========================================================= */

.blog-sources {
    margin-top: 70px;
    padding: 30px 32px;

    background: var(--blog-surface);

    border-radius: var(--blog-radius);
}

.blog-sources h2 {
    margin-top: 0;

    font-size: 23px;
}

.blog-sources h2::before {
    display: none !important;
}

.blog-sources ul {
    margin-bottom: 0;
}


/* =========================================================
   LISTAS
   ========================================================= */

.blog-article ul,
.blog-article ol {
    margin: 23px 0 29px;
    padding-left: 27px;
}

.blog-article li {
    margin-bottom: 9px;
}

.blog-article li::marker {
    color: var(--blog-accent);
}


/* =========================================================
   FOOTER DEL ARTÍCULO
   ========================================================= */

.blog-article > footer {
    margin-top: 75px;
    padding: 38px 40px;

    background: #181818;

    border-radius: var(--blog-radius);

    text-align: center;
}

.blog-article > footer h2 {
    margin-top: 0;

    color: #fff;
}

.blog-article > footer h2::before {
    margin-left: auto;
    margin-right: auto;
}

.blog-article > footer p {
    max-width: 690px;

    margin-left: auto;
    margin-right: auto;

    color: #e0e0e0;
}

.blog-article > footer strong {
    color: #fff;
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

.blog-article ::selection {
    background: rgba(157, 32, 41, .18);
    color: #111;
}

@media (prefers-reduced-motion: reduce) {

    .blog-button,
    .blog-article a {
        transition: none;
    }

    .blog-button:hover {
        transform: none;
    }
}


/* =========================================================
   TABLET / MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .blog-article {
        width: min(calc(100% - 32px), var(--blog-max));

        padding-top: 45px;

        font-size: 16px;
        line-height: 1.72;
    }


    .blog-header {
        margin-bottom: 40px;
    }


    .blog-article h1 {
        font-size: clamp(30px, 9vw, 38px);
    }


    .blog-intro {
        font-size: 18px;
    }


    .blog-article h2 {
        margin-top: 55px;

        font-size: 25px;
    }


    .blog-article h3 {
        font-size: 19px;
    }


    .blog-hero {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }


    .history-timeline::before {
        left: 37px;
    }


    .history-event {
        grid-template-columns: 80px 1fr;
        gap: 17px;
    }


    .history-year {
        width: 72px;

        font-size: 14px;
    }


    .blog-comparison {
        grid-template-columns: 1fr;
    }


    .product-feature {
        padding: 31px 24px;
    }


    .product-feature__details {
        grid-template-columns: 1fr;
    }


    .blog-highlight,
    .blog-note,
    .blog-fact,
    .blog-sources {
        padding: 23px 21px;
    }


    .blog-curiosity {
        grid-template-columns: 1fr;

        padding: 24px 22px;
    }


    .blog-article > footer {
        padding: 31px 22px;
    }
}