/* ───────── Ecoprojects · styles ───────── */

/* Tipografías alojadas en el sitio (subconjunto latino, OFL) */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-italic-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/assets/fonts/inter-tight-normal-300-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/jetbrains-mono-normal-400-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --bg-2: #ffffff;
  --bg-3: #ecece7;
  --ink: #12151c;
  --soft: #41474f;
  --mute: #686e78;
  --line: rgba(18, 21, 28, .14);
  --green: #487a0d;
  --lime: #9bd13c;
  --on-accent: #0f1406;
  --green-line: rgba(72, 122, 13, .38);
  --pad: clamp(20px, 4vw, 64px);
  --wrap: 1480px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green); letter-spacing: -.01em; }
::selection { background: var(--lime); color: var(--on-accent); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
[id] { scroll-margin-top: 100px; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--lime); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 500; transition: top .3s; }
.skip:focus { top: 12px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cursor & progreso ── */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor span { display: block; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.cursor.is-hover span { transform: scale(4.5); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); z-index: 80; }

/* ── Navegación ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background .4s, backdrop-filter .4s, transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(247, 247, 244, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -.02em; font-size: 18px; }
.brand__gear { color: var(--green); transition: transform 1.2s var(--ease); }
.brand:hover .brand__gear { transform: rotate(180deg); }
.nav__links { display: flex; gap: 30px; font-size: 14px; color: var(--mute); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto;
  padding: 104px var(--pad) 48px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s; visibility: hidden;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease); }
.menu__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; }
.menu__group { display: flex; flex-direction: column; gap: 6px; }
.menu__group p { margin-bottom: 8px; }
.menu__group a { font-size: clamp(20px, 5vw, 28px); letter-spacing: -.02em; line-height: 1.25; }
.menu__group a:hover { color: var(--green); }
.menu__mail { display: inline-block; margin-top: 14px; color: var(--green); font-size: 13px; }
.menu__eco { margin-top: 40px; }
.menu__eco a:hover { color: var(--green); }

/* ── Botones y enlaces ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 100px; border: 1px solid var(--lime);
  background: var(--lime); color: var(--on-accent); font-weight: 500; font-size: 15px;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform .4s var(--ease); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--xl { padding: 26px 44px; font-size: clamp(18px, 2.4vw, 30px); letter-spacing: -.02em; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--lime); border-color: var(--lime); color: var(--on-accent); }
.link { font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s, color .3s; }
.link:hover { border-color: var(--green); }
.inline-link { color: var(--green); border-bottom: 1px solid var(--green-line); transition: border-color .3s; }
.inline-link:hover { border-color: var(--green); }
.more { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--green); white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Revelados (solo con JS) ── */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Hero de inicio ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) 48px; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__grid, .page-hero::before {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(transparent, var(--bg)); z-index: -1; pointer-events: none; }
.hero__meta { position: absolute; top: 96px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; box-shadow: 0 0 0 0 rgba(155, 209, 60, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(155, 209, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 209, 60, 0); } }
.hero__title { font-size: clamp(56px, 12.2vw, 210px); line-height: .9; font-weight: 400; letter-spacing: -.055em; margin-bottom: clamp(28px, 4vw, 56px); }
.hero__kicker { display: block; font-size: 12px; letter-spacing: .12em; line-height: 1.4; margin-bottom: clamp(14px, 2vw, 26px); }
.hero__title em { letter-spacing: -.03em; padding-right: .06em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; transition: transform 1.3s var(--ease); }
.js .line > span { transform: translateY(110%); }
.is-ready .line > span { transform: none; }
.is-ready .line:nth-child(3) > span { transition-delay: .09s; }
.is-ready .line:nth-child(4) > span { transition-delay: .18s; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; transition: opacity 1s .5s, transform 1s var(--ease) .5s; }
.js .hero__foot { opacity: 0; transform: translateY(20px); }
.is-ready .hero__foot { opacity: 1; transform: none; }
.hero__lead { max-width: 520px; font-size: clamp(16px, 1.35vw, 20px); color: var(--soft); }
.hero__cta { display: flex; align-items: center; gap: 28px; }
.hero__scroll { position: absolute; right: var(--pad); top: 50%; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.hero__scroll span { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--green); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ── Elementos ── */
.elements { border-block: 1px solid var(--line); overflow: hidden; padding: 28px 0; }
.elements__track { display: flex; gap: 16px; width: max-content; animation: marquee 38s linear infinite; }
.elements:hover .elements__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.el { width: 132px; height: 132px; flex: none; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; transition: background .4s, color .4s, border-color .4s; }
.el small { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.el b { font-size: 44px; font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.el span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.el:hover { background: var(--lime); border-color: var(--lime); color: var(--on-accent); }
.el:hover small, .el:hover span { color: var(--on-accent); }

/* ── Secciones de inicio ── */
.section { padding: clamp(90px, 12vw, 190px) var(--pad); position: relative; }
.section__head { margin-bottom: clamp(48px, 6vw, 96px); max-width: 1100px; }
.section__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(32px, 4vw, 56px); }
.tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.tag::before { content: ""; width: 24px; height: 1px; background: var(--green); flex: none; }
h2 { font-size: clamp(36px, 5.6vw, 92px); line-height: 1; font-weight: 400; letter-spacing: -.045em; }
h2 em { letter-spacing: -.02em; }
.section__sub { margin-top: 28px; color: var(--mute); max-width: 460px; }

.manifesto__text { font-size: clamp(26px, 3.7vw, 60px); line-height: 1.12; letter-spacing: -.035em; max-width: 1400px; }
.manifesto__text .w { opacity: .17; transition: opacity .35s; }
.manifesto__text .w.on { opacity: 1; }
.wide { margin-top: clamp(64px, 9vw, 140px); position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 21 / 9; }
.wide img { width: 100%; height: 125%; object-fit: cover; will-change: transform; filter: saturate(.95) contrast(1.02); }
.wide figcaption { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.6); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: clamp(28px, 3.4vw, 56px) var(--pad); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(52px, 6.4vw, 108px); font-weight: 400; letter-spacing: -.05em; line-height: 1; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.stat sup { font-size: .4em; color: var(--green); vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.stat p { color: var(--mute); font-size: 15px; max-width: 280px; }

.eco { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 110px); align-items: center; padding: clamp(90px, 12vw, 190px) var(--pad); border-bottom: 1px solid var(--line); }
.eco__media { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; }
.eco__media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.eco__media::after { content: "ecobaterias.org"; color: #fff; position: absolute; left: 16px; bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 100px; background: rgba(18,21,28,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.eco h2 { font-size: clamp(56px, 8vw, 132px); margin-bottom: 32px; }
.eco__lead { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; letter-spacing: -.01em; margin-bottom: 18px; }
.eco__body > p:not(.eco__lead) { color: var(--mute); max-width: 580px; }
.eco__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 44px 0; border-top: 1px solid var(--line); padding-top: 28px; }
.eco__stats b { display: block; font-size: clamp(32px, 3.4vw, 54px); font-weight: 400; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; color: var(--green); font-variant-numeric: tabular-nums; }
.eco__quote { border-left: 2px solid var(--green); padding: 4px 0 4px 22px; margin-bottom: 40px; }
.eco__quote p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; margin-bottom: 10px; }
.eco__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.context__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { grid-column: span 2; border: 1px solid var(--line); border-radius: 18px; padding: 28px; min-height: 300px; display: flex; flex-direction: column; background: var(--bg-2); position: relative; overflow: hidden; transition: border-color .4s, transform .6s var(--ease), opacity 1s var(--ease); }
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card::before { content: ""; position: absolute; width: 380px; height: 380px; left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(155, 209, 60, .24), transparent 65%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--green-line); }
.card__n { margin-bottom: auto; color: var(--green); }
.card h3 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 400; letter-spacing: -.03em; margin: 48px 0 12px; }
.card p { color: var(--mute); font-size: 15.5px; }
.card__more { margin-top: 18px; color: var(--green); }
.card--accent { background: var(--lime); border-color: var(--lime); color: var(--on-accent); }
.card--accent p, .card--accent .card__n, .card--accent .card__more { color: rgba(15, 20, 6, .72); }

