/* =========================================================
   CORPORACIÓN OÍRESERÍO — oireserio.org
   Hoja de estilos principal (mobile-first)
   ========================================================= */

:root {
  /* Paleta del territorio */
  --ink: #13201c;          /* verde profundo casi negro */
  --forest: #1d3a31;       /* verde bosque */
  --moss: #4a6454;         /* musgo */
  --water: #2c6a80;        /* azul agua */
  --water-deep: #173a47;
  --water-light: #8fb9c6;
  --mist: #e3ebe8;
  --stone: #5d635e;        /* gris piedra (texto secundario, AA) */
  --stone-light: #cfcdc5;
  --paper: #f5f3ee;        /* blanco cálido */
  --white: #ffffff;
  --earth: #8a5a36;        /* tierra */
  --clay: #c49a6c;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1280px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--water-light); outline-offset: 3px; border-radius: 2px; }
body.nav-open { overflow: hidden; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: -100px; left: 1rem; z-index: 200; padding: .8rem 1.2rem;
  background: var(--white); color: var(--ink); font-weight: 700; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--forest { background: var(--forest); color: var(--paper); }
.section--water { background: var(--water-deep); color: var(--paper); }
.section--mist { background: var(--mist); }
.section--white { background: var(--white); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--water); margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 8px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 8' fill='none' stroke='%232c6a80' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M1 4c3-4 6 4 9 0s6 4 9 0 6 4 8 0'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section--dark .eyebrow, .section--forest .eyebrow, .section--water .eyebrow, .on-dark .eyebrow { color: var(--water-light); }
.section--dark .eyebrow::before, .section--forest .eyebrow::before, .section--water .eyebrow::before, .on-dark .eyebrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 8' fill='none' stroke='%238fb9c6' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M1 4c3-4 6 4 9 0s6 4 9 0 6 4 8 0'/%3E%3C/svg%3E");
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.3rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--water); }
.section--dark .display em, .section--forest .display em, .section--water .display em, .on-dark .display em { color: var(--water-light); }
.h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.15; letter-spacing: -.01em;
}
.lead {
  font-size: clamp(1.12rem, 1.8vw, 1.35rem); line-height: 1.55; font-weight: 400;
  color: var(--stone); max-width: 42ch; text-wrap: pretty;
}
.section--dark .lead, .section--forest .lead, .section--water .lead, .on-dark .lead { color: rgba(245, 243, 238, .78); }
.muted { color: var(--stone); }
.small { font-size: .88rem; }

/* ---------- Botones y enlaces ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .85rem 1.6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: 999px;
  cursor: pointer; transition: color .35s var(--ease), border-color .35s var(--ease);
}
/* onda al pasar el cursor */
.btn::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--btn-ripple, var(--water));
  transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translate(-50%, -50%) scale(30); }
.btn:hover, .btn:focus-visible { color: var(--white); border-color: var(--btn-ripple, var(--water)); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; }
.btn--water { --btn-bg: var(--water); --btn-fg: var(--white); --btn-bd: var(--water); --btn-ripple: var(--forest); }
.btn--small { min-height: 40px; padding: .55rem 1.1rem; font-size: .72rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding-block: .4rem; border-bottom: 1.5px solid currentColor;
}
.link-arrow::after { content: "→"; transition: transform .35s var(--ease); }
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: translateX(5px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--paper);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(245, 243, 238, .94); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(19, 32, 28, .08);
}
.site-header__inner {
  height: 100%; width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; white-space: nowrap; position: relative; z-index: 2; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; gap: .42rem; } /* aire entre «Corporación» y «OíreseríO» */
.brand__corp { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.brand__name { font-size: .95rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

.nav-toggle {
  position: relative; z-index: 2; width: 48px; height: 48px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.nav-toggle__lines, .nav-toggle__lines::before, .nav-toggle__lines::after {
  width: 24px; height: 1.5px; background: currentColor; display: block; transition: transform .35s var(--ease), opacity .2s;
}
.nav-toggle__lines { position: relative; }
.nav-toggle__lines::before, .nav-toggle__lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle__lines::before { top: -7px; }
.nav-toggle__lines::after { top: 7px; }
.nav-open .nav-toggle__lines { background: transparent; }
.nav-open .nav-toggle__lines::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__lines::after { transform: translateY(-7px) rotate(-45deg); }

.site-header .btn--support { --btn-bg: var(--water); --btn-fg: var(--white); --btn-bd: var(--water); --btn-ripple: var(--forest); min-height: 40px; padding: .5rem 1.1rem; font-size: .72rem; position: relative; z-index: 2; }

.nav {
  position: fixed; inset: 0; z-index: 1; background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility .4s;
}
.nav-open .nav { visibility: visible; opacity: 1; }
.nav-open .site-header { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; }
.nav__list { display: grid; gap: .2rem; }
.nav__list a {
  display: block; padding: .35rem 0; text-decoration: none;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.2;
}
.nav__list a[aria-current="page"] { color: var(--water-light); font-style: italic; }
.nav__foot { margin-top: 2.5rem; font-size: .9rem; color: rgba(245, 243, 238, .7); }

/* Menú completo en una línea desde 1100 px. Entre 1100 y 1379 px va en versión compacta
   (portátiles de 1366 px o pantallas con zoom de Windows al 125 %). */
@media (min-width: 1100px) and (max-width: 1379.98px) {
  .site-header__inner { width: min(100% - 2rem, 1440px); gap: .6rem; }
  .site-header .nav__list { gap: .78rem; }
  .site-header .nav__list a { font-size: .64rem; letter-spacing: .035em; }
  html[data-identidad="grabado"] .site-header .nav__list a { font-size: .6rem; letter-spacing: .02em; }
  .site-header .brand { gap: .5rem; }
  .site-header .brand__name { font-size: .82rem; letter-spacing: .14em; }
  .site-header .brand__corp { font-size: .54rem; letter-spacing: .18em; }
  .site-header .brand__logo, .site-header .brand__logo--grabado { width: 46px !important; height: 46px !important; }
  .site-header .btn--support { margin-left: .5rem; padding: .45rem .9rem; font-size: .66rem; }
}
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; inset: auto; background: none; color: inherit; padding: 0; overflow: visible;
    visibility: visible; opacity: 1; transition: none;
  }
  .nav__list { display: flex; gap: 1.25rem; white-space: nowrap; }
  .nav__list a {
    font-family: var(--font); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    padding: .5rem 0; position: relative;
  }
  .nav__list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1.5px; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
  }
  .nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav__list a[aria-current="page"] { color: inherit; font-style: normal; }
  .nav__foot { display: none; }
  .site-header .btn--support { margin-left: 1.2rem; }
}

