/**
 * Páginas interiores rediseñadas (page-v2.php · template-parts/v2/*).
 * Se apoya en home.css (.hm: paleta, fuentes, .hm-wrap, .hm-btn, apariciones).
 *
 * Efectos propios, distintos de la portada y de las historias:
 *   portada About: iris que se abre + tracking que se cierra
 *   portada Take Action: foto dentro de las letras que luego se libera
 *   intro: cortina · visión: foto que pivota con el scroll
 *   inspiración: la sección «anochece» al entrar
 *   tiles About: bento en ola diagonal · tiles Take Action: paneles expansibles
 *   equipo: retratos que giran · opciones: tarjetas que convergen
 *   publicaciones: libros que se abren en 3D
 * Todo estado oculto vive bajo .hm-motion (lo pone home.js).
 */

/* ---------- Portada ---------- */

.pg-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: clamp(420px, 66vh, 680px);
    overflow: hidden;
    background: var(--night);
    color: #fff;
}

.pg-hero__media,
.pg-hero__shade {
    position: absolute;
    inset: 0;
}

.pg-hero__img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.pg-hero__shade {
    background: linear-gradient(0deg, rgb(15 39 41 / .9) 0%, rgb(15 39 41 / .35) 50%, rgb(15 39 41 / .15) 100%);
}

.pg-hero__body {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(48px, 7vw, 96px);
}

.hm .pg-hero__title {
    color: #fff;
    font-family: var(--f-display);
    font-size: clamp(54px, 10vw, 150px);
    font-weight: 800;
    font-stretch: 72%;
    font-synthesis: none;
    line-height: .88;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.hm .pg-hero__sub {
    margin-top: 18px;
    max-width: 40ch;
    font-size: clamp(20px, 2vw, 26px);
    font-style: italic;
}

/* Iris (About) */
.hm-motion .pg-hero--iris .pg-hero__media {
    clip-path: circle(0% at 50% 60%);
    transition: clip-path 1.6s cubic-bezier(.6, 0, .2, 1);
}

.hm-motion .pg-hero--iris .pg-hero__img {
    transform: scale(1.25);
    transition: transform 2.2s var(--ease);
}

.hm-motion .pg-hero--iris .pg-hero__title {
    opacity: 0;
    letter-spacing: .3em;
    transition: opacity 1.2s ease .5s, letter-spacing 1.6s var(--ease) .5s;
}

.hm-motion .pg-hero--iris.is-in .pg-hero__media {
    clip-path: circle(80% at 50% 60%);
}

.hm-motion .pg-hero--iris.is-in .pg-hero__img {
    transform: none;
}

.hm-motion .pg-hero--iris.is-in .pg-hero__title {
    opacity: 1;
    letter-spacing: -.01em;
}

/* Letras recortadas (Take Action) */
.pg-hero__knock {
    display: none;
}

.hm-motion .pg-hero__knock {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 0 var(--gutter);
    background: var(--paper);
    transition: opacity .9s ease, visibility 0s linear .9s;
}

.pg-hero__knock-text {
    display: block;
    font-family: var(--f-display);
    font-size: clamp(80px, 17vw, 300px);
    font-weight: 900;
    font-stretch: 70%;
    font-synthesis: none;
    line-height: .85;
    text-align: center;
    text-transform: uppercase;
    color: transparent;
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    transform: scale(.9);
    transition: transform 1.8s var(--ease);
}

.pg-hero--knock.is-in .pg-hero__knock-text {
    transform: scale(1);
}

.hm-motion .pg-hero--knock .pg-hero__body {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s var(--ease) .2s, transform .9s var(--ease) .2s;
}

.hm-motion .pg-hero--knock.is-free .pg-hero__knock {
    opacity: 0;
    visibility: hidden;
}

.hm-motion .pg-hero--knock.is-free .pg-hero__body {
    opacity: 1;
    transform: none;
}

/* ---------- About: intro (cortina) ---------- */

.pg-intro {
    padding-block: var(--pad);
    background: var(--paper);
}

.pg-intro__wrap {
    max-width: calc(1080px + var(--gutter) * 2);
    text-align: center;
}

.hm .pg-intro__title {
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(30px, 4.2vw, 58px);
    font-weight: 800;
    font-stretch: 85%;
    font-synthesis: none;
    line-height: 1.04;
    text-transform: uppercase;
    text-wrap: balance;
}

.hm-motion [data-pg-curtain] {
    clip-path: inset(0 0 100% 0);
    transform: translateY(-24px);
    transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1), transform 1.3s cubic-bezier(.7, 0, .2, 1);
}

.hm-motion [data-pg-curtain].is-in {
    clip-path: inset(0 0 0 0);
    transform: none;
}

.pg-intro__text {
    max-width: 720px;
    margin: 32px auto 0;
    color: var(--ink-soft);
    font-size: clamp(19px, 1.7vw, 23px);
}

/* ---------- About: visión (foto que pivota) ---------- */

.pg-vision {
    padding-block: var(--pad);
    background: var(--mint-soft);
    overflow: hidden;
}

.pg-vision__grid {
    display: grid;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

@media (min-width: 960px) {
    .pg-vision__grid {
        grid-template-columns: 5fr 6fr;
    }
}

.hm .pg-vision__title {
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(36px, 4.6vw, 64px);
    font-weight: 800;
    font-stretch: 80%;
    font-synthesis: none;
    line-height: .98;
    text-transform: uppercase;
    text-wrap: balance;
}

.pg-vision__quote {
    position: relative;
    margin: 30px 0 36px;
    padding-top: 46px;
    color: var(--ink);
    font-size: clamp(22px, 2.1vw, 29px);
    font-style: italic;
    line-height: 1.4;
}

.pg-vision__quote::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: -4px;
    font-family: var(--f-serif);
    font-size: 110px;
    font-style: normal;
    line-height: 1;
    color: var(--mint);
}

.pg-vision__media {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 70px -40px rgb(15 39 41 / .6);
    transform-origin: 0% 100%;
    will-change: transform;
}

.pg-vision__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ---------- About: inspiración (anochece al entrar) ---------- */

.pg-dusk {
    padding-block: var(--pad);
    background: var(--paper);
    color: var(--ink);
    text-align: center;
}

.pg-dusk__wrap {
    max-width: calc(900px + var(--gutter) * 2);
}

.hm .pg-dusk__title {
    color: inherit;
    font-family: var(--f-display);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 800;
    font-stretch: 78%;
    font-synthesis: none;
    line-height: .98;
    text-wrap: balance;
}

.pg-dusk__text {
    margin-top: 28px;
    font-size: clamp(20px, 1.9vw, 25px);
    line-height: 1.55;
    opacity: .85;
}

.pg-dusk__text a {
    color: var(--mint);
    text-decoration: underline;
    text-underline-offset: .18em;
}

/* ---------- Tiles ---------- */

.pg-tiles {
    padding-block: var(--pad);
    background: var(--night);
    color: #e9f1ee;
}

.pg-tiles__head {
    display: grid;
    gap: 24px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

@media (min-width: 960px) {
    .pg-tiles__head {
        grid-template-columns: 6fr 5fr;
        align-items: end;
        gap: 64px;
    }
}

.hm .pg-tiles__title {
    color: #fff;
    font-family: var(--f-display);
    font-size: clamp(38px, 5.4vw, 76px);
    font-weight: 800;
    font-stretch: 76%;
    font-synthesis: none;
    line-height: .95;
    text-transform: uppercase;
    text-wrap: balance;
}

.pg-tiles__intro {
    color: rgb(233 241 238 / .8);
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.55;
}

.pg-tile__hit {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 28px;
    border: 0;
    border-radius: 24px;
    background: rgb(255 255 255 / .05);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
    color: inherit;
    font: inherit;
    text-align: left;
    transition: background-color .35s, box-shadow .35s, transform .45s var(--ease);
}

button.pg-tile__hit {
    cursor: pointer;
}

button.pg-tile__hit:hover,
button.pg-tile__hit:focus-visible {
    background: rgb(82 202 164 / .12);
    box-shadow: inset 0 0 0 1px var(--mint);
    outline: none;
}

.pg-tile__num {
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: .1em;
    color: var(--mint);
}

.pg-tile__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 22px 0 18px;
    border-radius: 18px;
    background: #fff;
}

.pg-tile__svg {
    width: 42px;
    height: 38px;
}

.pg-tile__title {
    font-family: var(--f-display);
    font-size: clamp(21px, 1.8vw, 25px);
    font-weight: 700;
    font-synthesis: none;
    line-height: 1.12;
    color: #fff;
}

.pg-tile__intro {
    margin-top: 10px;
    color: rgb(233 241 238 / .72);
    font-size: 16px;
    line-height: 1.5;
}

.pg-tile__more {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3);
    transition: transform .4s var(--ease), background-color .3s, color .3s;
}

button.pg-tile__hit:hover .pg-tile__more {
    background: var(--mint);
    color: var(--night);
    transform: rotate(90deg);
}

/* Bento (About) con ola diagonal */
.pg-tiles--bento .pg-tiles__list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

@media (min-width: 1100px) {
    .pg-tiles--bento .pg-tiles__list {
        grid-template-columns: repeat(4, 1fr);
    }

    /* 7 sectores: la primera ocupa dos columnas → 2+1+1 / 1+1+1+1 */
    .pg-tiles--bento .pg-tile:first-child:nth-last-child(7) {
        grid-column: span 2;
    }
}

.hm-motion .pg-tiles--bento .pg-tile {
    opacity: 0;
    transform: translate(-30px, 40px) rotate(-2deg);
    transition: opacity .8s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--wave, 0) * 90ms);
}

.hm-motion .pg-tiles--bento .is-in .pg-tile {
    opacity: 1;
    transform: none;
}

/* Paneles expansibles (Take Action) */
.pg-tiles--panels .pg-tiles__list {
    display: grid;
    gap: 12px;
}

