/* =====================================================
   HeaderPost — cabecera de post individual
   ===================================================== */

/* ── Migas de pan ─────────────────────────────────── */
.hpt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hpt-breadcrumb__item {
    font-family: "Lexend Deca", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.hpt-breadcrumb__item:hover {
    opacity: 0.75;
    text-decoration: none;
}

.hpt-breadcrumb__sep {
    font-size: 14px;
    color: var(--neutro2);
    line-height: 1;
}

.hpt-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw);
    background: #fff;
    padding: 40px 0 0px;
    box-sizing: border-box;
}

.hpt-container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* ── Columna izquierda ─────────────────────────────── */
.hpt-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hpt-titulo {
    font-family: "Lexend Deca", sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 900;
    color: var(--color3);
    margin: 0;
}

p.hpt-categoria {
    font-family: "Lexend Deca", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    color: var(--color1);
    margin: 0;
}

/* ── Meta: avatar + autor + lectura ────────────────── */
.hpt-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hpt-meta-right {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.hpt-lectura {
    font-family: "Lexend Deca", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 300;
    color: var(--neutro2);
    border: 1.5px solid var(--color1);
    border-radius: 50px;
    padding: 10px 16px;
    white-space: nowrap;
}

.hpt-avatar-wrap {
    position: relative;
    width: 85px;
    height: 85px;
    flex-shrink: 0;
}

.hpt-avatar-circle {
    position: absolute;
    width: 73px;
    height: 73px;
}

.hpt-avatar-circle--green {
    top: 0;
    left: -2px;
    z-index: 1;
}

.hpt-avatar-circle--orange {
    top: -7px;
    right: 0;
    z-index: 0;
}

.hpt-avatar {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}

.hpt-autor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hpt-autor-nombre {
    font-family: "Lexend Deca", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    color: var(--color3);
}

.hpt-autor-rol {
    font-family: "Lexend Deca", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 200;
    color: var(--color3);
    line-height: 1.3;
}

/* ── Migas de pan (Rank Math) ─────────────────────── */
.hpt-tags.MigasDePan {
    margin-top: 4px;
    justify-content: flex-start;
}

.elContenido .hpt-section .hpt-breadcrumb-bar {
    width: 85%;
    margin: 2rem auto 0;
    justify-content: flex-start;
}

.elContenido .hpt-section .hpt-breadcrumb-bar .rank-math-breadcrumb p{
    margin-bottom: 0px;
}

/* ── Columna derecha (aprenderás) ──────────────────── */
.hpt-right {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hpt-right p.hpt-ap-titulo {
    font-family: "Lexend Deca", sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    color: var(--color1);
    margin: 0;
}

.hpt-right .hpt-ap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hpt-section .hpt-container .hpt-right .hpt-ap-list li.hpt-ap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--color1);
    border-radius: 20px;
    padding: 10px 14px;
    font-family: "Lexend Deca", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 300;
    background: #fff;
    color: var(--neutro2);
    margin-left: 0px;
}

.hpt-ap-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    width: 44px;
    height: 44px;
}

.hpt-ap-check svg {
    width: 44px;
    height: 44px;
}

.hpt-ap-text {
    flex: 1;
}

.hpt-breadcrumb-bar.MigasDePan nav.rank-math-breadcrumb p{
    margin-bottom: 0px;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1023px) {
    .hpt-container {
        gap: 32px;
    }
    .hpt-right {
        flex: 0 0 42%;
    }
}

@media (max-width: 767px) {
    .hpt-section {
        display: flex;
        flex-direction: column;
    }
    .hpt-breadcrumb-bar.MigasDePan {
        order: -1;
        margin-top: 0;
        width: 90%;
        margin-bottom: 1rem;
    }
    .hpt-container {
        flex-direction: column;
        width: 90%;
        gap: 5px;
    }
    /* Disolver hpt-left para poder reordenar sus hijos junto con hpt-right */
    .hpt-left {
        display: contents;
    }
    .hpt-titulo    { order: 1; }
    p.hpt-categoria { order: 2; }
    .hpt-right     { order: 3; flex: unset; width: 100%; }
    .hpt-meta {
        order: 4;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 16px;
        align-items: center;
        width: fit-content;
        margin-top: 2rem;
        row-gap: 0px;
    }
    .hpt-avatar-wrap {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }
    .hpt-meta-right {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        align-items: flex-start;
        flex: 1;
        min-width: 0;
    }
    .hpt-lectura {
        grid-column: 2;
        grid-row: 2;
        font-size: 16px;
        font-weight: 300;
        margin-top: 6px;
    }

    .hpt-titulo {
        font-size: 24px;
        font-weight: 900;
    }
    p.hpt-categoria {
        font-size: 24px;
        font-weight: 600;
    }
    .hpt-right p.hpt-ap-titulo {
        font-size: 18px;
        font-weight: 600;
        margin-top: 2rem;
    }
    .hpt-section .hpt-container .hpt-right .hpt-ap-list li.hpt-ap-item {
        font-size: 14px;
        font-weight: 300;
    }
    .hpt-ap-check svg, .hpt-ap-check {
        width: 24px;
        height: 24px;
    }
    .hpt-section{
        margin-bottom: 3rem;
    }
}

@media (max-width: 425px) {
    .hpt-container {
        width: 90%;
    }
}