/* ---------- Marcadores de fotografía (art-direction) ----------
   Cada <figure class="ph ph--x"> es un espacio fotográfico con dirección de arte.
   Para usar la fotografía real, añadir dentro un <picture> o <img> con alt: cubre el fondo. */
.ph {
  --ph-bg: linear-gradient(165deg, #3a5a50 0%, #1d3a31 55%, #0f1e1a 100%);
  position: relative; overflow: hidden; isolation: isolate; margin: 0;
  background: var(--ph-bg); color: var(--white); min-height: 220px;
}
.ph::before {
  content: ""; position: absolute; inset: -10%; z-index: 0; opacity: .22; mix-blend-mode: soft-light;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520' fill='none' stroke='white' stroke-width='1.1'%3E%3Cpath d='M-20 60C80 20 150 110 260 80S420 10 540 50'/%3E%3Cpath d='M-20 110C80 70 160 160 270 130S420 60 540 100'/%3E%3Cpath d='M-20 160C90 120 170 210 280 180S430 110 540 150'/%3E%3Cpath d='M-20 215C90 180 180 260 290 235S430 165 540 205'/%3E%3Cpath d='M-20 275C100 240 180 320 300 295S440 225 540 265'/%3E%3Cpath d='M-20 335C100 300 190 380 310 355S440 290 540 325'/%3E%3Cpath d='M-20 395C110 360 200 440 320 415S450 350 540 385'/%3E%3Cpath d='M-20 455C110 420 200 500 320 475S450 410 540 445'/%3E%3C/svg%3E") 0 0 / 520px 520px;
  animation: drift 60s linear infinite;
}
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.ph > img, .ph > picture, .ph > picture img, .ph > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.ph__brief {
  position: absolute; z-index: 2; left: .9rem; top: .9rem; max-width: calc(100% - 1.8rem);
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
  color: rgba(255, 255, 255, .78); padding: .35rem .6rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ph__brief::before {
  content: ""; width: 10px; height: 8px; flex: none; border: 1.3px solid currentColor; border-radius: 2px;
  box-shadow: inset 0 0 0 1.5px transparent; background: radial-gradient(circle, currentColor 1.4px, transparent 1.6px);
}
@keyframes drift { to { transform: translate(-520px, 0); } }
.ph--paramo     { --ph-bg: linear-gradient(170deg, #a7ad95 0%, #74805f 38%, #3f4c38 72%, #1f2a1f 100%); }
.ph--nacimiento { --ph-bg: linear-gradient(170deg, #c6d6d3 0%, #7fa2a3 40%, #3d6468 75%, #1b3438 100%); }
.ph--quebrada   { --ph-bg: linear-gradient(165deg, #98b9bd 0%, #4f8792 40%, #22505c 80%, #102c33 100%); }
.ph--rio        { --ph-bg: linear-gradient(165deg, #6f9aa3 0%, #2c6a80 40%, #173a47 78%, #0c1f26 100%); }
.ph--bosque     { --ph-bg: linear-gradient(165deg, #5b7a60 0%, #2f4a37 45%, #16261c 80%, #0b140f 100%); }
.ph--fauna      { --ph-bg: linear-gradient(160deg, #7c8a6c 0%, #4b5a41 45%, #26301f 100%); }
.ph--comunidad  { --ph-bg: linear-gradient(165deg, #c49a6c 0%, #8a5a36 45%, #4a3020 80%, #26180f 100%); }
.ph--ciencia    { --ph-bg: linear-gradient(165deg, #9aa5a0 0%, #5f6d68 45%, #2d3835 85%, #182120 100%); }
.ph--educacion  { --ph-bg: linear-gradient(165deg, #d4b48c 0%, #a57a4f 40%, #5d4630 80%, #2e2319 100%); }
.ph--escucha    { --ph-bg: linear-gradient(170deg, #b8c7c2 0%, #6e8d88 35%, #2f4d4a 70%, #12211f 100%); }
.ph--restauracion { --ph-bg: linear-gradient(165deg, #9c9a74 0%, #66704a 40%, #33402a 78%, #182014 100%); }

/* ---------- Revelado progresivo ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal[data-delay="2"] { transition-delay: .24s; }
.js .reveal[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ph::before { animation: none; }
  /* html.animar: la persona pidió ver la animación con el botón «Ver volar al colibrí» */
  html:not(.animar) *, html:not(.animar) *::before, html:not(.animar) *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); background: #0e1c1a; overflow: hidden; isolation: isolate;
}
.hero__art, .hero__media { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 20, 18, .88) 0%, rgba(10, 20, 18, .35) 45%, rgba(10, 20, 18, 0) 70%),
    linear-gradient(to right, rgba(10, 20, 18, .55) 0%, rgba(10, 20, 18, 0) 60%);
}
.hero__content { padding-block: calc(var(--header-h) + 2rem) clamp(2.5rem, 8vh, 6rem); }
.hero__place { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .85; margin-bottom: 1.2rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(2.4rem, min(14.5vw, 17vh), 10rem); line-height: .95; letter-spacing: -.035em; margin-bottom: 1.6rem;
}
/* "OíreseríO" es un palíndromo: se escribe siempre completo, en una sola línea */
.hero__title { white-space: nowrap; }
.hero__sub { font-size: clamp(1.1rem, 2vw, 1.45rem); max-width: 30ch; line-height: 1.45; margin-bottom: 2.2rem; color: rgba(255, 255, 255, .9); }
.hero__cue {
  position: absolute; right: var(--gutter); bottom: clamp(3.5rem, 9vh, 6rem); display: none;
  writing-mode: vertical-rl; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; opacity: .75;
  align-items: center; gap: 1rem;
}
.hero__cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(currentColor, transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 900px) { .hero__cue { display: inline-flex; } }

/* animaciones del paisaje del hero */
.flow { stroke-dasharray: 5 26; animation: flow 5s linear infinite; }
.flow--2 { animation-duration: 7s; stroke-dasharray: 3 34; }
.flow--3 { animation-duration: 9s; stroke-dasharray: 8 40; }
@keyframes flow { to { stroke-dashoffset: -310; } }
.fog { animation: fog 38s ease-in-out infinite alternate; }
.fog--2 { animation-duration: 52s; animation-direction: alternate-reverse; }
@keyframes fog { from { transform: translateX(-60px); } to { transform: translateX(80px); } }
.ripple-ring { transform-box: fill-box; transform-origin: center; animation: ring 6s var(--ease) infinite; opacity: 0; }
.ripple-ring:nth-of-type(2) { animation-delay: 2s; }
.ripple-ring:nth-of-type(3) { animation-delay: 4s; }
@keyframes ring { 0% { transform: scale(.2); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Encabezado de páginas interiores ---------- */
.page-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; color: var(--white); isolation: isolate; }
.page-hero > .ph { position: absolute; inset: 0; z-index: -2; min-height: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 20, 18, .85), rgba(10, 20, 18, .15) 70%); }
.page-hero .ph__brief { top: auto; bottom: 1rem; left: auto; right: 1rem; }
.page-hero__content { padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 7vw, 5rem); }
.page-hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 8vw, 6rem); line-height: .98; letter-spacing: -.03em; margin-bottom: 1.2rem; text-wrap: balance; }
.page-hero h1 em { color: var(--water-light); }
.page-hero .lead { color: rgba(255, 255, 255, .85); max-width: 46ch; }
.crumbs { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.4rem; opacity: .85; }
.crumbs a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.crumbs span[aria-hidden] { margin-inline: .5rem; }

/* ---------- Layouts genéricos ---------- */
.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .section-head--row { grid-template-columns: 1.2fr .8fr; align-items: end; } }
.prose { max-width: 62ch; }
.prose p { text-wrap: pretty; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 2.2rem 0 1rem; }
.prose h3 { font-weight: 700; font-size: 1.05rem; margin: 1.6rem 0 .6rem; }
.prose ul { list-style: none; margin: 0 0 1.2em; }
.prose ul li { padding-left: 1.4rem; position: relative; margin-bottom: .5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1.5px; background: var(--water); }

/* ---------- El río como territorio (recorrido de una gota) ---------- */
.territory-intro { display: grid; gap: 2rem; margin-bottom: clamp(3rem, 7vw, 5rem); }
@media (min-width: 900px) { .territory-intro { grid-template-columns: 1.1fr .9fr; align-items: end; } }
.territory-intro .display { max-width: 14ch; }
.journey-band {
  height: clamp(120px, 20vw, 220px); border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(90deg, #a7ad95 0%, #c6d6d3 16%, #7fa2a3 30%, #2c6a80 46%, #2f4a37 62%, #8a5a36 80%, #4b4a3a 100%);
}
.journey-band svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey {
  position: relative; display: grid; gap: 0; margin-top: 2.5rem; counter-reset: stop;
}
.journey::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1.5px; background: var(--stone-light); }
.journey__drop {
  position: absolute; left: 2px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--water);
  box-shadow: 0 0 0 6px rgba(44, 106, 128, .18); animation: drop-y 14s var(--ease) infinite;
}
@keyframes drop-y { 0% { top: 0; } 100% { top: calc(100% - 12px); } }
.journey li { position: relative; padding: 0 0 1.8rem 2.4rem; counter-increment: stop; }
.journey li::before {
  content: ""; position: absolute; left: 3px; top: .45rem; width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.journey__name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; display: block; }
.journey__name::before { content: "0" counter(stop) " "; font-family: var(--font); font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--water); vertical-align: middle; margin-right: .4rem; }
.journey__text { font-size: .95rem; color: var(--stone); margin: .2rem 0 0; }
@media (min-width: 900px) {
  .journey { grid-template-columns: repeat(7, 1fr); gap: 1.2rem; padding-top: 2.4rem; }
  .journey::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1.5px; }
  .journey__drop { top: 1px; left: 0; animation-name: drop-x; }
  @keyframes drop-x { 0% { left: 0; } 100% { left: calc(100% - 12px); } }
  .journey li { padding: 0; }
  .journey li::before { left: 0; top: -2.4rem; margin-top: 1px; }
  .journey__name { font-size: 1.3rem; }
}

/* ---------- Somos / Misión ---------- */
.about-statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.3; letter-spacing: -.01em; max-width: 30ch; text-wrap: pretty; }
.about-statement strong { font-weight: 400; font-style: italic; color: var(--water); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: .3rem .9rem; border-radius: 999px;
  border: 1px solid currentColor; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.section--dark .chip, .section--forest .chip, .on-dark .chip { border-color: rgba(245, 243, 238, .35); }

.mission { display: grid; gap: 0; }
.mission__media { min-height: 62vh; }
.mission__body { padding: clamp(2.5rem, 7vw, 6rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.mission__quote {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.4; margin: 0 0 2rem; text-wrap: pretty;
}
.mission__quote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--water-light); margin-bottom: .6rem; }
@media (min-width: 900px) {
  .mission { grid-template-columns: 1fr 1fr; }
  .mission__media { min-height: 100%; }
  .mission__body { padding-inline: clamp(3rem, 6vw, 6rem); max-width: 760px; }
}

/* ---------- Visión 2040 ---------- */
.vision { overflow: hidden; }
.vision__year {
  font-family: var(--font-display); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(7rem, 30vw, 24rem); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(143, 185, 198, .55); margin: 0 0 2rem -.04em; user-select: none;
}
.vision__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .vision__grid { grid-template-columns: .9fr 1.1fr; align-items: end; } }
.vision__text { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.38; margin: 0; text-wrap: pretty; }
.timeline { margin-top: clamp(3rem, 7vw, 5rem); position: relative; display: grid; gap: 1.5rem; }
.timeline__label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--water-light); margin-bottom: 1.5rem; }
.timeline ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; position: relative; }
.timeline li { border-top: 1.5px solid rgba(245, 243, 238, .25); padding-top: 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); }
.timeline li:last-child { border-top-color: var(--water-light); }
.timeline li:last-child::before { background: var(--water-light); box-shadow: 0 0 0 6px rgba(143, 185, 198, .2); }
.timeline__year { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; display: block; }
.timeline__verb { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--water-light); display: block; margin-top: .5rem; }
.timeline__desc { font-size: .92rem; color: rgba(245, 243, 238, .72); margin: .4rem 0 0; }
@media (min-width: 760px) { .timeline ol { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* ---------- Principios ---------- */
.marquee { overflow: hidden; border-block: 1px solid rgba(19, 32, 28, .14); padding-block: 1.2rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track span::after { content: ""; width: 34px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 10' fill='none' stroke='%232c6a80' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M1 5c4-5 8 5 12 0s8 5 12 0 7 5 8 0'/%3E%3C/svg%3E") no-repeat center / contain; }
.marquee__track span:nth-child(even) { font-style: italic; color: var(--water); }
@keyframes marquee { to { transform: translateX(-50%); } }

.principles { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(19, 32, 28, .12); border: 1px solid rgba(19, 32, 28, .12); }
@media (min-width: 560px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principle {
  background: var(--paper); padding: 1.8rem 1.5rem 1.9rem; position: relative; overflow: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.principle::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; right: 1.5rem; top: 1.8rem;
  border: 1px solid var(--water); opacity: 0; transform: scale(.4); transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.principle:hover::before { opacity: .5; transform: scale(9); }
.principle:hover { background: var(--ink); color: var(--paper); }
.principle:hover .principle__text { color: rgba(245, 243, 238, .75); }
.principle:hover .principle__icon { color: var(--water-light); }
.principle__num { font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--stone); }
.principle:hover .principle__num { color: var(--water-light); }
.principle__icon { width: 36px; height: 36px; color: var(--water); margin: 1.4rem 0 1.2rem; transition: color .5s; }
.principle__title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; margin-bottom: .5rem; }
.principle__text { font-size: .93rem; color: var(--stone); margin: 0; transition: color .5s; }

/* ---------- Líneas de trabajo ---------- */
.lines { display: grid; gap: 1rem; }
@media (min-width: 640px) { .lines { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lines { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.line-card { position: relative; display: flex; flex-direction: column; min-height: 460px; color: var(--white); text-decoration: none; overflow: hidden; border-radius: var(--radius); isolation: isolate; }
.line-card > .ph { position: absolute; inset: 0; z-index: -2; transition: transform 1.4s var(--ease); }
.line-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 20, 18, .9) 0%, rgba(10, 20, 18, .25) 55%, rgba(10, 20, 18, .05)); transition: background .6s var(--ease); }
.line-card:hover > .ph, .line-card:focus-within > .ph { transform: scale(1.05); }
.line-card__body { margin-top: auto; padding: 1.6rem; }
.line-card__num { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--water-light); display: block; margin-bottom: .6rem; }
.line-card__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1; margin-bottom: .8rem; }
.line-card__text { font-size: .95rem; color: rgba(255, 255, 255, .82); margin-bottom: 1.3rem; }
.line-card .link-arrow { color: var(--white); }
.line-card .link-arrow::before { content: ""; position: absolute; inset: 0; } /* toda la tarjeta clicable */

/* ---------- Proyectos / tarjetas de colección ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.project-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project-card .ph { aspect-ratio: 4 / 3; min-height: 0; }
.project-card__body { padding: 1.5rem; display: grid; gap: .9rem; }
.project-card__meta { font-size: .78rem; letter-spacing: .06em; color: var(--stone); }
.project-card dl { margin: 0; display: grid; gap: .7rem; font-size: .92rem; }
.project-card dt { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--water); }
.project-card dd { margin: .15rem 0 0; }
.status { display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--formulacion { color: var(--earth); }
.status--ejecucion { color: var(--water); }
.status--finalizado { color: var(--moss); }

.empty {
  display: grid; gap: 2rem; padding: clamp(1.8rem, 5vw, 3.5rem); border: 1px dashed rgba(19, 32, 28, .3); border-radius: var(--radius);
}
@media (min-width: 900px) { .empty { grid-template-columns: 1fr 1fr; align-items: center; } }
.empty__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.2; margin-bottom: 1rem; }
.empty__text { color: var(--stone); margin: 0; max-width: 46ch; }
.ficha { background: var(--white); padding: 1.5rem; border-radius: var(--radius); display: grid; gap: .1rem; }
.ficha__head { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--water); margin-bottom: .8rem; }
.ficha__row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(19, 32, 28, .08); font-size: .9rem; }
.ficha__row span:last-child { flex: 1; max-width: 55%; height: .6rem; margin-top: .45rem; border-radius: 99px; background: linear-gradient(90deg, var(--mist), rgba(227, 235, 232, .3)); }
.section--dark .empty, .on-dark .empty { border-color: rgba(245, 243, 238, .3); }
.section--dark .empty__text { color: rgba(245, 243, 238, .75); }

/* ---------- ¿Qué significa oír un río? ---------- */
.listen { background: #0b1614; color: var(--paper); position: relative; overflow: hidden; }
.listen__bg { position: absolute; inset: 0; opacity: .5; z-index: 0; pointer-events: none; }
.listen .container--narrow { position: relative; z-index: 1; }
.listen__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em; text-align: center; margin-bottom: clamp(4rem, 12vw, 9rem); text-wrap: balance; }
.listen__title em { color: var(--water-light); }
.verses { display: grid; gap: clamp(2.2rem, 6vw, 4rem); text-align: center; margin-bottom: clamp(4rem, 12vw, 8rem); }
.verses p { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.25; margin: 0; }
.verses p:nth-child(odd) { font-style: italic; }
.verses .verses__close { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-style: normal; color: rgba(245, 243, 238, .8); max-width: 34ch; margin-inline: auto; line-height: 1.5; }
.listen__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: clamp(4rem, 10vw, 7rem); }
.listen__photos .ph { aspect-ratio: 3 / 4; min-height: 0; border-radius: var(--radius); }
.listen__photos .ph:nth-child(2) { margin-top: 4rem; }

/* Reproductor */
.player {
  display: grid; gap: 1.2rem; padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid rgba(245, 243, 238, .18); border-radius: 18px;
  background: rgba(245, 243, 238, .03);
}
.player__top { display: flex; align-items: center; gap: 1.2rem; }
.player__btn {
  width: 64px; height: 64px; flex: none; border-radius: 50%; border: 1.5px solid var(--water-light); background: transparent; color: var(--paper);
  display: grid; place-items: center; cursor: pointer; position: relative; transition: background-color .3s;
}
.player__btn:hover { background: rgba(143, 185, 198, .15); }
.player__btn::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--water-light); opacity: 0; }
.player.is-playing .player__btn::after { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.player__btn svg { width: 22px; height: 22px; }
.player__btn .i-pause { display: none; }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player__label { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--water-light); }
.player__title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.player__wave { width: 100%; height: 70px; }
.player__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: .85rem; }
.player__controls label { display: inline-flex; align-items: center; gap: .6rem; }
.player__controls input[type="range"] { accent-color: var(--water-light); width: 140px; }
.player__note { font-size: .82rem; color: rgba(245, 243, 238, .6); margin: 0; }

/* ---------- Mapa ---------- */
.map-wrap { display: grid; gap: 1rem; }
.map {
  width: 100%; height: clamp(380px, 60vh, 640px); border-radius: var(--radius); background: var(--mist);
  position: relative; z-index: 0; overflow: hidden;
}
.map--tall { height: clamp(460px, 78vh, 820px); }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--stone); font-size: .95rem; }
.leaflet-container { font-family: var(--font); }
.leaflet-container .leaflet-tile-pane { filter: saturate(.45) contrast(.95) brightness(1.02); }
.leaflet-popup-content-wrapper { border-radius: var(--radius); }
.leaflet-popup-content { margin: 1rem 1.2rem; line-height: 1.5; }
.leaflet-popup-content strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; display: block; margin-bottom: .2rem; }
.map-pin { background: none; border: 0; }
.map-pin span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--pin, var(--water)); border: 3px solid var(--white); box-shadow: 0 0 0 0 rgba(44, 106, 128, .5); animation: pin 2.8s var(--ease) infinite; }
@keyframes pin { 0% { box-shadow: 0 0 0 0 rgba(44, 106, 128, .5); } 100% { box-shadow: 0 0 0 22px rgba(44, 106, 128, 0); } }
.legend { display: flex; flex-wrap: wrap; gap: .5rem; }
.legend label {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .35rem .9rem; border: 1px solid rgba(19, 32, 28, .2); border-radius: 999px;
  font-size: .82rem; cursor: pointer; background: var(--white);
}
.legend label.is-empty { opacity: .6; cursor: default; }
.legend input { accent-color: var(--water); width: 16px; height: 16px; margin: 0; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--water)); }
.legend .count { font-size: .72rem; color: var(--stone); }

