/* Laura Muñoz · Flujo de abastecimiento
   Todo el color vive en los seis flujos; el resto es papel y tinta. */

@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}
@font-face {
    font-family: "Martian Mono";
    src: url("../fonts/martian-mono-latin.woff2") format("woff2");
    font-weight: 400 500;
    font-stretch: 87.5%;
    font-display: swap;
}

:root {
    --paper: #F0F1F3;
    --paper-2: #E3E5EA;
    --ink: #12141C;
    --ink-2: #353947;
    --muted: #565B6B;
    --line: #C7CAD2;
    --on-ink: #C3C7D2;
    --on-ink-muted: #9AA0B0;
    --ink-line: #3A3F50;

    --c1: #E0312B; /* retail · Alca */
    --c2: #0E8A76; /* farmacéutica · Muñoz KN */
    --c3: #E3A008; /* obra · Proyectos y Servicios */
    --c4: #2645D3; /* industrial · Morelco */
    --c5: #B32E7A; /* salud · Clínica San José */
    --c6: #4C8A2A; /* agro · Fedagro */

    --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

    --gutter: clamp(1rem, 4vw, 3.5rem);
    --max: 1440px;
    --wide: max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
    --bar-h: 64px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--bar-h) + 1rem);
    scrollbar-color: var(--ink-2) var(--paper-2);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-stretch: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--c3); color: var(--ink); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-2); border: 3px solid var(--paper-2); border-radius: 6px; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

:focus-visible { outline: 3px solid var(--c4); outline-offset: 3px; border-radius: 2px; }
.method :focus-visible, .close :focus-visible { outline-color: var(--c3); }

.sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--ink); color: var(--paper); padding: .75rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

.i {
    width: 1.15em; height: 1.15em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; }

/* ---------- Botones ---------- */

.btn {
    display: inline-flex; align-items: center; gap: .6rem;
    min-height: 3rem; padding: .75rem 1.25rem;
    font: 600 1rem/1.1 var(--sans); font-stretch: 105%;
    text-decoration: none; border-radius: 4px; border: 2px solid transparent;
    transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.5rem; padding: .5rem .9rem; font-size: .9375rem; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: rgb(255 255 255 / .1); }

