/* =========================================================
   CUENCAS VIVAS — El agua que nos une
   Sistema visual v2: editorial, natural, vestido con
   texturas cartográficas (curvas de nivel, retículas,
   reglas, ondas) en 2D minimal.
   ========================================================= */
:root {
  --agua: #4C9C91;
  --profundo: #345D52;
  --arena: #E8DFCF;
  --terra: #B77B61;
  --blanco: #F8F7F2;
  --ink: #1C2925;
  --ink-2: #55625D;
  --ink-mute: #A9AFA9;
  --line: rgba(28, 41, 37, .12);
  --hair: rgba(28, 41, 37, .07);
  --card: #EFEDE5;

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --mono: var(--display); /* las etiquetas usan Jost espaciada, como el texto del logotipo */

  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sec: clamp(72px, 8vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grano de papel muy sutil sobre todo el sitio */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
::selection { background: var(--agua); color: #fff; }
:focus-visible { outline: 2px solid var(--agua); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }
@media (max-width: 699px) { .hide-sm { display: none; } }

/* Gradación de color común para que todas las fotos hablen igual */
main figure:not(.drawing) img, .manifest__media img { filter: saturate(.86) contrast(1.04); }

/* =========================================================
   TEXTURAS 2D
   ========================================================= */
/* Curvas de nivel: se pintan con background-color a través de una máscara */
.topo {
  position: absolute; pointer-events: none; display: block;
  background-color: var(--tc, var(--profundo));
  -webkit-mask: var(--tm) center / cover no-repeat;
  mask: var(--tm) center / cover no-repeat;
  opacity: var(--to, .12);
}
.topo--a { --tm: url(tex/topo-a.svg); }
.topo--b { --tm: url(tex/topo-b.svg); }
.topo--c { --tm: url(tex/topo-c.svg); }

/* Retícula de 4 columnas + marcas de registro en secciones claras */
.section--grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  --gw: min(100vw, var(--max));
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%231C2925' stroke-opacity='.35'/%3E%3C/svg%3E") no-repeat calc((100% - var(--gw)) / 2 + var(--pad) - 5px) 28px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%231C2925' stroke-opacity='.35'/%3E%3C/svg%3E") no-repeat calc((100% + var(--gw)) / 2 - var(--pad) - 6px) 28px,
    linear-gradient(var(--hair), var(--hair)) no-repeat calc((100% - var(--gw)) / 2 + var(--pad) + (var(--gw) - 2 * var(--pad)) * .25) 0 / 1px 100%,
    linear-gradient(var(--hair), var(--hair)) no-repeat calc((100% - var(--gw)) / 2 + var(--pad) + (var(--gw) - 2 * var(--pad)) * .5) 0 / 1px 100%,
    linear-gradient(var(--hair), var(--hair)) no-repeat calc((100% - var(--gw)) / 2 + var(--pad) + (var(--gw) - 2 * var(--pad)) * .75) 0 / 1px 100%;
}
@media (max-width: 699px) { .section--grid::before { display: none; } }

/* Línea de onda que se desplaza */
.wave-line { position: absolute; left: 0; top: 0; width: 100%; height: 40px; translate: 0 -50%; overflow: visible; }
.wave-line path { fill: none; stroke: var(--agua); stroke-width: 1; stroke-opacity: .5; vector-effect: non-scaling-stroke; stroke-dasharray: 3 7; animation: drift 30s linear infinite; }
@keyframes drift { to { stroke-dashoffset: -400; } }

/* Regla lateral de progreso */
.ruler {
  position: fixed; left: 18px; top: 50%; translate: 0 -50%; z-index: 40; height: 36vh;
  display: none; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .6s;
}
.ruler.on { opacity: .9; }
.ruler__track {
  position: relative; width: 9px; height: 100%;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 9px) left / 5px 100% no-repeat,
              linear-gradient(currentColor, currentColor) right / 1px 100% no-repeat;
  opacity: .8;
}
.ruler__track i { position: absolute; right: -1px; top: 0; width: 3px; height: 100%; background: currentColor; transform-origin: top; transform: scaleY(0); }
.ruler__label { position: absolute; left: 0; top: calc(100% + 18px); writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: 10px; margin: 0; }
@media (min-width: 1280px) { .ruler { display: block; } }

/* =========================================================
   TIPOGRAFÍA DE SECCIÓN
   ========================================================= */
.h2 {
  font-weight: 500;
  font-size: clamp(40px, 6vw, 92px);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(44px, 7vw, 116px); max-width: 13ch; }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 clamp(20px, 2.4vw, 32px); color: var(--ink-2);
}
.tag span { padding: 3px 6px 2px; border-radius: 3px; background: var(--ink); color: var(--blanco); }
.tag--terra span { background: var(--terra); }
.tag--light { color: rgba(255,255,255,.8); }
.tag--light span { background: var(--blanco); color: var(--profundo); }