/* ---------- Aprender a escuchar / formatos ---------- */
.formats { display: grid; gap: 1px; background: rgba(19, 32, 28, .12); border-block: 1px solid rgba(19, 32, 28, .12); }
@media (min-width: 640px) { .formats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .formats { grid-template-columns: repeat(4, 1fr); } }
.format { background: var(--mist); padding: 1.6rem 1.4rem 1.8rem; }
.section--white .format { background: var(--white); }
.format__num { font-family: var(--font-display); font-style: italic; color: var(--water); font-size: .95rem; }
.format__title { font-weight: 700; font-size: 1.05rem; margin: .6rem 0 .4rem; }
.format__text { font-size: .92rem; color: var(--stone); margin: 0; }

/* ---------- Repositorio de conocimiento ---------- */
.repo-index { display: grid; border-top: 1px solid rgba(19, 32, 28, .15); }
@media (min-width: 760px) { .repo-index { grid-template-columns: repeat(3, 1fr); column-gap: 2rem; } }
.repo-index a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(19, 32, 28, .15);
  text-decoration: none; font-family: var(--font-display); font-size: 1.3rem; transition: color .3s, padding-left .4s var(--ease);
}
.repo-index a::after { content: "→"; font-family: var(--font); font-size: 1rem; color: var(--water); }
.repo-index a:hover { color: var(--water); padding-left: .5rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-btn {
  min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid rgba(19, 32, 28, .25); background: transparent; cursor: pointer;
  font-size: .82rem; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { display: flex; gap: .5rem; margin-bottom: 1.2rem; max-width: 520px; }
.search input { flex: 1; }
.doc-list { border-top: 1px solid rgba(19, 32, 28, .15); }
.doc { display: grid; gap: .4rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(19, 32, 28, .15); }
@media (min-width: 760px) { .doc { grid-template-columns: 160px 1fr auto; gap: 2rem; align-items: baseline; } }
.doc__type { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--water); }
.doc__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
.doc__meta { font-size: .85rem; color: var(--stone); margin: .3rem 0 0; }

/* ---------- Participa ---------- */
.participate { position: relative; overflow: hidden; isolation: isolate; }
.participate__statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.04; letter-spacing: -.02em; max-width: 18ch; margin-bottom: clamp(3rem, 7vw, 5rem); text-wrap: balance; }
.participate__statement em { color: var(--water-light); }
.ways { display: grid; gap: 1rem; }
@media (min-width: 860px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way {
  border: 1px solid rgba(245, 243, 238, .22); border-radius: var(--radius); padding: 2rem 1.6rem; display: flex; flex-direction: column; gap: .9rem;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.way:hover { background: rgba(245, 243, 238, .05); border-color: rgba(143, 185, 198, .6); }
.way__title { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; }
.way p { color: rgba(245, 243, 238, .76); font-size: .95rem; margin: 0; }
.way .link-arrow { margin-top: auto; align-self: flex-start; color: var(--paper); }
.way-list { display: grid; gap: 1px; background: rgba(19, 32, 28, .12); border: 1px solid rgba(19, 32, 28, .12); }
@media (min-width: 760px) { .way-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .way-list { grid-template-columns: repeat(3, 1fr); } }
.way-list > div { background: var(--paper); padding: 1.8rem 1.5rem; }
.way-list h3 { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: .5rem; }
.way-list p { font-size: .95rem; color: var(--stone); margin: 0; }

/* ---------- Alianzas ---------- */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 760px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .partners { grid-template-columns: repeat(6, 1fr); } }
.partner-slot {
  aspect-ratio: 3 / 2; border: 1px dashed rgba(19, 32, 28, .28); border-radius: var(--radius); display: grid; place-items: center; text-align: center;
  padding: 1rem; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stone);
}

