
.post {
    --post-max: 46rem;
    --post-tint: rgba(174, 123, 57, 0.07);
    --post-tint-strong: rgba(174, 123, 57, 0.14);
    --post-line: rgba(24, 34, 60, 0.1);
    color: var(--color-azul);
    background: var(--color-blanco);
}

/* ==============================
   BARRA DE PROGRESO DE LECTURA
============================== */
.post-progreso {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-dorado);
    z-index: 1100;
    transition: width 0.1s linear;
}

/* ==============================
   HERO
============================== */
.post-hero {
    position: relative;
    min-height: 34rem;
    display: flex;
    align-items: flex-end;
    background-color: var(--color-azul);
    background-image: var(--post-hero-img, none);
    background-size: cover;
    background-position: center;
    padding: 9rem 3rem 3.5rem;
}

.post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(24, 34, 60, 0.85);
    z-index: 1;
}

.post-hero-inner {
    max-width: 60rem;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}
.post-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-dorado);
    margin-bottom: 1.1rem;
}

.post-eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 2px;
    background: var(--color-dorado);
    display: inline-block;
}

.post-hero h1 {
    font-size: 2.75rem;
    line-height: 1.12;
    font-weight: 700;
    color: var(--color-blanco);
    max-width: 42rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01rem;
}

.post-hero-subtitulo {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    max-width: 34rem;
    margin-bottom: 1.8rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.post-meta-avatar {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--color-dorado);
    color: var(--color-blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.post-meta-texto {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.post-meta-texto strong {
    color: var(--color-blanco);
    font-weight: 600;
    display: block;
}

.post-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

/* ==============================
   LAYOUT DE DOS COLUMNAS
============================== */
.post-layout {
    max-width: 75rem;
    margin: 0 auto;
    padding: 4.5rem 3rem 6rem;
    display: grid;
    grid-template-columns: minmax(0, var(--post-max)) 17rem;
    gap: 5rem;
    align-items: start;
}

/* ==============================
   CUERPO DEL ARTÍCULO
============================== */
.post-cuerpo p {
    font-size: 1.13rem;
    font-weight: 300;
    line-height: 1.78;
    color: var(--color-azul);
    margin-bottom: 1.35rem;
}

.post-cuerpo section {
    margin-bottom: 3.4rem;
    scroll-margin-top: 6rem;
}

.post-cuerpo h2 {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-azul);
    margin: 0 0 1.4rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-dorado);
    border-radius: 0;
}

.post-cuerpo h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-azul);
    margin-bottom: 0.8rem;
}

.post-cuerpo strong {
    font-weight: 600;
    color: var(--color-azul);
}

.post-cuerpo ul {
    margin: 0 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.post-cuerpo ul li {
    position: relative;
    font-size: 1.08rem;
    font-weight: 300;
    line-height: 1.62;
    color: var(--color-azul);
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
}

.post-cuerpo ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-dorado);
}

.post-cuerpo sup {
    font-size: 0.68em;
    color: var(--color-dorado);
    font-weight: 700;
    margin-left: 1px;
}

.post-intro {
    font-size: 1.28rem !important;
    font-weight: 300;
    line-height: 1.6 !important;
    color: var(--color-azul);
    margin-bottom: 3rem !important;
}

/* Introducción a un lado */
.post-toc-inline {
    background: var(--post-tint);
    border: 1px solid var(--post-tint-strong);
    border-radius: 0.9rem;
    padding: 1.6rem 1.8rem;
    margin-bottom: 3.4rem;
}

.post-toc-inline p {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-dorado);
    margin-bottom: 0.9rem !important;
}

.post-toc-inline ul {
    columns: 2;
    column-gap: 2rem;
    margin: 0;
}

.post-toc-inline ul li {
    font-size: 0.95rem !important;
    margin-bottom: 0.55rem !important;
    break-inside: avoid;
}

.post-toc-inline a {
    color: var(--color-azul);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.post-toc-inline a:hover {
    color: var(--color-dorado);
    border-bottom-color: var(--color-dorado);
}

/* ==============================
   FAQ ACORDEÓN
============================== */
.post-faq details {
    border-bottom: 1px solid var(--post-line);
    padding: 1.1rem 0;
}

.post-faq details:first-of-type {
    border-top: 1px solid var(--post-line);
}

.post-faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--color-azul);
}

.post-faq summary::-webkit-details-marker {
    display: none;
}

.post-faq summary::after {
    content: "+";
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    border: 1px solid var(--color-dorado);
    color: var(--color-dorado);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 400;
    transition: transform 0.25s ease;
}

.post-faq details[open] summary::after {
    transform: rotate(45deg);
}

.post-faq details p {
    margin-top: 0.9rem !important;
    font-size: 1.02rem !important;
    color: var(--color-gris);
}

/* ==============================
   FUENTES (colapsable, discreto)
============================== */
.post-fuentes {
    margin-top: 3rem;
}