@media (min-width: 1000px) {
    .pg-tiles--panels .pg-tiles__list {
        display: flex;
        height: 460px;
    }

    .pg-tiles--panels .pg-tile {
        flex: 1 1 0;
        min-width: 0;
        transition: flex-grow .7s var(--ease);
    }

    .pg-tiles--panels .pg-tile.is-active {
        flex-grow: 3.4;
    }

    .pg-tiles--panels .pg-tile__hit {
        justify-content: flex-end;
        overflow: hidden;
    }

    .pg-tiles--panels .pg-tile__num {
        position: absolute;
        top: 26px;
        left: 26px;
    }

    .pg-tiles--panels .pg-tile__icon {
        margin-top: auto;
    }

    /* Plegado: título vertical; abierto: horizontal */
    .pg-tiles--panels .pg-tile:not(.is-active) .pg-tile__title {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        white-space: nowrap;
        max-height: 300px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 16px;
    }

    .pg-tiles--panels .pg-tile:not(.is-active) .pg-tile__icon {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }

    .pg-tiles--panels .pg-tile:not(.is-active) .pg-tile__svg {
        width: 34px;
        height: 30px;
    }

    .pg-tiles--panels .pg-tile:not(.is-active) .pg-tile__more {
        opacity: 0;
    }

    .pg-tiles--panels .pg-tile.is-active .pg-tile__hit {
        background: rgb(82 202 164 / .14);
        box-shadow: inset 0 0 0 1px var(--mint);
    }

    .pg-tiles--panels .pg-tile.is-active .pg-tile__title {
        font-size: clamp(26px, 2.4vw, 34px);
        max-width: 16ch;
    }
}

.hm-motion .pg-tiles--panels .pg-tile {
    opacity: 0;
    transform: scaleY(.6);
    transform-origin: 50% 100%;
    transition: opacity .7s var(--ease), transform .9s var(--ease), flex-grow .7s var(--ease);
    transition-delay: calc(var(--n, 0) * 70ms), calc(var(--n, 0) * 70ms), 0s;
}

.hm-motion .pg-tiles--panels .is-in .pg-tile {
    opacity: 1;
    transform: none;
}

.pg-tiles__cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ---------- Equipo (retratos que giran) ---------- */

.pg-people {
    padding-block: var(--pad);
    background: var(--paper);
}

.pg-people__head {
    max-width: 860px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}

.hm .pg-people__title {
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(32px, 4.2vw, 58px);
    font-weight: 800;
    font-stretch: 80%;
    font-synthesis: none;
    line-height: 1;
    text-transform: uppercase;
    text-wrap: balance;
}

.pg-people__text {
    margin-top: 22px;
    color: var(--ink-soft);
    font-size: clamp(18px, 1.6vw, 21px);
}

.pg-people__text a {
    color: #1f7a60;
}

.pg-people__list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    perspective: 1200px;
}

.pg-person__hit {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pg-person__photo {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: var(--paper-2);
}

.pg-person__photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    transform: scale(1.02);
    transition: filter .6s ease, transform .8s var(--ease);
}

.pg-person__hit:hover .pg-person__photo img,
.pg-person__hit:focus-visible .pg-person__photo img {
    filter: none;
    transform: scale(1.07);
}

.pg-person__hit:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 4px;
    border-radius: 24px;
}

.pg-person__name {
    margin-top: 16px;
    padding-right: 50px;
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 700;
    font-synthesis: none;
}

.pg-person__more {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--ink);
    transition: background-color .3s, color .3s, transform .4s var(--ease);
}

.pg-person__hit:hover .pg-person__more {
    background: var(--ink);
    color: #fff;
    transform: rotate(90deg);
}

.hm-motion .pg-person {
    opacity: 0;
    transform: rotateY(-70deg);
    transform-origin: 0 50%;
    transition: opacity .8s var(--ease), transform 1.1s var(--ease);
}

.hm-motion .pg-person.is-in {
    opacity: 1;
    transform: none;
}

.pg-people__cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* ---------- Take Action: dos formas de inscribirse ---------- */

.pg-join {
    padding-block: var(--pad);
    background: var(--paper);
    overflow: hidden;
}

.pg-join__head {
    max-width: 900px;
    margin-bottom: clamp(36px, 4vw, 56px);
}

.pg-join__kicker {
    margin-bottom: 14px;
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2f8f73;
}

.hm .pg-join__title {
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(34px, 4.6vw, 64px);
    font-weight: 800;
    font-stretch: 80%;
    font-synthesis: none;
    line-height: 1;
    text-wrap: balance;
}

.pg-join__options {
    display: grid;
    gap: 18px;
}

@media (min-width: 820px) {
    .pg-join__options {
        grid-template-columns: 1fr 1fr;
    }
}

.pg-option {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 22px;
    row-gap: 6px;
    align-items: center;
    width: 100%;
    padding: clamp(26px, 3vw, 40px);
    padding-right: 96px;
    border: 0;
    border-radius: 28px;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .4s, color .4s, box-shadow .4s, transform .5s var(--ease);
}

.pg-option:hover,
.pg-option:focus-visible {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 30px 60px -36px rgb(15 39 41 / .8);
    transform: translateY(-4px);
    outline: none;
}

.pg-option__icon {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--mint-soft);
    color: var(--ink);
    transition: background-color .4s, transform .6s var(--ease);
}

.pg-option:hover .pg-option__icon,
.pg-option:focus-visible .pg-option__icon {
    background: var(--mint);
    transform: rotate(-10deg) scale(1.06);
}

.pg-option__name {
    font-family: var(--f-display);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    font-synthesis: none;
    line-height: 1.1;
}

.pg-option__desc {
    font-size: 17px;
    line-height: 1.45;
    opacity: .75;
}

.pg-option__go {
    position: absolute;
    right: clamp(22px, 2.6vw, 34px);
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-top: -27px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    transition: background-color .4s, color .4s, transform .5s var(--ease);
}

.pg-option:hover .pg-option__go,
.pg-option:focus-visible .pg-option__go {
    background: var(--mint);
    color: var(--night);
    transform: translateX(6px);
}

.hm-motion .pg-join__options .pg-option {
    opacity: 0;
    transition: opacity .9s var(--ease), transform 1s var(--ease), background-color .4s, color .4s, box-shadow .4s;
}

.hm-motion .pg-join__options .pg-option:first-child { transform: translateX(-80px); }
.hm-motion .pg-join__options .pg-option:last-child { transform: translateX(80px); }

.hm-motion .pg-join__options.is-in .pg-option {
    opacity: 1;
    transform: none;
}

.hm-motion .pg-join__options.is-in .pg-option:hover {
    transform: translateY(-4px);
}

.pg-join__login {
    margin-top: 28px;
    color: var(--ink-soft);
    font-size: 18px;
}

.pg-join__login a {
    color: #1f7a60;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

/* ---------- Publicaciones (libros 3D) ---------- */

.pg-shelf {
    padding-block: var(--pad);
    background: var(--mint-soft);
}

.hm .pg-shelf__title {
    margin-bottom: clamp(36px, 4vw, 56px);
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(36px, 5vw, 70px);
    font-weight: 800;
    font-stretch: 78%;
    font-synthesis: none;
    line-height: .95;
    text-transform: uppercase;
}

.pg-shelf__list {
    display: grid;
    gap: clamp(24px, 3vw, 40px);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

.pg-book__hit {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    color: var(--ink) !important;
    text-decoration: none !important;
    perspective: 900px;
}

.pg-book__cover {
    position: relative;
    display: block;
    border-radius: 4px 14px 14px 4px;
    box-shadow: -8px 0 0 -2px rgb(15 39 41 / .25), 0 24px 40px -24px rgb(15 39 41 / .7);
    transform-origin: 0 50%;
    transition: transform .7s var(--ease), box-shadow .7s var(--ease);
    overflow: hidden;
    background: #fff;
}

/* Lomo */
.pg-book__cover::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 14px;
    background: linear-gradient(90deg, rgb(0 0 0 / .25), rgb(255 255 255 / .2) 50%, transparent);
}

.pg-book__cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.pg-book__hit:hover .pg-book__cover,
.pg-book__hit:focus-visible .pg-book__cover {
    transform: rotateY(-24deg) translateX(8px);
    box-shadow: -14px 0 0 -2px rgb(15 39 41 / .3), 26px 30px 40px -24px rgb(15 39 41 / .6);
}

.pg-book__title {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 700;
    font-synthesis: none;
    line-height: 1.25;
}

.pg-book__file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: .1em;
    color: #1f7a60;
}

.hm-motion .pg-book {
    opacity: 0;
    transform: translateY(50px) rotate(3deg);
    transition: opacity .8s var(--ease), transform 1s var(--ease);
    transition-delay: calc(var(--n, 0) * 110ms);
}

.hm-motion .pg-shelf__list.is-in .pg-book {
    opacity: 1;
    transform: none;
}

/* ---------- Diálogo de detalle (tiles y biografías) ---------- */

.pg-dialog {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: #f7f1e8;
    color: #17393b;
    box-shadow: 0 40px 100px -30px rgb(0 0 0 / .6);
    overflow: auto;
    font-family: "Newsreader", Georgia, serif;
    font-size: 19px;
    line-height: 1.6;
}

