/**
 * Latin LA - Single Post.
 * Portada editorial, lectura y módulos posteriores del artículo.
 */

body.single-post {
    --lla-black: #151515;
    --lla-yellow: #FFD34E;
    --lla-cream: #f7f3e9;
    --lla-ink-soft: #6e695f;
    overflow-x: clip;
}

/* Acento editorial de la categoría mostrada en la portada. */
body.single-post:has(.penci-standard-cat .penci-cat-name[href*="chismecito-de-downstairs"]) { --lla-post-accent: var(--lla-black); }
body.single-post:has(.penci-standard-cat .penci-cat-name[href*="whats-happening"]) { --lla-post-accent: var(--lla-pink); }
body.single-post:has(.penci-standard-cat .penci-cat-name[href*="desde-la-esquina"]) { --lla-post-accent: var(--lla-orange); }
body.single-post:has(.penci-standard-cat .penci-cat-name[href*="rayito-de-sol"]) { --lla-post-accent: var(--lla-turquoise); }
body.single-post:has(.penci-standard-cat .penci-cat-name[href*="en-el-barrio"]) { --lla-post-accent: var(--lla-blue); }
body.single-post:has(.penci-standard-cat .penci-cat-name[href*="take-care-ish"]) { --lla-post-accent: var(--lla-mint); }
body.single-post:has(.penci-standard-cat .penci-cat-name[href*="musica-para-quedarse"]) { --lla-post-accent: var(--lla-pink); }
body.single-post:has(.penci-standard-cat .penci-cat-name[href*="deportes-varios-depelotas"]) { --lla-post-accent: var(--lla-blue); }

/* Portada del artículo. */
body.single-post .penci-single-pheader {
    width: 100vw !important;
    max-width: none !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
}

body.single-post .penci-single-pheader .post-image {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: clamp(3.25rem, 6vw, 5.5rem) !important;
    border-radius: 0;
    background: var(--lla-black);
    box-shadow: none;
}

body.single-post .penci-single-pheader .post-image:hover,
body.single-post .penci-single-pheader .post-image:focus-within {
    overflow: hidden !important;
}

body.single-post .penci-single-pheader .post-image::after {
    position: absolute;
    inset: 24% 0 0;
    width: auto !important;
    height: auto !important;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(21, 21, 21, 0),
        rgba(21, 21, 21, 0.18) 32%,
        rgba(21, 21, 21, 0.92) 100%
    ) !important;
    content: "";
    opacity: 1 !important;
    transition: none !important;
}

/* Soledad altera esta capa y libera el overflow durante el hover. */
body.single-post .penci-single-pheader .post-image:hover::after,
body.single-post .penci-single-pheader .post-image:focus-within::after {
    background: linear-gradient(
        to bottom,
        rgba(21, 21, 21, 0),
        rgba(21, 21, 21, 0.18) 32%,
        rgba(21, 21, 21, 0.92) 100%
    ) !important;
    opacity: 1 !important;
}

body.single-post .penci-single-pheader .penci-single-featured-img {
    padding-top: 56.25% !important;
    background-position: center !important;
    background-size: cover !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
}

@media (min-width: 768px) {
    body.single-post .penci-single-pheader .penci-single-featured-img {
        height: clamp(34rem, 50vw, 48rem) !important;
        padding-top: 0 !important;
    }
}

body.single-post .penci-single-pheader .post-image > a {
    display: block;
    background: transparent !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
}

body.single-post .penci-single-pheader .post-image > a:hover,
body.single-post .penci-single-pheader .post-image > a:focus {
    background: transparent !important;
    filter: none !important;
    opacity: 1 !important;
}

body.single-post .penci-single-pheader .post-image > a::before,
body.single-post .penci-single-pheader .post-image > a::after {
    display: none !important;
    content: none !important;
}