/* ---------- Transparencia ---------- */
.docs-grid { display: grid; gap: 1px; background: rgba(19, 32, 28, .12); border: 1px solid rgba(19, 32, 28, .12); }
@media (min-width: 700px) { .docs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .docs-grid { grid-template-columns: repeat(3, 1fr); } }
.doc-card { background: var(--white); padding: 1.8rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; min-height: 220px; }
.doc-card__icon { width: 30px; height: 30px; color: var(--water); }
.doc-card h3 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; }
.doc-card p { font-size: .92rem; color: var(--stone); margin: 0; }
.doc-card .state { margin-top: auto; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--earth); display: inline-flex; align-items: center; gap: .5rem; }
.doc-card .state::before { content: ""; width: 14px; height: 1.5px; background: currentColor; }

/* ---------- Historias ---------- */
.story-card { text-decoration: none; display: flex; flex-direction: column; gap: 1rem; }
.story-card .ph { aspect-ratio: 4 / 5; min-height: 0; border-radius: var(--radius); }
.story-card__cat { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--water); }
.story-card__title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.story-card:hover .story-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Cierre ---------- */
.closing { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--white); isolation: isolate; overflow: hidden; }
.closing > .ph { position: absolute; inset: 0; z-index: -2; min-height: 0; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(10, 20, 18, .25), rgba(10, 20, 18, .75)); }
.closing__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.closing__phrase { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 5.6vw, 4.8rem); line-height: 1.12; letter-spacing: -.02em; max-width: 20ch; margin: 0 auto 3rem; text-wrap: balance; }
.closing__phrase em { color: var(--water-light); }
.closing__sign { font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.closing__sign span { display: block; font-weight: 400; letter-spacing: .12em; opacity: .75; margin-top: .4rem; text-transform: none; font-size: .9rem; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid rgba(19, 32, 28, .22); border-radius: var(--radius);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--water); outline: none; box-shadow: 0 0 0 3px rgba(44, 106, 128, .2); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--stone); }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--water); flex: none; }
.form__status { font-size: .92rem; margin: 0; min-height: 1.4em; }

