/* ==========================================================================
   ECOSISTEMA · V30 (creada en V28)
   Misma estética que «La plataforma» (portada, ornamentos, líneas conectoras, mapa de actuaciones).
   Coreografía (html.choreo-eco: escritorio ≥ 1024 × 600, sin movimiento reducido): portada, módulos y «¿Cómo funciona?»
   son escenarios fijos; js/ecosistema.js posiciona y revela según el scroll.
   Sin coreografía: flujo vertical con apariciones suaves (.is-in).
   Paleta y tipografía: tokens de assets/css/base.css (manual de marca). Fondo arena = --crema.
   WordPress: html.choreo-eco ya no se pone nunca (sin escenarios fijos: esta página no tiene mapas); sus reglas
   quedan sin efecto y la página es el flujo vertical con apariciones suaves.
   ========================================================================== */

.page-ecosistema main { background: var(--crema); }
.eco-h2 { margin: 0; font-size: clamp(36px, 4.4vw, 64px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: var(--azul-profundo); }
.eco-h3 { margin: 0 0 clamp(26px, 3vw, 40px); text-align: center; font-size: clamp(24px, 2.4vw, 34px); font-weight: 900; line-height: 1.1; color: var(--azul-profundo); }

/* Iconos de línea (SVG): el trazo se dibuja y el icono da un pequeño salto al aparecer (como en La plataforma) */
.ico { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--azul); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico * { stroke-dasharray: 1 1.05; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
.is-on .ico * { stroke-dashoffset: 0; }
.is-on .ico *:nth-child(2) { transition-delay: .12s; }
.is-on .ico *:nth-child(3) { transition-delay: .24s; }
.is-on .ico *:nth-child(n+4) { transition-delay: .34s; }
@keyframes eco-pop { 0% { transform: scale(.6) rotate(-12deg); } 55% { transform: scale(1.14) rotate(5deg); } 80% { transform: scale(.96) rotate(-2deg); } 100% { transform: none; } }
.is-on > .eco-ico .ico, .is-on > .eco-box-ico .ico { animation: eco-pop .9s var(--ease) both; }

/* ---------- 1 · Portada + ¿Quieres conocer más sobre la plataforma? ---------- */
.eco-intro { position: relative; background: var(--crema); }
.eco-intro-stage { position: relative; overflow: hidden; padding: calc(var(--header-h) + 72px) 0 72px; }
.eco-intro-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .17; pointer-events: none; will-change: opacity, transform; }
html.choreo-eco .eco-intro-bg { -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
html:not(.choreo-eco) .eco-intro-bg { height: 100vh; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.eco-intro-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* WordPress: la portada es estática. En escritorio ocupa la pantalla con el bloque centrado, como el estado final de V45 */
@media (min-width: 1024px) {
  .eco-intro-stage { display: flex; align-items: center; min-height: 100vh; box-sizing: border-box; padding: calc(var(--header-h) + 40px) 0 40px; }
  .eco-intro-stage > .eco-b1 { flex: 1 1 auto; }
}

.eco-hero-copy { position: relative; z-index: 2; text-align: center; padding: 10vh var(--gutter) 14vh; }
.eco-title { margin: 0; font-size: clamp(56px, 9vw, 140px); font-weight: 900; line-height: .95; letter-spacing: -.03em; color: var(--azul-profundo); }
.eco-title .ch { display: inline-block; will-change: transform, opacity, filter; }
/* V29: la pregunta va en una sola línea; al bajar, cada mitad viaja a su línea del título del bloque (dos líneas) */
.eco-sub { display: block; margin: 24px 0 0; font-size: clamp(20px, 2vw, 28px); font-weight: 900; line-height: 1.05; color: var(--azul); white-space: nowrap; }
.eco-sub-l { display: inline-block; transform-origin: 0 0; will-change: transform; }

.eco-b1 { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.eco-b1-title { margin: 0; font-size: clamp(34px, 3.8vw, 56px); font-weight: 900; line-height: 1.05; letter-spacing: -.015em; color: var(--azul-profundo); white-space: nowrap; }
.eco-b1-l { display: inline-block; }
/* Flecha que lleva a la actuación 01 (V29: título y flecha en azul claro, la flecha después del título).
   V30: texto más grande; el círculo de la flecha es una capa (::before) que, al pasar el cursor, se alarga hacia la izquierda
   hasta englobar el texto, se rellena de azul claro y el texto pasa a blanco */
.eco-b1-link { --arrow: 68px; position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 30px; margin-top: clamp(26px, 3vw, 40px); text-decoration: none; color: var(--azul-claro); transition: color .35s var(--ease); }
/* V34: el texto «01 La plataforma del destino» se queda siempre alineado a la izquierda con la pregunta (también con el
   cursor encima); el círculo crecido solo asoma 12 px por la izquierda para no cortar el texto */
.eco-b1-link::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: var(--arrow); border: 2px solid var(--azul-claro); border-radius: 999px; transition: width .55s var(--ease), background-color .35s var(--ease); }
.eco-b1-arrow { display: grid; place-items: center; width: var(--arrow); height: var(--arrow); border-radius: 50%; }
.eco-b1-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.eco-b1-label { font-size: clamp(20px, 1.8vw, 26px); font-weight: 900; }
.eco-b1-num { margin-right: .35em; letter-spacing: .08em; }
@keyframes eco-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(7px); } }
.eco-b1-link:hover, .eco-b1-link:focus-visible { color: #fff; }
.eco-b1-link:hover::before, .eco-b1-link:focus-visible::before { width: calc(100% + 12px); background: var(--azul-claro); }
.eco-b1-link:hover svg, .eco-b1-link:focus-visible svg { animation: eco-nudge .9s var(--ease) infinite; }
.eco-b1-link:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 6px; border-radius: 999px; }
.eco-b1-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px; box-shadow: 0 24px 48px -26px rgba(20, 40, 90, .55); }
.eco-b1-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.eco-b1-media:hover img { transform: scale(1.04); }

