/* ========================================
   1. VARIABLES
======================================== */

:root {
    --black: #111111;
    --white: #f8f7f3;
    --pure-white: #ffffff;
    --beige: #ddd4c8;
    --soft-beige: #ece7df;
    --gray: #77736d;
    --line: rgba(17, 17, 17, 0.16);

    --serif: "Italiana", serif;
    --sans: "DM Sans", sans-serif;
    --title-letter-spacing: -0.01em;
}


/* ========================================
   2. ESTILOS GENERALES
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--black);
    background: var(--white);

    font-family: var(--sans);
    font-weight: 300;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

em {
    font-weight: 400;
}

main {
    overflow: hidden;
}

h1,
h2,
h3 {
    letter-spacing: var(--title-letter-spacing);
}

.blog-eyebrow {
    margin: 0;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* ========================================
   3. ENCABEZADO
======================================== */

.header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    width: 100%;
    height: 78px;
    padding: 0 3.3vw;

    border-bottom: 1px solid rgba(17, 17, 17, 0.12);

    background: rgba(248, 247, 243, 0.9);

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

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease;
}

.header.scrolled {
    background: rgba(248, 247, 243, 0.96);
    box-shadow: 0 8px 35px rgba(17, 17, 17, 0.04);
}

.header.hidden {
    transform: translateY(-100%);
}


/* ---------- LOGOTIPO ---------- */

.logo {
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: 0.06em;
}


/* ---------- NAVEGACIÓN ---------- */

.menu {
    display: flex;
    align-items: center;
    gap: 28px;

    font-size: 12px;
}

.menu a {
    position: relative;
    white-space: nowrap;
}

.menu a::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;

    height: 1px;

    background: var(--black);

    content: "";

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 0.35s ease;
}

.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* ---------- BOTÓN HABLEMOS ---------- */

.header__button {
    justify-self: end;

    padding: 11px 18px;

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

    font-size: 12px;

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

.header__button span {
    display: inline-block;
    margin-left: 15px;

    transition: transform 0.3s ease;
}

.header__button:hover {
    color: var(--white);
    background: var(--black);
}

.header__button:hover span {
    transform: translate(3px, -3px);
}


/* ---------- BOTÓN MENÚ ---------- */

.menu__button {
    display: none;

    padding: 0;
    border: 0;

    background: transparent;

    cursor: pointer;
}


/* ========================================
   4. PORTADA DEL BLOG
======================================== */

.blog-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 100vh;
    padding: calc(78px + 7vh) 3.3vw 5vh;

    color: var(--white);
    background: var(--black);
}

.blog-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.blog-hero__top > span {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.blog-hero__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.3fr);
    align-items: end;
    gap: 5vw;

    margin: 7vh 0;
}

.blog-hero__heading h1 {
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(70px, 10vw, 175px);
    font-weight: 400;
    line-height: 0.87;
    letter-spacing: var(--title-letter-spacing);
}

.blog-hero__heading h1 em {
    font-style: italic;
}

.blog-hero__heading > p {
    max-width: 360px;
    margin: 0 0 12px;

    font-size: 15px;
    line-height: 1.7;
}

.blog-hero__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);

    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-hero__footer a {
    display: inline-flex;
    align-items: center;
    gap: 25px;
}

.blog-hero__footer a span {
    transition: transform 0.3s ease;
}

.blog-hero__footer a:hover span {
    transform: translateY(5px);
}


/* ========================================
   5. ARTÍCULO DESTACADO
======================================== */

.featured-post {
    padding: 13vh 3.3vw;

    color: var(--white);
    background: var(--black);
}

.featured-post__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 7vh;
    padding-bottom: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-post__heading > span {
    font-size: 10px;
    letter-spacing: 0.15em;
}

.featured-post__article {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    align-items: stretch;
    gap: 5vw;
}


/* ---------- IMAGEN DESTACADA ---------- */

.featured-post__image {
    position: relative;

    display: block;
    min-height: 70vh;
    overflow: hidden;

    background: #252525;
}

.featured-post__image::after {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.15);

    content: "";

    transition: background 0.45s ease;
}