.info-list { display: grid; gap: 1.6rem; }
.info-list dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--water); margin-bottom: .3rem; }
.info-list dd { margin: 0; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245, 243, 238, .82); padding-top: clamp(4rem, 9vw, 6.5rem); font-size: .95rem; }
.footer__phrase { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.1; color: var(--paper); margin-bottom: clamp(3rem, 7vw, 4.5rem); max-width: 18ch; }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(245, 243, 238, .14); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { color: var(--paper); }
.footer__brand .brand { margin-bottom: 1.2rem; }
.footer__title { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--water-light); margin-bottom: 1rem; }
.footer__links { display: grid; gap: .45rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(245, 243, 238, .28); display: grid; place-items: center; transition: border-color .3s, background-color .3s; }
.social a:hover { border-color: var(--water-light); background: rgba(143, 185, 198, .12); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem 2rem; font-size: .82rem; color: rgba(245, 243, 238, .6); }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--paper); }

/* utilidades */
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* El nombre es un palíndromo: nunca se corta de línea */
.nombre, .brand__name, .closing__sign { white-space: nowrap; }
/* Eje del palíndromo: la «s» central de OíreseríO */
.hero__title .axis { color: var(--water-light); }
html[data-identidad="logo"] .hero__title .axis { color: var(--water); }