.sec-head { margin-bottom: clamp(36px, 4.5vw, 72px); position: relative; }
.sec-head--split { display: grid; gap: 24px; }
@media (min-width: 960px) { .sec-head--split { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.sec-intro { font-size: clamp(17px, 1.25vw, 20px); color: var(--ink-2); max-width: 42ch; margin: 0; }

.section { padding: var(--sec) 0; position: relative; }

/* Fila "lede": nota mono a la izquierda + manifiesto a la derecha */
.lede { display: grid; gap: 18px; margin-bottom: clamp(48px, 6vw, 96px); }
@media (min-width: 960px) { .lede { grid-template-columns: 1fr 3fr; gap: 0; } }
.lede__note { display: flex; align-items: center; gap: 12px; color: var(--ink-2); margin: .9em 0 0; align-self: start; }
.lede__note i { width: 36px; height: 1px; background: currentColor; }
.lede__p { color: var(--ink-2); max-width: 46ch; margin: clamp(20px, 2.4vw, 36px) 0 0 auto; font-size: clamp(16px, 1.15vw, 19px); }

.statement {
  font-size: clamp(26px, 3.2vw, 50px);
  line-height: 1.12; letter-spacing: -.03em; font-weight: 450;
  margin: 0; text-wrap: pretty;
}
.statement--sm { font-size: clamp(24px, 2.6vw, 40px); }
.statement strong { font-weight: 600; color: var(--agua); }
[data-words] .w { color: var(--ink-mute); transition: color .35s linear; }
[data-words] .w.on { color: inherit; }
.manifest [data-words] .w { color: rgba(255,255,255,.28); }
.manifest [data-words] .w.on { color: #fff; }

/* Titulares que suben por línea */
[data-split] .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
[data-split] .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
[data-split].in .ln > span { transform: none; }
[data-split].in .ln:nth-child(2) > span { transition-delay: .08s; }
[data-split].in .ln:nth-child(3) > span { transition-delay: .16s; }
[data-split].in .ln:nth-child(4) > span { transition-delay: .24s; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Fotos que se descubren como cortina */
.wipe { clip-path: inset(14% 6% 14% 6% round 8px); transition: clip-path 1.5s var(--ease); }
.wipe img { scale: 1.16; transition: scale 1.9s var(--ease); }
.wipe.in { clip-path: inset(0 0 0 0 round 6px); }
.wipe.in img { scale: 1; }

/* =========================================================
   HEADER
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--pad); color: #fff;
  transition: background .5s var(--ease), color .4s, padding .4s var(--ease), transform .5s var(--ease);
}
.nav.is-solid {
  background: rgba(248, 247, 242, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font-weight: 600; font-size: 14px; line-height: 1; letter-spacing: -.01em; }
.nav__links { display: none; gap: 4px; }
.nav__links a { font-size: 14px; padding: 8px 12px; border-radius: 99px; position: relative; transition: background .3s; }
.nav__links a:hover { background: rgba(255,255,255,.14); }
.nav.is-solid .nav__links a:hover { background: rgba(28,41,37,.06); }
.nav__links a.is-current::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.nav__cta { display: none; font-size: 14px; padding: 9px 16px; border-radius: 99px; border: 1px solid currentColor; transition: background .3s, color .3s; }
.nav__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav.is-solid .nav__cta { background: var(--profundo); color: #fff; border-color: var(--profundo); }
.nav.is-solid .nav__cta:hover { background: var(--ink); border-color: var(--ink); }
.nav__toggle { display: flex; align-items: center; gap: 12px; font-size: 14px; z-index: 2; }
.nav__toggle-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-content: center; gap: 5px; }
.nav__toggle-icon i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (min-width: 1100px) { .nav__links, .nav__cta { display: flex; } .nav__toggle { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--profundo); color: #fff; overflow: hidden;
  padding: 110px var(--pad) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__topo { inset: 0; --tc: #fff; --to: .08; }
.menu nav { display: flex; flex-direction: column; position: relative; }
.menu nav a { font-size: clamp(34px, 9vw, 56px); letter-spacing: -.04em; line-height: 1.1; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; align-items: baseline; gap: 16px; }
.menu nav a small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; opacity: .6; }
.menu__foot { opacity: .6; margin: 0; position: relative; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* =========================================================
   01 · PORTADA
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; color: #fff; overflow: hidden; background: #2a3a35; }
.hero__media { position: absolute; inset: -6% 0 -6%; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: heroIn 2.6s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.14); filter: brightness(.5) saturate(.6); } to { transform: scale(1); filter: saturate(.9); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,30,27,.5) 0%, rgba(20,30,27,0) 22%),
    linear-gradient(90deg, rgba(20,30,27,.45) 0%, rgba(20,30,27,0) 55%),
    linear-gradient(0deg, rgba(20,30,27,.82) 0%, rgba(20,30,27,.35) 40%, rgba(20,30,27,0) 66%);
}
.hero__kicker { width: max-content; padding: 6px 12px 6px 10px; border-radius: 99px; background: rgba(20,30,27,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); }
.hero__topo {
  inset: 0; --tc: #fff; --to: .16;
  -webkit-mask: url(tex/topo-a.svg) center / cover no-repeat, linear-gradient(0deg, #000 0%, transparent 62%);
  -webkit-mask-composite: source-in;
  mask: url(tex/topo-a.svg) center / cover no-repeat, linear-gradient(0deg, #000 0%, transparent 62%);
  mask-composite: intersect;
}
.hero__content { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(110px, 16vh, 170px); max-width: 1100px; }
.hero__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; opacity: .9; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--agua); box-shadow: 0 0 0 4px rgba(76,156,145,.3); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(76,156,145,0); } }
.hero__title { font-weight: 500; letter-spacing: -.055em; line-height: .9; margin: 0 0 26px; font-size: clamp(62px, 11vw, 188px); }
.hero__sub { font-size: clamp(16px, 1.35vw, 21px); max-width: 38ch; opacity: .92; margin: 0; }

.hero__bar {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 64px;
  display: flex; align-items: center; gap: clamp(24px, 6vw, 96px);
  border-top: 1px solid rgba(255,255,255,.22); font-size: 10.5px; color: rgba(255,255,255,.8);
}
.hero__scroll { display: flex; align-items: center; gap: 14px; color: #fff; }
.hero__scroll i { position: relative; width: 64px; height: 1px; background: rgba(255,255,255,.35); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.hero__cards { position: absolute; right: var(--pad); bottom: 84px; display: none; gap: 10px; }
.hcard { width: 210px; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); transition: transform .5s var(--ease); }
.hcard:hover { transform: translateY(-4px); }
.hcard img { width: 100%; aspect-ratio: 16/9.5; object-fit: cover; transition: transform 1s var(--ease); }
.hcard:hover img { transform: scale(1.06); }
.hcard span { display: block; padding: 8px 10px; font-size: 10px; }
.hcard b { font-weight: 400; font-size: 8px; margin-right: 4px; color: var(--agua); }
@media (min-width: 900px) { .hero__cards { display: flex; } }

/* Entrada escalonada de la portada */
.hero__kicker, .hero__sub, .hero__cards, .hero__bar { opacity: 0; translate: 0 18px; transition: opacity 1.2s var(--ease), translate 1.2s var(--ease); }
.hero.ready .hero__kicker { opacity: .9; translate: 0; transition-delay: .1s; }
.hero.ready .hero__sub { opacity: .92; translate: 0; transition-delay: .55s; }
.hero.ready .hero__cards { opacity: 1; translate: 0; transition-delay: .8s; }
.hero.ready .hero__bar { opacity: 1; translate: 0; transition-delay: 1s; }

/* =========================================================
   02 · CUENCA
   ========================================================= */
.cuenca { overflow: hidden; }
.cuenca__topo {
  top: -10%; right: -14%; width: 64%; height: 90%; --to: .14;
  -webkit-mask: url(tex/topo-a.svg) center / cover no-repeat, radial-gradient(closest-side, #000 30%, transparent);
  -webkit-mask-composite: source-in;
  mask: url(tex/topo-a.svg) center / cover no-repeat, radial-gradient(closest-side, #000 30%, transparent);
  mask-composite: intersect;
}
.cuenca__grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (min-width: 960px) { .cuenca__grid { grid-template-columns: 1.25fr 1fr; } }

.map { margin: 0; background: #F1EFE7; border-radius: 10px; padding: clamp(14px, 1.8vw, 22px); border: 1px solid var(--line); position: relative; }
.map__head { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 10.5px; margin-bottom: 12px; }
.map__svg { width: 100%; height: auto; display: block; border-radius: 6px; background: #F6F4EC; }
.map__canals path { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.6s var(--ease); }
.map.in .map__canals path { stroke-dashoffset: 0; }
.map.in .map__canals path:nth-child(2) { transition-delay: .2s; }
.map.in .map__canals path:nth-child(3) { transition-delay: .4s; }
.map.in .map__canals path:nth-child(4) { transition-delay: .6s; }
.map.in .map__canals path:nth-child(5) { transition-delay: .8s; }
.map__flow path { animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.map__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 10.5px; color: var(--ink-2); align-items: center; }
.map__legend em { flex-basis: 100%; font-style: normal; text-transform: none; letter-spacing: .02em; opacity: .75; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.lg--water { background: var(--agua); }
.lg--canal { width: 16px; height: 2px; border-radius: 0; background: var(--agua); vertical-align: 3px; }
.lg--town { background: var(--terra); }

.cuenca__text { padding-top: 4px; }
.lead { font-size: clamp(20px, 1.6vw, 25px); line-height: 1.35; letter-spacing: -.015em; margin-bottom: 24px; }
.cuenca__text > p:not(.lead) { color: var(--ink-2); max-width: 46ch; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts span { color: var(--ink-2); }
.facts b { font-weight: 500; text-align: right; }

.strip { display: grid; gap: 14px; margin-top: clamp(56px, 6vw, 96px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .strip { grid-template-columns: 1.4fr .9fr 1.4fr; } }
.strip__item { margin: 0; overflow: hidden; }
.strip__item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; }
@media (min-width: 760px) { .strip__item:nth-child(2) img { aspect-ratio: auto; height: 0; } }
.strip__item { display: flex; flex-direction: column; }
.strip__item img { flex: 1; min-height: 0; }
.strip__item figcaption { padding: 12px 2px 0; color: var(--ink-2); font-size: 10.5px; display: flex; gap: 10px; }
figcaption b { font-weight: 500; color: var(--ink); }

/* =========================================================
   MANIFIESTO
   ========================================================= */
.manifest { position: relative; min-height: 76vh; display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--profundo); }
.manifest__media { position: absolute; inset: -12% 0; will-change: transform; }
.manifest__media img { width: 100%; height: 100%; object-fit: cover; }
.manifest__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,48,42,.6), rgba(28,48,42,.75)); }
.manifest__topo { inset: 0; --tc: #fff; --to: .1; }
.manifest__inner { position: relative; padding-top: 96px; padding-bottom: 96px; }
.manifest__tag { opacity: .7; margin-bottom: 28px; }
.manifest__q { font-size: clamp(34px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; max-width: 17ch; margin: 0; }

/* =========================================================
   03 · NOSOTROS
   ========================================================= */
.mv { display: grid; gap: 12px; }
@media (min-width: 960px) { .mv { grid-template-columns: 1fr 1.05fr 1.35fr; } }
.mv__card {
  position: relative; overflow: hidden; background: var(--card); border-radius: 10px; padding: clamp(26px, 2.6vw, 40px);
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
}
.mv__topo { inset: 0; --to: .1; }
.mv__card--deep { background: var(--profundo); color: #fff; }
.mv__card--deep .mv__topo { --tc: #fff; --to: .08; }
.mv__label { color: var(--agua); margin: 0 0 auto; padding-bottom: 40px; position: relative; }
.mv__card--deep .mv__label { color: var(--arena); }
.mv__text { font-size: clamp(22px, 2vw, 30px); line-height: 1.18; letter-spacing: -.025em; margin: 0; max-width: 24ch; position: relative; }
.mv__text--sm { font-size: clamp(19px, 1.5vw, 23px); max-width: 34ch; }
.mv__small { margin: 20px 0 0; font-size: 14.5px; opacity: .72; max-width: 44ch; position: relative; }
.mv__num { position: absolute; top: clamp(26px, 2.6vw, 40px); right: clamp(26px, 2.6vw, 40px); opacity: .45; }
.mv__img { margin: 0; position: relative; min-height: 300px; }
.mv__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
@media (max-width: 959px) {
  .mv__card { min-height: 0; }
  .mv__label { padding-bottom: 56px; }
  .mv__img { min-height: 0; aspect-ratio: 4/3; }
}
.mv__img figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--blanco); padding: 4px 8px; border-radius: 3px; font-size: 10px; }

/* =========================================================
   04 · LÍNEAS DE ACCIÓN
   ========================================================= */
.lines { padding-bottom: 0; }
.lines .sec-head { margin-bottom: 0; }
.lines__track { position: relative; }
.lines__sticky { display: grid; gap: 28px; padding-top: 40px; padding-bottom: var(--sec); }
.lines__list { list-style: none; margin: 0; padding: 0; order: 1; }
.lines__list button {
  display: flex; align-items: baseline; gap: 14px; text-align: left; width: 100%;
  font-size: clamp(26px, 3.1vw, 50px); line-height: 1.12; letter-spacing: -.04em; font-weight: 500;
  color: var(--ink-mute); padding: 4px 0; transition: color .45s, transform .6s var(--ease);
}
.lines__list button span { font-size: 11px; letter-spacing: .08em; color: var(--ink-mute); transform: translateY(-1.1em); }
.lines__list button[aria-selected="true"] { color: var(--ink); transform: translateX(10px); }
.lines__list button[aria-selected="true"] span { color: var(--agua); }
.lines__list button:hover { color: var(--ink-2); }

.lines__stage { position: relative; aspect-ratio: 4/5; max-height: 70vh; width: 100%; order: 0; margin: 0 auto; }
.lines__ring { position: absolute; left: 50%; top: 50%; height: 112%; width: auto; aspect-ratio: 1; translate: -50% -50%; color: var(--profundo); animation: spin 90s linear infinite; overflow: visible; }
.lines__ring line { stroke-width: .45; }
@keyframes spin { to { transform: rotate(360deg); } }
.lines__big {
  position: absolute; left: -12%; bottom: -6%; z-index: 2; pointer-events: none;
  font-size: clamp(90px, 11vw, 180px); font-weight: 500; letter-spacing: -.06em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--profundo);
}
.lines__img { position: absolute; inset: 0; margin: 0; border-radius: 999px 999px 10px 10px; overflow: hidden; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.lines__img.is-active { opacity: 1; transform: none; }
.lines__img img { width: 100%; height: 100%; object-fit: cover; }

.lines__copy { position: relative; order: 2; min-height: 250px; }
.lines__count { color: var(--ink-2); margin-bottom: 20px; }
.lines__count span { color: var(--ink); }
.lines__desc { position: absolute; inset: 44px 0 auto; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .8s var(--ease); pointer-events: none; }
.lines__desc.is-active { opacity: 1; transform: none; pointer-events: auto; }
.lines__desc h3 { font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin: 0 0 14px; }
.lines__desc p { color: var(--ink-2); max-width: 40ch; }
.lines__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.lines__bar i { display: block; height: 100%; width: 25%; background: var(--agua); transition: transform .6s var(--ease); }

@media (max-width: 959px) {
  .lines__stage { max-width: 420px; }
  .lines__big { left: -4%; }
}
@media (min-width: 960px) {
  .lines__track { height: 250vh; }
  .lines__sticky {
    position: sticky; top: 0; height: 100vh; padding-top: 90px; padding-bottom: 40px;
    grid-template-columns: 1.15fr .9fr 1fr; align-items: center; gap: clamp(24px, 4vw, 72px);
  }
  .lines__list, .lines__stage, .lines__copy { order: 0; }
  .lines__stage { max-height: 62vh; height: 62vh; aspect-ratio: auto; }
  .lines__copy { min-height: 320px; }
}

/* =========================================================
   05 · NUESTRO TRABAJO
   ========================================================= */
.work { padding-bottom: 0; }
.work__label { display: flex; justify-content: space-between; color: var(--ink-2); margin-bottom: 14px; }
.work__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.work__list li {
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 20px; align-items: baseline;
  padding: clamp(16px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding .5s var(--ease);
}
.work__list li::before { content: ""; position: absolute; inset: 0; background: var(--arena); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.work__list span { color: var(--ink-2); }
.work__list p { margin: 0; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.22; letter-spacing: -.022em; max-width: 40ch; }
.work__list em { font-style: normal; color: var(--agua); grid-column: 2; }
@media (min-width: 900px) {
  .work__list li { grid-template-columns: 80px 1fr 160px; }
  .work__list em { grid-column: auto; text-align: right; }
  .work__list li:hover { padding-left: 20px; padding-right: 20px; }
  .work__list li:hover::before { transform: scaleY(1); }
}
.work__float {
  position: fixed; left: 0; top: 0; z-index: 30; margin: 0; width: 260px; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .35s, transform .5s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.work__float.on { opacity: 1; }
.work__float img { width: 100%; height: 100%; object-fit: cover; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(56px, 6vw, 96px); padding: clamp(16px, 1.8vw, 24px) 0; background: var(--blanco); position: relative; }
.marquee__track { display: flex; gap: 36px; width: max-content; animation: marquee 44s linear infinite; align-items: center; }
.marquee__track span { font-size: clamp(26px, 3.6vw, 54px); letter-spacing: -.04em; font-weight: 500; white-space: nowrap; }
/* separador: pequeña gota con onda */
.marquee__track i { width: 22px; height: 22px; flex: none; background: var(--agua); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M4 13c2.7-2.6 5.3-2.6 8 0s5.3 2.6 8 0' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M4 13c2.7-2.6 5.3-2.6 8 0s5.3 2.6 8 0' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   06 · GUARDIANES (galería editorial)
   ========================================================= */
.guardianes { background: var(--arena); overflow: hidden; }
/* borde superior ondulado, como orilla de agua */
.guardianes::before, .sumate::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1px; height: clamp(24px, 3.4vw, 52px); translate: 0 -100%;
  background: currentColor; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C180 6 360 6 540 30S900 58 1080 32 1320 8 1440 22V60Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C180 6 360 6 540 30S900 58 1080 32 1320 8 1440 22V60Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.guardianes { overflow: visible; }
.guardianes::before { color: var(--arena); }
.guardianes__topo { top: 0; right: 0; width: 70%; height: 100%; --tc: var(--terra); --to: .16;
  -webkit-mask: url(tex/topo-c.svg) top right / cover no-repeat, linear-gradient(200deg, #000 10%, transparent 60%);
  -webkit-mask-composite: source-in;
  mask: url(tex/topo-c.svg) top right / cover no-repeat, linear-gradient(200deg, #000 10%, transparent 60%);
  mask-composite: intersect;
}
.guardianes .h2 { color: var(--profundo); }
.guardianes [data-words] .w { color: rgba(52,93,82,.3); }
.guardianes [data-words] .w.on { color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.g { margin: 0; position: relative; }
.g img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.g--a, .g--h { aspect-ratio: 3/4; }
.g--d, .g--f { aspect-ratio: 4/3; }
.g--q { grid-column: 1 / -1; margin: 28px 0; padding: 0; }
.g--q p { font-size: clamp(24px, 2.8vw, 44px); line-height: 1.1; letter-spacing: -.035em; color: var(--profundo); max-width: 22ch; margin: 0; }
.g--q p::before { content: "“"; color: var(--terra); }
.g--q p::after { content: "”"; color: var(--terra); }

/* Dibujos como láminas pegadas con cinta */
.drawing {
  background: #FBFAF6; padding: 9px 9px 0; border-radius: 3px;
  box-shadow: 0 22px 44px -24px rgba(70, 50, 30, .55), 0 1px 0 rgba(0,0,0,.04);
}
.drawing::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px; translate: -50% 0; rotate: -3deg; z-index: 1;
  background: rgba(248, 247, 242, .72); box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.drawing img { aspect-ratio: 4/3; border-radius: 1px; }
.drawing figcaption { padding: 9px 2px 11px; font-size: 10px; color: var(--ink-2); }

@media (max-width: 899px) { .g--q { order: 0; } }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 1.8vw, 28px); }
  .g--a { grid-column: 1 / 6; grid-row: 1 / 3; aspect-ratio: auto; align-self: stretch; }
  .g--a img { position: absolute; inset: 0; }
  .g--b { grid-column: 7 / 12; grid-row: 1; rotate: -2deg; margin-top: 4%; }
  .g--d { grid-column: 6 / 9; grid-row: 2; align-self: end; margin-left: 12%; }
  .g--g { grid-column: 9 / 13; grid-row: 2; rotate: 3deg; align-self: end; margin: 0 6% 4% 8%; }
  .g--q { grid-column: 1 / 8; grid-row: 3; margin: 7% 0 5%; align-self: center; }
  .g--e { grid-column: 8 / 12; grid-row: 3; rotate: 2deg; align-self: center; margin-top: 6%; }
  .g--f { grid-column: 1 / 7; grid-row: 4; }
  .g--h { grid-column: 7 / 10; grid-row: 4; aspect-ratio: 3/4; }
  .g--i { grid-column: 10 / 13; grid-row: 4; rotate: -2deg; align-self: center; }
}

/* =========================================================
   07 · SÚMATE
   ========================================================= */
.sumate { background: var(--profundo); color: #fff; }
.sumate::before { color: var(--profundo); }
.sumate__topo { inset: 0; --tc: #fff; --to: .09; }
.sumate .wrap { position: relative; }
.sumate__grid { display: grid; gap: clamp(40px, 5vw, 88px); }
@media (min-width: 960px) { .sumate__grid { grid-template-columns: 1fr 1fr; } }
.sumate__copy > p { color: rgba(255,255,255,.78); max-width: 46ch; font-size: clamp(16px, 1.15vw, 19px); }
.sumate__ask { color: #fff !important; font-size: clamp(22px, 1.9vw, 29px) !important; letter-spacing: -.02em; line-height: 1.2; margin-top: 32px; }
.ways { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid rgba(255,255,255,.22); }
.ways a { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.22); font-size: clamp(18px, 1.55vw, 23px); letter-spacing: -.02em; transition: padding .4s var(--ease), color .3s; }
.ways a span { opacity: .55; }
.ways a b { margin-left: auto; font-weight: 400; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, color .3s; }
.ways a:hover { padding-left: 10px; color: var(--arena); }
.ways a:hover b { background: var(--arena); color: var(--profundo); border-color: var(--arena); transform: rotate(-45deg); }
.donate { margin: 0; }
.donate a { opacity: .6; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; transition: opacity .3s; }
.donate a:hover { opacity: 1; }

.form { background: var(--blanco); color: var(--ink); border-radius: 12px; padding: clamp(24px, 3vw, 42px); align-self: start; position: relative; }
.form::before { /* esquinas de registro */
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 10px 1px, linear-gradient(var(--ink), var(--ink)) 0 0 / 1px 10px,
    linear-gradient(var(--ink), var(--ink)) 100% 0 / 10px 1px, linear-gradient(var(--ink), var(--ink)) 100% 0 / 1px 10px,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 10px 1px, linear-gradient(var(--ink), var(--ink)) 0 100% / 1px 10px,
    linear-gradient(var(--ink), var(--ink)) 100% 100% / 10px 1px, linear-gradient(var(--ink), var(--ink)) 100% 100% / 1px 10px;
  background-repeat: no-repeat; opacity: .3;
}
.form__title { display: flex; justify-content: space-between; color: var(--agua); margin-bottom: 22px; }
.form__title span + span { color: var(--ink-mute); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(28,41,37,.25); padding: 8px 0 10px; border-radius: 0; transition: border-color .3s; }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C2925' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--agua); }
.field.err input { border-color: var(--terra); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 20px 0 24px; }
.check input { margin-top: 3px; accent-color: var(--profundo); width: 16px; height: 16px; }
.check.err { color: var(--terra); }
.link { text-decoration: underline; text-underline-offset: 3px; }
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--profundo); color: #fff; padding: 15px 26px; border-radius: 99px; font-size: 15px; transition: background .3s, gap .4s var(--ease); }
.btn:hover { background: var(--ink); gap: 18px; }
.form__status { margin: 14px 0 0; font-size: 14px; color: var(--profundo); min-height: 1.4em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(56px, 7vw, 104px) 0 26px; overflow: hidden; position: relative; }
.footer__topo { inset: 0; --tc: var(--agua); --to: .12; }
.footer__top { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; position: relative; }
@media (min-width: 900px) { .footer__top { grid-template-columns: repeat(4, 1fr); } }
.footer__top a, .footer__top span, .footer__top .link { display: block; padding: 3px 0; font-size: 15px; text-decoration: none; }
.footer__top a:hover, .footer__top .link:hover { color: #fff; }
.footer__h { color: var(--agua); margin-bottom: 12px; }
.footer__word { position: relative; font-size: clamp(60px, 15.5vw, 280px); letter-spacing: -.065em; line-height: .8; font-weight: 500; color: var(--blanco); margin: clamp(56px, 8vw, 120px) 0 26px; white-space: nowrap; }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 10.5px; }

/* Aviso de privacidad */
.privacy { border: 0; border-radius: 12px; padding: clamp(28px, 4vw, 48px); max-width: 560px; width: calc(100% - 32px); background: var(--blanco); color: var(--ink); }
.privacy::backdrop { background: rgba(20,30,27,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.privacy h2 { font-weight: 500; letter-spacing: -.03em; font-size: 28px; margin: 6px 0 18px; }
.privacy p { color: var(--ink-2); }
.privacy > .mono { color: var(--agua); }
.privacy__note { opacity: .6; margin-top: 24px; }
.privacy__close { position: absolute; top: 14px; right: 18px; font-size: 28px; line-height: 1; color: var(--ink-2); }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, [data-split] .ln > span, .hero__kicker, .hero__sub, .hero__cards, .hero__bar { opacity: 1; transform: none; translate: 0; }
  .wipe { clip-path: none; } .wipe img { scale: 1; }
  [data-words] .w { color: inherit !important; }
  .map__canals path { stroke-dashoffset: 0; }
}

/* =========================================================
   v3 · DETALLES DE PULIDO
   ========================================================= */

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--profundo); color: var(--blanco);
  display: grid; place-items: center; overflow: hidden;
  transition: clip-path 1.1s cubic-bezier(.76, 0, .24, 1);
  clip-path: inset(0 0 0 0);
}
.intro.out { clip-path: inset(0 0 100% 0); }
.intro.gone { display: none; }
.intro__topo { inset: 0; --tc: #fff; --to: .07; }
.intro__inner { position: relative; width: min(420px, 80vw); text-align: center; }
.intro__mark { width: 44px; height: 44px; margin: 0 auto 22px; opacity: 0; animation: introUp .9s var(--ease) .1s forwards; }
.intro__word { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.04em; font-weight: 500; margin: 0 0 26px; opacity: 0; animation: introUp .9s var(--ease) .25s forwards; }
.intro__line { height: 1px; background: rgba(255,255,255,.2); overflow: hidden; }
.intro__line i { display: block; height: 100%; background: var(--agua); transform-origin: left; transform: scaleX(0); animation: introLine 1.3s cubic-bezier(.65, 0, .35, 1) .3s forwards; }
.intro__meta { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: 10px; opacity: .6; }
@keyframes introUp { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0; } }
@keyframes introLine { to { transform: scaleX(1); } }
html.no-intro .intro { display: none; }

/* ---------- Cursor propio (solo puntero fino) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: #fff; mix-blend-mode: difference;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
    opacity: 0;
  }
  .cursor.on { opacity: 1; }
  .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .cursor.is-label { width: 76px; height: 76px; margin: -38px 0 0 -38px; mix-blend-mode: normal; background: var(--agua); }
  .cursor span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
  .cursor.is-label span { opacity: 1; }
}

/* ---------- Navegación: subrayado que crece ---------- */
.nav__links a:hover { background: none !important; }
.nav__links a::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover::before { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-current::after { bottom: -2px; }

/* ---------- Líneas de acción: la foto sube como nivel de agua ---------- */
.lines__img { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.15s cubic-bezier(.65, 0, .25, 1); z-index: 0; }
.lines__img.is-prev { clip-path: inset(0 0 0 0); z-index: 1; transition: none; }
.lines__img.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.lines__img img { scale: 1.12; transition: scale 1.8s var(--ease); }
.lines__img.is-active img { scale: 1; }
.lines__big { transition: opacity .4s; }
.lines__desc h3 { display: flex; align-items: center; gap: 12px; }
.lines__desc h3::before { content: ""; width: 18px; height: 1px; background: var(--agua); }

/* ---------- Hover de fotos ---------- */
.strip__item img, .mv__img img, .g:not(.drawing) img { transition: scale 1.2s var(--ease), filter .6s; }
.wipe.in:hover img { scale: 1.04; }
.drawing { transition: rotate .6s var(--ease), translate .6s var(--ease), box-shadow .6s; }
@media (hover: hover) {
  .gallery .drawing:hover { rotate: 0deg; box-shadow: 0 34px 60px -26px rgba(70, 50, 30, .6); z-index: 3; }
}

/* ---------- Manifiesto: línea de corriente ---------- */
.manifest__flow { display: block; width: min(560px, 80%); height: 24px; margin-top: 40px; overflow: visible; }
.manifest__flow path { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1; stroke-dasharray: 2 8; animation: drift 18s linear infinite; }

/* ---------- Trabajo: miniaturas en móvil ---------- */
.work__thumb { display: none; }
@media (max-width: 899px), (hover: none) {
  .work__list li { grid-template-columns: 40px 1fr 64px; }
  .work__list em { grid-column: 2; }
  .work__thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; align-self: center; filter: saturate(.86); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Insignias de texto giratorio ---------- */
.badge {
  position: relative; display: grid; place-items: center; width: 124px; height: 124px; flex: none; color: currentColor;
}
.badge > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge__c {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  border: 1px solid currentColor; transition: background .4s, color .4s, scale .5s var(--ease);
}
.badge:hover .badge__c { scale: 1.12; }
.badge--sumate { position: absolute; right: 0; bottom: 4px; color: var(--arena); }
.badge--sumate:hover .badge__c { background: var(--arena); color: var(--profundo); }
@media (max-width: 759px) { .badge--sumate { display: none; } }
.footer__mid { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer__mid .footer__word { margin-bottom: 26px; }
.badge--top { color: var(--agua); margin-bottom: 30px; }
.badge--top:hover .badge__c { background: var(--agua); color: var(--ink); }
@media (max-width: 899px) { .badge--top { display: none; } }
.footer__topo { --to: .18; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .lines__img { clip-path: none; opacity: 0; } .lines__img.is-active { opacity: 1; }
}


/* =========================================================
   v4 · PULIDO
   ========================================================= */

/* Portada que se enmarca al bajar: la foto se recoge como tarjeta */
.hero { background: var(--blanco); --hp: 0; }
.hero__frame {
  position: absolute; inset: 0; overflow: hidden; background: #2a3a35;
  clip-path: inset(0 calc(var(--hp) * 3%) calc(var(--hp) * 7%) round 0 0 calc(var(--hp) * 40px) calc(var(--hp) * 40px));
  will-change: clip-path;
}
.hero.ready .hero__bar { opacity: calc(1 - var(--hp) * 3.5); transition: opacity .3s linear; }
.hero.ready .hero__cards { opacity: calc(1 - var(--hp) * 3); transition: opacity .3s linear; }
.hero__content { translate: 0 calc(var(--hp) * -60px); }

/* Mapa interactivo */
.map__svg [data-tip] { cursor: help; transition: fill-opacity .3s, stroke-width .3s; }
.map__svg path[data-tip]:hover { fill-opacity: 1; }
.map__canals path[data-tip]:hover { stroke-width: 4.5; }
.map__tip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; white-space: nowrap;
  background: var(--ink); color: var(--blanco); padding: 6px 9px 5px; border-radius: 3px; font-size: 10px;
  translate: -50% calc(-100% - 14px); opacity: 0; transition: opacity .2s;
}
.map__tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: var(--ink); translate: -50% 0; rotate: 45deg; }
.map__tip.on { opacity: 1; }

/* Banda de cifras en el manifiesto */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px;
  margin: clamp(48px, 6vw, 88px) 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.24);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { display: flex; flex-direction: column-reverse; gap: 10px; position: relative; }
.stats div + div::before { content: ""; position: absolute; left: -12px; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,.14); }
.stats dd { margin: 0; font-size: clamp(48px, 5.4vw, 88px); line-height: .9; letter-spacing: -.055em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stats dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.stats div { opacity: 0; translate: 0 18px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.stats.in div { opacity: 1; translate: 0; }
.stats.in div:nth-child(2) { transition-delay: .12s; }
.stats.in div:nth-child(3) { transition-delay: .24s; }
.stats.in div:nth-child(4) { transition-delay: .36s; }

/* Etiquetas de sección que se dibujan */
@supports selector(:has(a)) {
  .sec-head .tag span { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease); }
  .sec-head:has([data-split].in) .tag span { clip-path: inset(0 0 0 0); }
  .sec-head .tag::after { content: ""; width: 0; height: 1px; background: currentColor; opacity: .45; transition: width 1.1s var(--ease) .25s; }
  .sec-head:has([data-split].in) .tag::after { width: 44px; }
}

/* Mientras cargan, las fotos muestran un tono arena en lugar de un hueco */
main img { background-color: #E4E0D4; }

@media (prefers-reduced-motion: reduce) {
  .hero__frame { clip-path: none; }
  .stats div { opacity: 1; translate: 0; }
}
@media (max-width: 899px) { .stats div:nth-child(odd)::before { display: none; } }


/* =========================================================
   v5 · LOGOTIPO OFICIAL, SIN PIES DE FOTO, DESCENDENTES
   ========================================================= */
.brand { gap: 0; }
.brand__logo { height: 58px; width: auto; display: block; transition: height .4s var(--ease); }
.brand__logo--color { display: none; }
.nav.is-solid .brand__logo { height: 44px; }
.nav.is-solid .brand__logo--white { display: none; }
.nav.is-solid .brand__logo--color { display: block; }
body.menu-open .nav .brand__logo--white { display: block; }
body.menu-open .nav .brand__logo--color { display: none; }
@media (max-width: 699px) { .brand__logo { height: 48px; } .nav.is-solid .brand__logo { height: 40px; } }

.intro__logo { width: min(220px, 52vw); height: auto; margin: 0 auto 28px; opacity: 0; animation: introUp .9s var(--ease) .1s forwards; }
.footer__logo { position: relative; width: 150px; height: auto; margin-bottom: clamp(40px, 5vw, 64px); }

/* Láminas de dibujo sin texto: margen inferior tipo polaroid */
.drawing { padding-bottom: 28px; }

/* Que las letras con descendente (g, q, p, y) no se corten al animar los titulares */
[data-split] .ln { padding-bottom: .2em; margin-bottom: -.2em; }


/* =========================================================
   v6 · MAPA ILUSTRADO DE PRESAS
   ========================================================= */
@media (min-width: 960px) { .cuenca__grid { grid-template-columns: 1.15fr 1fr; } }
.map__svg { background: #F3F0E7; }
.map__svg text { font-family: var(--mono); letter-spacing: .08em; }
.mp-l { font-size: 17px; fill: var(--ink); font-weight: 500; paint-order: stroke; stroke: #F8F7F2; stroke-width: 5px; stroke-linejoin: round; }
.mp-l--town { font-size: 20px; }
.mp-zona { font-size: 12px; fill: var(--profundo); fill-opacity: .55; letter-spacing: .3em; }
.mp-coords text { font-size: 10px; fill: var(--ink); fill-opacity: .55; paint-order: stroke; stroke: #F3F0E7; stroke-width: 4px; }
.mp-north text, .mp-scale text { font-size: 12px; fill: var(--ink); }
.mp-ribera { transform-box: fill-box; transform-origin: center; scale: 1.14; pointer-events: none; }

.mp-rios path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.8s var(--ease); }
.map.in .mp-rios path { stroke-dashoffset: 0; }
.map.in .mp-rios path:nth-child(2) { transition-delay: .2s; }
.map.in .mp-rios path:nth-child(3) { transition-delay: .35s; }
.map.in .mp-rios path:nth-child(4) { transition-delay: .5s; }
.map.in .mp-rios path:nth-child(5) { transition-delay: .65s; }
.map.in .mp-rios path:nth-child(6) { transition-delay: .8s; }
.map.in .mp-rios path:nth-child(7) { transition-delay: .95s; }
.mp-flow path { animation: flow 2.6s linear infinite; }
.mp-riego { opacity: 0; transition: opacity 1.4s var(--ease) .6s; }
.map.in .mp-riego { opacity: 1; }
.mp-presa path:first-child { transition: fill .3s; }
.mp-presa:hover path:first-child { fill: #4C9C91; }
.mp-riego:hover { stroke: #4C9C91; }
.mp-rios:hover { stroke: #345D52; }

.lg--river { width: 16px; height: 3px; border-radius: 0; background: var(--agua); vertical-align: 3px; }
.lg--main { width: 16px; height: 2px; border-radius: 0; background: var(--ink); vertical-align: 3px; box-shadow: 4px -3px 0 -0.5px var(--ink), 10px 3px 0 -0.5px var(--ink); }
.lg--riego { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed #5E9FB5; vertical-align: 3px; }
.lg--water { background: #6FAFA5; }

@media (prefers-reduced-motion: reduce) { .mp-rios path { stroke-dashoffset: 0; } .mp-riego { opacity: 1; } }
@media (max-width: 699px) { .mp-l { font-size: 30px; stroke-width: 8px; } .mp-l--town { font-size: 32px; } .mp-coords { display: none; } .mp-zona { font-size: 20px; } }


/* =========================================================
   v7 · IDENTIDAD PROPIA
   Tipografía: Jost (geométrica, emparentada con el texto del logotipo)
   para títulos y etiquetas + Hanken Grotesk para lectura.
   El logotipo se usa siempre en sus colores originales.
   ========================================================= */
.mono { font-family: var(--display); font-size: 11px; font-weight: 500; letter-spacing: .18em; }

.h2, .hero__title, .statement, .manifest__q, .stats dd, .lines__list button, .lines__big, .footer__word,
.marquee__track span, .mv__text, .intro__word, .lead, .g--q p, .sumate__ask, .work__list p, .menu nav a,
.lines__desc h3, .privacy h2, .ways a, .sec-intro { font-family: var(--display); }
.hero__title { font-weight: 400; letter-spacing: -.035em; line-height: .94; }
.h2 { font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.statement { font-weight: 400; letter-spacing: -.015em; line-height: 1.16; }
.statement strong { font-weight: 500; }
.manifest__q { font-weight: 400; letter-spacing: -.025em; line-height: 1.06; }
.stats dd { font-weight: 300; letter-spacing: -.03em; }
.lines__list button { font-weight: 400; letter-spacing: -.025em; }
.lines__big { font-weight: 300; letter-spacing: -.04em; }
.footer__word { font-weight: 400; letter-spacing: -.045em; }
.marquee__track span { font-weight: 400; letter-spacing: -.02em; }
.mv__text, .lead, .g--q p, .sumate__ask, .work__list p, .ways a { letter-spacing: -.01em; font-weight: 400; }
.menu nav a { font-weight: 400; letter-spacing: -.025em; }
.intro__word { font-weight: 400; letter-spacing: -.02em; }

/* Etiquetas de sección: número en color + línea, sin cajas */
.tag { gap: 12px; color: var(--ink-2); }
.tag span { background: none !important; color: var(--agua); padding: 0; border-radius: 0; font-weight: 600; letter-spacing: .12em; }
.tag--terra span { color: var(--terra); }
.tag--light { color: rgba(255,255,255,.82); }
.tag--light span { color: var(--arena); }

/* Portada: rótulo simple con línea, sin píldora ni punto pulsante */
.hero__kicker { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 14px; letter-spacing: .22em; }
.hero__rule { display: inline-block; width: 34px; height: 1px; background: currentColor; }
.hero__shade {
  background:
    linear-gradient(90deg, rgba(20,30,27,.45) 0%, rgba(20,30,27,0) 55%),
    linear-gradient(0deg, rgba(20,30,27,.82) 0%, rgba(20,30,27,.35) 40%, rgba(20,30,27,0) 66%);
}

/* Menú: barra clara flotante para que el logotipo siempre vaya a color */
.nav, .nav.is-solid, body.menu-open .nav {
  top: 12px; left: var(--pad); right: var(--pad); width: auto;
  padding: 8px 10px 8px 16px; border-radius: 14px;
  background: rgba(248, 247, 242, .92); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 12px 34px -20px rgba(20, 30, 27, .45), 0 0 0 1px rgba(28, 41, 37, .06);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.brand__logo, .nav.is-solid .brand__logo { height: 46px; }
@media (max-width: 699px) { .brand__logo, .nav.is-solid .brand__logo { height: 40px; } }
.nav__cta, .nav.is-solid .nav__cta { background: var(--profundo); color: #fff; border-color: var(--profundo); }
.nav__cta:hover, .nav.is-solid .nav__cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav__links a { font-family: var(--sans); }
.menu { padding-top: 120px; }

/* Intro clara con el logotipo a color */
.intro { background: var(--blanco); color: var(--ink); }
.intro__topo { --tc: var(--profundo); --to: .08; }
.intro__line { background: var(--line); }
.intro__meta { color: var(--ink-2); opacity: 1; }
.intro__logo { width: min(240px, 56vw); }

/* Footer claro con el logotipo a color */
.footer { background: var(--blanco); color: var(--ink-2); border-top: 1px solid var(--line); }
.footer__topo { --tc: var(--profundo); --to: .07; }
.footer__top a:hover, .footer__top .link:hover { color: var(--ink); }
.footer__h { color: var(--agua); }
.footer__word { color: var(--profundo); }
.footer__bottom { border-top-color: var(--line); }
.footer__logo { width: 170px; }
.badge--top { color: var(--agua); }
.badge--top:hover .badge__c { background: var(--agua); color: #fff; }

/* Tarjetas de la portada: texto simple */
.hcard span { letter-spacing: .16em; }

/* Leyenda del mapa: mismos símbolos que el mapa, dibujados en SVG */
.map__legend { gap: 10px 22px; }
.map__legend span { display: inline-flex; align-items: center; gap: 9px; }
.lg-ico { width: 28px; height: 14px; flex: none; overflow: visible; }

/* =========================================================
   v8 · MENÚ: pestaña clara para el logotipo + enlaces sobre la foto.
   Al bajar, la pestaña se funde en una franja clara a todo lo ancho.
   ========================================================= */
.nav, .nav.is-solid, body.menu-open .nav {
  top: 0; left: 0; right: 0; width: auto;
  padding: 0 var(--pad); border-radius: 0; align-items: center;
  background: transparent; color: #fff; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background .5s var(--ease), color .4s, box-shadow .5s, transform .5s var(--ease);
}
.brand {
  align-self: flex-start; background: var(--blanco);
  padding: 18px 22px 16px; border-radius: 0 0 16px 16px;
  box-shadow: 0 14px 30px -22px rgba(20, 30, 27, .55);
  transition: padding .45s var(--ease), border-radius .45s var(--ease), box-shadow .45s;
}
.brand__logo, .nav.is-solid .brand__logo { height: 52px; }
.nav__links a { color: inherit; }
.nav__cta { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.nav__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }

.nav.is-solid {
  background: rgba(248, 247, 242, .94); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid .brand { padding: 10px 22px 10px 0; box-shadow: none; border-radius: 0; background: transparent; }
.nav.is-solid .brand__logo { height: 40px; }
.nav.is-solid .nav__cta { background: var(--profundo); color: #fff; border-color: var(--profundo); }
.nav.is-solid .nav__cta:hover { background: var(--ink); border-color: var(--ink); }
.nav.is-hidden { transform: translateY(-100%); }

/* Menú móvil abierto: enlaces y botón en claro sobre el verde */
body.menu-open .nav { background: transparent; color: #fff; box-shadow: none; }
body.menu-open .nav .brand { padding: 18px 22px 16px; border-radius: 0 0 16px 16px; background: var(--blanco); }
body.menu-open .nav .brand__logo { height: 52px; }

@media (max-width: 699px) {
  .brand { padding: 12px 16px 12px; border-radius: 0 0 12px 12px; }
  .brand__logo, .nav.is-solid .brand__logo, body.menu-open .nav .brand__logo { height: 40px; }
  .nav.is-solid .brand { padding: 8px 16px 8px 0; }
  .nav.is-solid .brand__logo { height: 34px; }
  body.menu-open .nav .brand { padding: 12px 16px 12px; }
}

/* v9 · Cursor sin efecto negativo (no invierte el logo ni las fotos) */
@media (hover: hover) and (pointer: fine) {
  .cursor { mix-blend-mode: normal; background: var(--agua); box-shadow: 0 0 0 1px rgba(248,247,242,.6); }
  .cursor.is-link { background: transparent; border: 1.5px solid var(--agua); box-shadow: none; }
  .cursor.is-label { background: var(--profundo); border: 0; }
}
.ruler { mix-blend-mode: normal; color: var(--agua); }