body.single-post .penci-single-pheader .post-image:hover .penci-single-featured-img,
body.single-post .penci-single-pheader .post-image > a:hover .penci-single-featured-img {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

body.single-post .standard-post-special_wrapper {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 3 !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* La ruta nativa dentro de la imagen se sustituye por la versión bajo la portada. */
body.single-post:has(.lla-post-breadcrumb) .standard-post-special_wrapper .single-breadcrumb {
    display: none !important;
}

body.single-post .lla-post-breadcrumb {
    box-sizing: border-box;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    padding: 0 0 1rem;
    border-bottom: 1px solid rgba(21, 21, 21, 0.16);
    color: #77716a;
    font-family: var(--lla-font-ui) !important;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.035em;
    text-align: left;
    text-transform: uppercase;
}

body.single-post .lla-post-breadcrumb::before {
    display: block;
    width: 2.5rem;
    height: 0.2rem;
    margin-bottom: 0.8rem;
    background: var(--lla-post-accent, var(--lla-yellow));
    content: "";
}

body.single-post .lla-post-breadcrumb > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

body.single-post .lla-post-breadcrumb > span > span:not(.breadcrumb_last) {
    flex: 0 0 auto;
}

body.single-post .lla-post-breadcrumb .breadcrumb_last {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--lla-black);
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.single-post .lla-post-breadcrumb a {
    color: #5e5a55 !important;
    text-decoration: none !important;
}

body.single-post .lla-post-breadcrumb a:hover,
body.single-post .lla-post-breadcrumb a:focus-visible {
    color: var(--lla-black) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--lla-yellow) !important;
    text-underline-offset: 0.2em;
}

body.single-post .single-header {
    box-sizing: border-box;
    width: min(100%, 68rem) !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: clamp(1.5rem, 4vw, 3.25rem) !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}

body.single-post .penci-standard-cat {
    margin: 0 0 0.9rem !important;
    overflow: visible;
}

body.single-post .penci-standard-cat .cat,
body.single-post .penci-standard-cat .penci-cat-name {
    display: inline-flex;
}

body.single-post .penci-standard-cat .penci-cat-name {
    align-items: center;
    min-height: 2rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 999px;
    background: var(--lla-category-accent, var(--lla-yellow)) !important;
    color: var(--lla-black) !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.055em !important;
    text-decoration: none !important;
    text-transform: uppercase;
}

body.single-post .penci-standard-cat .penci-cat-name[href*="chismecito-de-downstairs"] {
    border: 1px solid var(--lla-ivory) !important;
    color: var(--lla-ivory) !important;
}

body.single-post .penci-standard-cat .penci-cat-name:is(
    [href*="whats-happening"],
    [href*="desde-la-esquina"],
    [href*="musica-para-quedarse"]
) {
    border: 2px solid var(--lla-category-accent) !important;
    background: var(--lla-ivory) !important;
    color: var(--lla-black) !important;
}

body.single-post .single-post-title {
    max-width: 60rem;
    margin: 0 !important;
    color: #fff !important;
    font-family: var(--lla-font-news) !important;
    font-size: clamp(2.1rem, 3.4vw, 3.5rem) !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em !important;
    text-wrap: balance;
    text-shadow: 0 0.18rem 1rem rgba(0, 0, 0, 0.34);
    text-transform: uppercase;
}

/* Bajada editorial: contraste legible frente al titular Raven. */
body.single-post .single-header .penci-psub-title {
    max-width: 60rem;
    margin: 0.65rem 0 0 !important;
    color: #fff !important;
    font-family: var(--lla-font-subtitle) !important;
    font-size: clamp(1rem, 1.45vw, 1.25rem) !important;
    font-weight: 700 !important;
    line-height: 1.42 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-shadow: 0 0.12rem 0.6rem rgba(0, 0, 0, 0.45);
}

body.single-post .single-header .post-box-meta-single {
    max-width: 60rem;
    margin: 0.85rem 0 0 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.76rem !important;
    line-height: 1.3;
    letter-spacing: 0.065em;
    text-align: left !important;
    text-transform: uppercase;
}

body.single-post .single-header .post-box-meta-single time {
    color: inherit !important;
}

/* Columna de lectura. */
body.single-post .post-entry {
    box-sizing: border-box;
    width: min(calc(100% - 2.5rem), 52rem) !important;
    margin: 0 auto clamp(3rem, 6vw, 5rem) !important;
}

body.single-post #penci-post-entry-inner,
body.single-post #penci-post-entry-inner p,
body.single-post #penci-post-entry-inner li {
    color: #272522 !important;
    font-family: var(--lla-font-body) !important;
    font-size: 1.08rem !important;
    line-height: 1.82 !important;
}