/* ---------- Opiniones de la sociedad civil ---------- */
.steps { display: grid; gap: 1px; background: rgba(19, 32, 28, .12); border: 1px solid rgba(19, 32, 28, .12); counter-reset: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--paper); padding: 1.4rem 1.3rem 1.5rem; }
.steps__n { font-family: var(--font-display); font-style: italic; color: var(--water); font-size: .95rem; }
.steps h3 { font-weight: 700; font-size: 1.02rem; margin: .5rem 0 .3rem; }
.steps p { font-size: .9rem; color: var(--stone); margin: 0; }
.opinions { display: grid; gap: 1rem; }
.opinion { background: var(--paper); border-radius: var(--radius); padding: 1.4rem 1.5rem; border-left: 3px solid var(--water); }
.opinion__meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .76rem; color: var(--stone); margin-bottom: .6rem; }
.opinion__type { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--water); }
.opinion blockquote { margin: 0; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; }
.opinion__who { font-size: .85rem; margin: .6rem 0 0; font-weight: 600; }
.opinion__reply { margin-top: 1rem; padding: .9rem 1rem; background: var(--white); border-radius: var(--radius); font-size: .92rem; }
.opinion__reply strong { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin-bottom: .3rem; }
.opinion__pending { margin-top: .8rem; font-size: .8rem; color: var(--earth); }
.note-box { padding: 1.2rem 1.4rem; border: 1px solid rgba(19, 32, 28, .15); border-radius: var(--radius); background: var(--mist); font-size: .92rem; }
fieldset.field legend { margin-bottom: .5rem; }
fieldset.field .check { margin-bottom: .35rem; }
/* ---------- Documentos: botón y visor PDF ---------- */
.doc-card__btn { align-self: flex-start; margin-top: auto; }
.doc-card__meta { font-size: .74rem; color: var(--stone); }
.visor { width: min(96vw, 1100px); height: min(92vh, 1000px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); overflow: hidden; }
.visor[open] { display: flex; flex-direction: column; }
.visor::backdrop { background: rgba(10, 20, 18, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.visor__bar { display: flex; align-items: center; gap: 1rem; padding: .7rem .8rem .7rem 1.2rem; border-bottom: 1px solid rgba(19, 32, 28, .12); flex: none; }
.visor__title { font-family: var(--font-display); font-size: 1.15rem; margin: 0 auto 0 0; }
.visor__action { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--water); }
.visor__action:hover { text-decoration: underline; }
.visor__close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--mist); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.visor__close:hover { background: var(--stone-light); }
.visor__frame { flex: 1; width: 100%; border: 0; background: #525659; }
.doc-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }

