/**
 * «Súmate a la Plataforma» (template-parts/objects/join-platform.php).
 *
 * Sección corta: texto + botón a la izquierda y una sola lista a la derecha.
 * Cada página cambia el acento y la forma de la lista (.lsj--story · pasos,
 * .lsj--magazine · objetivos, .lsj--impact · sectores).
 *
 * Independiente de .sty / .mag. En este tema 1rem = 10px: se usa px y clamp().
 * Las fuentes son las de las historias (alojadas en el tema por la CSP).
 */

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 500 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("../fonts/stories/archivo-var-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Newsreader";
    font-style: italic;
    font-weight: 400 500;
    font-display: swap;
    src: url("../fonts/stories/newsreader-italic-var-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Newsreader";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/stories/newsreader-var-latin.woff2") format("woff2");
}

.lsj {
    --lsj-night: #0f2729;
    --lsj-paper: #f7f1e8;
    --lsj-soft: rgb(247 241 232 / .74);
    --lsj-line: rgb(247 241 232 / .16);
    --lsj-accent: #52caa4;
    --lsj-glow: rgb(82 202 164 / .18);
    --lsj-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
    --lsj-serif: "Newsreader", Georgia, "Times New Roman", serif;

    position: relative;
    overflow: hidden;
    padding: clamp(48px, 6vw, 80px) 0;
    background:
        radial-gradient(70% 90% at 100% 0%, var(--lsj-glow), transparent 65%),
        var(--lsj-night);
    color: var(--lsj-paper);
    font-family: var(--lsj-serif);
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.lsj--magazine { --lsj-accent: #f2b544; --lsj-glow: rgb(242 181 68 / .16); }
.lsj--impact   { --lsj-accent: #ff9978; --lsj-glow: rgb(255 153 120 / .16); }

.lsj :where(h2, p, ul, ol, li) {
    margin: 0;
    padding: 0;
}

.lsj :where(ul, ol) {
    list-style: none;
}

.lsj__wrap {
    display: grid;
    gap: 32px;
    align-items: center;
    width: min(1180px, 100% - 2 * clamp(20px, 5vw, 48px));
    margin: 0 auto;
}

@media (min-width: 900px) {
    .lsj__wrap {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 64px;
    }
}

.lsj__kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--lsj-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lsj-accent);
}

.lsj__kicker span {
    width: 32px;
    height: 2px;
    background: currentColor;
}

.lsj__title {
    margin-top: 14px;
    font-family: var(--lsj-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    font-stretch: 88%;
    line-height: 1;
    letter-spacing: -.015em;
    color: var(--lsj-paper);
}

.lsj__title span,
.lsj__title em {
    display: block;
}

.lsj__title em {
    margin-top: .06em;
    font-family: var(--lsj-serif);
    font-style: italic;
    font-weight: 400;
    font-stretch: normal;
    letter-spacing: -.01em;
    color: var(--lsj-accent);
}

.lsj__lead {
    max-width: 540px;
    margin-top: 16px;
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--lsj-soft);
}

.lsj__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.lsj__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: var(--lsj-display);
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s, transform .25s cubic-bezier(.2, .7, .1, 1);
}

.lsj__btn--solid {
    background: var(--lsj-accent);
    color: var(--lsj-night);
}

.lsj__btn--solid:hover {
    background: var(--lsj-paper);
    color: var(--lsj-night);
    transform: translateY(-2px);
}

.lsj__btn--solid svg {
    transition: transform .25s cubic-bezier(.2, .7, .1, 1);
}

.lsj__btn--solid:hover svg {
    transform: translateX(3px);
}

.lsj__btn--ghost {
    border-color: rgb(247 241 232 / .4);
    color: var(--lsj-paper);
}

.lsj__btn--ghost:hover {
    border-color: var(--lsj-paper);
    background: rgb(247 241 232 / .08);
    color: var(--lsj-paper);
}

.lsj__btn:focus-visible {
    outline: 3px solid var(--lsj-accent);
    outline-offset: 3px;
}

/* ---------- La lista de la derecha ---------- */
.lsj__list-t {
    margin-bottom: 14px;
    font-family: var(--lsj-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lsj-soft);
}

.lsj__n {
    font-family: var(--lsj-display);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--lsj-accent);
    font-variant-numeric: tabular-nums;
}