.process { background: var(--bg-2); border-block: 1px solid var(--line); }
.flow { position: relative; display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: clamp(40px, 9vw, 160px); align-items: center; }
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow__lines path { fill: none; stroke: rgba(18, 21, 28, .16); stroke-width: 1; transition: stroke .4s, stroke-width .4s, opacity .4s; }
.flow__lines path.on { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 5 7; animation: dash 1s linear infinite; }
.flow.has-active .flow__lines path:not(.on) { opacity: .25; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.flow__col { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.flow__label { margin-bottom: 8px; }
.node { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .4s, background .4s, opacity .4s, transform .5s var(--ease), color .4s; }
.node--in { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.node--in b { font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.node--in span { color: var(--mute); font-size: 14px; }
.node--in:hover, .node--in.on { border-color: var(--green); transform: translateX(6px); }
.node--proc { padding: 22px; display: flex; align-items: center; gap: 14px; border-radius: 100px; }
.node--proc svg { width: 30px; height: 30px; color: var(--mute); flex: none; transition: color .4s; }
.node--proc b { font-weight: 500; letter-spacing: -.01em; }
.node--proc.on { border-color: var(--green); }
.node--proc.on svg { color: var(--green); animation: spin 3s linear infinite; }
.node--out { padding: 11px 16px; font-size: 15px; display: flex; align-items: center; gap: 14px; }
.node--out i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--green); min-width: 52px; }
.node--out.on { background: var(--lime); border-color: var(--lime); color: var(--on-accent); }
.node--out.on i { color: var(--on-accent); }
.flow.has-active .node:not(.on) { opacity: .35; }

.tech__wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.tech__item { border-top: 1px solid var(--line); padding: 26px 0; cursor: pointer; }
.tech__item:last-child { border-bottom: 1px solid var(--line); }
.tech__row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; }
.tech__item h3 { font-size: clamp(24px, 3vw, 46px); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; color: var(--mute); transition: color .4s, transform .6s var(--ease); }
.tech__item.is-active h3, .tech__item:hover h3 { color: var(--ink); }
.tech__item.is-active h3 { transform: translateX(10px); }
.tech__item p { color: var(--mute); max-width: 600px; padding-left: 52px; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .7s var(--ease), opacity .5s, margin .5s; }
.tech__item.is-active p { max-height: 260px; opacity: 1; margin-top: 16px; }
.no-js .tech__item p { max-height: none; opacity: 1; margin-top: 16px; }
.trl { display: flex; align-items: center; gap: 12px; }
.trl i { width: clamp(60px, 8vw, 110px); height: 3px; background: var(--line); border-radius: 3px; position: relative; overflow: hidden; }
.trl i::after { content: ""; position: absolute; inset: 0; background: var(--green); transform-origin: 0 50%; transform: scaleX(var(--v, 0)); transition: transform 1.4s var(--ease) .2s; }
.trl em { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--ink); min-width: 46px; }
.tech__media { position: sticky; top: 110px; }
.tech__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--bg-3); }
.tech__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease), transform 1.4s var(--ease); filter: saturate(.95); }
.tech__frame img.is-out { opacity: 0; transform: scale(1.08); }

