/* =========================================================
   Ingeniero James Urrego — Caquetá
   Paleta: negro selva, blanco, verde amazónico + lima de acento
   ========================================================= */
:root {
  /* Selva caqueteña de noche: el "negro" es verde profundo */
  --black: #0f3d25;
  --ink: #14492d;
  --ink-2: #1a5838;
  --line: rgba(234, 248, 220, .2);
  --white: #f4f1ea;
  --white-2: #e2e9db;
  --muted: #b4cdb9;
  --green: #2fbf62;
  --green-2: #1c8f4a;
  --green-3: #12512f;
  --lime: #c8f31d;
  --orange: #f39a1e;
  --earth: #b5522a;
  --macaw-red: #e5392c;
  --macaw-yellow: #ffc933;
  --macaw-blue: #2f7fe0;
  --river: #7fd3c9;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23c8f31d' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M30 200 C40 140 90 110 130 100 C110 140 80 180 30 200Z M30 200 L130 100'/%3E%3Cpath d='M170 60 C200 50 225 70 230 100 C200 105 175 90 170 60Z M170 60 L230 100'/%3E%3Cpath d='M150 220 C150 190 175 170 200 168 C195 195 175 215 150 220Z M150 220 L200 168'/%3E%3Cpath d='M20 40 C50 20 80 30 95 55 C65 70 35 62 20 40Z M20 40 L95 55'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--white);
  background:
    var(--leaves),
    radial-gradient(70% 40% at 15% 10%, rgba(31,179,90,.14), transparent 70%),
    radial-gradient(60% 40% at 85% 55%, rgba(200,243,29,.05), transparent 70%),
    linear-gradient(180deg, #0f3d25, #135030 50%, #0f3d25);
  background-color: var(--black);
  font-family: var(--display); font-weight: 400; font-stretch: 100%;
  line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
.contacto, .perfil, .video, .galeria { overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--lime); color: var(--black); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.sr-only, .hp { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--lime); color: var(--black); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 18px; }
.h2 {
  font-size: clamp(36px, 6vw, 88px); line-height: .98; margin: 0 0 28px;
  font-weight: 800; font-stretch: 75%; letter-spacing: -.02em; text-transform: uppercase;
}
.h2 em, .hero-title em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--lime); letter-spacing: -.01em; }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 1.5px solid var(--white);
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-family: var(--mono); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, transform .3s var(--ease);
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--black); }
.btn-lime { --bg: var(--lime); --fg: var(--black); border-color: var(--lime); }
.btn-lime::after { background: var(--white); }
.btn-ghost { border-color: rgba(244, 241, 234, .45); }
.btn-sm { padding: 11px 18px; font-size: 11px; }
.btn-lg { padding: 20px 34px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); background: rgba(7, 10, 8, .4); color: var(--white); transition: .3s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover, .icon-btn[aria-pressed="true"] { background: var(--lime); color: var(--black); border-color: var(--lime); }
.round-btn { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; font-size: 20px; transition: .3s var(--ease); }
.round-btn:hover { background: var(--lime); color: var(--black); border-color: var(--lime); transform: scale(1.06); }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--black); display: grid; place-items: center; align-content: center; gap: 26px; }
.pre-word { display: flex; overflow: hidden; font-size: clamp(56px, 14vw, 200px); font-weight: 900; font-stretch: 62%; line-height: .9; letter-spacing: -.02em; }
.pre-word span { display: inline-block; transform: translateY(110%); }
.pre-word span:nth-child(odd) { color: var(--green); }
.pre-bar { width: min(380px, 70vw); height: 2px; background: var(--line); overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 0; background: var(--lime); }
.pre-count { margin: 0; color: var(--muted); font-size: 12px; }
.pre-curtain { position: absolute; left: 0; right: 0; height: 50%; z-index: -1; }
.preloader { background: var(--leaves), var(--black); }
.pre-curtain--a { top: 0; background: var(--green-3); transform: scaleY(0); transform-origin: top; }
.pre-curtain--b { bottom: 0; background: var(--green-3); transform: scaleY(0); transform-origin: bottom; }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 900; border-radius: 50%; display: none; opacity: 0; transition: opacity .3s; }
body.has-cursor .cursor, body.has-cursor .cursor-dot { opacity: 1; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(244, 241, 234, .6); display: none; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; mix-blend-mode: normal; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--lime); }
.cursor-label { font-family: var(--mono); font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--black); opacity: 0; transition: opacity .2s; letter-spacing: .06em; }
.cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--lime); border-color: var(--lime); }
.cursor.is-big .cursor-label { opacity: 1; }
.cursor.is-link { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--lime); }
@media (hover: hover) and (pointer: fine) { .cursor { display: grid; } .cursor-dot { display: block; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut); transition: transform .5s var(--ease), background .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(7, 10, 8, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.brand { text-decoration: none; display: grid; line-height: 1; }
.brand-kicker { font-size: 9px; letter-spacing: .5em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.brand-name { font-weight: 900; font-stretch: 70%; font-size: 24px; letter-spacing: -.01em; margin: 0; }
.brand-name b { color: var(--green); font-weight: 900; margin-left: 4px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 9px 14px; border-radius: 999px; transition: .3s; }
.nav-links a:hover, .nav-links a.is-active { background: rgba(244, 241, 234, .1); color: var(--lime); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: rgba(7, 10, 8, .4); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: .4s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--leaves), radial-gradient(80% 60% at 80% 10%, rgba(31,179,90,.35), transparent), var(--green-3); padding: 110px var(--gut) 40px; display: flex; flex-direction: column; justify-content: space-between; clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease); }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu a { text-decoration: none; font-size: clamp(38px, 11vw, 64px); font-weight: 900; font-stretch: 70%; text-transform: uppercase; line-height: 1.05; display: flex; align-items: baseline; gap: 14px; }
.mobile-menu a small { font-size: 12px; color: var(--lime); font-weight: 400; }
.mm-foot { color: var(--muted); font-size: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding-bottom: clamp(70px, 10vh, 120px); }
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transform: scale(1.15); filter: saturate(1.05); }
.fireflies { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(12,52,31,.94) 0%, rgba(12,52,31,.72) 38%, rgba(12,52,31,.1) 75%),
  linear-gradient(180deg, rgba(12,52,31,.6) 0%, rgba(12,52,31,0) 25%, rgba(12,52,31,.35) 65%, var(--black) 100%),
  radial-gradient(120% 80% at 0% 100%, rgba(6,61,30,.9), transparent 60%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gut); }