.pg-dialog::backdrop {
    background: rgb(15 39 41 / .6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.pg-dialog[open] {
    animation: pg-pop .45s cubic-bezier(.2, .7, .1, 1);
}

@keyframes pg-pop {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

.pg-dialog__close {
    position: sticky;
    top: 16px;
    float: right;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 16px 16px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #17393b;
    box-shadow: inset 0 0 0 1px rgb(23 57 59 / .16);
    cursor: pointer;
    transition: transform .35s cubic-bezier(.2, .7, .1, 1), background-color .25s, color .25s;
}

.pg-dialog__close:hover,
.pg-dialog__close:focus-visible {
    background: #17393b;
    color: #fff;
    transform: rotate(90deg);
}

.pg-detail {
    padding: clamp(28px, 4vw, 52px);
}

.pg-detail__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: #fff;
}

.pg-dialog .pg-detail__title {
    margin: 0 0 16px;
    color: #17393b;
    font-family: "Archivo", "Arial Narrow", sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    font-stretch: 82%;
    font-synthesis: none;
    line-height: 1.05;
}

.pg-detail__body p {
    margin: 0 0 .9em;
}

.pg-detail__body a {
    color: #1f7a60;
}

.pg-detail--person {
    display: grid;
    gap: 28px;
}

@media (min-width: 680px) {
    .pg-detail--person {
        grid-template-columns: 200px 1fr;
        align-items: start;
    }
}

.pg-detail__photo {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
}

/* Sin huecos entre secciones con fondo */
.pg > section,
.pg > header {
    margin: 0;
}

/* ======================================================================
   Biografías del equipo (About): ficha ancha sin scroll
   Retrato a altura completa a la izquierda · biografía en columnas de
   periódico con capitular. Solo para las biografías (:has persona).
   ====================================================================== */

.pg-dialog:has(.pg-detail--person) {
    width: min(1180px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border-radius: 32px;
}

.pg-dialog:has(.pg-detail--person) .pg-dialog__close {
    position: absolute;
    top: 18px;
    right: 18px;
    float: none;
    margin: 0;
}

.pg-dialog:has(.pg-detail--person) .pg-dialog__body {
    height: 100%;
}

.pg-detail--person {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    max-height: calc(100vh - 32px);
}

.pg-detail--person .pg-detail__photo {
    width: 100%;
    max-width: none;
    height: 260px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 0;
}

.pg-detail--person > div {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(28px, 3.4vw, 48px);
    padding-right: clamp(64px, 6vw, 88px);
}

.pg-dialog .pg-detail--person .pg-detail__title {
    margin: 0 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgb(23 57 59 / .16);
    font-size: clamp(32px, 3.4vw, 46px);
    text-transform: uppercase;
}

.pg-detail--person .pg-detail__body {
    min-height: 0;
    overflow: auto;
    font-size: 16.5px;
    line-height: 1.55;
    scrollbar-width: thin;
    scrollbar-color: rgb(23 57 59 / .28) transparent;
}

.pg-detail--person .pg-detail__body p {
    margin: 0 0 .8em;
    break-inside: avoid-column;
}

/* Capitular menta en el primer párrafo */
.pg-detail--person .pg-detail__body > p:first-child::first-letter,
.pg-detail--person .pg-detail__body > :first-child::first-letter {
    float: left;
    margin: 6px 10px 0 0;
    color: #2f8f73;
    font-family: "Archivo", "Arial Narrow", sans-serif;
    font-size: 64px;
    font-weight: 800;
    font-stretch: 80%;
    line-height: .8;
}

@media (min-width: 820px) {
    .pg-detail--person {
        grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
        height: min(760px, calc(100vh - 32px));
    }

    .pg-detail--person .pg-detail__photo {
        height: 100%;
        min-height: 0;
        background: #0f2729;
    }

    /* Columnas de periódico: el texto largo se reparte a lo ancho */
    .pg-detail--person .pg-detail__body {
        column-width: 300px;
        column-gap: 44px;
        column-rule: 1px solid rgb(23 57 59 / .1);
        column-fill: auto;
        height: 100%;
    }
}

/* Más ancha en pantallas grandes: tres columnas caben sin apretar */
@media (min-width: 1500px) {
    .pg-dialog:has(.pg-detail--person) {
        width: min(1320px, calc(100vw - 48px));
    }
}

.pg-dialog:has(.pg-detail--person)[open] {
    animation: pg-sheet .5s cubic-bezier(.2, .7, .1, 1);
}

@keyframes pg-sheet {
    from { opacity: 0; clip-path: inset(0 50% 0 50% round 32px); }
    to   { opacity: 1; clip-path: inset(0 0 0 0 round 32px); }
}

@media (prefers-reduced-motion: reduce) {
    .pg-dialog:has(.pg-detail--person)[open] {
        animation: none;
    }
}

/* Columnas balanceadas con alto natural; el respaldo de scroll vive en el
   contenedor (si el alto fuera fijo, el texto sobrante crearía columnas
   hacia la derecha). */
@media (min-width: 820px) {
    .pg-detail--person {
        height: auto;
        max-height: calc(100vh - 32px);
        align-items: stretch;
    }

    .pg-detail--person .pg-detail__photo {
        height: 100%;
        min-height: 440px;
    }

    .pg-detail--person > div {
        overflow: auto;
        scrollbar-width: thin;
        scrollbar-color: rgb(23 57 59 / .28) transparent;
    }

    .pg-detail--person .pg-detail__body {
        height: auto;
        overflow: visible;
        column-fill: balance;
    }
}

@media (min-width: 820px) {
    .pg-detail--person {
        grid-template-columns: minmax(220px, 27%) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .pg-detail--person > div {
        padding: 40px 72px 36px 40px;
    }

    .pg-detail--person .pg-detail__body {
        column-width: 210px;
        column-gap: 32px;
        font-size: 15.5px;
        line-height: 1.5;
    }

    .pg-dialog .pg-detail--person .pg-detail__title {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }
}

/* El texto no se encoge (si no, el sobrante se iría a columnas a la derecha) */
.pg-detail--person .pg-detail__body {
    flex: none;
}

@media (min-width: 820px) and (max-height: 820px) {
    .pg-detail--person .pg-detail__body {
        font-size: 14.5px;
        line-height: 1.45;
    }

    .pg-detail--person > div {
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .pg-dialog .pg-detail--person .pg-detail__title {
        font-size: 34px;
    }
}

/* Retrato que no existe: silueta en el tono del tema, no la imagen rota */
.pg-person__photo.is-missing,
.pg-detail__photo--empty {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, #e2f3ea, #efe5d6);
    color: rgb(23 57 59 / .28);
}

.pg-noimg {
    width: 46%;
    height: auto;
}

.pg-detail__photo--empty {
    background: linear-gradient(160deg, #173b3d, #0f2729);
    color: rgb(82 202 164 / .35);
}

@media (min-width: 820px) {
    .pg-detail__photo--empty {
        height: 100%;
        min-height: 440px;
        aspect-ratio: auto;
    }
}

/* ======================================================================
   Take Action · Objetivos: lista + ficha del elegido (25-nov)
   Reemplaza a los paneles expansibles (títulos verticales: no se entendían).
   Escritorio: lista numerada a la izquierda, ficha clara a la derecha.
   Móvil: la ficha se despliega bajo su objetivo (acordeón).
   ====================================================================== */

.pg-goals {
    display: grid;
    gap: 8px;
}

.pg-goal {
    display: grid;
    grid-template-columns: 30px 44px minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 10px 16px 10px 14px;
    border: 0;
    border-radius: 18px;
    background: rgb(255 255 255 / .04);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
    color: #e9f1ee;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .3s, box-shadow .3s, color .3s;
}

.pg-goal:hover {
    background: rgb(255 255 255 / .08);
}

.pg-goal:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 2px;
}

.pg-goal[aria-expanded="true"] {
    background: var(--mint);
    color: var(--night);
    box-shadow: none;
}

.pg-goal__num {
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--mint);
}

.pg-goal[aria-expanded="true"] .pg-goal__num {
    color: var(--night);
}

.pg-goal__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
}

.pg-goal__icon .pg-tile__svg {
    width: 28px;
    height: 26px;
}

.pg-goal__name {
    font-family: var(--f-display);
    font-size: 17px;
    font-weight: 700;
    font-synthesis: none;
    line-height: 1.2;
}

.pg-goal__go {
    display: grid;
    place-items: center;
    opacity: .5;
    transition: transform .35s var(--ease), opacity .3s;
}

.pg-goal[aria-expanded="true"] .pg-goal__go {
    opacity: 1;
}

/* Ficha del objetivo */
.pg-goal-panel {
    padding: clamp(24px, 3vw, 44px);
    border-radius: 26px;
    background: var(--paper);
    color: var(--ink);
    outline: none;
}

.pg-goal-panel[hidden] {
    display: none;
}

.pg-goal-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.pg-goal-panel__icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.pg-goal-panel__icon .pg-tile__svg {
    width: 54px;
    height: 50px;
}

.pg-goal-panel__count {
    font-family: var(--f-mono);
    font-size: 14px;
    letter-spacing: .1em;
    color: var(--ink-soft);
}

.pg-goal-panel__count b {
    color: var(--ink);
    font-size: 28px;
    font-weight: 500;
}

.hm .pg-goal-panel__title {
    margin: 0 0 16px;
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    font-stretch: 82%;
    font-synthesis: none;
    line-height: 1.02;
    text-wrap: balance;
}

.pg-goal-panel__body {
    color: var(--ink);
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.6;
}

.pg-goal-panel__body p {
    margin: 0 0 .8em;
}

.pg-goal-panel__body a {
    color: #1f7a60;
}

/* Barrido al cambiar de objetivo */
.pg-goal-panel.is-in {
    animation: pg-goal-wipe .55s cubic-bezier(.2, .7, .1, 1) both;
}

@keyframes pg-goal-wipe {
    from { clip-path: inset(0 100% 0 0 round 26px); opacity: .4; }
    to   { clip-path: inset(0 0 0 0 round 26px); opacity: 1; }
}

/* Aparición de la lista: escalonada */
.hm-motion .pg-goals .pg-goal {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .3s, box-shadow .3s, color .3s;
    transition-delay: calc(var(--n, 0) * 60ms), calc(var(--n, 0) * 60ms), 0s, 0s, 0s;
}

.hm-motion .pg-goals.is-in .pg-goal {
    opacity: 1;
    transform: none;
}

@media (min-width: 900px) {
    .pg-goals {
        grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
        column-gap: clamp(24px, 3vw, 48px);
        row-gap: 8px;
        align-items: start;
    }

    .pg-goal {
        grid-column: 1;
    }

    .pg-goal-panel {
        grid-column: 2;
        grid-row: 1 / span 7;
        position: sticky;
        top: 110px;
    }

    .pg-goal[aria-expanded="true"] .pg-goal__go {
        transform: translateX(4px);
    }
}

@media (max-width: 899px) {
    .pg-goal-panel {
        margin-bottom: 8px;
    }

    .pg-goal[aria-expanded="true"] .pg-goal__go {
        transform: rotate(90deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pg-goal-panel.is-in {
        animation-duration: .01s;
    }
}

/* ======================================================================
   Biografías: todas las fichas del MISMO tamaño (25-nov)
   Alto y ancho fijos; el retrato llena la izquierda; el texto elige 1, 2 o 3
   columnas (pages.js · fitBio) según lo que necesite para caber sin scroll.
   ====================================================================== */

@media (min-width: 820px) {
    .pg-dialog:has(.pg-detail--person) {
        width: min(1180px, calc(100vw - 48px));
        height: min(680px, calc(100vh - 48px));
        max-height: none;
    }

    .pg-dialog:has(.pg-detail--person) .pg-dialog__body {
        height: 100%;
    }

    .pg-detail--person {
        height: 100%;
        max-height: none;
        grid-template-columns: 34% minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .pg-detail--person .pg-detail__photo,
    .pg-detail--person .pg-detail__photo--empty {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: 50% 20%;
    }

    .pg-detail--person > div {
        height: 100%;
        min-height: 0;
        overflow: auto;
        padding: 44px 76px 40px 48px;
    }

    .pg-dialog .pg-detail--person .pg-detail__title {
        font-size: clamp(30px, 2.8vw, 40px);
    }

    /* Texto: una columna con línea cómoda; dos o tres si la biografía es larga */
    .pg-detail--person .pg-detail__body {
        max-width: 64ch;
        column-count: 1;
        column-gap: 40px;
        column-rule: 1px solid rgb(23 57 59 / .1);
        column-fill: balance;
        font-size: 16.5px;
        line-height: 1.62;
        text-wrap: pretty;
        hyphens: auto;
    }

    .pg-detail--person .pg-detail__body[data-cols="2"] {
        max-width: none;
        column-count: 2;
        font-size: 15.5px;
        line-height: 1.58;
    }

    .pg-detail--person .pg-detail__body[data-cols="3"] {
        max-width: none;
        column-count: 3;
        column-gap: 32px;
        font-size: 14.5px;
        line-height: 1.55;
    }

    .pg-detail--person .pg-detail__body p {
        margin: 0 0 .85em;
    }

    .pg-detail--person .pg-detail__body p:last-child {
        margin-bottom: 0;
    }
}

/* Los párrafos pueden partirse entre columnas (si no, quedan desequilibradas) */
.pg-detail--person .pg-detail__body p {
    break-inside: auto;
}

/* El número de columnas lo decide fitBio(): sin ancho mínimo heredado */
.pg-detail--person .pg-detail__body[data-cols] {
    column-width: auto;
}

/* Más sitio para el texto (biografías largas en 3 columnas) */
@media (min-width: 820px) {
    .pg-dialog:has(.pg-detail--person) {
        height: min(740px, calc(100vh - 40px));
    }

    .pg-detail--person {
        grid-template-columns: 30% minmax(0, 1fr);
    }

    .pg-detail--person > div {
        padding: 36px 68px 32px 40px;
    }

    .pg-dialog .pg-detail--person .pg-detail__title {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .pg-detail--person .pg-detail__body[data-cols="3"] {
        column-gap: 28px;
    }
}

/* ======================================================================
   Biografías centradas (25-nov): título, filete y texto forman un mismo
   bloque de ancho fijo, centrado en vertical y en horizontal. Así una
   biografía corta y una larga se ven igual de compuestas en la misma ficha.
   Mismo cuerpo de letra en 1 y 2 columnas.
   ====================================================================== */
@media (min-width: 820px) {
    .pg-detail--person > div {
        display: flex;
        flex-direction: column;
        justify-content: safe center;
        padding: 40px 72px 40px 56px;
    }

    .pg-dialog .pg-detail--person .pg-detail__title,
    .pg-detail--person .pg-detail__body {
        width: 100%;
        max-width: 640px;
        margin-inline: auto;
    }

    .pg-detail--person .pg-detail__body,
    .pg-detail--person .pg-detail__body[data-cols="2"] {
        font-size: 16px;
        line-height: 1.6;
    }

    .pg-detail--person .pg-detail__body[data-cols="2"],
    .pg-detail--person .pg-detail__body[data-cols="3"] {
        max-width: 640px;
    }

    .pg-detail--person .pg-detail__body[data-cols="3"] {
        font-size: 15px;
        line-height: 1.55;
    }
}

/* Biografías largas (2-3 columnas): el bloque usa todo el ancho disponible */
@media (min-width: 820px) {
    .pg-detail--person > div:has(.pg-detail__body[data-cols="2"]) .pg-detail__title,
    .pg-detail--person > div:has(.pg-detail__body[data-cols="3"]) .pg-detail__title,
    .pg-detail--person .pg-detail__body[data-cols="2"],
    .pg-detail--person .pg-detail__body[data-cols="3"] {
        max-width: none;
    }

    .pg-detail--person .pg-detail__body[data-cols="3"] {
        font-size: 14.5px;
        line-height: 1.52;
        column-gap: 28px;
    }
}

/* ======================================================================
   Personas en una sola fila (25-nov): nunca dos filas. Si no caben,
   carrusel con desplazamiento por tarjeta; flechas y barra solo entonces.
   ====================================================================== */

.pg-rail {
    position: relative;
}

.pg-people__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(min(72vw, 230px), 1fr);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    padding: 4px 2px 6px;
    outline: none;
}

.pg-people__list::-webkit-scrollbar {
    display: none;
}

.pg-person {
    scroll-snap-align: start;
}

.pg-rail__nav {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.pg-rail.is-scrollable .pg-rail__nav {
    display: flex;
}

.pg-rail__bar {
    position: relative;
    flex: 1;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--line);
}

.pg-rail__bar span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 3px;
    background: var(--ink);
    transition: transform .25s ease-out, width .25s ease-out;
}

.pg-rail__btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .25s, color .25s, opacity .25s;
}

.pg-rail__btn:hover:not(:disabled) {
    background: var(--ink);
    color: #fff;
}

.pg-rail__btn:disabled {
    opacity: .3;
    cursor: default;
}

/* La aparición que gira cada retrato necesita sitio: sin recorte en el carrusel */
.hm-motion .pg-rail .pg-person {
    transform-origin: 50% 50%;
}

/* ======================================================================
   Páginas del menú y del footer (dic 2026): Resources · News & Events ·
   News · Events · FAQs · Our Partners.
   Los listados y componentes Vue se incluyen TAL CUAL (pg-wrap); aquí solo
   cambia su presentación. Efectos propios de cada página:
     Resources: foto bitono → color con el scroll + checks que se dibujan
     FAQs: título en contorno que se rellena
     Partners: bloque menta que barre el título
     News: tarjetas que se despliegan hacia arriba
     Events: el día del calendario gira como un tarjetero
     News & Events: destacado que se descubre con un barrido diagonal
   ====================================================================== */

/* ---------- Comunes ---------- */
.pg-wrap {
    display: block;
}

.pg-wrap > .section,
.pg-wrap > .c-section,
.pg-wrap > div.section {
    margin: 0;
    padding-block: var(--pad) !important;
    background: transparent;
    border: 0;
}

.pg-wrap .l-container {
    width: 100%;
    max-width: calc(var(--wide) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.hm .pg-wrap .section__title,
.hm .pg-wrap h2.text-heading-1,
.hm .pg-wrap h2.text-h3 {
    margin: 0 0 clamp(28px, 3vw, 44px);
    padding: 0;
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 800;
    font-stretch: 78%;
    font-synthesis: none;
    line-height: .95;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
    text-wrap: balance;
}

.pg-wrap .section__title::after,
.pg-wrap .text-heading-underline::after {
    display: none;
}

.hm .pg-wrap .section__information,
.hm .pg-wrap .s-wysiwyg {
    color: var(--ink-soft);
    font-family: var(--f-serif);
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.55;
    text-align: left;
}

/* Botones del tema dentro de los listados → píldora del rediseño */
.pg-wrap .section__button {
    display: flex;
    justify-content: flex-start;
    margin-top: 36px;
}

.pg-wrap .o-btn--global-section,
.pg-ohero .o-btn {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-family: var(--f-display);
    font-size: 16px;
    font-weight: 600;
    font-synthesis: none;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: background-color .25s, transform .3s var(--ease);
}

.pg-wrap .o-btn--global-section:hover,
.pg-ohero .o-btn:hover {
    background: #0b2224;
    transform: translateY(-2px);
}

/* Paginación de los listados */
.pg-wrap .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pg-wrap .pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 14px;
    text-decoration: none;
    transition: background-color .2s, color .2s, box-shadow .2s;
}

.pg-wrap .pagination .page-numbers:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink);
}

.pg-wrap .pagination .page-numbers.current {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}

.pg-wrap .pagination .page-numbers.dots {
    box-shadow: none;
}

/* ---------- Resources · biblioteca ---------- */
.pg-lib {
    padding-block: var(--pad);
    background: var(--paper);
}

.pg-lib__grid {
    display: grid;
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}

@media (min-width: 900px) {
    .pg-lib__grid {
        grid-template-columns: 6fr 6fr;
    }
}

.pg-lib__media {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 40px 70px -40px rgb(15 39 41 / .55);
}

.pg-lib__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(calc(1 - var(--c, 1))) sepia(calc((1 - var(--c, 1)) * .35)) hue-rotate(calc((1 - var(--c, 1)) * 110deg));
    transform: scale(calc(1.08 - var(--c, 1) * .08));
}

.hm .pg-lib__title {
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(38px, 5vw, 70px);
    font-weight: 800;
    font-stretch: 78%;
    font-synthesis: none;
    line-height: .95;
    text-transform: uppercase;
}

.pg-lib__list {
    display: grid;
    gap: 14px;
    margin: 28px 0 34px;
}

.pg-lib__item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 14px;
    align-items: start;
    color: var(--ink);
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.45;
}

.pg-lib__check {
    margin-top: 3px;
    fill: none;
    stroke: #1f7a60;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pg-lib__check circle {
    stroke: rgb(82 202 164 / .6);
}

.hm-motion .pg-lib__check circle,
.hm-motion .pg-lib__check path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .7s var(--ease);
    transition-delay: calc(var(--n, 0) * 160ms);
}