.featured-post__image img {
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-post__image:hover img {
    transform: scale(1.035);
}

.featured-post__image:hover::after {
    background: rgba(0, 0, 0, 0.35);
}

.featured-post__view {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;

    display: inline-flex;
    align-items: center;
    gap: 30px;

    padding: 16px 20px;

    color: var(--black);
    background: var(--pure-white);

    font-size: 11px;
    letter-spacing: 0.05em;

    opacity: 0;
    transform: translate(-50%, -35%);

    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.featured-post__image:hover .featured-post__view {
    opacity: 1;
    transform: translate(-50%, -50%);
}


/* ---------- CONTENIDO DESTACADO ---------- */

.featured-post__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 15px 0;
}

.featured-post__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-post__content h2 {
    margin: auto 0 35px;

    font-family: var(--serif);
    font-size: clamp(45px, 5vw, 84px);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: var(--title-letter-spacing);
}

.featured-post__content h2 em {
    display: inline;
    font-style: italic;
}

.featured-post__content > p {
    max-width: 470px;
    margin: 0 0 40px;

    color: rgba(248, 247, 243, 0.75);

    font-size: 14px;
    line-height: 1.75;
}


/* ========================================
   6. ENLACES EDITORIALES
======================================== */

.blog-text-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 30px;

    padding-bottom: 9px;

    border-bottom: 1px solid currentColor;

    font-size: 11px;
    letter-spacing: 0.05em;
}

.blog-text-link span {
    display: inline-block;

    transition: transform 0.3s ease;
}

.blog-text-link:hover span {
    transform: translate(4px, -4px);
}


/* ========================================
   7. ENCABEZADO DE ARTÍCULOS
======================================== */

.blog-posts {
    padding: 14vh 3.3vw;

    background: var(--white);
}

.blog-posts__heading {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    gap: 4vw;

    margin-bottom: 8vh;
}

.blog-posts__heading h2 {
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(60px, 8vw, 135px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: var(--title-letter-spacing);
}

.blog-posts__heading h2 em {
    font-style: italic;
}


/* ========================================
   8. FILTROS
======================================== */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 6vh;
    padding-bottom: 25px;

    border-bottom: 1px solid var(--line);
}

.blog-filter {
    padding: 10px 17px;

    border: 1px solid var(--line);
    border-radius: 100px;

    background: transparent;

    font-size: 11px;

    cursor: pointer;

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

.blog-filter:hover,
.blog-filter.active {
    color: var(--white);
    border-color: var(--black);
    background: var(--black);
}


/* ========================================
   9. CUADRÍCULA DE ARTÍCULOS
======================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7vh 2vw;
}

.blog-card {
    min-width: 0;

    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.blog-card.hidden {
    display: none;
}


/* ---------- IMAGEN DE TARJETA ---------- */

.blog-card__image {
    position: relative;

    display: block;
    height: 48vh;
    overflow: hidden;

    background: var(--soft-beige);
}

.blog-card__image::after {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0);

    content: "";

    transition: background 0.4s ease;
}

.blog-card__image img {
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.035);
}

.blog-card:hover .blog-card__image::after {
    background: rgba(0, 0, 0, 0.18);
}