.link {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; font-size: .9375rem;
    text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px;
    transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Barra superior ---------- */

.bar {
    position: sticky; top: 0; z-index: 50;
    height: var(--bar-h);
    display: flex; align-items: center; gap: 1.5rem;
    padding: 0 var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}
.bar.is-stuck { border-bottom-color: var(--line); }

.bar__mark {
    display: inline-flex; align-items: center; gap: .6rem;
    font-weight: 800; font-stretch: 115%; font-size: 1.0625rem; letter-spacing: -.01em;
    text-decoration: none; margin-right: auto;
}
.bar__mark svg { width: 28px; height: 28px; fill: none; stroke-width: 4.5; stroke-linecap: butt; }
.bar__mark .m1 { stroke: var(--c1); }
.bar__mark .m2 { stroke: var(--c4); }
.bar__mark .m3 { stroke: var(--c2); }

.bar__nav ul { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.bar__nav a {
    font-weight: 600; font-size: .9375rem; font-stretch: 108%;
    text-decoration: none; padding: .5rem 0; position: relative;
}
.bar__nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--ink); transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.bar__nav a:hover::after, .bar__nav a[aria-current="true"]::after { transform: scaleX(1); }

.bar__toggle {
    display: none; width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 4px;
}
.bar__toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* idioma y menú del CV */
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.lang a {
    display: grid; place-items: center; min-width: 2.5rem; min-height: 2.25rem; padding: 0 .55rem;
    font-weight: 700; font-size: .8125rem; font-stretch: 110%; text-decoration: none;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang a:hover { background: var(--paper-2); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }

.cv-menu { position: relative; }
.cv-menu summary { list-style: none; cursor: pointer; }
.cv-menu summary::-webkit-details-marker { display: none; }
.cv-menu__list {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 13rem;
    display: grid; background: var(--paper); border: 2px solid var(--ink); border-radius: 4px;
    box-shadow: 0 10px 30px rgb(18 20 28 / .14);
}
.cv-menu__list a { padding: .8rem 1rem; font-weight: 600; text-decoration: none; }
.cv-menu__list a + a { border-top: 1px solid var(--line); }
.cv-menu__list a:hover { background: var(--paper-2); }
.cv-menu[open] .cv-menu__list { animation: rise .3s var(--ease); }

/* ---------- Hero: el flujo ---------- */

.hero {
    max-width: var(--max); margin: 0 auto;
    padding: clamp(1.5rem, 4vh, 3rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
    min-height: calc(100svh - var(--bar-h));
    display: grid; align-items: center;
}

/* --in / --out le dicen a main.js hacia dónde corren las cintas */
.flow {
    --u: 4px;
    --in: across;
    --out: across;
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, .9fr) minmax(48px, .65fr) auto minmax(36px, .4fr) minmax(230px, .8fr);
    grid-template-areas: "src . node . out";
    align-items: center;
}

.flow__svg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    overflow: visible; pointer-events: none;
}
.flow__svg text { font: 500 12px var(--mono); font-stretch: 87.5%; }
.path__svg text { font: 500 12px var(--mono); font-stretch: 87.5%; fill: var(--ink); }

.flow__src { grid-area: src; }
.flow__sources { display: flex; flex-direction: column; gap: 12px; }
.flow__key { margin-top: 1.25rem; padding-right: 20px; text-align: right; font-size: .8125rem; color: var(--muted); line-height: 1.4; }

.src { position: relative; }
.src a {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
    min-height: max(2.6rem, calc(var(--m) * var(--u)));
    padding: .15rem 20px .15rem 0; text-align: right; text-decoration: none;
    transition: opacity .3s var(--ease);
}
.src a::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 8px;
    background: var(--c);
}
.src__sector { font-weight: 700; font-size: 1rem; line-height: 1.15; font-stretch: 108%; }
.src__meta { font: 400 .75rem/1.5 var(--mono); color: var(--muted); }
.src__meta span { white-space: nowrap; }
/* línea guía de la etiqueta a su nodo */
.src a::before { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 1px; background: var(--ink); }
.flow.is-focus .src:not(.is-on) a { opacity: .35; }

.node {
    grid-area: node; position: relative; z-index: 1;
    display: grid; grid-template-columns: 10px auto auto; align-items: end;
    column-gap: clamp(1.25rem, 2.2vw, 2.25rem);
}
/* el nodo es una sola pieza: barra, texto y retrato sobre la misma base */
.node::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
.node__photo { align-self: end; }
.node__bar { align-self: stretch; background: var(--ink); }

.node__text { max-width: 22rem; padding: 1.5rem 0; }
.hero__name {
    font-size: clamp(3rem, 5.6vw, 5.25rem);
    font-weight: 850; font-stretch: 125%;
    letter-spacing: -.035em; line-height: .86;
}
.hero__title {
    margin-top: 1.25rem;
    font-size: clamp(1.35rem, 2.1vw, 1.95rem); font-weight: 750; font-stretch: 112%;
    letter-spacing: -.02em; line-height: 1.08; text-wrap: balance;
}
.hero__lede { margin-top: 1rem; max-width: 32ch; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }

.note { font: 400 .75rem/1.6 var(--mono); color: var(--muted); }
.note span { color: var(--ink); font-weight: 500; }
.note--node { margin-top: 1.5rem; padding-top: .75rem; border-top: 1px solid var(--ink); max-width: 32ch; }
.note--mobile { display: none; }

.node__photo { margin: 0; width: clamp(140px, 12vw, 200px); }
.node__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }

.flow__out { grid-area: out; display: flex; flex-direction: column; gap: 14px; }