.hm-motion .pg-lib__check path {
    transition-delay: calc(var(--n, 0) * 160ms + 350ms);
}

.hm-motion .pg-lib__list.is-in .pg-lib__check circle,
.hm-motion .pg-lib__list.is-in .pg-lib__check path {
    stroke-dashoffset: 0;
}

/* ---------- Resources · buscador ---------- */
.pg-res {
    background: var(--mint-soft);
}

.pg-res .c-section {
    background: transparent !important;
}

.pg-res .l-row.u-jc-md-c > .l-col-md-8 {
    flex-basis: 100%;
    max-width: 100%;
}

.pg-res .c-resources-index__filters {
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 0 rgb(23 57 59 / .06), 0 26px 50px -34px rgb(15 39 41 / .45);
}

.pg-res .c-resources-index__filters label,
.pg-res .c-form-field__label {
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 13px;
    font-weight: 600;
}

.pg-res .c-resources-index__filters input[type="text"],
.pg-res .c-resources-index__filters input[type="search"],
.pg-res .c-resources-index__filters .vs__dropdown-toggle {
    min-height: 48px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    font-family: var(--f-display);
    font-size: 15px;
}

.pg-res .c-resources-index__filter-toggle {
    border-radius: 999px;
    font-family: var(--f-display);
}