.hero-title { margin: 0 0 22px; line-height: .86; }
.ht-line { display: block; overflow: hidden; padding-bottom: .04em; }
.ht-line .ch { display: inline-block; will-change: transform; }
.ht-outline { font-size: clamp(64px, 15.5vw, 250px); font-weight: 900; font-stretch: 62%; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 2px var(--white); }
.ht-serif { font-family: var(--serif); font-style: italic; font-size: clamp(54px, 10vw, 160px); color: var(--lime); margin-top: -.12em; padding: .06em .14em .24em .14em; margin-left: -.14em; margin-bottom: -.16em; }
.hero-lead { max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); color: var(--white-2); margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; display: flex; gap: 24px; font-size: 11px; color: var(--muted); z-index: 2; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: grid; justify-items: center; gap: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); text-decoration: none; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--lime), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee-wrap { position: relative; padding: 30px 0; overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; padding: 16px 0; }
.marquee--green { background: var(--green); color: var(--black); transform: rotate(-2deg); margin: 0 -20px; position: relative; z-index: 2; }
.marquee--black { background: var(--white); color: var(--black); transform: rotate(1.5deg); margin: -16px -20px 0; }
.marquee-track { display: inline-flex; gap: 0; font-weight: 900; font-stretch: 65%; font-size: clamp(26px, 4vw, 54px); text-transform: uppercase; animation: marq 40s linear infinite; }
.marquee-track--rev { animation-direction: reverse; animation-duration: 55s; }
.marquee-track span { padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: "✺"; font-size: .6em; color: var(--orange); }
.marquee--black .marquee-track span::after { color: var(--green); }
.marquee-track .serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-stretch: 100%; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Perfil ---------- */
.perfil-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.perfil-photo { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; transform-style: preserve-3d; }
.pp-blob { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--green), var(--green-3) 70%); animation: morph 12s ease-in-out infinite; }
@keyframes morph { 0%, 100% { border-radius: 50% 50% 50% 50%; } 33% { border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; } 66% { border-radius: 42% 58% 45% 55% / 55% 42% 58% 45%; } }
.perfil-photo img { position: absolute; left: 50%; bottom: 0; width: 78%; transform: translateX(-50%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.pp-ring { position: absolute; inset: -2%; animation: spin 26s linear infinite; }
.pp-ring svg { width: 100%; height: 100%; overflow: visible; }
.pp-ring text { font-family: var(--mono); font-size: 13.6px; font-weight: 800; letter-spacing: .32em; fill: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }
.pp-badge { position: absolute; right: 0; top: 14%; background: var(--lime); color: var(--black); padding: 12px 16px; border-radius: 14px; font-size: 11px; line-height: 1.4; transform: rotate(6deg); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.perfil-text p { color: var(--white-2); font-size: clamp(16px, 1.25vw, 18px); max-width: 640px; }
.perfil-text strong { color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--black); padding: 22px; display: grid; gap: 6px; }
.stat-num { font-size: clamp(42px, 5vw, 72px); font-weight: 900; font-stretch: 62%; line-height: 1; color: var(--lime); }
.stat span { font-size: 13px; color: var(--muted); }
.formacion { margin-top: clamp(80px, 10vw, 140px); }
.edu-list { border-top: 1px solid var(--line); }
.edu { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .4s var(--ease); }
.edu::before { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.edu:hover { padding-left: 20px; padding-right: 20px; }
.edu:hover::before { transform: scaleY(1); }
.edu h3 { margin: 0; font-size: clamp(22px, 3vw, 42px); font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 1.05; }
.edu p { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--white-2); }
.edu-n { color: var(--lime); font-size: 14px; }
.edu:hover .edu-n { color: var(--black); }
.edu-tag { font-size: 11px; text-transform: uppercase; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }

/* ---------- Trayectoria (horizontal) ---------- */
.tray { position: relative; background: var(--leaves), radial-gradient(60% 60% at 80% 20%, rgba(31,179,90,.18), transparent 70%), var(--ink); }
.tray-pin { padding: clamp(80px, 10vw, 130px) 0; }
.tray-head { max-width: 1360px; margin: 0 auto 40px; padding: 0 var(--gut); }
.tray-head .h2 { max-width: 900px; }
.tray-sub { color: var(--muted); max-width: 520px; margin: 0; }
.tray-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcard { min-height: 260px; text-decoration: none; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .5s var(--ease); }
.tcard:hover { transform: translateY(-10px) rotate(-1deg); }
.tcard h3 { overflow-wrap: anywhere; hyphens: auto; font-size: clamp(19px, 1.65vw, 27px); line-height: 1; font-weight: 800; font-stretch: 72%; text-transform: uppercase; margin: auto 0 14px; }
.tcard p { margin: 0; color: var(--white-2); font-size: 15px; }
.tcard-n { font-size: 13px; color: var(--muted); }
.tcard-ico { width: 52px; height: 52px; margin-top: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; color: var(--lime); }
.tcard--green { background: var(--green); color: var(--black); border-color: var(--green); }
.tcard--green p, .tcard--green .tcard-n, .tcard--lime p, .tcard--lime .tcard-n, .tcard--white p, .tcard--white .tcard-n { color: rgba(12,52,31,.75); }
.tcard--green .tcard-ico, .tcard--lime .tcard-ico, .tcard--white .tcard-ico { color: var(--black); }
.tcard--lime { background: var(--lime); color: var(--black); border-color: var(--lime); }
.tcard--white { background: var(--white); color: var(--black); }
.tcard--end { background: transparent; border-style: dashed; justify-content: center; }
.tcard--end h3 { margin: 10px 0; font-size: clamp(28px, 2.6vw, 40px); }
.tcard--end:hover { border-color: var(--lime); }
.tcard--end em { font-family: var(--serif); font-weight: 400; color: var(--lime); text-transform: none; }
.tcard--end .arrow { font-size: 54px; color: var(--lime); }
.tray-progress { margin: 36px var(--gut) 0; height: 2px; background: var(--line); }
.tray-progress i { display: block; height: 100%; width: 0; background: var(--lime); }

/* ---------- Cero pesos ---------- */
.cero { background: var(--white); color: var(--black); overflow: hidden; }
.wave { position: absolute; left: 0; width: 100%; height: 90px; }
.wave--top { top: -1px; fill: var(--ink); }
.cero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; align-items: end; }
.cero .eyebrow { color: var(--green-2); grid-column: 1 / -1; }
.cero-big { margin: 0; font-size: clamp(160px, 30vw, 460px); line-height: .78; font-weight: 900; font-stretch: 62%; letter-spacing: -.04em; color: var(--green); }
.cero-big .ch { display: inline-block; }
.cero-text { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; margin: 0 0 20px; }
.cero-photo { grid-column: 1 / -1; border-radius: var(--radius); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; margin-top: 40px; }

/* ---------- Mapa ---------- */
.mapa { background: radial-gradient(90% 70% at 70% 30%, rgba(31,179,90,.2), transparent 70%), var(--leaves), var(--black); overflow: hidden; }
.mapa-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.mapa-head .h2 { max-width: 760px; margin: 0; }
.zone-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; transition: .3s var(--ease); }
.chip:hover { border-color: var(--white); }
.chip.is-active { background: var(--white); color: var(--black); border-color: var(--white); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--norte { background: var(--green); } .dot--centro { background: var(--lime); } .dot--sur { background: var(--white); border: 1px solid #999; }
.mapa-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; }
.mapa-stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 60px 60px, var(--ink);
  overflow: hidden; min-height: 420px; }