/* Historias: los 4 pasos del primer año, en tarjetas 2 × 2 */
.lsj__list--story {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lsj__list--story li {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--lsj-line);
    border-radius: 14px;
    background: rgb(247 241 232 / .04);
    font-family: var(--lsj-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

/* Revista: los 7 Objetivos en dos columnas */
.lsj__list--magazine {
    display: grid;
    gap: 0 28px;
}

@media (min-width: 560px) {
    .lsj__list--magazine {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lsj__list--magazine li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--lsj-line);
    font-size: 16px;
    line-height: 1.35;
}

.lsj__list--magazine .lsj__n {
    padding-top: 2px;
}

/* Our Impact: los 7 sectores como etiquetas */
.lsj__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lsj__chips li {
    padding: 9px 16px;
    border: 1px solid var(--lsj-line);
    border-radius: 999px;
    font-family: var(--lsj-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    transition: border-color .2s, background-color .2s;
}

.lsj__chips li:hover {
    border-color: var(--lsj-accent);
    background: rgb(247 241 232 / .06);
}

/* ---------- Historias: cabecera + recorrido del primer año ----------
   El color de acento es el de cada historia (style en línea). */
.lsj__wrap--path {
    display: block;
}

.lsj__head {
    display: grid;
    gap: 20px;
    align-items: end;
}

@media (min-width: 900px) {
    .lsj__head {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 64px;
    }
}

.lsj__side .lsj__lead {
    margin-top: 0;
}

.lsj__actions {
    align-items: center;
}

.lsj__for {
    font-family: var(--lsj-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--lsj-soft);
}

.lsj__path {
    margin-top: clamp(36px, 4.5vw, 56px);
}

.lsj__route {
    position: relative;
    display: grid;
    gap: 22px;
}

/* La línea del camino: sale llena desde el primer paso y se va apagando */
.lsj__route::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 21px;
    width: 2px;
    background: linear-gradient(180deg, var(--lsj-accent), rgb(247 241 232 / .16));
}

.lsj__stop {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
}

.lsj__node {
    position: relative;
    z-index: 1;
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--lsj-accent);
    border-radius: 50%;
    background: var(--lsj-night);
    font-family: var(--lsj-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--lsj-accent);
    transition: background-color .25s, color .25s, transform .3s cubic-bezier(.2, .7, .1, 1);
}

/* El primero es donde se empieza: relleno y con un halo */
.lsj__stop:first-child .lsj__node {
    background: var(--lsj-accent);
    color: var(--lsj-night);
    box-shadow: 0 0 0 6px var(--lsj-glow);
}

.lsj__stop:hover .lsj__node {
    background: var(--lsj-accent);
    color: var(--lsj-night);
    transform: scale(1.08);
}

.lsj__stop-t {
    padding-top: 10px;
    font-family: var(--lsj-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--lsj-paper);
}

.lsj__stop-d {
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--lsj-soft);
}

/* Escritorio: el camino en horizontal, los textos debajo de cada parada */
@media (min-width: 760px) {
    .lsj__route {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px;
    }

    .lsj__route::before {
        top: 21px;
        /* Termina en el centro del último nodo: ancho de una columna − 22px */
        right: calc((100% - 3 * 28px) / 4 - 22px);
        bottom: auto;
        left: 22px;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, var(--lsj-accent), rgb(247 241 232 / .16));
    }

    .lsj__stop {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .lsj__node {
        grid-row: auto;
        margin-bottom: 18px;
    }

    .lsj__stop-t {
        padding-top: 0;
        margin-bottom: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lsj__btn,
    .lsj__btn svg,
    .lsj__node {
        transition: none;
    }
}