html.choreo-eco .eco-intro { height: 320vh; }
html.choreo-eco .eco-intro-stage { position: sticky; top: 0; height: 100vh; padding: 0; }
html.choreo-eco .eco-hero-copy { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + (100vh - var(--header-h)) / 2); padding: 0 var(--gutter); transform: translateY(-50%); }
html.choreo-eco .eco-b1 { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 40px); bottom: 24px; align-content: center; }
html.choreo-eco .eco-b1-title { visibility: hidden; } /* el título real lo «ocupa» la pregunta que viaja; se muestra al llegar */
html.choreo-eco .eco-b1-title.is-landed { visibility: visible; }

/* ---------- Líneas conectoras entre bloques ---------- */
.eco-connector { position: relative; height: clamp(150px, 24vh, 260px); pointer-events: none; }
.eco-connector svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }

/* ---------- 2 · Módulos de la PID ---------- */
.eco-mod { position: relative; }
.eco-mod-inner { padding-top: clamp(24px, 4vw, 60px); padding-bottom: clamp(24px, 4vw, 60px); }
.eco-mod-text { margin: 22px 0 0; max-width: 56ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: #33415f; }
.eco-mod-slots, .eco-mod-show, .eco-mod-skip { display: none; }
/* «Saltar recorrido» (V29): a la derecha, alineado con el título; lleva directamente a las dos filas */
html.choreo-eco .eco-mod-skip {
  position: absolute; z-index: 3; right: var(--gutter); top: var(--skip-top, 120px); transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 4px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--azul-profundo);
  transition: opacity .35s var(--ease), color .3s var(--ease);
}
.eco-mod-skip > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid currentColor; }
.eco-mod-skip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes eco-drop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.eco-mod-skip:hover, .eco-mod-skip:focus-visible { color: var(--azul-claro); }
.eco-mod-skip:hover svg, .eco-mod-skip:focus-visible svg { animation: eco-drop .9s var(--ease) infinite; }
.eco-mod-skip:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 4px; border-radius: 999px; }
html.choreo-eco .eco-mod-skip.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.eco-mod-grid { list-style: none; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px 20px; }
.gcard { display: flex; flex-direction: column; gap: 12px; }
.gcard-img { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: rgba(43, 80, 158, .08); box-shadow: 0 14px 30px -20px rgba(20, 40, 90, .55); }
.gcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* WordPress: módulo sin foto (las provisionales no se publican): su código ocupa el hueco de la imagen */
.gcard-img--code { display: grid; place-items: center; background: linear-gradient(160deg, rgba(79, 161, 209, .16), rgba(43, 80, 158, .1)); font-size: clamp(34px, 3.4vw, 52px); font-weight: 900; letter-spacing: -.02em; color: var(--azul-claro); }
/* WordPress: en escritorio, los diez módulos en dos filas de cinco (el estado final del recorrido de V45) */
@media (min-width: 1024px) { .eco-mod-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gcard-label, .eco-mod-slots li, .mcard-label { font-weight: 900; line-height: 1.25; color: var(--azul-profundo); }
.gcard-label { font-size: 15px; transform-origin: 0 0; }
.gcard-label b, .eco-mod-slots b, .mcard-label b { margin-right: .3em; color: var(--azul-claro); }

/* Indicador de módulos (V30: cuántos hay y por cuál vas). V32: más pequeño, sin recuadros, debajo de «Saltar recorrido»
   y alineado a la derecha con él */
.eco-mod-nav { display: none; }
html.choreo-eco .eco-mod-nav {
  position: absolute; z-index: 3; right: var(--gutter); top: var(--nav-top, 180px);
  display: flex; align-items: baseline; gap: 12px; transition: opacity .35s var(--ease);
}
html.choreo-eco .eco-mod-nav.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.eco-mod-count { flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: rgba(31, 60, 122, .6); font-variant-numeric: tabular-nums; }
.eco-mod-count b { font-size: 15px; font-weight: 900; color: var(--azul-profundo); }
.eco-mod-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.eco-mod-dots button {
  display: block; padding: 4px 5px; border: 0; border-radius: 4px; background: transparent; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 900; letter-spacing: .02em; color: var(--azul-profundo); opacity: .4;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.eco-mod-dots button:hover, .eco-mod-dots button:focus-visible, .eco-mod-dots button.is-active { opacity: 1; }
.eco-mod-dots button.is-done { opacity: .65; }
.eco-mod-dots button.is-active { color: var(--azul-claro); }
.eco-mod-dots button:focus-visible { outline: 2px solid var(--mostaza); outline-offset: 1px; }

html.choreo-eco .eco-mod { height: 1150vh; }
html.choreo-eco .eco-mod-title, html.choreo-eco .eco-mod-text { opacity: 0; will-change: opacity, transform; } /* aparecen con el scroll (V29) */
html.choreo-eco .eco-mod-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
html.choreo-eco .eco-mod-inner { position: relative; height: 100%; padding-top: calc(var(--header-h) + 34px); padding-bottom: 30px; }
html.choreo-eco .eco-mod-copy { width: 46%; }
/* Los nombres, ya pequeños, se colocan bajo el título en dos columnas */
html.choreo-eco .eco-mod-slots { list-style: none; display: grid; grid-template-columns: max-content max-content; gap: 10px 26px; margin: 26px 0 0; padding: 0; }
html.choreo-eco .eco-mod-slots li { font-size: 15px; white-space: nowrap; opacity: 0; }
/* Escenario de la derecha: cada módulo entra desde abajo con su imagen */
html.choreo-eco .eco-mod-show { display: block; position: absolute; top: calc(var(--header-h) + 34px); bottom: 30px; left: 50%; right: var(--gutter); }
.mcard { position: absolute; inset: 64px 0 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; opacity: 0; will-change: transform, opacity; }
.mcard-img { display: block; overflow: hidden; width: min(100%, calc((100vh - var(--header-h) - 270px) * 1.6)); aspect-ratio: 16 / 10; border-radius: 18px; box-shadow: 0 24px 48px -26px rgba(20, 40, 90, .55); will-change: opacity, transform; }
.mcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mcard-label { font-size: clamp(24px, 2.2vw, 32px); white-space: nowrap; transform-origin: 0 0; will-change: transform; }
/* Estado final: los diez en dos filas con su imagen */
html.choreo-eco .eco-mod-grid { position: absolute; left: var(--gutter); right: var(--gutter); top: var(--grid-top, 200px); margin: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 20px; pointer-events: none; transform-origin: 50% 0; will-change: transform; }
/* V30: «¿Qué objetivos logramos?» aparece bajo el título cuando las dos filas bajan para dejarle sitio */
.eco-mod-goals { padding: clamp(50px, 7vw, 100px) 0 0; }
html.choreo-eco .eco-mod-goals { position: absolute; left: var(--gutter); right: var(--gutter); top: var(--grid-top, 200px); padding: 0; pointer-events: none; }
html.choreo-eco .eco-mod-goals .eco-h3 { margin-bottom: 22px; text-align: left; opacity: 0; will-change: opacity, transform; }
html.choreo-eco .eco-mod-goals.is-done { pointer-events: auto; }
/* V34: «¿Qué objetivos logramos?», sus textos e iconos, en azul claro */
.eco-mod-goals .eco-h3, .eco-mod-goals .eco-item { color: var(--azul-claro); }
.eco-mod-goals .ico { stroke: var(--azul-claro); }
.eco-mod-goals .eco-item + .eco-item { border-left-color: rgba(79, 161, 209, .35); }
html.choreo-eco .eco-mod-grid.is-done { pointer-events: auto; }
.eco-mod-grid:focus { outline: none; } /* recibe el foco tras «Saltar recorrido» */
html.choreo-eco .gcard-img { clip-path: inset(0 0 100% 0); opacity: 0; will-change: clip-path, opacity; }
html.choreo-eco .gcard-label { opacity: 0; will-change: transform; }

/* ---------- 3 y 5 · Fila de objetivos / Inteligencia (texto + icono, separados por líneas finas) ---------- */
.eco-goals { position: relative; padding: clamp(60px, 8vw, 120px) 0 clamp(20px, 3vw, 40px); }
.eco-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.eco-row--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.eco-item { display: flex; align-items: center; gap: 14px; padding: 6px clamp(12px, 1.4vw, 22px); font-size: clamp(14px, 1.05vw, 16px); font-weight: 700; line-height: 1.3; color: var(--azul-profundo); }
.eco-item + .eco-item { border-left: 1.5px solid rgba(43, 80, 158, .22); }
.eco-ico { flex: 0 0 auto; display: block; width: 42px; height: 42px; }
/* V29: en «¿Qué objetivos logramos?» cada icono y su texto aparecen con el scroll (js: --k de 0 a 1) */
html.choreo-eco .eco-row--scroll .eco-item { opacity: var(--k, 0); transform: translateY(calc((1 - var(--k, 0)) * 34px)); }
html.choreo-eco .eco-row--scroll .eco-ico { transform: scale(calc(.6 + .4 * var(--k, 0))) rotate(calc((1 - var(--k, 0)) * -12deg)); }
html.choreo-eco .eco-row--scroll .ico * { transition: none; stroke-dashoffset: calc(1 - var(--k, 0)); }
.eco-intel { padding-top: clamp(40px, 5vw, 80px); }
.eco-intel .eco-h3 { font-size: clamp(16px, 1.4vw, 20px); letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }
.eco-note { margin: clamp(26px, 3vw, 40px) auto 0; max-width: 90ch; text-align: center; font-size: 13px; line-height: 1.55; color: rgba(31, 60, 122, .5); }

/* ---------- 4 · ¿Cómo funciona? ---------- */
.eco-how { position: relative; }
.eco-how-title { padding: clamp(20px, 3vw, 40px) var(--gutter) 0; text-align: center; }
.eco-how-head { text-align: center; }
/* En dos líneas («El corazón del proyecto:» / resto) desde V29; V30: menos separada del título que en V29 */
.eco-kicker { margin: clamp(18px, 1.8vw, 26px) auto 0; max-width: 72ch; font-size: clamp(14px, 1.2vw, 18px); font-weight: 900; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-claro); }
.eco-how-text { margin: 18px auto 0; max-width: 62ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: #33415f; }
.eco-how-stage { padding: clamp(40px, 5vw, 70px) 0; }
.eco-diagram { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(26px, 4.4vh, 52px) clamp(16px, 2vw, 30px); align-items: center; }
.eco-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.eco-boxes { display: contents; list-style: none; }
.eco-core { position: relative; z-index: 1; grid-column: 3 / 5; grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: clamp(20px, 2.4vw, 32px) 18px; border-radius: 20px; background: linear-gradient(160deg, #2B509E, #1F3C7A); color: #fff; text-align: center; box-shadow: 0 24px 48px -24px rgba(20, 40, 90, .7); }
.eco-core-icon { width: 46px; height: 46px; }
.eco-core-icon svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.eco-core-title { margin: 0; font-size: clamp(20px, 1.9vw, 28px); font-weight: 900; line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; }
/* Cajas sin fondo, con un borde fino de su color (unido a su línea) */
.eco-box { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px 15px; border: 1.5px solid var(--c); border-radius: 16px; background: transparent; }
.eco-box[data-pos="1"] { grid-column: 1 / 3; grid-row: 1; }
.eco-box[data-pos="2"] { grid-column: 3 / 5; grid-row: 1; }
.eco-box[data-pos="3"] { grid-column: 5 / 7; grid-row: 1; }
.eco-box[data-pos="4"] { grid-column: 1 / 3; grid-row: 2; }
.eco-box[data-pos="pid"] { grid-column: 5 / 7; grid-row: 2; }
.eco-box[data-pos="5"] { grid-column: 2 / 4; grid-row: 3; }
.eco-box[data-pos="6"] { grid-column: 4 / 6; grid-row: 3; }
.eco-box-ico { flex: 0 0 auto; display: block; width: 40px; height: 40px; }
.eco-box h3 { margin: 2px 0 6px; font-size: clamp(12.5px, .95vw, 14px); font-weight: 900; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; color: var(--azul-profundo); }
.eco-box ul { list-style: none; margin: 0; padding: 0; }
.eco-box li { position: relative; padding-left: 14px; font-size: clamp(13px, .95vw, 14.5px); line-height: 1.45; color: #33415f; }
.eco-box li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.eco-box p { margin: 0; font-size: clamp(13px, .95vw, 14.5px); line-height: 1.45; color: #33415f; }
.eco-box--pid { align-items: center; border-style: solid; }
.eco-pid-logo { flex: 0 0 auto; width: clamp(96px, 8vw, 124px); height: auto; }
.eco-box--pid h3 { color: #C4245E; }

html.choreo-eco .eco-how-track { height: 340vh; }
/* V29: el título «¿Cómo funciona?» baja con la animación (fijo bajo la cabecera hasta el final del diagrama) */
html.choreo-eco .eco-how-title { position: sticky; top: var(--header-h); z-index: 3; padding-top: 44px; padding-bottom: 14px; background: var(--crema); } /* V32: algo más bajo (antes 18 px) */
/* V32: «Inteligencia, rendimiento e innovación» más arriba: js/ecosistema.js resta el hueco que deja el diagrama bajo él (--intel-pull) */
html.choreo-eco .eco-intel { padding-top: 0; margin-top: calc(var(--intel-pull, 0px) * -1); }
html.choreo-eco .eco-how-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + var(--how-title-h, 100px) + 12px) 0 20px; }
html.choreo-eco .eco-how-stage > .wrap { width: 100%; }
html.choreo-eco .eco-core, html.choreo-eco .eco-box { opacity: 0; will-change: opacity, transform; }

/* ---------- 6 · Alcance de las actuaciones (igual que en La plataforma) ---------- */
.eco-manta { position: relative; padding: clamp(10px, 2vw, 30px) 0; }
.eco-manta-title { margin: 0 0 clamp(24px, 3vw, 40px); text-align: center; font-size: clamp(32px, 3.8vw, 56px); }
.eco-manta-map {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  min-height: clamp(360px, 44vw, 620px);
  background: url("../../../images/manta-mapa.jpg") center / cover no-repeat;
  border: 1px solid rgba(43, 80, 158, .2); box-shadow: var(--sombra);
  clip-path: inset(var(--clip, 0%) round 2px);
}
.eco-manta-map::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(255, 255, 255, .72); pointer-events: none; }
.eco-manta-map::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; box-shadow: inset 0 18px 28px -28px rgba(31, 60, 122, .5), inset 0 -18px 28px -28px rgba(31, 60, 122, .5); }
.eco-manta-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 32px; border-radius: 999px; background: transparent; color: var(--azul-profundo); text-decoration: none;
  border: 2px solid var(--azul-profundo);
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 900; letter-spacing: .01em;
  opacity: var(--btn-o, 1); transform: scale(var(--btn-s, 1));
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.eco-manta-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; display: block; }
.eco-manta-btn:hover, .eco-manta-btn:focus-visible { background: var(--azul-profundo); color: #fff; box-shadow: 0 20px 40px -18px rgba(20, 40, 90, .7); }
.eco-manta-btn:hover svg, .eco-manta-btn:focus-visible svg { animation: eco-nudge .9s var(--ease) infinite; }
.eco-manta-btn:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 4px; }

/* ---------- 7 · Descargar dossier (mismo lenguaje que las fichas de actuación) ---------- */
.eco-dossier { position: relative; margin-top: clamp(60px, 8vw, 120px); background: #fff; padding: 120px 0 130px; overflow: hidden; }
.eco-dossier .wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: center; }
.btn-download {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 32px;
  padding: 10px 10px 10px 28px; border-radius: 999px;
  background: var(--azul); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 16px 30px -18px rgba(20, 40, 90, .7);
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-download-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--azul); transition: transform .35s var(--ease); }
.btn-download-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-download:hover, .btn-download:focus-visible { background: var(--azul-profundo); transform: translateY(-2px); }
.btn-download:hover .btn-download-icon { transform: translateY(3px); }
.desk { position: relative; height: 480px; perspective: 1700px; }
.doc {
  position: absolute; left: 50%; top: 50%; width: min(620px, 92%); aspect-ratio: 1.414 / 1; display: block;
  transform-style: preserve-3d; text-decoration: none;
  transform: translate(-50%, -50%) rotateX(var(--rx, 16deg)) rotateY(var(--ry, -6deg)) rotateZ(var(--rz, -4deg));
  transition: transform .3s linear;
}
.doc-sheet { position: absolute; inset: 0; background: #fff; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 30px 60px -24px rgba(20, 40, 90, .45); }
.doc-sheet--back2 { transform: translate3d(18px, 16px, -2px) rotate(2deg); background: #f1f2f0; }
.doc-sheet--back1 { transform: translate3d(9px, 8px, -1px) rotate(1deg); background: #f8f8f6; }
.doc-cover { display: flex; flex-direction: row; overflow: hidden; }
.doc-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.28) 48%, rgba(255,255,255,0) 60%), linear-gradient(90deg, rgba(0,0,0,0) 49.6%, rgba(0,0,0,.08) 50%, rgba(0,0,0,0) 51%); }
.doc-photo { flex: 0 0 56%; overflow: hidden; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-foot { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 6% 7%; }
.doc-kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--azul-claro); }
.doc-name { font-size: clamp(15px, 1.5vw, 22px); font-weight: 900; line-height: 1.1; color: var(--azul); }
.doc:hover { --rx: 10deg; --rz: -2deg; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 150; transform: translate(-50%, 20px);
  max-width: min(520px, calc(100% - 32px)); padding: 14px 20px; border-radius: 14px;
  background: var(--azul-profundo); color: #fff; font-weight: 700; font-size: 15px; box-shadow: var(--sombra);
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Apariciones suaves ---------- */
html.js .eco-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js .eco-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .eco-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .eco-row--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eco-item:nth-child(3n + 1) { border-left: 0; }
}
@media (max-width: 1023px) {
  .eco-b1 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .eco-b1-title { white-space: normal; }
  .eco-b1-title br { display: none; }
  .eco-diagram { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .eco-core, .eco-box[data-pos] { grid-column: 1; grid-row: auto; }
  .eco-core { order: -1; }
  .eco-links { display: none; }
  .eco-dossier .wrap { grid-template-columns: 1fr; }
  .desk { height: 360px; }
  .doc { width: 92%; }
}
@media (max-width: 760px) {
  .eco-sub { white-space: normal; }
  .eco-row, .eco-row--5 { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .eco-item + .eco-item { border-left: 0; border-top: 1.5px solid rgba(43, 80, 158, .18); padding-top: 14px; }
  .eco-mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .gcard-label { font-size: 14px; }
  .eco-manta-btn { padding: 16px 24px; }
  .eco-b1-link { --arrow: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-on > .eco-ico .ico, .is-on > .eco-box-ico .ico, .eco-manta-btn:hover svg, .eco-manta-btn:focus-visible svg, .eco-b1-link:hover svg { animation: none; }
  .ico * { stroke-dashoffset: 0; transition: none; }
  html.js .eco-reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Dípticos por segmento (16/11/2026, a petición del owner)
   Banda azul profundo entre «Inteligencia, rendimiento e innovación» y «Alcance». Cada tarjeta: panel del color del
   segmento con la portada del díptico ligeramente girada (se endereza y sube al pasar el cursor), nombre, lema, texto
   y botón de descarga. ≥ 1100 px: cinco columnas; por debajo, carrusel horizontal con ajuste por tarjeta.
   ===================================================================== */
.eco-seg { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 128px) 0; background: var(--azul-profundo); color: #fff; }
.eco-seg::before { content: ""; position: absolute; right: -12%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(79, 161, 209, .22), rgba(79, 161, 209, 0)); pointer-events: none; }
.eco-seg .wrap { position: relative; }
.eco-seg-head { max-width: 760px; margin-bottom: clamp(36px, 4.4vw, 60px); }
.eco-seg-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: .01em; color: rgba(255, 255, 255, .78); }
.eco-seg-kicker::before { content: ""; flex: 0 0 auto; width: 32px; height: 3px; border-radius: 2px; background: var(--mostaza); }
.eco-seg-title { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 60px); font-weight: 750; line-height: 1.04; letter-spacing: -.025em; color: #fff; }
.eco-seg-text { margin: 18px 0 0; max-width: 56ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .82); }

.eco-seg-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.eco-seg-item { display: flex; min-width: 0; }
.eco-seg-card {
  display: flex; flex-direction: column; flex: 1 1 auto; overflow: hidden; border-radius: 22px; background: #fff;
  color: var(--azul-profundo); text-decoration: none; box-shadow: 0 24px 48px -28px rgba(5, 15, 40, .8);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.eco-seg-cover { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 14% 0 0; background: var(--c); overflow: hidden; }
.eco-seg-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%); pointer-events: none; }
.eco-seg-cover img {
  display: block; width: 66%; height: auto; border-radius: 6px; transform: translateY(8%) rotate(-5deg);
  box-shadow: 0 18px 30px -12px rgba(10, 25, 60, .55); transition: transform .55s var(--ease);
}
.eco-seg-badge {
  position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 10px 4px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  font-size: 12px; font-weight: 900; letter-spacing: .08em; color: var(--azul-profundo);
}
.eco-seg-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 8px; padding: 20px 20px 22px; border-top: 4px solid var(--c); }
.eco-seg-name { font-family: var(--font-display); font-size: clamp(19px, 1.45vw, 22px); font-weight: 750; line-height: 1.15; letter-spacing: -.01em; }
.eco-seg-lema { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--azul); }
.eco-seg-desc { margin-bottom: 10px; font-size: 14px; line-height: 1.5; color: var(--texto-suave); }
.eco-seg-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 10px 10px 10px 16px;
  border: 1.5px solid var(--azul); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--azul);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.eco-seg-cta-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--azul); color: #fff; }