.blog-card__category {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;

    padding: 8px 11px;

    color: var(--black);
    background: var(--pure-white);

    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* ---------- INFORMACIÓN DE TARJETA ---------- */

.blog-card__information {
    padding: 22px 0;

    border-bottom: 1px solid var(--line);
}

.blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 22px;

    color: var(--gray);

    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-card__information h3 {
    margin: 0 0 16px;

    font-family: var(--serif);
    font-size: clamp(27px, 2.3vw, 40px);
    font-weight: 400;
    line-height: 1.06;
}

.blog-card__information > p {
    margin: 0 0 24px;

    color: var(--gray);

    font-size: 13px;
    line-height: 1.65;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-card__link span {
    transition: transform 0.3s ease;
}

.blog-card__link:hover span {
    transform: translate(4px, -4px);
}


/* ========================================
   10. LLAMADO A LA ACCIÓN
======================================== */

.blog-contact {
    padding: 15vh 3.3vw 6vh;

    color: var(--white);
    background: var(--black);
}

.blog-contact .blog-eyebrow {
    margin-bottom: 6vh;
}

.blog-contact h2 {
    max-width: 1300px;
    margin: 0 0 7vh;

    font-family: var(--serif);
    font-size: clamp(70px, 10vw, 170px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: var(--title-letter-spacing);
}

.blog-contact h2 em {
    font-style: italic;
}

.blog-contact__button {
    display: inline-flex;
    align-items: center;
    gap: 60px;

    padding: 20px 24px;

    border: 1px solid rgba(255, 255, 255, 0.65);

    font-size: 12px;

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

.blog-contact__button:hover {
    color: var(--black);
    background: var(--white);
}

.blog-contact__footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    margin-top: 10vh;
    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.22);

    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-contact__footer span:nth-child(2) {
    text-align: center;
}

.blog-contact__footer span:last-child {
    text-align: right;
}


/* ========================================
   11. BOTÓN DE WHATSAPP
======================================== */

.whatsapp-float {
    position: fixed;
    z-index: 120;
    right: 25px;
    bottom: 25px;

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

    width: 54px;
    height: 54px;

    color: var(--white);
    border-radius: 50%;

    background: var(--black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

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

.whatsapp-float svg {
    width: 22px;
    height: 22px;
}

.whatsapp-float:hover {
    background: #25d366;
    transform: translateY(-4px);
}

.whatsapp-float::before {
    position: absolute;
    right: calc(100% + 12px);

    width: max-content;
    padding: 9px 12px;

    color: var(--white);
    border-radius: 2px;

    background: var(--black);

    content: "Chateemos juntos";

    font-size: 10px;
    letter-spacing: 0.04em;

    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* ========================================
   12. BOTÓN VOLVER ARRIBA
======================================== */

.back-to-top {
    position: fixed;
    z-index: 110;
    bottom: 25px;
    left: 25px;

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

    width: 48px;
    height: 48px;
    padding: 0;

    border: 1px solid var(--line);
    border-radius: 50%;

    background: rgba(248, 247, 243, 0.92);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        color 0.3s ease,
        background 0.3s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--white);
    background: var(--black);
}


/* ========================================
   13. ANIMACIONES DE APARICIÓN
======================================== */

.blog-reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   14. TABLET
======================================== */

@media (max-width: 1150px) {

    .menu {
        gap: 18px;
        font-size: 10px;
    }

    .featured-post__article {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .featured-post__image {
        min-height: 62vh;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ========================================
   15. MENÚ MÓVIL
======================================== */

@media (max-width: 900px) {

    .header {
        grid-template-columns: 1fr auto;

        height: 70px;
        padding: 0 6vw;
    }

    .logo {
        font-size: 17px;
    }

    .menu {
        position: fixed;
        top: 70px;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 24px;

        width: 100%;
        height: calc(100svh - 70px);
        padding: 40px 6vw;

        background: var(--white);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);

        transition:
            opacity 0.4s ease,
            visibility 0.4s ease,
            transform 0.4s ease;
    }

    .menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu a {
        white-space: normal;

        font-family: var(--serif);
        font-size: clamp(26px, 8vw, 42px);
        line-height: 1.08;
    }

    .header__button {
        display: none;
    }

    .menu__button {
        display: block;
    }


    /* ---------- PORTADA ---------- */

    .blog-hero {
        min-height: 100svh;
        padding:
            calc(70px + 7vh)
            6vw
            5vh;
    }

    .blog-hero__heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 40px;
    }

    .blog-hero__heading h1 {
        font-size: clamp(62px, 15vw, 115px);
        line-height: 0.91;
    }

    .blog-hero__heading > p {
        max-width: 430px;
    }


    /* ---------- DESTACADO ---------- */

    .featured-post {
        padding: 11vh 6vw;
    }

    .featured-post__article {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .featured-post__image {
        min-height: 58vh;
    }

    .featured-post__content h2 {
        margin: 45px 0 30px;
    }


    /* ---------- ARTÍCULOS ---------- */

    .blog-posts {
        padding: 11vh 6vw;
    }

    .blog-posts__heading {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6vh 3vw;
    }

    .blog-card__image {
        height: 43vh;
    }


    /* ---------- CONTACTO ---------- */

    .blog-contact {
        padding: 12vh 6vw 5vh;
    }

    .blog-contact__footer {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .blog-contact__footer span:nth-child(2),
    .blog-contact__footer span:last-child {
        text-align: left;
    }

}


/* ========================================
   16. MÓVIL
======================================== */

@media (max-width: 620px) {

    .blog-hero__top > span {
        display: none;
    }

    .blog-hero__heading h1 {
        font-size: clamp(54px, 17vw, 90px);
    }

    .blog-hero__footer {
        align-items: flex-start;
        flex-direction: column;
    }


    /* ---------- DESTACADO ---------- */

    .featured-post__heading {
        align-items: flex-start;
    }

    .featured-post__image {
        min-height: 56vh;
    }

    .featured-post__view {
        display: none;
    }

    .featured-post__content h2 {
        font-size: 43px;
    }


    /* ---------- FILTROS ---------- */

    .blog-filters {
        flex-wrap: nowrap;
        overflow-x: auto;

        padding-bottom: 18px;

        scrollbar-width: none;
    }

    .blog-filters::-webkit-scrollbar {
        display: none;
    }

    .blog-filter {
        flex: 0 0 auto;
    }


    /* ---------- TARJETAS ---------- */

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card__image {
        height: 54vh;
    }

    .blog-card__information h3 {
        font-size: 35px;
    }


    /* ---------- CONTACTO ---------- */

    .blog-contact h2 {
        font-size: clamp(58px, 17vw, 95px);
    }

    .blog-contact__button {
        justify-content: space-between;
        gap: 25px;

        width: 100%;
    }


    /* ---------- BOTONES FLOTANTES ---------- */

    .whatsapp-float {
        right: 18px;
        bottom: 18px;

        width: 50px;
        height: 50px;
    }

    .whatsapp-float::before {
        display: none;
    }

    .back-to-top {
        bottom: 18px;
        left: 18px;

        width: 44px;
        height: 44px;
    }

}


/* ========================================
   18. PÁGINA DE ARTÍCULO — GENERALES
======================================== */

.article-page main {
    overflow: visible;
}

.article {
    background: var(--white);
}

.article-eyebrow {
    margin: 0 0 25px;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.article-content section {
    scroll-margin-top: 110px;
}


/* ========================================
   19. ARTÍCULO — PORTADA
======================================== */

.article-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.68fr);
    align-items: center;
    gap: 6vw;

    min-height: 720px;
    padding: calc(78px + 6vh) 7vw 7vh;

    border-bottom: 1px solid var(--line);
}

.article-hero__content {
    min-width: 0;
}

.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-hero__meta a {
    position: relative;
    padding-bottom: 4px;
}

.article-hero__meta a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;
    background: currentColor;
    content: "";

    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.article-hero__meta a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.article-hero h1 {
    max-width: 900px;
    margin: 5vh 0 3vh;

    font-family: var(--serif);
    font-size: clamp(50px, 5.6vw, 88px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: var(--title-letter-spacing);
}

.article-hero h1 em {
    font-style: italic;
}

.article-hero__summary {
    max-width: 650px;
    margin: 0;

    color: var(--gray);

    font-size: 15px;
    line-height: 1.75;
}

.article-hero__information {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 25px;

    max-width: 680px;
    margin-top: 5vh;
    padding-top: 22px;

    border-top: 1px solid var(--line);
}

.article-hero__information div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-hero__information span {
    color: var(--gray);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-hero__information p,
.article-hero__information time {
    margin: 0;
    font-size: 12px;
}


/* ========================================
   20. ARTÍCULO — IMAGEN CUADRADA
======================================== */

.article-hero__image {
    margin: 0;
    width: 100%;
    max-width: 520px;
    justify-self: end;
}

.article-hero__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;

    background: var(--soft-beige);
    object-fit: cover;
}

.article-hero__image figcaption {
    padding-top: 12px;

    color: var(--gray);

    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* ========================================
   21. ARTÍCULO — ESTRUCTURA
======================================== */

.article-layout {
    display: grid;
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
    gap: 8vw;

    max-width: 1500px;
    margin: 0 auto;
    padding: 10vh 7vw 13vh;
}

.article-index {
    align-self: start;
    position: sticky;
    top: 115px;

    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.article-index__title {
    margin: 0 0 30px;

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.article-index nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.article-index a {
    color: var(--gray);
    font-size: 11px;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.article-index a:hover {
    color: var(--black);
}

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

.article-content__lead {
    margin-top: 0;

    font-family: var(--serif);
    font-size: clamp(31px, 3.1vw, 50px);
    line-height: 1.25;
}

.article-content > p,
.article-content section > p {
    max-width: 760px;
    margin: 0 0 28px;

    font-size: 16px;
    line-height: 1.85;
}

.article-content section {
    margin-top: 9vh;
}

.article-content .article-answer {
    margin-top: 0;
}

.article-content h2 {
    max-width: 850px;
    margin: 0 0 45px;

    font-family: var(--serif);
    font-size: clamp(38px, 4vw, 60px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: var(--title-letter-spacing);
}

.article-content h2 em {
    font-style: italic;
}

.article-content h3 {
    font-family: var(--serif);
    font-weight: 400;
}

.article-content ul {
    max-width: 720px;
    margin: 30px 0 40px;
    padding: 0;

    list-style: none;
}

.article-content li {
    position: relative;
    padding: 14px 0 14px 25px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.6;
}

.article-content li::before {
    position: absolute;
    top: 21px;
    left: 0;

    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--black);
    content: "";
}


/* ========================================
   22. ARTÍCULO — RESPUESTA DESTACADA
======================================== */

.article-highlight {
    margin: 5vh 0;
    padding: 35px 40px;

    color: var(--black);
    background: var(--beige);
}

.article-highlight > span {
    display: block;
    margin-bottom: 30px;

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.article-highlight p {
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(27px, 3vw, 43px);
    line-height: 1.4;
}


/* ========================================
   23. ARTÍCULO — TARJETAS DE PRECIOS
======================================== */

.price-list {
    border-top: 1px solid var(--line);
}

.price-card {
    padding: 7vh 0;
    border-bottom: 1px solid var(--line);
}

.price-card__heading {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 25px;

    margin-bottom: 35px;
}

.price-card__heading > span {
    font-size: 9px;
    letter-spacing: 0.1em;
}

.price-card__heading h3 {
    margin: 0;
    font-size: clamp(29px, 3vw, 44px);
    line-height: 1;
}

.price-card__heading strong {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.price-card > p,
.price-card > ul {
    margin-left: 65px;
}

.price-card > p {
    max-width: 690px;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.75;
}


/* ========================================
   24. ARTÍCULO — FACTORES
======================================== */

.article-factors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin-top: 7vh;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.article-factors article {
    min-height: 320px;
    padding: 32px;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.article-factors article:last-child {
    grid-column: 1 / -1;
    min-height: 260px;
}

.article-factors span {
    font-size: 9px;
    letter-spacing: 0.1em;
}

.article-factors h3 {
    margin: 55px 0 25px;
    font-size: 27px;
    line-height: 1.08;
}

.article-factors p {
    margin: 0;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.75;
}


/* ========================================
   25. ARTÍCULO — CITA
======================================== */

.article-content blockquote {
    margin: 8vh 0;
    padding: 45px 0 45px 7vw;

    border-top: 1px solid var(--black);
    border-bottom: 1px solid var(--black);

    font-family: var(--serif);
    font-size: clamp(31px, 3.2vw, 48px);
    line-height: 1.15;
}


/* ========================================
   26. ARTÍCULO — OLGA CREATIVE
======================================== */

.article-studio {
    padding: 9vh 4vw;

    color: var(--white);
    background: var(--black);
}

.article-studio h2,
.article-studio > p {
    color: inherit;
}

.article-studio > p {
    font-size: 14px !important;
}

.article-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 45px;
}

.article-services span {
    padding: 10px 15px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;

    font-size: 10px;
}


/* ========================================
   27. ARTÍCULO — COTIZACIÓN
======================================== */

.article-cta {
    margin-top: 0 !important;
    padding: 11vh 4vw;

    color: var(--black);
    background: var(--beige);
}

.article-cta h2 {
    margin-bottom: 35px;
}

.article-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 55px;

    margin-top: 20px;
    padding: 18px 22px;

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

    font-size: 11px;

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

.article-cta__button:hover {
    color: var(--white);
    background: var(--black);
}


/* ========================================
   28. ARTÍCULO — AUTORA
======================================== */

.article-author {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 45px;

    margin-top: 11vh;
    padding-top: 40px;

    border-top: 1px solid var(--line);
}

.article-author__image {
    height: 220px;
    overflow: hidden;
}

.article-author__content > span {
    font-size: 9px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.article-author__content h2 {
    margin: 15px 0 20px;
    font-size: 45px;
}

.article-author__content p {
    max-width: 580px;
    margin: 0 0 25px;

    color: var(--gray);
    font-size: 13px;
    line-height: 1.7;
}

.article-author__content a {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    padding-bottom: 6px;
    border-bottom: 1px solid currentColor;

    font-size: 10px;
}


/* ========================================
   29. ARTÍCULO — RELACIONADOS
======================================== */

.related-posts {
    padding: 13vh 3.3vw;
    background: var(--pure-white);
}

.related-posts__heading {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    gap: 4vw;

    margin-bottom: 7vh;
}

.related-posts__heading h2 {
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(45px, 5.3vw, 78px);
    font-weight: 400;
    line-height: 0.9;
}

.related-posts__heading h2 em {
    font-style: italic;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2vw;
}

.related-card__image {
    display: block;
    height: 55vh;
    overflow: hidden;
    background: var(--soft-beige);
}

.related-card__image img {
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.related-card:hover .related-card__image img {
    transform: scale(1.035);
}

.related-card__information {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.related-card__information > span {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.related-card__information h3 {
    max-width: 600px;
    margin: 20px 0 0;

    font-family: var(--serif);
    font-size: clamp(27px, 2.7vw, 42px);
    font-weight: 400;
    line-height: 1.05;
}


/* ========================================
   30. FOOTER SIMPLE DEL ARTÍCULO
======================================== */

.article-page .blog-footer {
    display: grid;
    grid-template-columns: 1fr 1fr auto 1fr;
    align-items: center;
    gap: 30px;

    padding: 40px 3.3vw;

    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-footer__brand {
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: 0.04em;
}

.article-page .blog-footer > p {
    margin: 0;
    text-align: center;
}

.blog-footer__links {
    display: flex;
    gap: 18px;
}

.article-page .blog-footer > span {
    text-align: right;
}


/* ========================================
   31. ARTÍCULO — TABLET
======================================== */

@media (max-width: 1000px) {

    .article-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
        gap: 5vw;

        min-height: auto;
        padding: calc(78px + 6vh) 6vw 7vh;
    }

    .article-hero h1 {
        margin: 4vh 0 3vh;
        font-size: clamp(48px, 6.8vw, 70px);
    }

    .article-hero__information {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .article-hero__image {
        max-width: 430px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 7vh;
        padding: 12vh 6vw;
    }

    .article-index {
        position: static;
    }

    .article-index nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 25px;
    }

    .article-content {
        max-width: none;
    }

    .article-author {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .article-page .blog-footer {
        grid-template-columns: 1fr 1fr;
    }

    .article-page .blog-footer > p,
    .article-page .blog-footer > span {
        text-align: left;
    }

}


/* ========================================
   32. ARTÍCULO — MÓVIL
======================================== */

@media (max-width: 620px) {

    .article-hero {
        grid-template-columns: 1fr;
        gap: 5vh;

        padding: calc(70px + 5vh) 6vw 7vh;
    }

    .article-hero h1 {
        margin: 4vh 0 3vh;
        font-size: clamp(42px, 12vw, 58px);
        line-height: 1;
    }

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

    .article-hero__image {
        width: min(100%, 380px);
        max-width: none;
        justify-self: start;
    }

    .article-hero__image figcaption {
        font-size: 8px;
    }

    .article-layout {
        padding: 10vh 6vw;
    }

    .article-index nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        scrollbar-width: none;
    }

    .article-index nav::-webkit-scrollbar {
        display: none;
    }

    .article-index a {
        flex: 0 0 auto;
    }

    .article-content__lead {
        font-size: 30px;
    }

    .article-content > p,
    .article-content section > p {
        font-size: 15px;
    }

    .article-content section {
        margin-top: 8vh;
    }

    .article-content h2 {
        margin-bottom: 35px;
        font-size: clamp(34px, 9.5vw, 48px);
    }

    .article-highlight {
        padding: 30px 24px;
    }

    .article-highlight p {
        font-size: 27px;
    }

    .price-card__heading {
        grid-template-columns: 30px 1fr;
        gap: 15px;
    }

    .price-card__heading strong {
        grid-column: 2;
    }

    .price-card > p,
    .price-card > ul {
        margin-left: 45px;
    }

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

    .article-factors article,
    .article-factors article:last-child {
        grid-column: auto;
        min-height: auto;
        padding: 28px;
    }

    .article-factors h3 {
        margin-top: 38px;
    }

    .article-content blockquote {
        padding-left: 0;
        font-size: 36px;
    }

    .article-studio,
    .article-cta {
        margin-right: -6vw;
        margin-left: -6vw;
        padding: 9vh 6vw;
    }

    .article-cta__button {
        justify-content: space-between;
        width: 100%;
        gap: 20px;
    }

    .article-author {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-author__image {
        width: 150px;
        height: 190px;
    }

    .related-posts {
        padding: 11vh 6vw;
    }

    .related-posts__heading,
    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .related-posts__heading {
        gap: 30px;
    }

    .related-posts__grid {
        gap: 7vh;
    }

    .related-card__image {
        height: 54vh;
    }

    .article-page .blog-footer {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 18px;
        padding: 40px 6vw;
    }

    .article-page .blog-footer > p,
    .article-page .blog-footer > span {
        text-align: left;
    }

    .blog-footer__links {
        flex-wrap: wrap;
    }

}


/* ========================================
   17. MOVIMIENTO REDUCIDO
======================================== */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}






/* ========================================
   FOOTER DEL BLOG
======================================== */

.blog-footer {
    padding: 10vh 3.3vw 30px;

    color: var(--black);
    background: var(--beige);
}

.blog-footer__top {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.7fr)
        minmax(130px, 0.65fr)
        minmax(130px, 0.65fr)
        minmax(230px, 1fr);
    gap: 5vw;

    padding-bottom: 10vh;
}


/* ---------- LOGOTIPO ---------- */

.blog-footer__logo {
    align-self: start;

    font-family: var(--serif);
    font-size: clamp(50px, 6vw, 105px);
    font-weight: 400;
    line-height: 0.77;
    letter-spacing: var(--title-letter-spacing);
}

.blog-footer__logo em {
    font-style: italic;
}


/* ---------- NAVEGACIÓN ---------- */

.blog-footer__navigation,
.blog-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;

    font-size: 12px;
}

.blog-footer__navigation > p,
.blog-footer__contact > p {
    margin: 0 0 18px;

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.blog-footer__navigation a,
.blog-footer__contact a {
    position: relative;

    padding-bottom: 3px;
}

.blog-footer__navigation a::after,
.blog-footer__contact a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;

    background: currentColor;

    content: "";

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 0.3s ease;
}

.blog-footer__navigation a:hover::after,
.blog-footer__contact a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.blog-footer__navigation a span {
    display: inline-block;
    margin-left: 8px;

    transition: transform 0.3s ease;
}

.blog-footer__navigation a:hover span {
    transform: translate(3px, -3px);
}

.blog-footer__contact > span {
    margin-top: 10px;

    color: rgba(17, 17, 17, 0.65);
}


/* ---------- PARTE INFERIOR ---------- */

.blog-footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;

    padding-top: 25px;

    border-top: 1px solid rgba(17, 17, 17, 0.25);

    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.blog-footer__bottom span:nth-child(2) {
    text-align: center;
}

.blog-footer__bottom a {
    justify-self: end;
}


/* ========================================
   FOOTER — TABLET
======================================== */

@media (max-width: 900px) {

    .blog-footer {
        padding: 9vh 6vw 25px;
    }

    .blog-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 7vh 8vw;
    }

    .blog-footer__logo {
        grid-column: 1 / -1;

        font-size: clamp(60px, 13vw, 100px);
    }

}


/* ========================================
   FOOTER — MÓVIL
======================================== */

@media (max-width: 620px) {

    .blog-footer__top {
        grid-template-columns: 1fr;
        gap: 6vh;
    }

    .blog-footer__logo {
        grid-column: auto;

        font-size: clamp(55px, 18vw, 90px);
    }

    .blog-footer__bottom {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .blog-footer__bottom span:nth-child(2) {
        text-align: left;
    }

    .blog-footer__bottom a {
        justify-self: start;

        margin-top: 8px;
    }

}