.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.case__media { position: relative; aspect-ratio: 1 / 1.05; }
.case__img { position: absolute; border-radius: 18px; overflow: hidden; }
.case__img img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.case__img--a { inset: 0 22% 14% 0; }
.case__img--b { inset: 46% 0 0 52%; border: 6px solid var(--bg); }
.case__body h2 { font-size: clamp(34px, 4.4vw, 72px); margin-bottom: 32px; }
.case__body p { color: var(--soft); margin-bottom: 18px; max-width: 540px; }
.case__body p em { color: inherit; }
.case__facts { margin-top: 40px; border-top: 1px solid var(--line); }
.case__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.case__facts dd { color: var(--ink); text-align: right; }

.method { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 32px 28px 8px 28px; border-right: 1px solid var(--line); position: relative; }
.step:first-child { padding-left: 0; } .step:last-child { border-right: 0; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.step.is-in::before { transform: scaleX(1); }
.step__n { font-family: var(--serif); font-style: italic; font-size: 56px; color: var(--green); line-height: 1; display: block; margin-bottom: 56px; }
.step h3 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; }
.step p { color: var(--mute); font-size: 15.5px; }

.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person { border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 3vw, 48px); transition: border-color .4s, opacity 1s var(--ease), transform 1.1s var(--ease); }
.person:hover { border-color: var(--green-line); }
.person__avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--on-accent); background: var(--lime); margin-bottom: 40px; }
.person h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 8px; }
.person h3 a:hover { color: var(--green); }
.person p { color: var(--mute); margin-top: 24px; max-width: 520px; }
.partners { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 16px 40px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.partner h3 { font-weight: 500; font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.partner p { color: var(--mute); font-size: 15px; }

.resources__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.resource { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 64px; min-height: 280px; display: flex; flex-direction: column; gap: 10px; transition: border-color .4s, background .4s, transform .6s var(--ease), opacity 1s var(--ease); }
.resource:hover { border-color: var(--green-line); background: rgba(155,209,60,.13); }
.resource .mono { color: var(--green); }
.resource h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; margin-top: auto; }
.resource p { color: var(--mute); font-size: 15px; }
.resource__arrow { position: absolute; right: 24px; bottom: 22px; color: var(--green); font-size: 22px; transition: transform .4s var(--ease); }
.resource:hover .resource__arrow { transform: translateX(6px); }
.faq-home .faq { max-width: 980px; }

.cta { position: relative; padding: clamp(110px, 15vw, 240px) var(--pad); text-align: center; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: grayscale(.25); }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(247,247,244,.5), var(--bg) 78%), linear-gradient(var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.cta__title { font-size: clamp(44px, 8vw, 140px); margin-bottom: 32px; }
.cta p { color: var(--soft); max-width: 520px; margin-bottom: 48px; }
.cta__link { margin-top: 26px; }
.cta--page { padding-block: clamp(90px, 11vw, 170px); border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(155,209,60,.2), transparent 70%); }
.cta--page .cta__title { font-size: clamp(40px, 6.4vw, 110px); }