.eco-seg-cta-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.eco-seg-card:hover, .eco-seg-card:focus-visible { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(5, 15, 40, .9); }
.eco-seg-card:hover .eco-seg-cover img, .eco-seg-card:focus-visible .eco-seg-cover img { transform: translateY(2%) rotate(0deg) scale(1.04); }
.eco-seg-card:hover .eco-seg-cta, .eco-seg-card:focus-visible .eco-seg-cta { background: var(--azul); color: #fff; }
.eco-seg-card:hover .eco-seg-cta-icon, .eco-seg-card:focus-visible .eco-seg-cta-icon { background: #fff; color: var(--azul); }
.eco-seg-card:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 4px; }

/* Por debajo de 1100 px: carrusel horizontal (la tarjeta siguiente asoma) */
@media (max-width: 1099px) {
  .eco-seg-list {
    display: flex; gap: 16px; margin: 0 calc(-1 * var(--gutter, 24px)); padding: 6px var(--gutter, 24px) 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter, 24px); -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent;
  }
  .eco-seg-item { flex: 0 0 clamp(250px, 40vw, 300px); scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .eco-seg-item { flex-basis: 78vw; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-seg-card, .eco-seg-cover img, .eco-seg-cta { transition: none; }
  .eco-seg-card:hover, .eco-seg-card:focus-visible { transform: none; }
}
/* 16/11/2026 · «Alcance de las actuaciones» más contenido: banda de mapa más baja y botón compacto relleno */
.eco-manta-map { min-height: clamp(220px, 26vw, 340px); border-radius: 24px; }
.eco-manta-btn {
  gap: 10px; padding: 12px 20px 12px 22px; border: 0; background: var(--azul-profundo); color: #fff;
  font-size: 16px; font-weight: 800; box-shadow: 0 16px 34px -18px rgba(20, 40, 90, .8);
}
.eco-manta-btn svg { width: 18px; height: 18px; }
.eco-manta-btn:hover, .eco-manta-btn:focus-visible { background: var(--azul); color: #fff; }
@media (max-width: 760px) { .eco-manta-btn { padding: 11px 18px; font-size: 15px; } }
/* 16/11/2026: el texto del botón de descarga va siempre en una línea */
.btn-download { white-space: nowrap; max-width: 100%; font-size: clamp(12px, 1vw, 14px); letter-spacing: .06em; }
@media (max-width: 420px) { .btn-download { font-size: 12px; letter-spacing: .03em; padding-left: 20px; gap: 10px; } }

/* ---------- 17/11/2026 · Toque de diseño, en línea con la Home (solo aspecto; los PDF sin tocar) ----------
   «¿Qué objetivos logramos?» e «Inteligencia, rendimiento e innovación»: cada punto en una tarjeta blanca de esquinas
   redondeadas y sombra suave, en lugar de separadores verticales. */
.eco-row { gap: 14px; }
.eco-row .eco-item, .eco-row .eco-item + .eco-item {
  padding: 16px clamp(14px, 1.3vw, 20px); border: 0; border-radius: 16px; background: #fff;
  box-shadow: 0 14px 30px -22px rgba(20, 40, 90, .5), 0 0 0 1px var(--azul-linea);
}
@media (max-width: 1023px) { .eco-row { row-gap: 14px; } }
@media (max-width: 600px) { .eco-row .eco-item, .eco-row .eco-item + .eco-item { padding: 14px 16px; } }
/* CTA de documento (19/11/2026): el botón de cada díptico nombra su segmento; texto más largo en dos líneas, sin
   aplastar el icono */
.eco-seg-cta { font-size: 13px; line-height: 1.3; border-radius: 26px; }
.eco-seg-cta-icon { flex: 0 0 28px; }
