/* Revisión v7: lectura adaptable y explicación del proceso. */
.page-home .hero__inner.container,.page-home .hero-clients__inner.container { max-width:none; width:100%; padding-inline:clamp(20px,2.2vw,48px); }
.page-home .hero__copy { width:min(100%,780px); }
.page-home .hero__title { max-width:18ch; }
@media(min-width:961px) {
 .page-home .hero__title { font-size:clamp(38px,min(4.2vw,6.5svh),80px); }
 .page-home .hero__copy { width:min(58%,860px); }
 .page-home .hero-clients .logo-row { --logo-h:clamp(48px,4vw,76px); }
}
@media(max-width:960px) {
 .page-home .hero__inner { gap:1.7rem; padding-block:2.5rem 1.8rem; }
 .page-home .hero__title { font-size:clamp(2.1rem,5.5vw,3.8rem); max-width:20ch; }
 .page-home .hero__tag { font-size:.75rem; max-width:100%; }
 .page-home .hero__cta { margin-top:1.5rem; }
 .page-home .hero__media { width:100%; }
}
.ks-delivery-five { grid-template-columns:1fr; gap:0; }
.ks-delivery-five li { display:grid; grid-template-columns:35px 110px 1fr; gap:1rem; padding:1.1rem 0; border-top:1px solid var(--linea); align-items:baseline; }
.ks-delivery-five li span,.ks-delivery-five li p,.ks-delivery-five li h3 { margin:0; }
.ks-delivery-five li span { font-size:.85rem; }
.ks-delivery-five li h3 { font-size:1.15rem; }
.ks-economic-value { margin-block:2rem; padding:1.5rem; background:var(--noche); color:var(--sobre-oscuro-suave); border-radius:var(--radius); }
.ks-economic-value h3 { color:var(--blanco); font-size:1.4rem; margin:.8rem 0; }
.ks-economic-value > div { display:flex; gap:1.2rem; align-items:center; padding-block:1rem; color:var(--menta); }
.ks-economic-note { font-size:.85rem; margin-bottom:0; }
.ks-sustain-grid { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:2rem; margin-top:2rem; }
.ks-sustain { background:var(--noche)!important; color:var(--sobre-oscuro-suave); }
.ks-sustain h2,.ks-sustain h3 { color:var(--blanco); }.ks-sustain .ks-story-intro { color:var(--sobre-oscuro-suave); }
.ks-sustain-grid h3 { font-size:1.3rem; margin-top:0; }
.ks-sustain .btn { white-space:normal; }
.ks-loss-visual { font-size:.85rem; text-align:center; }
/* Filas alineadas aunque cambie la longitud de los títulos. */
.ks-case-card { display:grid; grid-template-rows:subgrid; grid-row:span 7; row-gap:0; }
.ks-case-card-body { display:grid; grid-template-rows:subgrid; grid-row:span 6; row-gap:0; }
.ks-case-card-body .eyebrow { justify-self:start; align-self:start; margin:0 0 .75rem; }
.ks-case-card-body .ks-case-client { margin:0 0 1rem; }
.ks-case-card-body h2 { margin:0 0 1rem; }
.ks-case-card-body > p:not(.eyebrow):not(.ks-case-client) { margin:0 0 .8rem; }
.ks-case-card-body > .btn { align-self:start; justify-self:start; margin:0; }
.ks-case-key { margin:1rem 0 2rem; }
.ks-case-jump { display:flex; flex-wrap:wrap; gap:1rem 2rem; margin-bottom:2.5rem; padding-bottom:1.5rem; border-bottom:1px solid var(--linea); }
.ks-case-jump a { color:var(--pino); font-weight:500; text-underline-offset:5px; }
.ks-case-story-work li { background:var(--niebla); border:1px solid var(--linea); border-radius:var(--radius); padding:1.4rem; margin-bottom:1rem; grid-template-columns:44px 1fr; }
.ks-case-story-work li > span { display:grid; place-content:center; align-self:start; width:38px; height:38px; border-radius:50%; background:var(--pino); color:white; padding:0; }
.ks-case-facts { border-top:4px solid var(--pino); }
.ks-case-story-work,.ks-case-facts { scroll-margin-top:110px; }
/* Cronología vertical que admite nuevos hitos. */
.ks-timeline { display:block; max-width:1000px; margin:4rem auto 0; }
.ks-timeline li { position:relative; display:grid; grid-template-columns:170px 1fr; gap:.6rem 3rem; border:0; padding:0 0 2.5rem; }
.ks-timeline li::before { content:''; position:absolute; top:8px; bottom:-8px; left:194px; width:1px; background:var(--linea); }
.ks-timeline li::after { content:''; position:absolute; top:8px; left:189px; width:11px; height:11px; border-radius:50%; background:var(--pino); box-shadow:0 0 0 6px var(--menta-palido); }
.ks-timeline li:last-child::before { bottom:40%; background:linear-gradient(var(--linea),transparent); }
.ks-timeline time { grid-column:1; grid-row:1/3; text-align:right; padding-top:.15rem; }
.ks-timeline h3 { grid-column:2; margin:0; }.ks-timeline p { grid-column:2; margin:0; max-width:60ch; }
.ks-purpose-overview { grid-template-columns:1.25fr 1fr; gap:1.5rem; }
.ks-purpose-overview section:first-child { background:var(--menta-palido); }
.ks-purpose-overview section:first-child :is(h3,p,strong) { color:var(--noche); }
.ks-purpose-lead { display:block; font-size:clamp(1.15rem,1.7vw,1.6rem); line-height:1.4; }
.ks-purpose-detail { display:block; margin-top:1.4rem; font-size:1rem; line-height:1.65; opacity:.86; }
.ks-purpose-overview h3 { font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; }
/* La portada editorial se muestra completa: conserva título y marca. */
.page-article .article__image { aspect-ratio:16/9; height:auto; object-fit:contain; background:var(--niebla); max-height:none; }
/* Ejemplo interactivo del comportamiento conjunto. */
.ks-correlation { border:1px solid var(--linea); border-radius:var(--radius-lg); background:var(--blanco); overflow:hidden; }
.ks-correlation-tabs { display:flex; gap:.6rem; padding:1rem; background:var(--niebla); }
.ks-correlation-tabs button { font:inherit; border:1px solid var(--linea); background:white; color:var(--pino); border-radius:var(--radius-pill); padding:.8rem 1.2rem; cursor:pointer; }
.ks-correlation-tabs button[aria-selected=true] { background:var(--pino); color:white; }
.ks-correlation-tabs button:focus-visible { outline:3px solid var(--verde); outline-offset:3px; }
.ks-correlation-panel { display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:2rem; padding:2rem; min-height:390px; }
.ks-correlation-panel[hidden] { display:none; }
.ks-correlation-panel svg { width:100%; height:auto; }
.ks-correlation-copy { max-width:40ch; }
.ks-correlation-copy h3 { font-size:clamp(1.4rem,2.5vw,2rem); line-height:1.25; }
.ks-correlation-copy .ks-signal { display:inline-flex; padding:.4rem .8rem; border-radius:var(--radius-pill); background:var(--menta-palido); color:var(--pino); font-size:.85rem; }
.ks-correlation-copy .ks-signal--alert { background:#fff0dd; color:#81460d; }
@media(max-width:800px) {
 .ks-purpose-overview,.ks-sustain-grid,.ks-correlation-panel { grid-template-columns:1fr; }
 .ks-correlation-panel { gap:.5rem; padding:1.5rem; }
 .ks-correlation-copy { max-width:none; min-height:220px; }
 .ks-timeline li { grid-template-columns:120px 1fr; gap:.6rem 2rem; }.ks-timeline li::before { left:135px; }.ks-timeline li::after { left:130px; }
}
@media(max-width:700px) {
 .ks-delivery-five li { grid-template-columns:28px 1fr; gap:.3rem .6rem; }.ks-delivery-five li span { grid-row:1/3; }.ks-delivery-five li p { grid-column:2; }
 .ks-economic-value > div { flex-direction:column; align-items:start; gap:.6rem; }.ks-economic-value > div > span { transform:rotate(90deg); }
 .ks-case-card { display:flex; }.ks-case-card-body { display:flex; }.ks-case-card-body > .btn { margin-top:auto; }
 .ks-timeline li { padding-left:30px; grid-template-columns:1fr; gap:.7rem; }.ks-timeline time { grid-column:1; grid-row:auto; text-align:left; }.ks-timeline h3,.ks-timeline p { grid-column:1; }.ks-timeline li::before { left:5px; }.ks-timeline li::after { left:0; }
 .ks-correlation-tabs button { padding:.7rem; font-size:.85rem; }.ks-correlation-tabs { justify-content:center; }
}

/* v8: portada ligeramente más recogida y continuidad entre las soluciones. */
@media(min-width:961px) {
 .page-home .hero__inner.container { padding-inline:clamp(48px,7vw,180px); }
}
.ks-benefit-art--monitor .ks-benefit-mark { left:35.7%; top:20%; width:8.5%; }
.ks-benefit-art--monitor .ks-benefit-screen { right:4%; top:6%; width:44%; }
.ks-sustain-followup { display:block; margin-top:1rem; }
.ks-sustain-grid .btn { margin-top:1.2rem; }
.ks-result-value { padding:1.15rem 1.4rem; border-left:3px solid var(--pino); background:var(--niebla); border-radius:0 var(--radius-sm) var(--radius-sm) 0; margin-block:1.8rem; }

/* v11: separar ideas y mantener una jerarquía común en el propósito. */
.ks-correlation-copy h3 { margin:1rem 0 1.25rem; }
.ks-correlation-copy p + p { margin-top:1rem; }
.ks-origin .section-title { margin-bottom:1.5rem; max-width:24ch; }
.ks-origin > div > p + p { margin-top:1.25rem; }
.ks-origin > div > p:not(.eyebrow) { max-width:62ch; line-height:1.7; }
.ks-problem-panel h3 { margin-bottom:1rem; }
.ks-sustain-grid h3 + p,.ks-argos-outcomes h3 + p,.ks-cta-row h2 + p { margin-top:1rem; }
.ks-team-exchange h3 + ul { margin-top:1rem; }
.ks-purpose-overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; }
.ks-purpose-overview section,.ks-purpose-overview section:first-child { background:#0b4540; border:1px solid rgb(var(--menta-rgb) / .2); }
.ks-purpose-overview section h3,.ks-purpose-overview section:first-child h3 { color:var(--menta); margin-bottom:1.5rem; }
.ks-purpose-overview section p,.ks-purpose-overview section:first-child p { color:#e4eeeb; }
.ks-purpose-overview .ks-purpose-lead { font-size:clamp(1.2rem,1.65vw,1.55rem); line-height:1.55; font-weight:400; }
.ks-purpose-overview section strong,.ks-purpose-overview section:first-child strong { color:var(--menta); font-weight:700; }
.ks-purpose-overview .ks-purpose-detail { color:#d5e6e0; opacity:1; margin-top:1.25rem; font-size:1rem; line-height:1.7; }
@media(max-width:800px) {
 .ks-purpose-overview { grid-template-columns:1fr; }
}

/* v10: proporciones de la franja y menú inspirados en kensight.es. */
/* SVG aportados por Alberto: proporción original, sin recortar la ilustración. */
.ks-solutions .post-card__media:has(.ks-solution-illustration) { aspect-ratio:1200/680; }
.ks-solutions .ks-solution-illustration { display:block; width:100%; height:100%; object-fit:contain; }
.ks-process-hero-illustration { display:block; width:100%; height:auto; border-radius:var(--radius-sm); }
.ks-solution-key { display:block; margin-bottom:.5rem; color:var(--blanco); font-weight:600; }
.ks-solutions .post-card .post-card__more { margin-top:auto; }
.page-argos .argos__claim { display:flex; flex-wrap:wrap; gap:.2em .45em; margin-top:1.5rem; font-size:clamp(1.5rem,2.35vw,2.1rem); line-height:1.25; color:var(--blanco); }
.argos__claim > span { white-space:nowrap; }
.argos__claim strong { color:var(--menta); font-weight:700; }
.page-argos .argos__claim + .page-hero__lead { margin-top:1.5rem; }
.ks-correlation-plot { margin:0; min-width:0; }
.ks-correlation-legend { display:grid; align-content:start; gap:.5rem; margin-top:.8rem; min-height:88px; font-size:.875rem; line-height:1.4; color:var(--tinta); }
.ks-correlation-legend > span { display:flex; align-items:center; gap:.7rem; }
.ks-correlation-legend i { display:block; width:28px; flex:0 0 28px; }
.ks-legend-point::before { content:''; display:block; width:8px; height:8px; margin:auto; border-radius:50%; background:#28725b; }
.ks-legend-range { border-top:2px dashed #c83c4a; }
.ks-legend-joint { height:13px; border:2px dashed #c83c4a; border-radius:50%; }
@media(max-width:800px) {
 .ks-correlation-plot svg text { font-size:22px; }
 .ks-correlation-plot svg .ks-current-label { font-size:18px; }
}
.site-nav__list > li > a,.ks-menu summary { color:var(--blanco); font-size:1.125rem; }
.ks-menu details[open] summary { background:transparent; text-decoration:underline; text-underline-offset:5px; }
.ks-menu details[open] summary::after { transform:rotate(225deg) translate(-2px,-1px); }
.ks-menu__links { width:400px; min-width:0; left:-80px; top:calc(100% + 14px); padding:14px; gap:6px; border-radius:20px; background:var(--noche); }
.site-nav__list .ks-menu__links a { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:start; gap:16px; padding:18px 14px; border-radius:12px; color:var(--blanco); line-height:1.35; }
.ks-menu__links strong { display:block; font-size:1.125rem; font-weight:500; }
.ks-menu__description { display:block; margin-top:8px; font-size:1rem; line-height:1.5; color:var(--sobre-oscuro-suave); }
.ks-menu__icon { width:32px; height:32px; object-fit:contain; margin-top:1px; }
.site-nav__list .ks-menu__links a[aria-current] { text-decoration:none; background:rgb(var(--menta-rgb) / .09); }
.site-nav__list .ks-menu__links a[aria-current] strong { text-decoration:underline; text-underline-offset:5px; }
.page-home .hero { --clients-h:104px; }
.page-home .hero-clients__inner.container { min-height:104px; padding:12px 24px; }
.page-home .hero-clients .logo-row { --gap:50px; gap:var(--gap); }
.page-home .hero-clients .is-moving .logo-row { padding-right:var(--gap); }
.page-home .hero-clients .logo { width:var(--brand-w,149px); height:80px; object-fit:contain; }
.page-home .hero-clients .logo--agc { --brand-w:149px; }
.page-home .hero-clients .logo--iff { --brand-w:94px; }
.page-home .hero-clients .logo--importaco { --brand-w:318px; }
.page-home .hero-clients .logo--platos { --brand-w:139px; }
.page-home .hero-clients .logo--martinez { --brand-w:139px; }
.page-home .hero-clients .logo--feedect { --brand-w:312px; }
.page-home .hero-clients .logo--irta { --brand-w:143px; }
.page-home .hero-clients .logo--sgs { --brand-w:313px; }
.page-home .hero-clients .logo--fihgu { --brand-w:72px; }
@media(max-width:960px) {
 .ks-menu__links { position:static; width:100%; padding:8px 0; border:1px solid var(--linea-oscura); border-radius:16px; margin-block:8px; }
 .site-nav__list .ks-menu__links a { border:0; padding:16px 12px; gap:12px; }
 .ks-menu__links strong { font-size:1.0625rem; }
 .ks-menu__description { font-size:.9375rem; }
}
@media(max-width:700px) {
 .page-home .hero-clients__inner.container { min-height:80px; padding:12px 16px; }
 .page-home .hero-clients .logo-row { --gap:32px; }
 .page-home .hero-clients .logo { width:calc(var(--brand-w,149px) * .65); height:52px; }
}