/* ── Páginas internas ── */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 132px var(--pad) clamp(56px, 7vw, 110px); }
.page-hero::before { content: ""; }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(155,209,60,.22), transparent 62%); pointer-events: none; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 100px); align-items: end; max-width: var(--wrap); margin-inline: auto; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: clamp(32px, 5vw, 64px); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(18,21,28,.32); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--green); }
.crumbs [aria-current] { color: var(--ink); }
.page-hero__title { font-size: clamp(42px, 5.8vw, 98px); line-height: .96; letter-spacing: -.05em; font-weight: 400; margin-bottom: clamp(20px, 2.4vw, 32px); text-wrap: balance; }
.page-hero__title em { letter-spacing: -.02em; padding-right: .04em; }
.page-hero__lead { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; color: var(--soft); max-width: 640px; letter-spacing: -.01em; }
.page-hero__meta { margin-top: clamp(24px, 3vw, 40px); }
.page-hero__media { position: relative; aspect-ratio: 4 / 5; max-height: min(74vh, 700px); width: 100%; border-radius: 18px; overflow: hidden; background: var(--bg-3); }
.page-hero__media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; filter: saturate(.97); }

.page-body { max-width: var(--wrap); margin-inline: auto; padding: clamp(24px, 4vw, 56px) var(--pad) clamp(80px, 10vw, 140px); }
.page-body--toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.toc { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow: auto; border-top: 1px solid var(--line); padding-top: 18px; scrollbar-width: none; }
.toc p { margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); color: var(--mute); font-size: 14px; line-height: 1.35; transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-color: var(--green); }