.post-fuentes summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gris);
    list-style: none;
}

.post-fuentes summary::-webkit-details-marker {
    display: none;
}

.post-fuentes summary::before {
    content: "▸ ";
    color: var(--color-dorado);
}

.post-fuentes[open] summary::before {
    content: "▾ ";
}

.post-fuentes ol {
    margin-top: 1rem;
    padding-left: 1.3rem;
    font-size: 0.82rem;
    color: rgba(24, 34, 60, 0.55);
    line-height: 1.7;
}

/* ==============================
   BIO DEL AUTOR
============================== */
.post-autor {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: var(--color-gris-claro);
    border-radius: 0.9rem;
    padding: 1.6rem 1.8rem;
    margin-top: 3.5rem;
}

.post-autor-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-azul);
    color: var(--color-blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.post-autor p {
    font-size: 0.92rem !important;
    color: var(--color-gris) !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

.post-autor strong {
    display: block;
    font-size: 1rem;
    color: var(--color-azul);
    margin-bottom: 0.25rem;
}

/* ==============================
   SIDEBAR
============================== */
.post-sidebar {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-sidebar-titulo {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gris);
    margin-bottom: 0.9rem;
}

/* TOC lateral con scrollspy */
.post-toc {
    border-left: 2px solid var(--post-line);
}

.post-toc ul {
    list-style: none;
}

.post-toc a {
    display: block;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--color-gris);
    text-decoration: none;
    padding: 0.42rem 0 0.42rem 1rem;
    margin-left: -2px;
    border-left: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.post-toc a:hover {
    color: var(--color-azul);
}

.post-toc a.activo {
    color: var(--color-dorado);
    border-left-color: var(--color-dorado);
    font-weight: 600;
}

/* Ficha rápida (elemento distintivo) */
.post-ficha {
    background: var(--color-azul);
    border-radius: 0.9rem;
    padding: 1.5rem 1.5rem 0.6rem;
}

.post-ficha .post-sidebar-titulo {
    color: var(--color-cielo);
}

.post-ficha-dato {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.9rem 0;
}

.post-ficha-dato span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.post-ficha-dato strong {
    font-size: 1.05rem;
    color: var(--color-blanco);
    font-weight: 700;
    text-align: right;
}

/* CTA sidebar */
.post-cta-sidebar {
    background: var(--post-tint);
    border: 1px solid var(--post-tint-strong);
    border-radius: 0.9rem;
    padding: 1.5rem;
    text-align: center;
}

.post-cta-sidebar p {
    font-size: 0.92rem;
    color: var(--color-azul);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-cta-sidebar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--color-dorado);
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
    border-radius: 0.4rem;
    transition: background 0.2s, transform 0.2s;
}

.post-cta-sidebar a:hover {
    background: var(--color-azul);
    transform: translateY(-1px);
}

/* ==============================
   BANNER CTA FINAL
============================== */
.post-cta-final {
    background: var(--color-dorado);
    padding: 3.5rem 3rem;
    text-align: center;
}

.post-cta-final-inner {
    max-width: 34rem;
    margin: 0 auto;
}

.post-cta-final h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-blanco);
    margin-bottom: 0.7rem;
}

.post-cta-final p {
    font-size: 1.02rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.6rem;
}

.post-cta-final a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-blanco);
    color: var(--color-dorado);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.95rem 1.8rem;
    border-radius: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-cta-final a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.18);
}

/* ==============================
   ANIMACIÓN AL HACER SCROLL
============================== */
.post-cuerpo section {
    opacity: 0;
    transform: translateY(0.9rem);
}

.post-cuerpo section.post-visible {
    animation: post-aparece 0.6s ease forwards;
}

@keyframes post-aparece {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-cuerpo section {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        padding: 3.5rem 2rem 4rem;
        gap: 3rem;
    }

    .post-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .post-toc {
        display: none;
    }

    .post-ficha,
    .post-cta-sidebar {
        flex: 1 1 16rem;
    }

    .post-hero {
        padding: 7.5rem 2rem 2.8rem;
        min-height: 26rem;
    }

    .post-hero h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 640px) {
    .post-hero h1 {
        font-size: 1.7rem;
    }

    .post-hero-subtitulo {
        font-size: 0.95rem;
    }

    .post-toc-inline ul {
        columns: 1;
    }

    .post-sidebar {
        flex-direction: column;
    }

    .post-cta-final {
        padding: 2.8rem 1.5rem;
    }

    .post-cta-final h2 {
        font-size: 1.35rem;
    }
}
/* Mantener el navbar del blog al tamaño de desktop también en móvil */
@media (max-width: 750px) {
    .navbar-centrada {
        padding: 2rem 4.1rem;
        gap: 3rem;
    }

    .navbar-centrada .logo-centrada img {
        height: 3.65rem;
    }
}