body.single-post #penci-post-entry-inner p {
    margin: 0 0 1.55em !important;
}

body.single-post #penci-post-entry-inner p:first-of-type {
    color: var(--lla-black) !important;
    font-size: clamp(1.2rem, 2vw, 1.35rem) !important;
    font-weight: 600;
    line-height: 1.65 !important;
}

body.single-post #penci-post-entry-inner h2,
body.single-post #penci-post-entry-inner h3,
body.single-post #penci-post-entry-inner h4 {
    margin: 1.65em 0 0.65em;
    color: var(--lla-black) !important;
    font-family: var(--lla-font-subtitle) !important;
    font-weight: 700 !important;
    line-height: 1.25;
}

body.single-post #penci-post-entry-inner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

body.single-post #penci-post-entry-inner h3 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

body.single-post #penci-post-entry-inner a {
    color: var(--lla-black);
    text-decoration-color: var(--lla-yellow);
    text-decoration-line: underline;
    text-decoration-thickness: 0.16em;
    text-underline-offset: 0.18em;
}

body.single-post #penci-post-entry-inner blockquote {
    margin: 2.5rem 0;
    padding: 1.6rem 1.8rem 1.6rem 2rem;
    border: 0 !important;
    border-left: 0.45rem solid var(--lla-yellow) !important;
    border-radius: 0 0.8rem 0.8rem 0;
    background: var(--lla-cream);
}

body.single-post #penci-post-entry-inner img {
    border-radius: 0.9rem;
}

/* Compartir: un solo bloque al terminar la lectura. */
body.single-post .post-share {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: min(calc(100% - 2.5rem), 52rem) !important;
    margin: 0 auto clamp(3.5rem, 6vw, 5rem) !important;
    padding: 1rem 1.25rem !important;
    border: 0 !important;
    border: 1px solid var(--lla-black) !important;
    border-radius: 0.9rem;
    background: var(--lla-black) !important;
    box-shadow: 0.4rem 0.4rem 0 var(--lla-yellow);
}

body.single-post .post-share .post-share-plike {
    display: none !important;
}

body.single-post .post-share .penci-social-share-text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-right: 0.8rem;
    color: var(--lla-yellow);
    font-family: var(--lla-font-body);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.single-post .post-share .penci-social-share-text::after {
    content: "Comparte";
}