/* ---------- Video de fondo en la portada del inicio ---------- */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: grayscale(1) contrast(1.05); } /* video de fondo en escala de grises */
/* cuando el video está listo, el paisaje ilustrado se retira (queda solo la escena del colibrí de la versión D) */
.hero.has-video .hero__art > :not(.art-d):not(defs) { display: none; }
/* sobre el video, la portada usa siempre texto claro, en todas las identidades */
html .hero.has-video, html[data-identidad] .hero.has-video { color: #fff; background: #0b1412; }
html .hero.has-video::after, html[data-identidad] .hero.has-video::after {
  background:
    linear-gradient(to bottom, rgba(8, 14, 13, .6) 0%, rgba(8, 14, 13, 0) 24%),
    linear-gradient(to top, rgba(8, 14, 13, .92) 0%, rgba(8, 14, 13, .5) 42%, rgba(8, 14, 13, .12) 78%),
    linear-gradient(to right, rgba(8, 14, 13, .6) 0%, rgba(8, 14, 13, 0) 60%);
}
html[data-identidad] .hero.has-video .hero__sub { color: rgba(255, 255, 255, .92); }
html[data-identidad] .hero.has-video .btn--ghost { --btn-fg: #fff; --btn-bd: #fff; }
html[data-identidad="grabado"] .hero.has-video .hero__title .axis { color: var(--clay); }
html[data-identidad="logo"] .hero.has-video .hero__title .axis { color: var(--water-light); }
html[data-identidad] body.has-hero-video .site-header:not(.is-scrolled) { color: #fff; }

.hero__media-controls {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(16px, 4vh, 32px);
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; max-width: calc(100% - 2 * var(--gutter));
}
/* mientras exista el selector flotante de identidad (fase de revisión), van más arriba */
html:not(.en-marco) .hero .hero__media-controls { bottom: 84px; }
@media (max-width: 1100px) {
  .hero__media-controls, html:not(.en-marco) .hero .hero__media-controls { bottom: auto; top: calc(var(--header-h) + 12px); }
}
.hero__ctl {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 16px 6px 12px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(10, 20, 18, .5); color: #fff;
  font: 600 .74rem/1 var(--font); letter-spacing: .06em; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .3s;
}
.hero__ctl:hover { background: rgba(10, 20, 18, .75); }
.hero__ctl svg { width: 20px; height: 20px; flex: none; }
.hero__ctl--icon { width: 42px; padding: 6px; justify-content: center; }
.hero:not(.has-video) .hero__ctl { display: none; }
.hero__ctl--sound .i-off, .hero__ctl--sound[aria-pressed="true"] .i-on { display: none; }
.hero__ctl--sound[aria-pressed="true"] .i-off { display: block; }
.hero__ctl--sound[aria-pressed="true"] { background: #fff; color: #13201c; border-color: #fff; }
.hero__ctl--icon .i-play, .hero__ctl--icon[aria-pressed="true"] .i-pause { display: block; }
.hero__ctl--icon .i-pause, .hero__ctl--icon[aria-pressed="true"] .i-play { display: none; }
/* ---------- Sello con halo en la portada del inicio (sobre el video) ---------- */
.hero__logo { margin-bottom: clamp(1.4rem, 4vh, 2.6rem); padding: 34px 0 0 34px; margin-left: -34px; }
.hero__seal {
  display: none; width: clamp(92px, 17vh, 150px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #f4efe3;
  box-shadow:
    0 0 0 2px rgba(244, 239, 227, .95),
    0 0 0 10px rgba(244, 239, 227, .14),
    0 0 0 22px rgba(244, 239, 227, .07),
    0 0 0 36px rgba(244, 239, 227, .035),
    0 0 60px 20px rgba(244, 239, 227, .28);
}
html:not([data-identidad="logo"]):not([data-logo="creado"]) .hero__seal--grabado { display: block; }
html[data-identidad="logo"] .hero__seal--azul { display: block; background: #fff; }
/* sin video y con portada clara (versiones B y C): halo del color del sello */
html[data-identidad="grabado"] .hero:not(.has-video) .hero__seal {
  box-shadow: 0 0 0 2px rgba(75, 90, 51, .5), 0 0 0 10px rgba(75, 90, 51, .1), 0 0 0 22px rgba(75, 90, 51, .05), 0 0 60px 20px rgba(255, 255, 255, .7);
}
html[data-identidad="logo"] .hero:not(.has-video) .hero__seal {
  box-shadow: 0 0 0 2px rgba(15, 90, 168, .45), 0 0 0 10px rgba(15, 90, 168, .1), 0 0 0 22px rgba(15, 90, 168, .05), 0 0 60px 20px rgba(255, 255, 255, .8);
}
@media (max-height: 640px) { .hero__logo { display: none; } }

/* ---------- «El río como territorio»: franja con imagen del río en grises y halo ---------- */
.journey-band--foto { height: clamp(190px, 30vw, 340px); background: #1a2422 !important; isolation: isolate; }
.journey-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.05); }
.journey-band--foto::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 14, 13, .55) 0%, rgba(8, 14, 13, .2) 45%, rgba(8, 14, 13, .5) 100%);
}
/* Vectores superpuestos a la imagen: la escena dibujada (cordillera, frailejones, corriente,
   oso andino y aves) en tono crema translúcido, como un dibujo sobre la fotografía. */
.journey-band--foto, html[data-identidad] .journey-band--foto {
  --bn-s1: transparent; --bn-s2: transparent; --bn-glow: transparent;
  --bn-far: transparent; --bn-mid: transparent;
  --bn-r1: transparent; --bn-r2: transparent; --bn-flow: #ffffff;
  --bn-bank: transparent; --bn-grass: rgba(244, 239, 227, .8);
  --bn-bear: #0b1411; --bn-spect: #f4efe3; --bn-bird: #f4efe3; --bn-plant: rgba(244, 239, 227, .92);
}
.journey-band--foto .banner__scene > rect { display: none; }
/* la cordillera, solo en línea */
.journey-band--foto .bn-far { stroke: rgba(244, 239, 227, .7); stroke-width: 1.4; }
.journey-band--foto .bn-mid { stroke: rgba(244, 239, 227, .4); stroke-width: 1.1; }
/* oso de anteojos: oscuro, con contorno claro para que se lea sobre la foto */
.journey-band--foto .bn-bear-walk { filter: drop-shadow(0 0 1.5px rgba(244, 239, 227, .95)) drop-shadow(0 0 1.5px rgba(244, 239, 227, .8)); }
.journey-band--foto .bn-birds { stroke-width: 2; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }

/* Arte del río con contornos vectoriales y la palabra OIRESERIO: se muestra tal cual, sin filtro ni velo */
.journey-band__img--arte { filter: none; object-position: 50% 50%; }
.journey-band--foto:has(.journey-band__img--arte) { height: clamp(220px, 44vw, 520px); background: #fff !important; }
.journey-band--foto:has(.journey-band__img--arte)::after { display: none; }

/* ---------- Piezas de arte (sección «¿Qué significa oír un río?») ----------
   Mismo lenguaje de la foto abstracta del río: blanco y negro duro, grano y encuadre cerrado. */
.ph.ph--arte { --ph-bg: #0d0d0d; }
.ph.ph--arte::before { display: none; }
/* grano fotográfico por encima de la imagen */
.ph.ph--arte::after {
  z-index: 2; opacity: .5; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* Un mismo acabado para las dos piezas, como hechas por la misma mano el mismo día:
   mismo grano grueso, misma viñeta y mismo blanco y negro contrastado. */
.ph.ph--arte::after {
  opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.ph.ph--arte::before {
  display: block; inset: 0; z-index: 2; opacity: 1; mix-blend-mode: normal; animation: none;
  background: radial-gradient(ellipse 95% 90% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .3) 100%);
}
.ph.ph--arte > img { filter: grayscale(1) contrast(1.08); }
/* el frailejón: acercamiento a la roseta de hojas, deformado como agua en movimiento
   («derretir», filtro SVG definido en la página) y llevado al contraste de la foto del río */
.ph.ph--arte-frailejon > img {
  filter: url(#derretir) grayscale(1) brightness(.93) contrast(2);
  object-position: 44% 72%; transform: scale(1.9); transform-origin: 44% 72%;
}

/* ---------- Banner de contornos (arte del río con trazos rojos y azules) ----------
   Se usa solo la franja superior de la imagen, donde no aparece el rótulo OIRESERIO
   ni los márgenes blancos. */
.banner-arte {
  width: 100%; aspect-ratio: 3.84 / 1; border-radius: var(--radius); margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background: #1a1a1a url("../img/fotos/rio-contornos-oireserio.jpg") 50% 11.4% / 108.1% auto no-repeat;
}
/* encabezado de la página Conocimiento con el mismo arte, recortado igual */
.ph.ph--contornos { --ph-bg: #1a1a1a url("../img/fotos/rio-contornos-oireserio.jpg") 38% 11.4% / auto 294% no-repeat; }
.ph.ph--contornos::before, .ph.ph--contornos::after { display: none; }
/* la imagen es muy clara: velo más oscuro para que el título y el menú se lean */
html .page-hero:has(.ph--contornos)::after, html[data-identidad] .page-hero:has(.ph--contornos)::after {
  background: linear-gradient(to top, rgba(8, 14, 13, .92) 0%, rgba(8, 14, 13, .62) 55%, rgba(8, 14, 13, .5) 100%);
}

/* halo de anillos donde nace el recorrido de la gota */
.journey-band__halo {
  position: absolute; left: clamp(26px, 6%, 80px); top: 55%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #f4efe3;
  box-shadow:
    0 0 0 8px rgba(244, 239, 227, .22),
    0 0 0 20px rgba(244, 239, 227, .12),
    0 0 0 36px rgba(244, 239, 227, .06),
    0 0 50px 18px rgba(244, 239, 227, .35);
}

/* ---------- Portada del inicio centrada (sello, título, frase y botones) ---------- */
.hero { align-items: center; }
.hero__content {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: calc(var(--header-h) + 1.5rem) clamp(4.5rem, 10vh, 6.5rem);
}
.hero__logo { padding: 0; margin-left: 0; }
.hero__sub { max-width: 34ch; }
.hero .btn-row { justify-content: center; }
/* velo parejo alrededor del centro, en lugar del degradado hacia la izquierda */
html .hero.has-video::after, html[data-identidad] .hero.has-video::after {
  background:
    linear-gradient(to bottom, rgba(8, 14, 13, .6) 0%, rgba(8, 14, 13, 0) 22%),
    linear-gradient(to top, rgba(8, 14, 13, .75) 0%, rgba(8, 14, 13, 0) 30%),
    radial-gradient(ellipse 80% 75% at 50% 52%, rgba(8, 14, 13, .58), rgba(8, 14, 13, .3));
}
.hero:not(.has-video)::after {
  background: radial-gradient(ellipse 80% 75% at 50% 52%, rgba(10, 20, 18, .62), rgba(10, 20, 18, .25));
}
html[data-identidad="logo"] .hero:not(.has-video)::after { background: radial-gradient(ellipse 80% 75% at 50% 52%, rgba(248, 250, 253, .88), rgba(248, 250, 253, .25)); }
html[data-identidad="grabado"] .hero:not(.has-video)::after { background: radial-gradient(ellipse 80% 75% at 50% 52%, rgba(244, 239, 227, .9), rgba(244, 239, 227, .25)); }