.pg-res hr {
    border: 0;
    border-top: 1px solid var(--line);
}

/* Tarjetas de resultados (también las de Partners) */
.pg-res .c-card__main,
.pg-partners .c-card__main {
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow .3s, transform .35s var(--ease);
}

.pg-res .c-card:hover .c-card__main,
.pg-partners .c-card:hover .c-card__main {
    box-shadow: inset 0 0 0 1.5px var(--ink), 0 24px 40px -30px rgb(15 39 41 / .5);
    transform: translateY(-3px);
}

.pg-res .c-card__title,
.pg-partners .c-card__title {
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 17px;
    font-weight: 700;
    font-synthesis: none;
    line-height: 1.25;
}

/* ---------- FAQs · portada ---------- */
.pg-ohero {
    padding-block: clamp(56px, 8vw, 112px);
    background: var(--night);
    color: #e9f1ee;
    overflow: hidden;
}

.pg-ohero__grid {
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

@media (min-width: 900px) {
    .pg-ohero--image .pg-ohero__grid {
        grid-template-columns: 7fr 5fr;
    }
}

.hm .pg-ohero__title {
    margin: 0;
    font-family: var(--f-display);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    font-stretch: 74%;
    font-synthesis: none;
    line-height: .9;
    text-transform: uppercase;
    color: #fff;
}

/* Contorno que se rellena de abajo arriba */
.hm-motion .pg-ohero__fill {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--mint);
    background-image: linear-gradient(0deg, #fff 0 50%, transparent 50% 100%);
    background-size: 100% 200%;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 1.6s cubic-bezier(.6, 0, .2, 1) .3s, -webkit-text-stroke-color 1.2s ease 1.2s;
}

.hm-motion .pg-ohero.is-in .pg-ohero__fill {
    background-position: 0 100%;
    -webkit-text-stroke-color: transparent;
}

.pg-ohero__body {
    margin-top: 24px;
    color: rgb(233 241 238 / .82);
    font-size: clamp(19px, 1.7vw, 23px);
}

.pg-ohero__body .o-btn {
    margin-top: 20px;
    background: var(--mint);
    color: var(--night);
}

.pg-ohero__media {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 18px 18px 0 0 rgb(82 202 164 / .35);
}

.pg-ohero__media img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

/* ---------- FAQs · acordeones ---------- */
.pg-faq {
    background: var(--paper);
    counter-reset: pg-faq;
}

.pg-faq + .pg-faq > .c-section {
    padding-top: 0 !important;
}

.pg-faq .c-section {
    background: transparent !important;
}

.pg-faq .l-row.u-jc-md-c > .l-col-md-8 {
    flex-basis: 100%;
    max-width: 880px;
    margin-inline: auto;
}

.hm .pg-faq h2.text-h3 {
    font-size: clamp(26px, 3vw, 40px);
    text-align: left;
}

.pg-faq .c-accordion {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-faq .c-accordion__item {
    counter-increment: pg-faq;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
    transition: box-shadow .3s;
}

.pg-faq .c-accordion__item:has(.is-active) {
    box-shadow: inset 0 0 0 1.5px rgb(82 202 164 / .8), 0 24px 40px -32px rgb(15 39 41 / .5);
}

.pg-faq .c-accordion__header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 36px;
    gap: 12px;
    align-items: center;
    padding: 18px 20px;
    border: 0;
    background: none;
    cursor: pointer;
}

.pg-faq .c-accordion__header::before {
    content: counter(pg-faq, decimal-leading-zero);
    font-family: var(--f-mono);
    font-size: 13px;
    color: #1f7a60;
}

.pg-faq .c-accordion__title {
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 17px;
    font-weight: 600;
    font-synthesis: none;
    line-height: 1.3;
}

.pg-faq .c-accordion__toggle {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mint-soft);
    transition: background-color .3s, transform .4s var(--ease);
}

.pg-faq .c-accordion__toggle > * {
    display: none;
}

.pg-faq .c-accordion__toggle::before,
.pg-faq .c-accordion__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .4s var(--ease);
}

.pg-faq .c-accordion__toggle::after {
    transform: rotate(90deg);
}

.pg-faq .c-accordion__header.is-active .c-accordion__toggle {
    background: var(--ink);
    transform: rotate(180deg);
}

.pg-faq .c-accordion__header.is-active .c-accordion__toggle::before,
.pg-faq .c-accordion__header.is-active .c-accordion__toggle::after {
    background: #fff;
}

.pg-faq .c-accordion__header.is-active .c-accordion__toggle::after {
    transform: rotate(0deg);
}

.pg-faq .c-accordion__inner {
    padding: 0 24px 22px 76px;
}

.hm .pg-faq .c-accordion__inner .s-wysiwyg {
    color: var(--ink);
    font-size: 17px;
}

.pg-faq .s-wysiwyg a {
    color: #1f7a60;
}

/* ---------- Our Partners ---------- */
.pg-hero--block .pg-hero__titletext {
    position: relative;
    display: inline-block;
}

.hm-motion .pg-hero--block .pg-hero__titletext {
    color: transparent;
    transition: color 0s linear .55s;
}

.hm-motion .pg-hero--block .pg-hero__titletext::after {
    content: "";
    position: absolute;
    inset: -2px -6px;
    background: var(--mint);
    transform: scaleX(0);
    transform-origin: left;
    animation: none;
}

.hm-motion .pg-hero--block.is-in .pg-hero__titletext {
    color: #fff;
}

.hm-motion .pg-hero--block.is-in .pg-hero__titletext::after {
    animation: pg-block-sweep 1.1s cubic-bezier(.7, 0, .2, 1) .2s both;
}

.hm-motion .pg-hero--block.is-in .pg-hero__sub .pg-hero__titletext::after {
    animation-delay: .45s;
}

@keyframes pg-block-sweep {
    0%   { transform: scaleX(0); transform-origin: left; }
    45%  { transform: scaleX(1); transform-origin: left; }
    55%  { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

.pg-hero--block .pg-hero__img {
    filter: grayscale(1) contrast(1.05);
    transition: filter 1.8s ease .6s;
}

.pg-hero--block.is-in .pg-hero__img {
    filter: none;
}

.pg-partners {
    background: var(--paper);
}

.pg-partners .c-block {
    padding: 0;
    background: none;
    box-shadow: none;
}

.pg-partners .c-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-partners .c-tabs__item {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--ink-soft);
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 600;
    font-synthesis: none;
    cursor: pointer;
    transition: background-color .25s, color .25s, box-shadow .25s;
}

.pg-partners .c-tabs__item:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink);
}

.pg-partners .c-tabs__item.is-active {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}

/* ---------- News · tarjetas que se despliegan ---------- */
.pg-news,
.pg-ne:first-of-type {
    background: var(--paper);
}

.pg-wrap .news-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
    perspective: 1400px;
}

.pg-wrap .news-grid__item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 14px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow .3s, transform .4s var(--ease);
}

.pg-wrap .news-grid__item:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink), 0 26px 44px -32px rgb(15 39 41 / .55);
}

.pg-wrap .news-grid__image {
    overflow: hidden;
    border-radius: 14px;
    margin: 0;
}

.pg-wrap .news-grid__image img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.pg-wrap .news-grid__item:hover .news-grid__image img {
    transform: scale(1.06);
}

.pg-wrap .news-grid__date {
    margin: 0 0 6px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .08em;
    color: #1f7a60;
}

.hm .pg-wrap .news-grid__title {
    margin: 0;
    font-family: var(--f-display);
    font-size: 17px;
    font-weight: 700;
    font-synthesis: none;
    line-height: 1.25;
    text-transform: none;
}

.pg-wrap .news-grid__title a {
    color: var(--ink);
    text-decoration: none;
}

.pg-wrap .news-grid__link {
    display: inline-block;
    margin-top: 10px;
    color: #1f7a60;
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.hm-motion .pg-wrap .news-grid__item {
    opacity: 0;
    transform: rotateX(-24deg) translateY(30px);
    transform-origin: 50% 100%;
}

.hm-motion .pg-wrap .news-grid__item.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .7s var(--ease), transform .8s var(--ease), box-shadow .3s;
}

@media (max-width: 520px) {
    .pg-wrap .news-grid__item {
        grid-template-columns: 1fr;
    }

    .pg-wrap .news-grid__image img {
        height: 180px;
    }
}

/* ---------- Events · calendario que gira ---------- */
.pg-events {
    background: var(--paper);
}