body.single-post .post-share a.post-share-item {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.55rem !important;
    min-width: 2.55rem;
    height: 2.55rem;
    margin: 0.2rem 0.25rem !important;
    padding: 0 !important;
    border: 1px solid var(--lla-yellow) !important;
    border-radius: 50% !important;
    background: var(--lla-yellow) !important;
    color: var(--lla-black) !important;
    line-height: 1 !important;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

body.single-post .post-share a.post-share-item .dt-share {
    display: none !important;
}

body.single-post .post-share a.post-share-item:hover,
body.single-post .post-share a.post-share-item:focus-visible {
    border-color: #fff !important;
    background: #fff !important;
    color: var(--lla-black) !important;
    transform: translateY(-2px);
}

/* Navegación anterior y siguiente. */
body.single-post .post-pagination {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    box-sizing: border-box;
    width: min(calc(100% - 2.5rem), 68rem) !important;
    margin: 0 auto clamp(4rem, 7vw, 6rem) !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
}

body.single-post .post-pagination .prev-post,
body.single-post .post-pagination .next-post {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
    float: none !important;
    width: auto !important;
    min-width: 0;
    min-height: 7rem;
    padding: 1rem !important;
    border: 1px solid #e5dfd2;
    border-radius: 0.9rem;
    background: #fff;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

body.single-post .post-pagination .prev-post:hover,
body.single-post .post-pagination .next-post:hover,
body.single-post .post-pagination .prev-post:focus-within,
body.single-post .post-pagination .next-post:focus-within {
    border-color: var(--lla-yellow);
    box-shadow: 0.35rem 0.35rem 0 var(--lla-yellow);
    transform: translate(-0.15rem, -0.15rem);
}

body.single-post .post-pagination .next-post {
    flex-direction: row-reverse;
    text-align: right;
}

body.single-post .post-pagination .penci-post-nav-thumb {
    flex: 0 0 4.75rem;
    float: none !important;
    width: 4.75rem !important;
    height: 4.75rem !important;
    margin: 0 !important;
    border-radius: 0.65rem;
    background-position: center;
    background-size: cover;
}

body.single-post .post-pagination .prev-post-inner,
body.single-post .post-pagination .next-post-inner {
    min-width: 0;
}

body.single-post .post-pagination .prev-post-title {
    margin-bottom: 0.35rem;
    color: var(--lla-ink-soft) !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.68rem !important;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

body.single-post .post-pagination h5 {
    margin: 0 !important;
    color: var(--lla-black) !important;
    font-family: var(--lla-font-news) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

/* Carrusel final de notas relacionadas. */
body.single-post .post-related {
    box-sizing: border-box;
    width: min(calc(100% - 2.5rem), 68rem) !important;
    margin: 0 auto clamp(4.5rem, 8vw, 7rem) !important;
    padding: clamp(2rem, 4vw, 3.5rem) !important;
    border: 0 !important;
    border-radius: 1.1rem;
    background: var(--lla-cream) !important;
}

body.single-post .post-related .post-title-box {
    margin-bottom: 2rem !important;
    text-align: left;
}

body.single-post .post-related .post-title-box::after {
    display: block !important;
    width: min(100%, 34rem);
    height: 0.32rem;
    margin-top: 0.8rem;
    border-radius: 999px;
    background: var(--lla-yellow);
    content: "" !important;
}

body.single-post .post-related .post-box-title {
    position: relative;
    display: inline-block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--lla-black) !important;
    font-family: var(--lla-font-raven-gothic-bold) !important;
    font-size: clamp(1.8rem, 3.5vw, 2.7rem) !important;
    font-weight: 400 !important;
    line-height: 1.05 !important;
    text-transform: uppercase;
}

body.single-post .post-related .post-box-title::before {
    display: none !important;
}

body.single-post .post-related .post-box-title::after {
    display: none !important;
    content: none !important;
}

body.single-post .post-related .related-thumb {
    overflow: hidden;
    border-radius: 0.75rem;
    background-position: center;
    background-size: cover;
}

body.single-post .post-related .related-content h3,
body.single-post .post-related .related-content h3 a {
    color: var(--lla-black) !important;
    font-family: var(--lla-font-news) !important;
    font-size: 1.08rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

body.single-post .post-related .related-content h3 a:hover,
body.single-post .post-related .related-content h3 a:focus-visible {
    color: #8a5d00 !important;
}

body.single-post .post-related .date,
body.single-post .post-related .date time {
    color: var(--lla-ink-soft) !important;
    font-family: var(--lla-font-body) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

body.single-post .post-related .swiper-pagination-bullet,
body.single-post .post-related .penci-owl-dot span {
    border-color: var(--lla-black) !important;
}

body.single-post .post-related .swiper-pagination-bullet-active,
body.single-post .post-related .penci-owl-dot.active span {
    background: var(--lla-yellow) !important;
}

@media (max-width: 767px) {
    body.single-post .penci-single-pheader {
        position: relative !important;
        left: 50% !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        transform: translateX(-50%);
    }

    body.single-post .penci-single-pheader .post-image {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-right: 0 !important;
        margin-bottom: 3rem !important;
        margin-left: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

    body.single-post .penci-single-pheader .penci-single-featured-img {
        padding-top: 105% !important;
    }

    body.single-post .penci-single-pheader .post-image::after {
        inset: 18% 0 0;
    }

    body.single-post .single-header {
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 1.25rem !important;
    }

    body.single-post .lla-post-breadcrumb {
        margin-bottom: 2rem;
        font-size: 0.62rem;
    }

    body.single-post .lla-post-breadcrumb > span {
        gap: 0.35rem;
    }

    body.single-post .penci-standard-cat {
        margin-bottom: 0.7rem !important;
    }

    body.single-post .penci-standard-cat .penci-cat-name {
        min-height: 1.75rem;
        padding: 0.38rem 0.68rem !important;
        font-size: 0.62rem !important;
    }

    body.single-post .single-post-title {
        width: 100%;
        max-width: 100%;
        font-size: clamp(1.55rem, 7vw, 1.9rem) !important;
        line-height: 1.16 !important;
        overflow-wrap: break-word;
        white-space: normal !important;
        text-wrap: wrap;
    }

    body.single-post .single-header .post-box-meta-single {
        margin-top: 0.7rem !important;
        font-size: 0.66rem !important;
    }

    body.single-post .single-header .penci-psub-title {
        margin-top: 0.5rem !important;
        font-size: clamp(0.88rem, 3.4vw, 1rem) !important;
        line-height: 1.35 !important;
    }

    body.single-post .post-entry {
        width: calc(100% - 2rem) !important;
        margin-bottom: 3.25rem !important;
    }

    body.single-post #penci-post-entry-inner,
    body.single-post #penci-post-entry-inner p,
    body.single-post #penci-post-entry-inner li {
        font-size: 1rem !important;
        line-height: 1.75 !important;
    }

    body.single-post #penci-post-entry-inner p:first-of-type {
        font-size: 1.14rem !important;
        line-height: 1.62 !important;
    }

    body.single-post .post-share {
        justify-content: center;
        width: calc(100% - 2rem) !important;
        margin-bottom: 3.5rem !important;
        padding: 0.85rem 1rem !important;
        border-radius: 1rem;
    }

    body.single-post .post-share .penci-social-share-text {
        width: 100%;
        justify-content: center;
        margin: 0 0 0.55rem;
    }

    body.single-post .post-pagination {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 3rem) !important;
        margin-bottom: 4rem !important;
    }

    body.single-post .post-pagination .prev-post,
    body.single-post .post-pagination .next-post {
        min-height: 6.4rem;
    }

    body.single-post .post-pagination .prev-post {
        justify-content: flex-start;
        text-align: left !important;
    }

    body.single-post .post-pagination .next-post {
        justify-content: flex-start;
        text-align: right !important;
    }

    body.single-post .post-pagination .prev-post-inner,
    body.single-post .post-pagination .next-post-inner {
        flex: 1 1 auto;
        width: auto;
    }

    body.single-post .post-pagination .prev-post .prev-post-title,
    body.single-post .post-pagination .prev-post h5 {
        text-align: left !important;
    }

    body.single-post .post-pagination .next-post .prev-post-title,
    body.single-post .post-pagination .next-post h5 {
        text-align: right !important;
    }

    body.single-post .post-related {
        width: calc(100% - 2rem) !important;
        margin-bottom: 4.5rem !important;
        padding: 1.6rem 1.25rem 2rem !important;
        border-radius: 0.85rem;
    }

    body.single-post .post-related .post-title-box {
        margin-bottom: 1.5rem !important;
    }

    body.single-post .post-related .post-title-box::after {
        width: min(100%, 22rem);
        margin-top: 0.65rem;
    }

    body.single-post .post-related .post-box-title {
        font-size: 1.8rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single-post .post-share a.post-share-item,
    body.single-post .post-pagination .prev-post,
    body.single-post .post-pagination .next-post {
        transition: none !important;
    }
}