.out {
    position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem;
    padding: 1rem 1.15rem; min-height: 5.25rem;
    text-decoration: none; border-radius: 0 4px 4px 0; border: 2px solid var(--ink);
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
.out > .i { grid-row: 1 / span 2; grid-column: 2; width: 1.5rem; height: 1.5rem; transition: transform .35s var(--ease); }
.out__label { font-weight: 750; font-stretch: 112%; font-size: 1.1875rem; line-height: 1.15; }
.out__meta { font-size: .875rem; line-height: 1.5; margin-top: .15rem; }
.out--cv { background: var(--ink); color: var(--paper); grid-template-columns: 1fr; }
.out--cv .out__label { white-space: nowrap; }
.out__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.out__links a {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .7rem; border: 1px solid var(--on-ink-muted); border-radius: 3px;
    font-weight: 600; font-size: .875rem; text-decoration: none; color: var(--paper);
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.out__links a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.out__links .i { width: 1rem; height: 1rem; }
.out--wa { background: var(--paper); color: var(--ink); }
.out--wa:hover { background: #fff; }
.out--wa:hover .i { transform: translateX(4px); }
.out--wa .out__meta { color: var(--muted); font-family: var(--mono); font-size: .75rem; font-stretch: 87.5%; }

.out__place {
    display: flex; gap: .5rem; align-items: flex-start;
    font-size: .8125rem; line-height: 1.5; color: var(--muted); margin-top: .25rem;
}
.out__place .i { width: 1rem; height: 1rem; margin-top: .1rem; }

/* cintas del diagrama (las dibuja main.js) */
.ribbon { transition: opacity .35s var(--ease); }
.ribbon__body { opacity: .94; }
.ribbon__pulse {
    fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-linecap: round;
    stroke-dasharray: 2 16; opacity: .55;
    animation: pulse 2.4s linear infinite;
}
.ribbon--out .ribbon__pulse { stroke-dasharray: 2 10; animation-duration: 1.4s; }
.flow.is-focus .ribbon:not(.is-on) { opacity: .1; }

@keyframes pulse { to { stroke-dashoffset: -72; } }

.is-paused .ribbon__pulse, .is-paused .pk, .is-paused .bar-row,
.is-paused .po__lines li, .is-paused .po__stamp { animation-play-state: paused; }

/* Entrada: el nombre se ensancha mientras llegan los flujos */
.js .hero__name { animation: widen 1.6s .35s var(--ease) both; }
.js .flow__svg { animation: sweep-x 1.7s .2s var(--ease) both; }
.js .src { animation: rise .8s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms); }
.js .flow__out { animation: rise .8s 1.1s var(--ease) both; }

@keyframes widen { from { font-stretch: 62%; letter-spacing: -.01em; } }
@keyframes sweep-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sweep-y { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Encabezados de sección ---------- */

.section-head {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end; gap: 1rem 3rem;
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-head h2 {
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    font-weight: 850; font-stretch: 125%; letter-spacing: -.035em; line-height: .92;
}
.section-head p { max-width: 42ch; color: var(--muted); font-size: 1.125rem; line-height: 1.5; }
.section-head--dark p { color: var(--on-ink); }

/* ---------- Trayectoria ---------- */

.path {
    max-width: var(--max); margin: 0 auto;
    padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}

.path__body {
    --rail: 132px;
    position: relative; padding-left: var(--rail);
}

.path__svg {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    overflow: visible; pointer-events: none;
    clip-path: inset(0 0 calc(100% - var(--reach, 100%)) 0);
}
.path__svg path { fill: none; stroke-linecap: butt; }

.job {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 4vw, 4.5rem);
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--line);
}
.job::before {
    content: ""; position: absolute; left: -14px; top: clamp(2rem, 4vw, 3rem); width: 8px; height: 5.5rem;
    background: var(--c); transform: scaleY(.0001); transform-origin: top;
    transition: transform .7s var(--ease);
}
.job.is-fed::before, .no-js .job::before { transform: none; }

.job h3 {
    font-size: clamp(1.9rem, 3.6vw, 3.25rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.03em;
}
.job__role { font-size: 1.1875rem; font-weight: 600; margin-top: .5rem; }

.job__facts { margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.job__facts div { display: grid; grid-template-columns: 4.75rem 1fr; gap: .75rem; }
.job__facts dt { font-size: .875rem; color: var(--muted); }
.job__facts dd { margin: 0; font: 400 .8125rem/1.6 var(--mono); }

.job__body { max-width: 66ch; padding-top: .25rem; }
.job__body > * + * { margin-top: 1rem; }
.job__body ul { display: grid; gap: .75rem; }
.job__body li { position: relative; padding-left: 1.4rem; }
.job__body li::before {
    content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--c);
}

.job__bought {
    display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline;
    padding-top: 1rem; border-top: 1px dashed var(--line);
    font-size: .9375rem; color: var(--ink-2);
}
.job__bought span { font-weight: 700; color: var(--ink); }

.job__figure { font-size: 1.125rem; color: var(--ink-2); }
.job__figure strong {
    display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 850; font-stretch: 118%;
    letter-spacing: -.03em; line-height: 1; color: var(--ink); margin-bottom: .35rem;
    font-variant-numeric: tabular-nums;
}

/* ---------- Método (ETL) ---------- */

.method {
    background: var(--ink); color: var(--paper);
    padding: clamp(5rem, 10vw, 8rem) var(--wide);
}

.etl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.etl__stage { padding-right: clamp(1rem, 2.5vw, 2.5rem); }
.etl__stage h3 {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.025em;
    margin: 1.75rem 0 .75rem;
}
.etl__stage p { color: var(--on-ink); max-width: 30ch; }

.lane {
    position: relative; height: 168px; overflow: hidden;
    border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line);
}
.etl__stage + .etl__stage .lane { border-left: 1px dashed var(--ink-line); }

.pk {
    position: absolute; left: 0; width: 10px; height: 10px; background: var(--c);
    animation: travel var(--d, 4s) linear infinite; animation-delay: var(--dl, 0s);
}
.pk--hollow { background: none; box-shadow: inset 0 0 0 2px var(--c); }
.pk--big { width: 14px; height: 6px; }
@keyframes travel {
    from { transform: translateX(-20px) translateY(0); }
    50% { transform: translateX(calc(var(--w, 300px) * .5)) translateY(var(--j, 0px)); }
    to { transform: translateX(calc(var(--w, 300px) + 20px)) translateY(0); }
}

.bar-row {
    position: absolute; left: 0; height: 12px; background: var(--c);
    transform-origin: left; animation: report 3.6s var(--ease) infinite alternate; animation-delay: var(--dl, 0s);
}
@keyframes report { from { transform: scaleX(var(--a, .3)); } to { transform: scaleX(var(--b, .9)); } }

/* la orden de compra que sale del proceso (ejemplo ilustrativo) */
.lane--out { display: grid; align-content: center; padding: 0 0 0 clamp(1rem, 2vw, 1.5rem); }
.po { position: relative; max-width: 260px; }
.po__head {
    display: flex; justify-content: space-between; gap: 1rem;
    padding-bottom: .5rem; border-bottom: 1px solid var(--on-ink-muted);
    font-size: .8125rem; font-weight: 700; color: var(--paper);
}
.po__head span + span { font-weight: 400; color: var(--on-ink-muted); }
.po__lines { display: grid; }
.po__lines li {
    display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center;
    padding: .45rem 0 .45rem 1rem; position: relative;
    border-bottom: 1px solid var(--ink-line);
    font: 400 .75rem/1.3 var(--mono); color: var(--on-ink); font-variant-numeric: tabular-nums;
    animation: po-line 6s var(--ease) infinite;
}
.po__lines li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--c); }
.po__lines li:nth-child(2) { animation-delay: .35s; }
.po__lines li:nth-child(3) { animation-delay: .7s; }
.po__lines li span:first-child { font-family: var(--sans); font-size: .8125rem; color: var(--paper); }
.po__stamp {
    position: absolute; right: 0; bottom: -2.1rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
    color: var(--paper); border: 2px solid var(--paper); padding: .2rem .5rem; border-radius: 2px;
    animation: stamp 6s var(--ease) infinite;
}
@keyframes po-line { 0%, 6% { opacity: 0; transform: translateX(-8px); } 18%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes stamp { 0%, 40% { opacity: 0; transform: scale(1.5) rotate(-6deg); } 48%, 92% { opacity: 1; transform: rotate(-4deg); } 100% { opacity: 0; } }

/* ---------- Formación y herramientas ---------- */

.school {
    max-width: var(--max); margin: 0 auto;
    padding: clamp(5rem, 10vw, 8rem) var(--gutter);
}
.school .section-head { grid-template-columns: 1fr; }

.school__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); }