.pg-wrap .events-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
}

.pg-wrap .events-grid__item {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin: 0;
    padding: 16px 20px 16px 16px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow .3s;
}

.pg-wrap .events-grid__item:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink), 0 26px 44px -32px rgb(15 39 41 / .55);
}

.pg-wrap .events-grid__item--expired {
    opacity: .62;
}

.pg-wrap .events-grid__calendar {
    display: grid;
    overflow: hidden;
    width: 96px;
    border: 0;
    border-radius: 16px;
    background: var(--night);
    color: #fff;
    text-align: center;
    perspective: 400px;
}

.pg-wrap .events-grid__item--expired .events-grid__calendar {
    background: var(--ink-soft);
}

.pg-wrap .events-grid__calendar-month {
    padding: 6px 0;
    background: var(--mint);
    color: var(--night);
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .14em;
}

.pg-wrap .events-grid__calendar-day {
    padding: 8px 0 10px;
    font-family: var(--f-display);
    font-size: 40px;
    font-weight: 800;
    font-stretch: 80%;
    font-synthesis: none;
    line-height: 1;
    transform-origin: 50% 0;
}

.hm-motion .pg-wrap .events-grid__item .events-grid__calendar-day {
    transform: rotateX(-90deg);
    opacity: 0;
}

.hm-motion .pg-wrap .events-grid__item.is-in .events-grid__calendar-day {
    transform: none;
    opacity: 1;
    transition: transform .7s cubic-bezier(.3, 1.6, .5, 1), opacity .3s;
}

.pg-wrap .events-grid__hosted {
    margin: 0 0 6px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--ink-soft);
}

.hm .pg-wrap .events-grid__title {
    margin: 0;
    font-family: var(--f-display);
    font-size: 17px;
    font-weight: 700;
    font-synthesis: none;
    line-height: 1.25;
    text-transform: none;
}

.pg-wrap .events-grid__title a {
    color: var(--ink);
    text-decoration: none;
}

.pg-wrap .events-grid__link {
    display: inline-block;
    margin-top: 10px;
    color: #1f7a60;
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

/* ---------- News & Events ---------- */
.pg-ne > .section:nth-of-type(2),
.pg-ne > .section--green-light-top {
    background: var(--night) !important;
    color: #e9f1ee;
}

.hm .pg-ne > .section--green-light-top .section__title {
    color: #fff;
}

.pg-ne > .section.section--green-light {
    background: var(--mint-soft) !important;
}

/* Blog: destacado grande + 3 tarjetas */
.pg-ne .blog-grid__item--featured {
    margin: 0 0 22px;
}

.pg-ne .blog-grid__item--featured > a {
    display: grid;
    overflow: hidden;
    border-radius: 28px;
    background: var(--night);
    color: #fff;
    text-decoration: none;
}

@media (min-width: 900px) {
    .pg-ne .blog-grid__item--featured > a {
        grid-template-columns: 7fr 5fr;
    }
}

.pg-ne .blog-grid__item--featured .blog-grid__item-image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.hm-motion .pg-ne .blog-grid__item--featured .blog-grid__item-image {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.hm-motion .pg-ne .blog-grid__item--featured.is-in .blog-grid__item-image {
    clip-path: polygon(0 0, 120% 0, 100% 100%, 0 100%);
    transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1);
}

.pg-ne .blog-grid__item--featured .blog-grid__item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 3vw, 44px);
}

.hm .pg-ne .blog-grid__item--featured .blog-grid__item-title {
    color: #fff;
    font-size: clamp(24px, 2.4vw, 34px);
}

.pg-ne .blog-grid__item--featured .blog-grid__item-excerpt,
.pg-ne .blog-grid__item--featured .blog-grid__item-date {
    color: rgb(233 241 238 / .8);
}

.pg-ne .blog-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.pg-ne .blog-grid__item:not(.blog-grid__item--featured) > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow .3s, transform .35s var(--ease);
}

.pg-ne .blog-grid__item:not(.blog-grid__item--featured) > a:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink), 0 26px 44px -32px rgb(15 39 41 / .55);
    transform: translateY(-3px);
}

.pg-ne .blog-grid__item:not(.blog-grid__item--featured) .blog-grid__item-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.pg-ne .blog-grid__item-content {
    padding: 18px 20px 22px;
}

.hm .pg-ne .blog-grid__item-title {
    margin: 0 0 8px;
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 19px;
    font-weight: 700;
    font-synthesis: none;
    line-height: 1.2;
    text-transform: none;
}

.pg-ne .blog-grid__item-date {
    margin: 0 0 8px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .06em;
    color: #1f7a60;
}

.pg-ne .blog-grid__item-excerpt {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.5;
}

.pg-ne .blog-grid__item-category {
    position: absolute;
    margin: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--f-display);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.pg-ne .blog-grid__item > a {
    position: relative;
}

/* Eventos próximos (carrusel Swiper del tema) sobre fondo noche */
.pg-ne .swiper--event .events-grid__item {
    background: rgb(255 255 255 / .05);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}

.hm .pg-ne .swiper--event .events-grid__title a,
.pg-ne .swiper--event .events-grid__hosted {
    color: #fff;
}

.pg-ne .swiper--event .events-grid__link {
    color: var(--mint);
}

.pg-ne .swiper--event .swiper-button-prev,
.pg-ne .swiper--event .swiper-button-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgb(255 255 255 / .5);
    color: #fff;
}

.pg-ne .swiper--event .swiper-pagination-bullet {
    background: rgb(255 255 255 / .5);
}

.pg-ne .swiper--event .swiper-pagination-bullet-active {
    background: var(--mint);
}

/* ---------- Suscripción ---------- */
.pg-sub {
    padding-block: var(--pad);
    background: var(--paper-2);
}

.pg-sub__grid {
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

@media (min-width: 960px) {
    .pg-sub__grid {
        grid-template-columns: 5fr 7fr;
    }
}

.hm .pg-sub__title {
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 800;
    font-stretch: 82%;
    font-synthesis: none;
    line-height: 1;
    text-wrap: balance;
}

.pg-sub__text {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: clamp(18px, 1.5vw, 20px);
    line-height: 1.55;
}

/* ---------- Ajustes tras revisar las capturas (dic 2026) ---------- */

/* Events: el calendario sin el fondo del tema; pasados → solo la fecha atenuada */
.pg-wrap .events-grid__calendar,
.pg-wrap .events-grid__calendar-month,
.pg-wrap .events-grid__calendar-day {
    background-image: none !important;
}

.pg-wrap .events-grid__calendar::before,
.pg-wrap .events-grid__calendar::after {
    display: none !important;
}

.pg-wrap .events-grid__item--expired {
    opacity: 1;
}

.pg-wrap .events-grid__item--expired .events-grid__calendar {
    background: #6f8586;
}

.pg-wrap .events-grid__item--expired .events-grid__calendar-month {
    background: #c9d6d1;
}

/* News & Events: solo la sección de eventos próximos va en noche */
.pg-ne > .section--green-light-top:not(.section--green-light) {
    background: var(--night) !important;
}

.hm .pg-ne > .section.section--green-light .section__title {
    color: var(--ink);
}

.pg-ne > .section:nth-of-type(2):not(.section--green-light-top) {
    background: transparent !important;
    color: inherit;
}

/* Blog: textos a la izquierda */
.pg-ne .blog-grid__item-content,
.hm .pg-ne .blog-grid__item-title,
.pg-ne .blog-grid__item-date,
.pg-ne .blog-grid__item-excerpt {
    text-align: left;
}

.pg-ne .section__information {
    margin-bottom: 28px;
}

/* FAQs: preguntas pegadas (el componente trae márgenes propios) */
.pg-faq .c-accordion__item {
    margin: 0 !important;
}

.hm .pg-faq h2.text-h3 {
    margin-bottom: 24px;
}

/* Partners: sin el fondo gris del tema; pestañas y tarjetas con su ritmo */
.pg-partners .c-section,
.pg-partners .c-section--bg-grey-100 {
    background: transparent !important;
}

.pg-partners .c-tabs__item {
    margin: 0 !important;
}

.pg-partners .c-card {
    margin-bottom: 16px;
}

.pg-partners .c-card__main {
    padding: 18px 20px;
}

/* Resources: el aviso «sin resultados» no es un titular */
.hm .pg-res .c-resources-index h2,
.hm .pg-res .c-resources-index h3 {
    margin: 24px 0 8px;
    font-size: clamp(22px, 2.2vw, 30px);
    text-align: center;
}

.hm .pg-res > .c-section > .l-container > .l-row h2 {
    font-size: clamp(28px, 3.4vw, 48px);
}

.pg-res hr.u-border-orange {
    border-top-color: var(--line);
}

/* Calendario: anula los bordes gruesos y radios del style.css del tema */
.pg-wrap .events-grid__calendar-month,
.pg-wrap .events-grid__calendar-day,
.pg-wrap .events-grid__item--expired .events-grid__calendar-month,
.pg-wrap .events-grid__item--expired .events-grid__calendar-day {
    border: 0;
    border-radius: 0;
    font-weight: 500;
}

.pg-wrap .events-grid__calendar-month {
    padding: 6px 0;
    background: var(--mint);
    color: var(--night);
    font-size: 12px;
}

.pg-wrap .events-grid__calendar-day {
    padding: 8px 0 10px;
    color: #fff;
    font-size: 40px;
    font-weight: 800;
}

.pg-wrap .events-grid__item--expired .events-grid__calendar-month {
    background: #c9d6d1;
    color: var(--ink);
}

.pg-wrap .events-grid__item--expired .events-grid__calendar-day {
    color: #fff;
}

.pg-wrap .events-grid__content,
.pg-wrap .news-grid__content {
    justify-content: center;
}

/* ======================================================================
   About · video del mensaje del Papa (dic 2026)
   ====================================================================== */
.pg-vision__media--video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--night);
    cursor: pointer;
}

.pg-vision__media--video .pg-vision__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transition: opacity .8s ease;
}