#mapaSvg { width: 100%; height: 100%; display: block; padding: 3%; overflow: visible; }
.muni { stroke: var(--black); stroke-width: 1.4; cursor: pointer; transition: fill .4s var(--ease), opacity .4s, filter .3s; vector-effect: non-scaling-stroke; }
.muni[data-zone="Norte"] { fill: var(--green); }
.muni[data-zone="Centro"] { fill: var(--lime); }
.muni[data-zone="Sur"] { fill: var(--white); }
.muni.is-dim { opacity: .14; }
.muni:hover, .muni.is-active { filter: brightness(1.15) drop-shadow(0 0 14px rgba(200,243,29,.65)); }
.muni.is-active { stroke: var(--black); stroke-width: 3; }
.muni-outline { fill: none; stroke: var(--lime); stroke-width: 2; pointer-events: none; vector-effect: non-scaling-stroke; }
.muni-pin { pointer-events: none; }
.muni-pin circle { fill: var(--black); }
.muni-pin .pulse { fill: none; stroke: var(--black); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.muni-pin.home circle { fill: #e2382f; }
.muni-pin.home .pulse { stroke: #e2382f; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(4.5); opacity: 0; } }
.muni-label { font-family: var(--mono); font-size: 11px; font-weight: 800; fill: var(--black); pointer-events: none; text-transform: uppercase; paint-order: stroke; stroke: rgba(255,255,255,.0); }
.map-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--black); border: 1px solid var(--lime); color: var(--white); font-size: 12px; padding: 8px 12px; border-radius: 10px; transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; }
.map-tip b { color: var(--lime); }
.map-tools { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; }
.map-tools-txt { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.map-compass { position: absolute; right: 18px; top: 14px; font-size: 12px; color: var(--muted); margin: 0; }
.mapa-panel { border-radius: var(--radius); background: var(--white); color: var(--black); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.mapa-panel .eyebrow { color: var(--green-2); margin: 0; }
.mp-name { font-size: clamp(34px, 3.6vw, 54px); line-height: .95; margin: 0; font-weight: 900; font-stretch: 65%; text-transform: uppercase; }
.mp-desc { margin: 0; color: #3b423d; }
.mp-data { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.mp-data div { border: 1px solid rgba(12,52,31,.15); border-radius: 14px; padding: 12px 14px; }
.mp-data dt { font-size: 10px; text-transform: uppercase; color: #58605a; }
.mp-data dd { margin: 4px 0 0; font-weight: 700; font-size: 15px; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: auto; }
.mp-chips button { font-family: var(--mono); font-size: 11px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(12,52,31,.2); background: transparent; color: var(--black); transition: .25s; }
.mp-chips button:hover, .mp-chips button.is-active { background: var(--black); color: var(--lime); border-color: var(--black); }
.mapa-panel .btn { margin-top: 10px; }
.mapa-panel .btn-lime::after { background: var(--black); }
.mapa-panel .btn-lime:hover { color: var(--lime); }
.mapa-note { font-size: 11px; color: var(--muted); margin-top: 16px; }

/* ---------- Gracias (mosaico) ---------- */
.gracias { position: relative; background: radial-gradient(70% 60% at 50% 45%, rgba(31,179,90,.16), transparent 70%), var(--leaves), linear-gradient(180deg, #0d3721, #124a2c); padding: 110px 0 100px; overflow: hidden; }
.gracias::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); pointer-events: none; }
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 3; }
.g-top .eyebrow { margin: 0; }
.g-count { margin: 0; font-size: 13px; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.g-count b { color: var(--white); }
.g-stage { position: relative; width: 100%; height: min(82vh, 860px); min-height: 460px; margin: 10px 0 0; }
.g-word { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; font-size: clamp(80px, 21vw, 340px); font-weight: 900; font-stretch: 62%; letter-spacing: -.02em; color: rgba(244,241,234,.12); line-height: 1; white-space: nowrap; pointer-events: none; user-select: none; }
#mosaico { position: absolute; inset: 0; width: 100%; height: 100%; }
.lupa { position: absolute; left: 0; top: 0; width: 260px; height: 260px; border-radius: 50%; border: 2px solid var(--lime); box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 0 6px rgba(0,0,0,.35); pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s var(--ease); z-index: 4; background: #0f3d25; }
.lupa.is-on { opacity: 1; transform: scale(1); }
.g-stage.lupa-mode { cursor: none; }
.g-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--lime); color: var(--black); font-size: 12px; font-weight: 800; padding: 8px 12px; border-radius: 10px; transform: translate(-50%, calc(-100% - 14px)); max-width: 280px; white-space: normal; }
.g-tip small { display: block; font-weight: 400; }
.nombre-vivo { position: absolute; left: 50%; top: 50%; z-index: 6; margin: 0; transform: translate(-50%, -50%); font-family: var(--mono); font-weight: 800; font-size: clamp(28px, 5vw, 64px); color: var(--lime); text-shadow: 0 6px 40px rgba(200,243,29,.5); white-space: nowrap; pointer-events: none; opacity: 0; }
.lupa-btn { position: absolute; right: var(--gut); bottom: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(12,52,31,.75); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; backdrop-filter: blur(6px); }
.lupa-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.lupa-btn[aria-pressed="true"] { background: var(--lime); color: var(--black); border-color: var(--lime); }
.g-base { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 10px; position: relative; z-index: 3; }
.g-legend { max-width: 470px; color: var(--white-2); margin: 0; font-size: 17px; }
.g-legend strong { color: var(--white); }
.g-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.g-you { width: 100%; margin: 0 0 4px; color: var(--white-2); }
.g-you strong { color: var(--lime); }
.g-list { margin-top: 90px; position: relative; z-index: 3; }
.g-list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.g-list-head h3 { margin: 0; font-size: clamp(28px, 3.4vw, 48px); font-weight: 900; font-stretch: 65%; text-transform: uppercase; }
.g-list-head h3 span { color: var(--lime); }
.search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; min-width: min(340px, 100%); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { background: none; border: 0; color: var(--white); padding: 13px 0; width: 100%; font: 14px var(--mono); outline: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.g-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.g-table th { text-align: left; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.g-table td { padding: 13px 18px; border-bottom: 1px solid rgba(244,241,234,.06); vertical-align: top; }
.g-table td:first-child { font-weight: 700; white-space: nowrap; }
.g-table td:nth-child(2) { color: var(--white-2); font-family: var(--serif); font-style: italic; font-size: 17px; }
.g-table td:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.g-table tr.is-new td { background: rgba(200,243,29,.12); }
.g-table .empty td { text-align: center; color: var(--muted); padding: 30px; font-family: var(--mono); font-style: normal; font-size: 13px; }
#gMore { margin-top: 18px; }
.g-note { font-size: 11px; color: var(--muted); margin-top: 18px; }

/* ---------- Galería ---------- */
.galeria { overflow: hidden; }
.gal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.gal-head .h2 { margin: 0; }
.gal-nav { display: flex; gap: 10px; }
.gal-track { display: flex; gap: 18px; padding: 0 var(--gut); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; align-items: flex-end; user-select: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gal-track.is-drag .gal-item { pointer-events: none; }
.gal-item { margin: 0; flex: none; width: clamp(260px, 32vw, 460px); scroll-snap-align: start; position: relative; }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform .8s var(--ease), filter .5s; filter: grayscale(.25); }
.gal-item--tall { width: clamp(220px, 24vw, 340px); }
.gal-item--tall img { aspect-ratio: 3 / 4; }
.gal-item--wide { width: clamp(320px, 50vw, 760px); }
.gal-item--wide img { aspect-ratio: 3 / 1; }
.gal-item:hover img { filter: none; transform: scale(.98); }
.gal-item figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 22px; }
.gal-item figcaption .mono { font-style: normal; font-size: 11px; color: var(--lime); }
.gal-progress { height: 2px; background: var(--line); margin-top: 30px; }
.gal-progress i { display: block; height: 100%; width: 10%; background: var(--lime); transition: width .2s; }

/* ---------- Video ---------- */
.video { background: var(--green-3); overflow: hidden; }
.video::before { content: "VIDEO"; position: absolute; right: -2vw; bottom: -4vw; font-size: 26vw; font-weight: 900; font-stretch: 62%; color: rgba(244,241,234,.05); line-height: 1; pointer-events: none; }
.video-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; position: relative; }
.video-text p { color: var(--white-2); max-width: 520px; font-size: 17px; }
.video-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.phone { justify-self: center; width: 301px; padding: 52px 17px 22px; border-radius: 46px; background: #050705; border: 1px solid rgba(244,241,234,.18); box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 0 0 6px #111; position: relative; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 999px; background: #1a1a1a; }
.phone-fallback { position: absolute; left: 17px; right: 17px; top: 52px; bottom: 22px; border-radius: 18px; overflow: hidden; display: grid; place-items: end center; padding: 20px; text-decoration: none; background: linear-gradient(transparent 40%, rgba(0,0,0,.85)), url('/img/florencia-1.jpg') center / cover; font: 800 12px var(--mono); text-transform: uppercase; color: var(--lime); }
.phone iframe { position: relative; display: block; width: 267px; height: 476px; border-radius: 18px; background: #000; }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); }
.contacto-info p { color: var(--white-2); font-size: 17px; max-width: 460px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .mono { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; color: var(--lime); }
.form { background: var(--ink-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 3vw, 40px); display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0; margin-bottom: 8px; }
.field > span em { font-style: normal; opacity: .7; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--black); border: 1.5px solid var(--line); border-radius: 14px; color: var(--white);
  padding: 14px 16px; font: 15px var(--display); transition: border-color .25s, box-shadow .25s; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200,243,29,.14); }
.field.has-error input, .field.has-error textarea { border-color: #ff6b5e; }
.err { font-style: normal; font-size: 12px; color: #ff8a7f; min-height: 0; }
.err:empty { display: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-family: var(--mono); font-size: 12px; transition: .25s; }
.seg input:checked + span { background: var(--lime); color: var(--black); border-color: var(--lime); }
.seg input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--white-2); cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--muted); border-radius: 6px; flex: none; margin: 1px 0 0; display: grid; place-items: center; background: var(--black); }
.check input:checked { background: var(--lime); border-color: var(--lime); }
.check input:checked::after { content: "✓"; color: var(--black); font-size: 13px; font-weight: 900; }
.form-status { margin: 0; font-family: var(--mono); font-size: 13px; min-height: 1em; }
.form-status.ok { color: var(--lime); } .form-status.bad { color: #ff8a7f; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 0 0 30px; overflow: hidden; background: linear-gradient(180deg, transparent 0, #0f4227 180px, #0d3721 100%); }
.footer-word { font-size: clamp(80px, 20vw, 340px); font-weight: 900; font-stretch: 62%; line-height: .8; text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgba(200,243,29,.22); letter-spacing: -.02em; margin: 30px 0 40px; user-select: none; position: relative; z-index: 1; }
.footer-word span { color: transparent; -webkit-text-stroke-color: var(--orange); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-kicker { color: var(--muted); font-size: 11px; text-transform: uppercase; margin: 6px 0 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--white-2); }
.footer-links a:hover { color: var(--lime); }
.footer-social { display: flex; gap: 10px; align-items: center; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.flag { display: inline-flex; width: 54px; height: 14px; border-radius: 3px; overflow: hidden; }
.flag i { flex: 1; } .flag i:nth-child(1) { background: var(--green); } .flag i:nth-child(2) { background: var(--white); } .flag i:nth-child(3) { background: var(--black); border: 1px solid var(--line); }

/* ---------- Modal / Lightbox / Toast ---------- */
dialog { border: 0; padding: 0; color: var(--white); }
dialog::backdrop { background: rgba(12,52,31,.78); backdrop-filter: blur(8px); }
.modal { background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); overflow: visible; }
.modal-form { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-title { margin: 0; font-size: clamp(42px, 7vw, 64px); line-height: .9; font-weight: 900; font-stretch: 65%; text-transform: uppercase; }
.modal-title em { font-family: var(--serif); font-weight: 400; color: var(--lime); text-transform: none; }
.modal-text { margin: 0 0 6px; color: var(--white-2); font-size: 15px; }
.modal-text strong { color: var(--white); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 22px; line-height: 1; z-index: 2; }
.modal-x:hover { background: var(--lime); color: var(--black); }
.lightbox { background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(1200px, 88vw); max-height: 78vh; border-radius: 18px; object-fit: contain; }
.lightbox .modal-x { position: fixed; top: 20px; right: 20px; background: var(--black); }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); background: var(--black); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-cap { position: fixed; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--white-2); margin: 0; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1100; background: var(--lime); color: var(--black); padding: 14px 22px; border-radius: 999px; font: 800 13px var(--mono); box-shadow: 0 20px 50px rgba(0,0,0,.4); max-width: calc(100vw - 32px); text-align: center; }

/* =========================================================
   SELVA — palmas, lianas, neblina, aves, copa, escena CA·QUE·TÁ
   ========================================================= */
section, .hero, .footer { position: relative; }
.container, .hero-inner, .g-top, .g-base, .g-list, .g-stage { position: relative; z-index: 2; }
.jungle { position: absolute; z-index: 1; pointer-events: none; width: 0; height: 0; transform-origin: 0 0; }
.jungle--bl { left: -30px; bottom: -40px; }
.jungle--br { right: -30px; bottom: -40px; transform: scaleX(-1); }
.jungle--tr { right: -40px; top: 60px; transform: scale(-1, -1); }
.jungle .frond { position: absolute; left: 0; top: 0; transform-origin: 0 60%; transform: rotate(var(--rot)); animation: sway var(--dur) ease-in-out var(--delay) infinite alternate; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
@keyframes sway { from { transform: rotate(calc(var(--rot) - var(--sway))); } to { transform: rotate(calc(var(--rot) + var(--sway))); } }
.hero .jungle { z-index: 1; }
.hero .jungle .frond { opacity: .95 !important; }
.vines { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 1; pointer-events: none; }
.vine { position: absolute; top: -4px; transform-origin: 50% 0; animation: vine var(--dur) ease-in-out var(--delay) infinite alternate; }
@keyframes vine { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.mist { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.mist i { position: absolute; width: 70vw; height: 40vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(214,238,196,.10), transparent); filter: blur(30px); animation: mist 28s ease-in-out infinite alternate; }
.mist i:nth-child(1) { left: -20vw; bottom: 0; }
.mist i:nth-child(2) { left: 30vw; bottom: 10%; animation-duration: 36s; animation-delay: -10s; }
.mist i:nth-child(3) { right: -25vw; bottom: -10%; animation-duration: 42s; animation-delay: -20s; }
@keyframes mist { from { transform: translateX(-8vw) scale(1); } to { transform: translateX(12vw) scale(1.25); } }
.ff { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.birds { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.bird { position: absolute; left: 0; top: var(--y); width: 40px; transform: scale(var(--s)); animation: fly var(--dur) linear var(--delay) infinite; }
.bird svg { display: block; width: 40px; height: 16px; fill: #0d3721; animation: flap var(--flap) ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes fly { from { transform: translate(-10vw, 0) scale(var(--s)); } 50% { transform: translate(50vw, -4vh) scale(var(--s)); } to { transform: translate(110vw, 2vh) scale(var(--s)); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.6); } }
.canopy { position: relative; height: clamp(120px, 16vw, 220px); margin-bottom: -2px; }
.canopy svg { width: 100%; height: 100%; display: block; }
.footer .ff { z-index: 0; }

/* Botón de sonido */
.sound-btn .eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-btn .eq i { width: 3px; height: 4px; background: currentColor; border-radius: 2px; transition: height .3s; }
.sound-btn[aria-pressed="true"] .eq i { animation: eq .8s ease-in-out infinite alternate; }
.sound-btn[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.sound-btn[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.55s; }
.sound-btn[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* Escena CA·QUE·TÁ */
.selva { height: 300vh; background: var(--black); }
.selva-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(60% 50% at 50% 55%, rgba(31,179,90,.28), transparent 70%), var(--leaves), linear-gradient(180deg, #0d3721 0%, #1b6a3d 60%, #0f3d25 100%); }
.selva-bg { position: absolute; inset: 0; opacity: 0; z-index: 0; }
.selva-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.selva-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 75%, rgba(12,52,31,.85), rgba(12,52,31,.35) 70%), linear-gradient(180deg, rgba(12,52,31,.4), rgba(12,52,31,.2) 40%, rgba(12,52,31,.9)); }
.selva-word { position: relative; z-index: 3; margin: 0; display: grid; justify-items: start; line-height: .8;
  font-size: clamp(96px, min(34vw, 30vh), 400px); font-weight: 900; font-stretch: 112%; letter-spacing: -.045em;
  background: url("/img/obra-comunidad.jpg") 50% 50% / cover; -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px rgba(214,255,90,.85); filter: drop-shadow(0 0 1px rgba(10,40,20,.9)) drop-shadow(0 24px 50px rgba(5,30,15,.65)); will-change: transform; transform-origin: 46% 52%; }
.selva-word span { display: block; position: relative; }
.sw-2 { margin-left: -.02em; }
.selva-mono { position: absolute; right: .02em; bottom: 78%; width: .55em; -webkit-text-stroke: 0; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); pointer-events: none; }
.tilde { position: absolute; left: .78em; top: -.16em; width: .34em; height: .13em; background: var(--orange); transform: skewX(-38deg) rotate(-6deg); border-radius: 2px; box-shadow: 0 0 40px rgba(243,154,30,.55); }
.selva-msg { position: absolute; z-index: 4; left: 0; right: 0; bottom: 12vh; text-align: center; }
.selva-msg .eyebrow { color: var(--lime); }
.selva-big { margin: 0 auto 18px; font-size: clamp(38px, 6.5vw, 100px); line-height: .95; font-weight: 900; font-stretch: 75%; text-transform: uppercase; max-width: 1100px; text-shadow: 0 10px 40px rgba(0,0,0,.6); }
.selva-big em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--lime); font-stretch: 100%; }
.selva-fact { margin: 0 auto; max-width: 560px; color: var(--white-2); font-size: 16px; }
.selva-fact b { color: var(--orange); }
.selva-hint { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; z-index: 4; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.js .selva-msg > * { opacity: 0; }
.selva-static .selva { height: auto; }
.selva-static .selva-sticky { position: relative; min-height: 100vh; padding: 120px 0 280px; }
.selva-static .selva-msg > * { opacity: 1 !important; }


/* =========================================================
   GUACAMAYAS · RÍO LA FRAGUA · SONIDOS · HOJAS
   ========================================================= */
.macaw-overlay { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.macaw-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.macaw { position: absolute; left: 0; top: 0; will-change: transform; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }
.macaw svg { display: block; width: 100%; height: auto; overflow: visible; }
.macaw--rtl svg { transform: scaleX(-1); }
.macaw .wing { transform-origin: 108px 54px; transform-box: view-box; animation: wingflap var(--flap, .4s) ease-in-out infinite alternate; }
.macaw .wing--far { animation-delay: -.05s; }
@keyframes wingflap { from { transform: scaleY(1) rotate(-6deg); } to { transform: scaleY(-.75) rotate(4deg); } }

.leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.leaf-fall { position: absolute; top: -40px; width: calc(16px * var(--s)); animation: leaffall var(--dur) linear var(--delay) infinite; opacity: .9; }
.leaf-fall svg { width: 100%; display: block; animation: leafspin calc(var(--dur) / 4) ease-in-out infinite alternate; }
@keyframes leaffall { from { transform: translate(0, -5vh); } to { transform: translate(var(--x), 110vh); } }
@keyframes leafspin { from { transform: rotate(-40deg) rotateY(0); } to { transform: rotate(50deg) rotateY(160deg); } }

/* Río La Fragua */
.fragua { overflow: hidden; background: linear-gradient(180deg, #145a35, #1b6e42 50%, #145a35); }
.fragua-bg { position: absolute; inset: -10% 0; background: url("/img/rio-fragua-blur.jpg") center / cover; opacity: .45; filter: saturate(1.3); }
.fragua-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 70% 50%, rgba(127,211,201,.18), transparent 60%), linear-gradient(90deg, rgba(15,61,37,.92) 10%, rgba(15,61,37,.55) 60%, rgba(15,61,37,.75)); }
.fragua-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.fragua-title { margin: 0 0 22px; font-size: clamp(56px, 9vw, 150px); line-height: .86; font-weight: 900; font-stretch: 70%; text-transform: uppercase; letter-spacing: -.02em; }
.fragua-title .ln { display: block; overflow: hidden; padding-bottom: .05em; }
.fragua-title .ch-w { display: inline-block; }
.fragua-title em { font-family: var(--serif); font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--river); letter-spacing: -.01em; }
.fragua-lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--white-2); max-width: 540px; }
.fragua-facts { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; }
.fragua-facts li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fragua-facts b { color: var(--river); font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 15px; }
.fragua-facts span { color: var(--white-2); font-size: 15px; }
.fragua-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.fragua-photo { position: relative; margin: 0; border-radius: 220px 220px 28px 28px; overflow: hidden; aspect-ratio: 506 / 606; max-width: 520px; width: 100%; justify-self: center; box-shadow: 0 40px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.15); transition: transform .6s var(--ease); }
.fragua-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-water { filter: url(#water); clip-path: polygon(43% 46%, 55% 46%, 66% 62%, 100% 82%, 100% 100%, 0 100%, 0 76%, 26% 62%); transform: scale(1.02); }
.fp-shine { position: absolute; inset: 0; clip-path: polygon(43% 46%, 55% 46%, 66% 62%, 100% 82%, 100% 100%, 0 100%, 0 76%, 26% 62%);
  background: repeating-linear-gradient(175deg, transparent 0 18px, rgba(255,255,255,.10) 22px, transparent 30px); background-size: 100% 200%; mix-blend-mode: screen; animation: shine 4s linear infinite; }
@keyframes shine { from { background-position: 0 0; } to { background-position: 0 100%; } }
.fragua-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: end; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.fragua-photo figcaption small { font-size: 10px; opacity: .8; text-transform: none; letter-spacing: 0; }

/* Sonidos del Caquetá */
.sonidos { overflow: hidden; background: radial-gradient(60% 50% at 20% 0%, rgba(255,201,51,.12), transparent 70%), radial-gradient(60% 60% at 90% 100%, rgba(47,127,224,.14), transparent 70%), var(--leaves), var(--ink); }
.sonidos-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sonidos-lead { color: var(--white-2); max-width: 520px; font-size: 17px; }
.ambient-btn .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; font-style: normal; }
.ambient-btn .eq b { width: 3px; height: 4px; background: currentColor; border-radius: 2px; }
.ambient-btn[aria-pressed="true"] .eq b { animation: eq .7s ease-in-out infinite alternate; }
.ambient-btn[aria-pressed="true"] .eq b:nth-child(2) { animation-delay: -.3s; } .ambient-btn[aria-pressed="true"] .eq b:nth-child(3) { animation-delay: -.5s; } .ambient-btn[aria-pressed="true"] .eq b:nth-child(4) { animation-delay: -.15s; }
.sonidos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.snd-card { --bg: var(--green); --fg: var(--white); position: relative; text-align: left; border: 0; border-radius: 26px; padding: 22px; min-height: 230px; background: var(--bg); color: var(--fg); display: flex; flex-direction: column; gap: 6px; overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s; box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.snd-card::before { content: ""; position: absolute; width: 180%; aspect-ratio: 1; left: -40%; top: 60%; border-radius: 50%; background: rgba(255,255,255,.14); transform: scale(0); transition: transform .7s var(--ease); z-index: -1; }
.snd-card:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 26px 50px rgba(0,0,0,.3); }
.snd-card:hover::before, .snd-card.is-playing::before { transform: scale(1); }
.snd-card--red { --bg: var(--macaw-red); } .snd-card--earth { --bg: #a24a25; } .snd-card--orange { --bg: var(--orange); --fg: #1d1406; }
.snd-card--yellow { --bg: var(--macaw-yellow); --fg: #1d1406; } .snd-card--lime { --bg: var(--lime); --fg: #10200b; } .snd-card--green { --bg: #2a9a52; }
.snd-card--river { --bg: #22948a; } .snd-card--blue { --bg: var(--macaw-blue); }
.snd-ico { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); margin-bottom: auto; }
.snd-ico svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.snd-name { font-size: clamp(22px, 2vw, 28px); font-weight: 900; font-stretch: 75%; text-transform: uppercase; line-height: 1; margin-top: 18px; }
.snd-sub { font-size: 11px; opacity: .8; font-style: italic; }
.snd-play { position: absolute; top: 22px; right: 22px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.18); transition: opacity .3s; }
.snd-waves { position: absolute; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 3px; height: 34px; }
.snd-waves i { width: 4px; height: 6px; border-radius: 3px; background: currentColor; opacity: .5; }
.snd-card.is-playing .snd-waves i { animation: wave .5s ease-in-out infinite alternate; opacity: 1; }
.snd-card.is-playing .snd-waves i:nth-child(2n) { animation-delay: -.2s; } .snd-card.is-playing .snd-waves i:nth-child(3n) { animation-delay: -.35s; }
.snd-card.is-playing .snd-play { opacity: 0; }
.snd-card.is-loading .snd-waves i { animation: wave .9s ease-in-out infinite alternate; opacity: .7; }
.snd-card.is-playing .snd-waves { cursor: pointer; }
.snd-card.is-playing { animation: pulsecard 1s ease-in-out infinite alternate; }
@keyframes wave { from { height: 6px; } to { height: 32px; } }
@keyframes pulsecard { from { box-shadow: 0 0 0 0 rgba(200,243,29,.0), 0 16px 34px rgba(0,0,0,.2); } to { box-shadow: 0 0 0 8px rgba(200,243,29,.25), 0 16px 34px rgba(0,0,0,.2); } }
.sonidos-note { margin-top: 18px; font-size: 11px; color: var(--muted); }

@media (max-width: 1080px) {
  .tray-track { grid-template-columns: repeat(2, 1fr); }
  .fragua-grid { grid-template-columns: 1fr; }
  .fragua-photo { max-width: 460px; }
  .sonidos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .fragua-facts li { grid-template-columns: 1fr; gap: 4px; }
  .sonidos-grid { gap: 10px; }
  .snd-card { min-height: 190px; padding: 16px; border-radius: 20px; }
  .snd-ico { width: 48px; height: 48px; } .snd-ico svg { width: 30px; height: 30px; }
  .snd-play { top: 16px; right: 14px; font-size: 9px; padding: 4px 8px; }
  .snd-waves { right: 14px; top: 18px; bottom: auto; height: 24px; }
  .hero-img { object-position: 42% 0%; }
  .snd-name { font-size: 20px; }
  .ambient-btn { width: 100%; }
  .fragua-cta .btn { flex: 1 1 100%; }
  .nav-actions { gap: 6px; }
}

.g-live { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--white); background: rgba(229,57,44,.18); border: 1px solid rgba(229,57,44,.5); padding: 6px 12px; border-radius: 999px; }
.g-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff4a3d; box-shadow: 0 0 0 0 rgba(255,74,61,.7); animation: livedot 1.6s infinite; }
.g-live b { color: var(--lime); }
@keyframes livedot { 0% { box-shadow: 0 0 0 0 rgba(255,74,61,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,74,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,74,61,0); } }
.nombre-vivo small { display: block; font-size: .32em; font-weight: 600; color: var(--white); text-align: center; margin-top: 6px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }


/* ---------- Ideas colectivas ---------- */
.g-legend { max-width: 620px; }
.g-legend p { margin: 0; color: var(--white-2); font-size: 16px; }
.g-title { margin: 0 0 10px; font-size: clamp(38px, 5vw, 70px); line-height: .92; font-weight: 900; font-stretch: 70%; text-transform: uppercase; }
.g-title em { font-family: var(--serif); font-weight: 400; text-transform: none; color: var(--lime); font-stretch: 100%; }
.g-pulse { margin-top: 70px; position: relative; z-index: 3; }
.gp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.gp-head h3 { margin: 0; font-size: clamp(28px, 3.4vw, 48px); font-weight: 900; font-stretch: 65%; text-transform: uppercase; }
.gp-head h3 em { font-family: var(--serif); font-weight: 400; text-transform: none; color: var(--lime); font-stretch: 100%; }
.gp-head p { margin: 0; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.gp-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.gp-col { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.gp-lbl { margin: 0 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.gp-bars { display: grid; gap: 8px; }
.gp-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; background: none; border: 0; padding: 4px 0; text-align: left; color: var(--white); font: 600 14px var(--display); cursor: pointer; }
.gp-bar[tabindex="-1"] { cursor: default; }
.gp-bar b { font-family: var(--mono); color: var(--lime); }
.gp-bar i { grid-column: 1 / -1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.gp-bar em { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--lime)); transition: width .8s var(--ease); }
.gp-bar[data-tema]:hover span { color: var(--lime); }
.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-chip { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: rgba(255,201,51,.14); border: 1px solid rgba(255,201,51,.35); }
.gp-chip b { font-family: var(--mono); color: var(--macaw-yellow); margin-left: 4px; }
.gp-empty { margin: 0; color: var(--muted); font-size: 14px; }
.g-filter select { background: transparent; border: 1.5px solid var(--line); color: var(--white); border-radius: 999px; padding: 12px 16px; font: 13px var(--mono); }
.g-filter select option { color: #10200b; }
.g-list-head { gap: 10px; }
.g-table td small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.g-tag { display: inline-block; font: 11px var(--mono); padding: 4px 9px; border-radius: 999px; background: rgba(200,243,29,.14); color: var(--lime); white-space: nowrap; }
.field .count { font-style: normal; font-size: 11px; color: var(--muted); justify-self: end; }
.modal-form textarea { min-height: 90px; }
@media (max-width: 860px) { .gp-grid { grid-template-columns: 1fr; } }

/* ---------- Animación base (si no hay JS, todo visible) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(40px); }
.js .reveal-clip { clip-path: inset(30% 10% 30% 10% round 30px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .perfil-grid, .video-grid, .contacto-grid, .mapa-grid, .cero-inner { grid-template-columns: 1fr; }
  .perfil-photo { max-width: 440px; }
  .mapa-stage { min-height: 0; aspect-ratio: 1000 / 780; }
}
@media (max-width: 640px) {
  .nav .btn-sm, .nav .icon-btn:not(.sound-btn) { display: none; }
  .jungle--bl { transform: scale(.55); }
  .jungle--br { transform: scale(-.55, .55); }
  .jungle--tr { transform: scale(-.5, -.5); }
  .selva { height: 240vh; }
  .selva-msg { bottom: 9vh; }
  .hero-side, .scroll-cue { display: none; }
  .ht-outline { -webkit-text-stroke-width: 1.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; }
  .edu { grid-template-columns: 40px 1fr; }
  .edu-tag { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .gal-head { flex-direction: column; align-items: flex-start; }
  .g-stage { height: 72vh; min-height: 380px; }
  .lupa { width: 200px; height: 200px; }
  .g-actions, .g-actions .btn { width: 100%; }
  .mp-data { grid-template-columns: 1fr; }
  .map-tools-txt { display: none; }
  .tray-track { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tcard { min-height: 230px; padding: 16px; border-radius: 18px; }
  .tcard h3 { font-size: 16px; margin-bottom: 8px; }
  .tcard p { font-size: 13px; line-height: 1.4; }
  .tcard-ico { width: 40px; height: 40px; margin-top: 12px; }
  .tcard--end h3 { font-size: 24px; }
  .tcard--end .arrow { font-size: 36px; }
  .cero-photo { aspect-ratio: 4 / 3; }
  .pp-badge { right: 4%; top: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