.prose { max-width: 800px; min-width: 0; }
.prose--wide { max-width: 1180px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.05; letter-spacing: -.04em; margin-top: clamp(64px, 7vw, 104px); }
.prose h2 + * { margin-top: .9em; }
.prose h3 { font-size: clamp(20px, 1.7vw, 25px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; margin-top: 1.9em; }
.prose p, .prose li { color: var(--soft); font-size: 17.5px; line-height: 1.7; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose em { font-size: 1.08em; }
.prose p.mono, .prose .mono { font-size: 11px; line-height: 1.5; color: var(--mute); }
.prose a:not([class]) { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(72,122,13,.5); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.prose a:not([class]):hover { color: var(--green); text-decoration-color: var(--green); }
.prose ul { padding: 0; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li + li { margin-top: .5em; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 11px; height: 1px; background: var(--green); }
.prose ol:not([class]) { counter-reset: n; padding: 0; }
.prose ol:not([class]) > li { counter-increment: n; position: relative; padding-left: 42px; }
.prose ol:not([class]) > li + li { margin-top: .75em; }
.prose ol:not([class]) > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .3em; font-family: var(--mono); font-size: 12px; color: var(--green); }
.prose .role { margin-top: .5em; color: var(--green); }

.answer { border: 1px solid rgba(155,209,60,.6); background: linear-gradient(135deg, rgba(155,209,60,.2), rgba(155,209,60,0) 65%); border-radius: 18px; padding: clamp(22px, 2.6vw, 34px); }
.prose p.answer__label { color: var(--green); margin-bottom: 10px; }
.answer p + p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink); letter-spacing: -.01em; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.prose .facts { margin-top: 32px; }
.facts > div { padding: 16px 24px 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.facts dd { color: var(--ink); font-size: 16px; line-height: 1.45; }
.facts .trl i { width: 110px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose .table-wrap { margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.prose table.t-2 { min-width: 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); line-height: 1.45; }
.prose thead th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: rgba(18,21,28,.04); }
.prose tbody th { font-weight: 500; color: var(--ink); }
.prose td { color: var(--soft); }
.prose tr:last-child > * { border-bottom: 0; }
.prose tbody tr { transition: background .3s; }
.prose tbody tr:hover { background: rgba(18,21,28,.03); }

.steps-list { border-top: 1px solid var(--line); }
.prose .steps-list { margin-top: 1.6em; }
.steps-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.prose .steps-list li { padding-left: 0; margin: 0; }
.prose .steps-list li::before { content: none; }
.steps-list__n { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--green); line-height: 1; }
.prose .steps-list h3 { margin: 0 0 6px; font-size: 20px; }
.prose .steps-list p { font-size: 16px; line-height: 1.6; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prose .kpis { margin-top: 1.6em; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.kpi b { display: block; font-size: clamp(34px, 3.4vw, 50px); font-weight: 400; letter-spacing: -.04em; line-height: 1; color: var(--green); margin-bottom: 10px; }
.kpi span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); line-height: 1.5; }

.pull { border-left: 2px solid var(--green); padding: 6px 0 6px 24px; }
.prose .pull { margin-block: 2em; }
.prose .pull p { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
.pull cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

.note { display: flex; gap: 14px; align-items: baseline; border: 1px dashed rgba(18,21,28,.24); border-radius: 12px; padding: 16px 18px; }
.note__label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); white-space: nowrap; }
.prose .note p { font-size: 15px; line-height: 1.6; }

.prose .figure { margin-block: 2em; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.figure figcaption { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prose .services { margin-top: 1.6em; }
.service { border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 24px; transition: border-color .4s, background .4s; }
.service:hover { border-color: var(--green-line); background: rgba(155,209,60,.12); }
.prose .service h3 { margin: 0 0 8px; font-size: 20px; }
.prose .service p { font-size: 15.5px; line-height: 1.6; }

.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding-top: 5px; }
.spec dd { color: var(--soft); font-size: 16px; line-height: 1.55; }
.formula { display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: var(--green); vertical-align: middle; border: 1px solid var(--green-line); border-radius: 100px; padding: 4px 12px; margin-left: 10px; white-space: nowrap; transform: translateY(-.2em); }

.link-list li a { color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.prose .cards { margin-top: 1.6em; }
.prose--wide .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose--wide .cards--2, .prose--wide .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-link { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2); color: var(--ink); transition: border-color .4s, transform .6s var(--ease); }
.card-link:hover { border-color: var(--green-line); transform: translateY(-4px); }
.card-link__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-link__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); filter: saturate(.95); }
.card-link:hover .card-link__media img { transform: scale(1.06); }
.chip { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 100px; background: rgba(18,21,28,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--lime); }
.card-link__body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 26px; }
.card-link__body h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin: 0; color: var(--ink); }
.prose .card-link__body h3 { margin: 0; }
.card-link__body p, .prose .card-link__body p { font-size: 15px; line-height: 1.5; color: var(--mute); padding-right: 28px; }
.card-link__arrow { position: absolute; right: 20px; bottom: 22px; color: var(--green); transition: transform .4s var(--ease); }
.card-link:hover .card-link__arrow { transform: translateX(5px); }

.faq { border-top: 1px solid var(--line); }
.prose .faq { margin-top: 1.4em; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); transition: color .3s; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--green); transition: transform .4s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__item summary:hover { color: var(--green); }
.faq__a { padding: 0 48px 24px 0; }
.faq__a p { color: var(--soft); font-size: 16.5px; line-height: 1.65; }
.prose .faq__links { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; margin-top: 18px; }