.pg-vision__frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* El iframe un poco más grande que el marco: oculta los rótulos de YouTube */
.pg-vision__iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 118%;
    height: 118%;
    border: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .8s ease;
}

.pg-vision__media--video.is-playing .pg-vision__iframe {
    opacity: 1;
}

.pg-vision__media--video.is-playing .pg-vision__poster {
    opacity: 0;
}

/* Velo + botón de reproducir con un pulso */
.pg-vision__media--video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(15 39 41 / .45), rgb(15 39 41 / 0) 55%);
    pointer-events: none;
}

.pg-vision__play {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 2;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.pg-vision__play-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--night);
    transition: transform .35s var(--ease);
}

.pg-vision__play-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgb(82 202 164 / .6);
    animation: pg-pulse 2.2s ease-out infinite;
}

.pg-vision__play-ring svg {
    margin-left: 3px;
}

.pg-vision__media--video:hover .pg-vision__play-ring,
.pg-vision__play:focus-visible .pg-vision__play-ring {
    transform: scale(1.1);
}

.pg-vision__play:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
    border-radius: 50%;
}

@keyframes pg-pulse {
    0%   { box-shadow: 0 0 0 0 rgb(82 202 164 / .6); }
    70%  { box-shadow: 0 0 0 18px rgb(82 202 164 / 0); }
    100% { box-shadow: 0 0 0 0 rgb(82 202 164 / 0); }
}

@media (prefers-reduced-motion: reduce) {
    .pg-vision__play-ring::before { animation: none; }
}

/* Ventana del video: ancha, 16:9, sin márgenes */
.pg-dialog.pg-dialog--video {
    width: min(1100px, calc(100vw - 32px), calc((100vh - 64px) * 16 / 9));
    max-height: none;
    overflow: visible;
    background: #000;
    border-radius: 22px;
}

.pg-dialog--video .pg-dialog__close {
    position: absolute;
    top: -56px;
    right: 0;
    float: none;
    margin: 0;
}

.pg-video {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
}

.pg-video__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ======================================================================
   Our Partners (dic 2026): categorías en UNA fila + tarjetas con la vista
   de la página de cada socio (template-parts/v2/working-group-members.php)
   ====================================================================== */
.pg-partners {
    padding-block: var(--pad);
}

.hm .pg-partners__title {
    margin: 0 0 clamp(24px, 3vw, 36px);
    color: var(--ink);
    font-family: var(--f-display);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 800;
    font-stretch: 78%;
    font-synthesis: none;
    line-height: .95;
    text-transform: uppercase;
}

/* Fila de categorías: nunca dos líneas; se desliza con flechas si no cabe */
.pg-ptabs {
    position: relative;
    margin-bottom: clamp(24px, 3vw, 36px);
}

.pg-ptabs__row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
    padding: 4px 2px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
}

.pg-ptabs__row::-webkit-scrollbar {
    display: none;
}

.pg-ptab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 8px 0 18px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--ink-soft);
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 600;
    font-synthesis: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .25s, color .25s, box-shadow .25s;
}

.pg-ptab:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink);
}

.pg-ptab:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 2px;
}

.pg-ptab[aria-selected="true"] {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}

.pg-ptab__n {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 500;
}

.pg-ptab[aria-selected="true"] .pg-ptab__n {
    background: var(--mint);
    color: var(--night);
}

.pg-ptabs__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgb(15 39 41 / .6);
    cursor: pointer;
}

.pg-ptabs__arrow--prev { left: -6px; }
.pg-ptabs__arrow--next { right: -6px; }

.pg-ptabs.can-prev .pg-ptabs__arrow--prev,
.pg-ptabs.can-next .pg-ptabs__arrow--next {
    display: grid;
}

.pg-ptabs.can-prev { --fade-l: 56px; }
.pg-ptabs.can-next { --fade-r: 56px; }

.pg-ptabs .pg-ptabs__row {
    --fade-l: inherit;
    --fade-r: inherit;
}

/* Tarjetas de socios con la vista de su página */
.pg-ppanel[hidden] {
    display: none;
}

.pg-pgrid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-pcard__hit {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink);
    text-decoration: none !important;
    transition: box-shadow .3s, transform .4s var(--ease);
}

a.pg-pcard__hit:hover,
a.pg-pcard__hit:focus-visible {
    box-shadow: inset 0 0 0 1.5px var(--ink), 0 28px 46px -32px rgb(15 39 41 / .55);
    transform: translateY(-4px);
    outline: none;
}

/* Marco de navegador con la captura */
.pg-pcard__shot {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 10px 10px 0;
    border-radius: 12px;
    background: var(--paper-2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.pg-pcard__shot img {
    position: absolute;
    inset: 26px 0 0;
    width: 100%;
    height: calc(100% - 26px);
    object-fit: cover;
    object-position: top center;
    transition: transform 2.4s cubic-bezier(.25, .1, .25, 1), object-position 2.4s cubic-bezier(.25, .1, .25, 1);
}

/* Al pasar: la página «se recorre» hacia abajo */
a.pg-pcard__hit:hover .pg-pcard__shot img {
    object-position: bottom center;
}

.pg-pcard__bar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.pg-pcard__bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
}

.pg-pcard__bar b {
    overflow: hidden;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-soft);
    font-family: var(--f-mono);
    font-size: 10.5px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-pcard__shot.is-empty {
    background: linear-gradient(150deg, var(--mint-soft), var(--paper-2));
}

.pg-pcard__mono {
    position: absolute;
    inset: 26px 0 0;
    display: grid;
    place-items: center;
    color: #2f8f73;
    font-family: var(--f-serif);
    font-size: 46px;
    font-style: italic;
    letter-spacing: .02em;
}

.pg-pcard__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: center;
    flex: 1;
    padding: 14px 16px 16px;
}

.pg-pcard__name {
    font-family: var(--f-display);
    font-size: 16px;
    font-weight: 700;
    font-synthesis: none;
    line-height: 1.25;
}

.pg-pcard__go {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mint-soft);
    color: var(--ink);
    transition: background-color .3s, color .3s, transform .4s var(--ease);
}

a.pg-pcard__hit:hover .pg-pcard__go {
    background: var(--ink);
    color: #fff;
    transform: rotate(45deg);
}

/* Aparición: las tarjetas «se revelan» de abajo arriba, en escalera */
.hm-motion .pg-ppanel .pg-pcard {
    clip-path: inset(100% 0 0 0 round 20px);
    transition: clip-path .8s cubic-bezier(.6, 0, .2, 1);
    transition-delay: calc(min(var(--n, 0), 8) * 60ms);
}

.hm-motion .pg-ppanel.is-in .pg-pcard {
    clip-path: inset(0 0 0 0 round 20px);
}

/* ======================================================================
   Video v2 (dic 2026): sin botón encima en la sección; ventana limpia con
   controles propios. El video trae franjas negras (≈2.2:1 real): el iframe
   se agranda y se recorta a la imagen, lo que también esconde la barra de
   título y el logo de YouTube.
   ====================================================================== */
.pg-vision__media--video {
    aspect-ratio: 2.2 / 1;
    outline: none;
}

.pg-vision__media--video:focus-visible {
    box-shadow: 0 0 0 4px var(--mint), 0 40px 70px -40px rgb(15 39 41 / .6);
}

.pg-vision__media--video::after {
    display: none;
}

.pg-vision__play {
    display: none !important;
}

/* 16:9 que cubre un marco 2.2:1 y recorta las franjas negras y la interfaz */
.pg-vision__iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 136%;
    min-width: 100%;
    transform: translate(-50%, -50%) scale(1.04);
}

.pg-vision__media--video:hover .pg-vision__poster,
.pg-vision__media--video:hover .pg-vision__iframe {
    filter: brightness(1.05);
}

/* Ventana */
.pg-dialog.pg-dialog--video {
    width: min(1180px, calc(100vw - 32px));
    background: transparent;
    box-shadow: none;
}

.pg-video {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 40px 100px -30px rgb(0 0 0 / .7);
}

.pg-video__stage {
    position: relative;
    aspect-ratio: 2.2 / 1;
    overflow: hidden;
}

.pg-video__slot {
    position: absolute;
    inset: 0;
    pointer-events: none; /* los clics van a nuestros controles, no a YouTube */
}

.pg-video__frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    transform: translate(-50%, -50%) scale(1.04);
}

/* Botón grande central: visible en pausa / cargando, oculto al reproducir */
.pg-video__big {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: rgb(15 39 41 / .25);
    color: var(--night);
    cursor: pointer;
    transition: background-color .3s, opacity .3s;
}

.pg-video__big > span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--mint);
    transition: transform .3s cubic-bezier(.2, .7, .1, 1), opacity .3s;
}

.pg-video[data-state="playing"] .pg-video__big {
    background: transparent;
}

.pg-video[data-state="playing"] .pg-video__big > span {
    opacity: 0;
    transform: scale(.8);
}

.pg-video[data-state="playing"] .pg-video__big:hover > span {
    opacity: .9;
    transform: none;
}

.pg-video[data-state="loading"] .pg-video__big > span {
    animation: pg-pulse 1.6s ease-out infinite;
}

.pg-video .i-pause { display: none; }
.pg-video[data-state="playing"] .i-play { display: none; }
.pg-video[data-state="playing"] .i-pause { display: inline; }

/* Barra inferior */
.pg-video__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--night);
    color: #e9f1ee;
}

.pg-video__btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / .08);
    color: #fff;
    cursor: pointer;
    transition: background-color .25s, color .25s;
}

.pg-video__btn:hover,
.pg-video__btn:focus-visible {
    background: var(--mint);
    color: var(--night);
    outline: none;
}

.pg-video .i-off { display: none; }
.pg-video.is-muted .i-on { display: none; }
.pg-video.is-muted .i-off { display: inline; }

.pg-video__time {
    flex: none;
    min-width: 42px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 13px;
    color: rgb(233 241 238 / .75);
}

.pg-video__track {
    position: relative;
    flex: 1;
    height: 6px;
    border-radius: 6px;
    background: rgb(255 255 255 / .15);
    cursor: pointer;
}