.degree { padding: 1.75rem 0 2.25rem; border-top: 2px solid var(--ink); }
.degree + .degree { border-top-width: 1px; border-top-color: var(--line); }
.degree h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800; font-stretch: 110%; letter-spacing: -.025em; }
.degree__inst { margin-top: .6rem; font-weight: 600; color: var(--ink-2); }
.degree p:not(.degree__inst) { margin: .75rem 0 1.1rem; color: var(--ink-2); max-width: 52ch; }

.tools { border-top: 2px solid var(--ink); padding-top: 1.75rem; }
.tools__title { font-size: 1.25rem; font-weight: 750; font-stretch: 110%; margin-bottom: 1rem; }
.tools__title + ul + .tools__title { margin-top: 2.5rem; }
.tools__list { display: flex; flex-wrap: wrap; gap: .1rem 0; }
.tools__list li {
    font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 750; font-stretch: 115%; letter-spacing: -.02em; line-height: 1.2;
}
.tools__list li:not(:last-child)::after { content: "/"; color: var(--line); font-weight: 400; margin: 0 .45em; }
.tools__list small { font-size: .875rem; font-weight: 500; font-stretch: 100%; color: var(--muted); letter-spacing: 0; margin-left: .3em; }
.tools__soft { display: flex; flex-wrap: wrap; gap: .5rem; }
.tools__soft li {
    font-size: .9375rem; font-weight: 600; padding: .45rem .8rem; border: 1px solid var(--ink); border-radius: 999px;
}