.prose .sources { margin-top: clamp(56px, 6vw, 88px); }
.prose .sources h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-top: 0; }
.prose .sources h2 + ol { margin-top: 14px; }
.prose .sources li { font-size: 14.5px; line-height: 1.55; }

.related { max-width: var(--wrap); margin-inline: auto; padding: clamp(64px, 8vw, 120px) var(--pad); border-top: 1px solid var(--line); }
.related__head h2 { font-size: clamp(30px, 3.6vw, 56px); }
.related .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }

.az { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 72px; z-index: 5; padding: 12px 0; background: linear-gradient(var(--bg) 75%, transparent); }
.prose .az a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink); text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.prose .az a:hover { background: var(--lime); color: var(--on-accent); border-color: var(--lime); }
.glossary__group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 44px; }
.prose .glossary__group h2 { margin: 0; font-family: var(--serif); font-style: italic; color: var(--green); font-size: clamp(48px, 5vw, 80px); line-height: .9; scroll-margin-top: 140px; }
.term { padding-bottom: 26px; scroll-margin-top: 140px; }
.term + .term { border-top: 1px solid var(--line); padding-top: 22px; }
.prose .term dt a { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.term dd p { margin-top: 8px; }
.term:target dt a { color: var(--green); }

.notfound { min-height: 86vh; padding: 150px var(--pad) 100px; max-width: 1180px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0; }
.notfound__links a { display: inline-block; border: 1px solid var(--line); border-radius: 100px; padding: 10px 18px; transition: border-color .3s, color .3s; }
.notfound__links a:hover { border-color: var(--green); color: var(--green); }


/* ── Citas y fuentes ── */
.cite { font-size: .68em; line-height: 0; vertical-align: super; margin-left: 1px; white-space: nowrap; }
.cite a, .prose .cite a { font-family: var(--mono); color: var(--green); text-decoration: none; padding: 0 1px; }
.cite a:hover { text-decoration: underline; }
.prose a[data-auto] { text-decoration-style: dotted; }
.prose .sources__list { counter-reset: none; }
.sources__list { display: grid; gap: 14px; list-style: decimal; padding-left: 28px; }
.prose .sources__list > li { padding-left: 4px; font-size: 14.5px; line-height: 1.5; }
.prose .sources__list > li::before { content: none; }
.sources__list > li::marker { font-family: var(--mono); font-size: 12px; color: var(--green); }
.sources__list > li:target { background: rgba(155,209,60,.18); border-radius: 8px; box-shadow: 0 0 0 8px rgba(155,209,60,.18); }
.sources__back a { font-family: var(--mono); color: var(--green); margin-right: 6px; text-decoration: none !important; }
.source-title { color: var(--ink); }
.prose .sources .source-title { text-decoration: none; }
.prose .sources .source-title:hover { color: var(--green); }
.sources__meta, .sources__more { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.prose .sources__more a { color: var(--mute); text-decoration-color: var(--line); }
.prose .sources__all { font-family: var(--mono); font-size: 12px; margin-top: 20px; }

.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prose .topic-chips a, .source-card__topics a { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; font-size: 13.5px; color: var(--ink); text-decoration: none; transition: border-color .3s, background .3s; }
.prose .topic-chips a span { font-family: var(--mono); font-size: 11px; color: var(--green); }
.prose .topic-chips a:hover, .prose .source-card__topics a:hover { border-color: var(--green); background: rgba(155,209,60,.14); }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.prose .topics { margin-top: 1.4em; }
.topic { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.prose .topic h3 { margin: 0 0 10px; font-size: 16px; }
.prose .topic li { font-size: 13.5px; line-height: 1.45; }
.prose .topic li + li { margin-top: .4em; }
.source-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .source-cards { margin-top: 1.4em; }
.source-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; transition: border-color .4s; }
.source-card:target { border-color: var(--green); box-shadow: 0 0 0 4px rgba(155,209,60,.22); }
.source-card:hover { border-color: var(--green-line); }
.prose .source-card h3 { margin: 8px 0 8px; font-size: 18px; line-height: 1.3; }
.prose .source-card h3 a { text-decoration: none; }
.prose .source-card > p:not(.mono) { font-size: 14.5px; line-height: 1.55; }
.source-card__meta { margin-top: 12px; border-top: 1px solid var(--line); }
.source-card__meta > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.source-card__meta dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.source-card__meta dd { font-size: 13.5px; line-height: 1.5; color: var(--soft); }
.prose .source-card__rel { margin: 0; padding: 0; list-style: none; }
.prose .source-card__rel li { margin: 0; padding: 0 0 4px; font-size: 13.5px; line-height: 1.45; }
.prose .source-card__rel li::before { content: none; }
.source-card__pub { color: var(--mute); }
.source-card__topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.prose .source-card__topics a { padding: 4px 10px; font-size: 12px; }

/* ── Ecosistema (todas las páginas) ── */
.ecosystem { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 120px) var(--pad); background: linear-gradient(180deg, var(--bg-3), var(--bg)); }
.ecosystem__head { max-width: 980px; margin-bottom: clamp(32px, 4vw, 56px); }
.ecosystem__head h2 { font-size: clamp(32px, 4.6vw, 72px); margin-bottom: 18px; }
.ecosystem__head p { color: var(--soft); max-width: 620px; }
.ecosystem__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eco-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); transition: border-color .4s, transform .6s var(--ease); }
.eco-card:hover { border-color: var(--green-line); transform: translateY(-3px); }
.eco-card h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.03em; }
.eco-card h3 a:hover { color: var(--green); }
.eco-card > p:not(.mono):not(.eco-card__links) { color: var(--mute); font-size: 15px; }
.eco-card--accent { border-color: rgba(155,209,60,.6); background: linear-gradient(160deg, rgba(155,209,60,.18), var(--bg-2) 70%); }
.eco-card__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 12px; font-family: var(--mono); font-size: 12px; }
.eco-card__links a { color: var(--green); }
.eco-card__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Socios ── */
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .partner-grid { margin-top: 1.4em; }
.partner-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: border-color .4s; }
.partner-card:hover { border-color: var(--green-line); }
.prose .partner-card .mono { color: var(--green); }
.prose .partner-card h3 { margin: 8px 0 8px; font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.prose .partner-card p { font-size: 15px; line-height: 1.6; }
.prose .partner-card__links { font-family: var(--mono); font-size: 12px; margin-top: 12px; }

/* ── Video ── */
.video { margin: 0; }
.prose .video { margin-block: 1.8em; }
.video__play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--bg-3); cursor: pointer; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .94; transition: opacity .4s, transform 1s var(--ease); }
.video__play:hover img { opacity: 1; transform: scale(1.03); }
.video__icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--lime); box-shadow: 0 10px 30px rgba(18,21,28,.28); transition: transform .4s var(--ease); }
.video__icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--on-accent); }
.video__play:hover .video__icon { transform: scale(1.08); }
.video__time { position: absolute; right: 12px; bottom: 12px; background: rgba(18,21,28,.8); color: #fff; padding: 5px 9px; border-radius: 6px; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.video figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.video figcaption a { color: var(--soft); }
.video figcaption a:hover { color: var(--green); }

/* ── En los medios (inicio) ── */
.media__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.media__list { display: grid; border-top: 1px solid var(--line); }
.media__list li { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.media__list a { font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.015em; line-height: 1.3; transition: color .3s; }
.media__list a:hover { color: var(--green); }

/* ── Sala de prensa ── */
.press-list { border-top: 1px solid var(--line); }
.prose .press-list { margin-top: 1.4em; }
.press-list li { display: grid; grid-template-columns: 170px 220px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prose .press-list li { padding-left: 0; margin: 0; font-size: 15.5px; }
.prose .press-list li::before { content: none; }
.prose .press-list a { color: var(--ink); text-decoration: none; }
.prose .press-list a:hover { color: var(--green); }
.boiler { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.prose .boiler { margin-top: 1.2em; }
.prose .boiler__text { color: var(--ink); font-size: 16.5px; margin-top: 8px; }
.boiler__copy { margin-top: 14px; border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; color: var(--green); transition: border-color .3s, background .3s; }
.boiler__copy:hover { border-color: var(--green); background: rgba(155,209,60,.14); }

/* ── Pie de página ── */
.footer { border-top: 1px solid var(--line); padding: 72px var(--pad) 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.3fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.footer__brand p { color: var(--mute); font-size: 14.5px; line-height: 1.6; margin-top: 20px; max-width: 400px; }
.footer__mail { display: inline-block; margin-top: 20px; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--green-line); transition: color .3s; }
.footer__mail:hover { color: var(--green); }
.footer__brand .footer__ext { margin-top: 16px; }
.footer__ext a { white-space: nowrap; }
.footer__ext a:hover { color: var(--green); }
.footer__nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.footer__label { margin-bottom: 16px; }
.footer__group ul { display: grid; gap: 9px; }
.footer__group a { color: var(--soft); font-size: 14.5px; line-height: 1.35; transition: color .3s; }
.footer__group a:hover { color: var(--green); }
.footer__word { font-size: 19.5vw; line-height: 1; padding-bottom: .08em; letter-spacing: -.06em; font-weight: 500; margin: 40px 0 0 -.04em; white-space: nowrap; background: linear-gradient(180deg, var(--ink) 6%, rgba(18,21,28,.05) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--green); }

/* ── Responsive ── */
@media (max-width: 1240px) {
  .nav__links, .nav .btn--sm { display: none; }
  .burger { display: block; }
}
@media (max-width: 1100px) {
  .page-body--toc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .resources__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .context__grid { grid-template-columns: 1fr 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 1; min-height: 240px; }
  .card:nth-child(5) { grid-column: span 2; }
  .tech__wrap { grid-template-columns: 1fr; }
  .tech__media { display: none; }
  .case, .eco { grid-template-columns: 1fr; }
  .eco__media { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step:first-child { padding: 28px 20px 28px 0; border-right: 0; }
  .step__n { margin-bottom: 28px; }
  .partners { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 16 / 10; max-height: none; }
  .related .cards, .prose--wide .cards { grid-template-columns: 1fr 1fr; }
  .footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ecosystem__grid { grid-template-columns: 1fr 1fr; }
  .media__grid { grid-template-columns: 1fr; }
  .press-list li { grid-template-columns: 140px minmax(0, 1fr); }
  .press-list__outlet { grid-column: 2; }
  .press-list__title { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero__meta span:last-child { display: none; }
  .flow { grid-template-columns: 1fr; gap: 36px; }
  .flow__lines { display: none; }
  .flow__col--out { display: grid; grid-template-columns: 1fr 1fr; }
  .flow__col--out .flow__label { grid-column: 1 / -1; }
  .node--out { flex-direction: column; align-items: flex-start; gap: 4px; }
  .node--in:hover, .node--in.on { transform: none; }
  .team__grid { grid-template-columns: 1fr; }
  .wide { aspect-ratio: 4 / 3; }
  .tech__row { grid-template-columns: 30px 1fr; }
  .trl { grid-column: 2; }
  .tech__item p { padding-left: 42px; }
  .el { width: 108px; height: 108px; } .el b { font-size: 34px; }
  .page-hero { padding-top: 108px; }
  .prose p, .prose li { font-size: 16.5px; }
  .facts, .services, .kpis { grid-template-columns: 1fr; }
  .facts > div { padding-right: 0; }
  .related .cards, .prose--wide .cards, .prose--wide .cards--2 { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .glossary__group { grid-template-columns: 1fr; gap: 8px; }
  .steps-list li { grid-template-columns: 46px minmax(0, 1fr); }
  .faq__a { padding-right: 0; }
  .resources__grid { grid-template-columns: 1fr; }
  .resource { min-height: 220px; }
  .ecosystem__grid, .partner-grid, .source-cards { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-card__meta > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  .stats, .context__grid, .steps, .eco__stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .card:nth-child(5) { grid-column: span 1; }
  .hero__cta { flex-wrap: wrap; gap: 18px; }
  .btn--xl { padding: 20px 26px; }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
}

/* Diagrama de flujo dentro de artículos */
@media (min-width: 761px) {
  .prose .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-block: 2em; }
  .prose .node--in { padding: 14px 16px; }
  .prose .node--in b { font-size: 15px; }
  .prose .node--proc { padding: 14px 16px; gap: 10px; }
  .prose .node--proc b { font-size: 14px; }
  .prose .node--proc svg { width: 22px; height: 22px; }
  .prose .node--out { padding: 8px 12px; font-size: 13.5px; gap: 8px; }
  .prose .node--out i { min-width: 44px; font-size: 10px; }
}
.prose .node--in span { font-size: 12.5px; line-height: 1.35; color: var(--mute); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .line > span, .js .hero__foot { opacity: 1; transform: none; }
  .manifesto__text .w { opacity: 1; }
}