.pg-video__track::before {
    content: "";
    position: absolute;
    inset: -10px 0;
}

.pg-video__track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 6px;
    background: var(--mint);
    transition: width .25s linear;
}

/* ======================================================================
   Objetivos (Take Action): lista de 7 y ficha con la MISMA altura.
   La ficha ocupa las 7 filas; si su texto es más alto, las filas crecen
   por igual; si es más bajo, la ficha se estira hasta el final de la lista.
   ====================================================================== */
@media (min-width: 900px) {
    .pg-goals {
        grid-template-rows: repeat(7, minmax(64px, 1fr));
        align-items: stretch;
    }

    .pg-goal {
        height: 100%;
    }

    .pg-goal-panel {
        position: static;
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }

    .pg-goal-panel__body {
        flex: 1;
    }
}

/* Our Partners: los 7 filtros visibles a la vez (rejilla de columnas iguales;
   los nombres largos pasan a dos líneas dentro de su píldora). En pantallas
   estrechas se mantiene la fila deslizable. */
@media (min-width: 900px) {
    .pg-ptabs__row {
        display: grid;
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        gap: 8px;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .pg-ptab {
        justify-content: center;
        gap: 8px;
        min-height: 58px;
        padding: 8px 10px 8px 14px;
        border-radius: 18px;
        font-size: 13.5px;
        line-height: 1.2;
        white-space: normal;
        text-align: left;
    }

    .pg-ptabs__arrow,
    .pg-ptabs.can-prev .pg-ptabs__arrow--prev,
    .pg-ptabs.can-next .pg-ptabs__arrow--next {
        display: none;
    }
}

/* ======================================================================
   Resources · formulario de búsqueda (dic 2026): buscador y filtros en una
   sola fila en escritorio; mismas alturas; etiquetas tipo índice; lupa.
   (El formulario es del componente Vue: solo cambia la presentación.)
   ====================================================================== */
.pg-res .c-resources-index__filters {
    padding: clamp(18px, 2vw, 26px);
}

.pg-res .c-resources-index__filters form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 0;
}

@media (min-width: 760px) {
    .pg-res .c-resources-index__filters form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pg-res .c-resources-index__filters form > :first-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1100px) {
    .pg-res .c-resources-index__filters form {
        grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    }

    .pg-res .c-resources-index__filters form > :first-child {
        grid-column: auto;
    }
}

.pg-res .c-resources-index__filters form > [class*="l-col"] {
    flex: none;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.pg-res .c-resources-index__filters form > [class*="l-col"] > * {
    margin: 0 !important;
}

.pg-res .c-resources-index__filters label,
.pg-res .c-resources-index__filters .c-form-field__label {
    display: block;
    margin: 0 0 6px !important;
    color: var(--ink-soft);
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pg-res .c-resources-index__filters input[type="text"],
.pg-res .c-resources-index__filters input[type="search"] {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 16px 0 44px !important;
    border: 1.5px solid var(--line) !important;
    border-radius: 14px !important;
    background: #fff url("../svg/search-ink.svg") no-repeat 14px center / 18px !important;
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 15px;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s;
}

.pg-res .c-resources-index__filters input[type="text"]:focus,
.pg-res .c-resources-index__filters input[type="search"]:focus {
    outline: none;
    border-color: var(--mint) !important;
    box-shadow: 0 0 0 4px rgb(82 202 164 / .22) !important;
}

/* El tema mete un icono propio dentro del buscador: sobra con la lupa */
.pg-res .c-resources-index__filters .o-input__icon,
.pg-res .c-resources-index__filters .o-input > svg {
    display: none !important;
}

.pg-res hr {
    display: none;
}

.pg-res .c-resources-index__list {
    margin-top: 28px;
}

/* Video v3: el video es 16:9 completo (sin franjas); se recorta solo la
   franja del título de YouTube (agrandado 8 % anclado abajo: los subtítulos
   grabados, que van abajo, no se cortan). La ventana vive fuera de .hm:
   necesita sus propias variables. */
.pg-vision__media--video,
.pg-video__stage {
    aspect-ratio: 16 / 9;
}

.pg-vision__iframe,
.pg-video__frame {
    top: auto;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    transform: translateX(-50%) scale(1.08);
    transform-origin: 50% 100%;
}

.pg-video {
    aspect-ratio: auto;
}

.pg-dialog--video {
    --mint: #52caa4;
    --night: #0f2729;
}

/* ======================================================================
   News & Events, diseño editorial (dic 2026)
   Blog como portada de revista (destacado + columna), In the News como muro
   de prensa, secciones numeradas. Solo CSS sobre el bloque original.
   ====================================================================== */
.pg-ne {
    counter-reset: pg-ne;
}

.pg-ne > .section {
    counter-increment: pg-ne;
}

/* Kicker numerado sobre cada titular de sección */
.hm .pg-ne > .section > .l-container > .section__title::before {
    content: counter(pg-ne, decimal-leading-zero) " —";
    display: block;
    margin-bottom: 14px;
    color: #2f8f73;
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hm .pg-ne > .section--green-light-top:not(.section--green-light) .section__title::before {
    color: var(--mint);
}

/* ---------- 01 · Blog: portada de revista ---------- */
@media (min-width: 1000px) {
    .pg-ne > .section:first-of-type > .l-container {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        column-gap: 28px;
        align-items: stretch;
    }

    .pg-ne > .section:first-of-type > .l-container > :not(.blog-grid__item--featured):not(.blog-grid) {
        grid-column: 1 / -1;
    }

    .pg-ne > .section:first-of-type .blog-grid__item--featured {
        grid-column: 1;
        margin: 0;
    }

    .pg-ne > .section:first-of-type .blog-grid {
        grid-column: 2;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 1fr;
        gap: 14px;
    }
}

.pg-ne .section__information {
    max-width: 60ch;
}

/* Destacado: foto a sangre con el texto encima */
.pg-ne .blog-grid__item--featured > a {
    position: relative;
    display: block;
    height: 100%;
    min-height: 480px;
    border-radius: 28px;
    background: var(--night);
    isolation: isolate;
}

.pg-ne .blog-grid__item--featured .blog-grid__item-image {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.pg-ne .blog-grid__item--featured .blog-grid__item-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: scale 1.2s cubic-bezier(.2, .7, .1, 1);
}

.pg-ne .blog-grid__item--featured > a:hover .blog-grid__item-image img {
    scale: 1.05;
}

.pg-ne .blog-grid__item--featured .blog-grid__item-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(15 39 41 / .95) 0%, rgb(15 39 41 / .55) 45%, rgb(15 39 41 / 0) 75%);
}

.pg-ne .blog-grid__item--featured .blog-grid__item-content {
    position: absolute;
    inset: auto 0 0;
    display: block;
    padding: clamp(24px, 3vw, 40px);
    background: none;
}

.hm .pg-ne .blog-grid__item--featured .blog-grid__item-title {
    max-width: 22ch;
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    font-stretch: 85%;
    line-height: 1.02;
}

.pg-ne .blog-grid__item--featured .blog-grid__item-excerpt {
    max-width: 52ch;
    color: rgb(233 241 238 / .82);
    font-size: 17px;
}

.pg-ne .blog-grid__item--featured .blog-grid__item-date {
    color: var(--mint);
}

/* Columna de la derecha: miniatura + texto */
@media (min-width: 1000px) {
    .pg-ne > .section:first-of-type .blog-grid__item:not(.blog-grid__item--featured) > a {
        flex-direction: row;
        align-items: stretch;
    }

    .pg-ne > .section:first-of-type .blog-grid__item:not(.blog-grid__item--featured) .blog-grid__item-image {
        flex: 0 0 38%;
        overflow: hidden;
    }

    .pg-ne > .section:first-of-type .blog-grid__item:not(.blog-grid__item--featured) .blog-grid__item-image img {
        height: 100%;
        aspect-ratio: auto;
    }

    .pg-ne > .section:first-of-type .blog-grid__item:not(.blog-grid__item--featured) .blog-grid__item-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 16px 18px;
    }

    .hm .pg-ne > .section:first-of-type .blog-grid__item:not(.blog-grid__item--featured) .blog-grid__item-title {
        font-size: 17px;
    }

    .pg-ne > .section:first-of-type .blog-grid__item:not(.blog-grid__item--featured) .blog-grid__item-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14.5px;
    }
}

/* Imágenes que no existen (datos locales): bloque del tema, no el icono roto */
.pg-ne .blog-grid__item-image {
    background: linear-gradient(150deg, var(--mint-soft), var(--paper-2));
}

.pg-ne .blog-grid__item-image img {
    color: transparent;
    font-size: 0;
}

/* ---------- 03 · In the News: muro de prensa ---------- */
.pg-ne > .section.section--green-light .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 18px;
}

.pg-ne > .section.section--green-light .news-grid__item {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.pg-ne > .section.section--green-light .news-grid__image {
    border-radius: 0;
}

.pg-ne > .section.section--green-light .news-grid__image img {
    height: auto;
    aspect-ratio: 4 / 3;
}

.pg-ne > .section.section--green-light .news-grid__content {
    padding: 16px 18px 20px;
}

.pg-ne > .section.section--green-light .news-grid__date {
    position: absolute;
    top: 12px;
    left: 12px;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 6px 16px -8px rgb(15 39 41 / .5);
}

/* ---------- 02 · Eventos próximos (carrusel del tema) ---------- */
.pg-ne .swiper--event {
    padding-bottom: 48px;
}

.pg-ne .swiper--event .events-grid__item {
    min-height: 150px;
    border-radius: 22px;
}

/* Botones «View all» a la izquierda, con flecha */
.pg-ne .section__button-button .o-btn--global-section::after {
    content: "→";
    margin-left: 10px;
}

.pg-ne > .section--green-light-top:not(.section--green-light) .o-btn--global-section {
    background: var(--mint);
    color: var(--night);
}

.hm .pg-ne > .section:first-of-type .section__information {
    margin: -12px 0 32px;
    text-align: left;
}