/* ---------- Mi camino ---------- */

.story {
    background: var(--paper-2);
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.about {
    max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.about__text h2 {
    font-size: clamp(2.5rem, 6.5vw, 5.5rem); font-weight: 850; font-stretch: 125%; letter-spacing: -.035em; line-height: .92;
    margin-bottom: 2rem;
}
.about__text p { max-width: 62ch; color: var(--ink-2); }
.about__text p + p { margin-top: 1rem; }
.about__lead { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; color: var(--ink) !important; font-weight: 500; }

/* Historias: un hilo que recorre cada parada */
.notes { max-width: var(--max); margin: clamp(4rem, 9vw, 7rem) auto 0; padding: 0 var(--gutter); }
.notes__title {
    font-size: clamp(1.9rem, 3.6vw, 3.25rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.03em;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); }

.stop {
    position: relative;
    display: grid; grid-template-columns: clamp(88px, 9vw, 120px) minmax(0, 1fr); gap: 1.25rem; align-items: start;
    padding: 1.5rem 0 1.75rem 2rem;
}
.stop::before {
    content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 4px; background: var(--c);
}
.stop::after {
    content: ""; position: absolute; left: 0; top: 1.85rem; width: 12px; height: 12px;
    background: var(--paper-2); box-shadow: inset 0 0 0 3px var(--c);
}
.stop img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); }
.stop h4 { font-size: 1.1875rem; font-weight: 750; font-stretch: 108%; letter-spacing: -.01em; margin-bottom: .5rem; }
.stop p { font-size: .9375rem; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }

.stop--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-bottom: 3rem; }
.stop--lead img { aspect-ratio: 16 / 10; }
.stop--lead h4 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.025em; margin-bottom: 1rem; }
.stop--lead p { font-size: 1.125rem; }
.stop--lead::after { top: 2.25rem; }

/* ---------- Cierre: las seis bandas terminan en una conversación ---------- */

.close {
    background: var(--ink); color: var(--paper);
    padding: clamp(5rem, 11vw, 9rem) var(--wide) clamp(4rem, 9vw, 7rem);
}
.close__flow {
    --in: across;
    position: relative;
    display: grid; grid-template-columns: clamp(120px, 20vw, 300px) minmax(0, 1fr);
}
.close__svg {
    position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
    clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease);
}
.js .close:not(.is-in) .close__svg { clip-path: inset(0 100% 0 0); }

.close__body { grid-column: 2; position: relative; padding-left: clamp(1.5rem, 3vw, 2.75rem); }
.close__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--paper); }

.close h2 {
    max-width: 18ch;
    font-size: clamp(2.25rem, 5.4vw, 4.75rem); font-weight: 850; font-stretch: 118%; letter-spacing: -.035em; line-height: .98;
}
.close__lede { margin-top: 1.5rem; max-width: 46ch; font-size: 1.1875rem; color: var(--on-ink); }
.close__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

.foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
    padding: 1.5rem var(--wide);
    background: var(--ink); color: var(--on-ink-muted);
    border-top: 1px solid var(--ink-line);
    font-size: .8125rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .bar__nav { display: none; }
    .bar__toggle { display: inline-grid; place-items: center; }
    .bar__nav.is-open {
        display: block; position: absolute; top: var(--bar-h); left: 0; right: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: .5rem var(--gutter) 1.25rem;
    }
    .bar__nav.is-open ul { flex-direction: column; gap: 0; }
    .bar__nav.is-open a { display: block; padding: .9rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
    .bar__nav.is-open a::after { display: none; }
    .bar { gap: .75rem; }

    .flow {
        --out: down;
        grid-template-columns: minmax(170px, 1fr) minmax(40px, .6fr) auto;
        grid-template-areas: "src . node" "out out out";
    }
    .flow__out { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; margin-top: 72px; }
    .out { width: min(100%, 260px); border-radius: 0 0 4px 4px; }
    .out__place { flex-basis: 100%; justify-content: flex-end; }

    .etl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
    .etl__stage:nth-child(3) .lane { border-left: 0; }
}

@media (max-width: 860px) {
    :root { --bar-h: 58px; }

    .hero { min-height: 0; align-items: start; }

    .flow {
        --u: 3px;
        --in: turn;
        grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
        grid-template-areas: "text text" "src ." "note photo" "out out";
        align-items: start;
    }
    .node { display: contents; }
    .node::after { display: none; }
    .node__bar { display: none; }
    .node__text { grid-area: text; padding: 0 0 2rem; max-width: none; }
    .hero__name { font-size: clamp(2.75rem, 13vw, 4.5rem); }
    .hero__lede { max-width: 40ch; }
    .note--node { display: none; }
    .note--mobile { display: block; grid-area: note; align-self: end; padding: 0 1rem 0 0; }

    .flow__key { font-size: .75rem; }
    .flow__sources { gap: 10px; }
    .src a { padding: .2rem 16px .2rem 0; height: auto; min-height: max(2.4rem, calc(var(--m) * var(--u))); }
    .src a::after { width: 6px; }
    .src a::before { right: 6px; width: 7px; }
    .src__sector { font-size: .9375rem; }

    .node__photo { grid-area: photo; width: auto; margin-top: 120px; border-top: 8px solid var(--ink); }

    .flow__out { justify-content: stretch; margin-top: 64px; gap: 10px; }
    .out { flex: 1 1 0; width: auto; min-width: 0; grid-template-columns: 1fr; padding: .9rem; }
    .out > .i { display: none; }
    .out__links a { padding: .4rem .55rem; }
    .out__label { font-size: 1.0625rem; }
    .out__place { justify-content: flex-start; }

    .js .flow__svg { animation-name: sweep-y; }

    .section-head { grid-template-columns: 1fr; }

    .path__body { --rail: 70px; }
    .job { grid-template-columns: 1fr; }
    .job::before { left: -10px; width: 6px; }

    .school__grid { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; }
    .about__photo { max-width: 420px; }
    .about__photo img { aspect-ratio: 1; }

    .ledger { grid-template-columns: 1fr; }
    .stop--lead { grid-template-columns: 1fr; gap: 1.25rem; }

    .close__flow { --in: down; grid-template-columns: 1fr; grid-template-rows: 120px auto; }
    .close__body { grid-column: 1; grid-row: 2; padding: 2.5rem 0 0; }
    .close__bar { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 8px; }
    .js .close:not(.is-in) .close__svg { clip-path: inset(0 0 100% 0); }
}

@media (max-width: 560px) {
    .etl { grid-template-columns: 1fr; row-gap: 2.5rem; }
    .etl__stage + .etl__stage .lane { border-left: 0; }
    .lane { height: 132px; }
    .cv-menu summary { padding-inline: .75rem; }
    .lang a { min-width: 2.1rem; }
    .bar__mark span { display: none; }
    .stop { grid-template-columns: 80px minmax(0, 1fr); gap: 1rem; padding-left: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .ribbon__pulse, .pk, .bar-row { animation: none !important; }
    .po__lines li, .po__stamp { animation: none !important; opacity: 1; }
    .path__svg { clip-path: none; }
}

@media print {
    .bar, .flow__svg, .close__svg, .method .lane { display: none; }
    .method, .close, .foot { background: none; color: var(--ink); }
}
