/* Marfil y vidrio vegetal. Hoja única de estilos de la aplicación.
   Componentes base primero; variantes responsive al final. */


/* 00 — Tokens, reset y tipografía */

:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --bg2: #eeeadf;
  --panel: rgba(255,255,251,.62);
  --panel2: rgba(255,255,251,.78);
  --ink: #17392b;
  --muted: #4d6356;
  --faint: #65776b;
  --line: rgba(39,69,45,.13);
  --line2: rgba(39,69,45,.23);
  --teal: #315f39;
  --accent: #d4f68d;
  --amber: #94631c;
  --blue: #376b7f;
  --alert: #a4462e;
  --header-height: 76px;
  --radius: 16px;
  --glass-shadow: 0 12px 32px rgba(45,57,31,.09);
  --glass-border: rgba(255,255,255,.82);
  --forest-glass: linear-gradient(135deg,rgba(74,116,68,.87),rgba(8,44,30,.94));
  --forest-shell: linear-gradient(135deg,rgba(31,65,43,.94),rgba(7,35,26,.97));
  --forest-border: rgba(218,237,191,.32);
  --forest-shadow: inset 0 1px 0 rgba(239,255,220,.16), 0 12px 30px rgba(18,43,27,.14);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  scroll-padding-top: 104px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "DM Sans",system-ui,sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}

.wrap {
  margin: 0 auto;
  padding: 0 22px;
  max-width: 1480px;
  padding-inline: clamp(20px,4vw,56px);
}

button {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: #17392b;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}

h2,
h3,
h4 {
  font-family: "Newsreader", Georgia, serif;
  text-wrap: balance;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--bg);
  z-index: 1099;
  pointer-events: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cat-subsection {
  margin-top: 28px;
}

.panel-note {
  margin: 0 0 10px;
}

.note-spaced {
  margin: 8px 0 0;
}

#invEntradaAdd {
  align-self: flex-start;
}

.record-date {
  color: var(--faint);
}

.tooltip-species {
  opacity: .75;
}


:is(.kpis,
.map-controls,
.corridor-summary,
.cat-shell,
.corridor-discovery > section,
.corridor-timeline,
.impact-band,
.view-tabs,
.admin-bar,
.admin-modal-box,
.uses-dialog) {
  color-scheme: dark;
  --ink: #f3f5e9;
  --muted: #d1dfd0;
  --faint: #b5cbb8;
  --teal: #d4f68d;
  --amber: #f2c16f;
  --blue: #9ad3e7;
  --alert: #ffb08d;
  --line: rgba(212,235,192,.18);
  --line2: rgba(212,235,192,.34);
  --panel: rgba(12,40,29,.62);
  --panel2: rgba(43,77,48,.8);
  --bg2: #103326;
  color: var(--ink);
}

/* 01 — Navegación y acceso */

.admin-bar {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  display: none;
  position: fixed;
  right: 24px;
  z-index: 1090;
  margin-top: 0;
  width: min(420px,calc(100vw - 40px));
  border: 1px solid var(--line2);
  border-top: none;
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(18px);
  top: 88px;
  background: var(--forest-shell);
  border-color: var(--forest-border);
  color: var(--ink);
  box-shadow: var(--forest-shadow);
  -webkit-backdrop-filter: blur(18px);
}

.admin-bar .wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 5px;
  padding-bottom: 5px;
  min-height: 0;
  font-size: 11px;
  padding: 20px;
}

.admin-login-form {
  align-items: center;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  flex: 1 0 100%;
}

.admin-login-form input {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: inherit;
  width: 100%;
  min-height: 42px;
  background: rgba(5,28,20,.65);
  color: var(--ink);
}

.admin-login-form input:focus {
  outline: none;
  border-color: var(--teal);
}

.admin-login-form button {
  border: 1px solid var(--line2);
  border-radius: 7px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  min-height: 40px;
  font-weight: 600;
  background: var(--accent);
  color: #17392b;
}

.admin-status button {
  background: transparent;
  border: 1px solid var(--line2);
  color: var(--muted);
  border-radius: 7px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
}

.admin-login-form button:hover,
.admin-status button:hover {
  color: var(--ink);
  border-color: var(--teal);
}

.admin-status {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--teal);
}

.admin-login-error {
  color: var(--alert);
  font-size: 12px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 4000;
  background: var(--teal);
  color: var(--muted);
  padding: 12px 20px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  z-index: 1100;
  border-bottom: 1px solid var(--line);
  --ink: #f3f5e9;
  --muted: #d1dfd0;
  --faint: #acc1af;
  --teal: #d4f68d;
  --line: rgba(212,235,192,.18);
  --line2: rgba(212,235,192,.34);
  --panel: rgba(12,40,29,.62);
  --panel2: rgba(24,57,37,.72);
  --bg2: rgba(5,28,20,.45);
  color: var(--ink);
  top: 12px;
  left: 24px;
  right: 24px;
  height: 64px;
  border: 1px solid rgba(176,214,155,.38);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(239,255,222,.18), 0 8px 24px rgba(12,39,25,.17);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  background: linear-gradient(135deg,rgba(9,42,30,.88),rgba(4,27,20,.91));
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  margin: auto;
  padding: 0 22px;
  gap: 16px;
  max-width: none;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
  gap: 10px;
}

.brand img {
  object-fit: contain;
  width: 36px;
  height: 46px;
}

.brand span {
  text-transform: uppercase;
  line-height: 1.6;
  font-size: 8px;
  letter-spacing: .12em;
  color: #ebefe2;
}

.brand b {
  display: block;
  font-family: "Newsreader",serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .02em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav button {
  border: 0;
  background: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 10px;
  min-height: 36px;
  border-radius: 25px;
  color: #e4ebd9;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease;
}

.site-nav button:hover {
  background: rgba(218,241,186,.12);
  color: #f7fbe9;
}

.site-nav button.is-active {
  background: var(--accent);
  color: #17392b;
  box-shadow: 0 0 16px rgba(194,242,121,.24);
}

.site-nav button.is-active::after {
  position: absolute;
  bottom: 17px;
  height: 2px;
  background: var(--teal);
  left: 0;
  right: 0;
  border-radius: 2px;
  content: none;
}

.header-field {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid #85af5b;
  border-radius: 30px;
  text-decoration: none;
  padding: 9px 13px;
  font-size: 10px;
  color: #eef4dc;
  border-color: #c5e883;
  box-shadow: inset 0 0 0 1px rgba(192,232,128,.12);
}

.header-field svg {
  width: 15px;
  height: 15px;
  color: #d4f68d;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line2);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e4edd9;
  border-color: rgba(204,229,176,.4);
  background: rgba(1,19,12,.18);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.admin-bar:has(.admin-login-form) {
  border-bottom: 1px solid var(--line);
}

.account-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid #85af5b;
  border-radius: 50%;
  cursor: pointer;
  color: #e4edd9;
  border-color: rgba(204,229,176,.4);
  background: rgba(1,19,12,.18);
  width: 34px;
  height: 34px;
}

.account-toggle svg {
  width: 16px;
  height: 16px;
}

.admin-bar.is-open {
  display: block;
}

.site-nav button svg {
  width: 15px;
  height: 15px;
  color: #c7df85;
  flex: none;
}

.site-nav button.is-active svg {
  color: #17392b;
}

.site-nav button.is-active:hover {
  background: #e1fbb1;
  color: #17392b;
}


/* 02 — Video de portada y scroll */

header.hero {
  padding: 0;
  height: 440vh;
  position: relative;
  --copy-opacity: 1;
  --copy-shift: 0px;
  margin-top: var(--header-height);
  background: #04130f;
}

.hero-inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 140px;
  gap: 40px;
}

.hero-text {
  min-width: 0;
  max-width: 640px;
  transform: translateY(var(--copy-shift));
  opacity: var(--copy-opacity);
  transition: none;
  flex: none;
}

.eyebrow {
  text-transform: uppercase;
  font-family: "DM Sans",sans-serif;
  letter-spacing: .25em;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--teal);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(42px,4.6vw,72px);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.025em;
  max-width: 16ch;
  margin-bottom: 24px;
  font-family: "Newsreader", Georgia, serif;
  text-wrap: balance;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
}

.lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  max-width: 46ch;
  color: #e0e8d9;
}

.hero-stage {
  position: sticky;
  overflow: hidden;
  isolation: isolate;
  height: calc(100svh - var(--header-height));
  min-height: 620px;
  top: var(--header-height);
}

.hero-scroll-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  z-index: -3;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(0,14,8,.88),rgba(0,14,8,.5) 35%,transparent 66%),linear-gradient(0deg,#04130f 0%,rgba(4,19,15,.1) 26%,transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(3,16,10,.5),transparent 22%);
  z-index: -2;
  pointer-events: none;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 30px;
  border: 1px solid rgba(186,217,164,.7);
  background: rgba(3,21,13,.35);
  font-weight: 500;
  font-size: 12px;
  text-decoration: none;
  padding: 12px 23px;
  cursor: pointer;
  transition: background .2s,transform .2s,box-shadow .2s;
  color: #f4f7e8;
}

.action svg {
  width: 17px;
  height: 17px;
}

.action.primary {
  background: linear-gradient(120deg,#ccff91,#a8ed5e);
  border-color: #b5f36d;
  box-shadow: 0 0 28px -9px #a0f252;
  color: #17392b;
}

.action:hover {
  transform: translateY(-2px);
  background: #1b3a27;
}

.action.primary:hover {
  background: #ceffa0;
  box-shadow: 0 0 32px -8px #a0f252;
}

.hero-species {
  position: absolute;
  right: 4.5%;
  max-width: 155px;
  border-right: 2px solid var(--teal);
  padding-right: 18px;
  opacity: var(--copy-opacity);
  padding: 16px 18px 16px 24px;
  border-radius: 8px 0 0 8px;
  top: 20%;
  background: linear-gradient(90deg,transparent,rgba(3,23,11,.72));
}

.hero-species strong {
  display: block;
  font-family: "Newsreader",serif;
  font-size: 18px;
  font-weight: 400;
}

.hero-species em {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  color: #e0e8d9;
}

.hero-species p {
  font-size: 11px;
  line-height: 1.65;
  margin-top: 18px;
  color: #e0e8d9;
}


.film-entered .hero-text,
.film-entered .hero-species {
  pointer-events: none;
  visibility: hidden;
}

.hero-scroll.film-static {
  height: auto;
}

.film-static .hero-stage {
  position: relative;
  top: 0;
}

.film-static .hero-scroll-video[controls] {
  z-index: 0;
  object-fit: contain;
}

.film-static .hero-text {
  position: relative;
  pointer-events: none;
  z-index: 2;
}

.film-static .hero-species {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.film-static .hero-actions {
  pointer-events: auto;
}


.impact-band .eyebrow {
  font-size: 9px;
  margin-bottom: 14px;
}

.film-static .hero-stage::before {
  z-index: 1;
}

.hero {
  --ink: #f3f5e9;
  --muted: #d1dfd0;
  --faint: #acc1af;
  --teal: #d4f68d;
  --line: rgba(212,235,192,.18);
  --line2: rgba(212,235,192,.34);
  --panel: rgba(12,40,29,.62);
  --panel2: rgba(24,57,37,.72);
  --bg2: rgba(5,28,20,.45);
  color: var(--ink);
}

.hero h1 {
  color: #f4f6ea;
}

.hero h1 em {
  color: #d4f68d;
}

.hero .eyebrow {
  color: #c8e6b5;
}


/* 03 — Estructura y navegación de vistas */

.kpis {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  position: relative;
  gap: 12px;
  margin: 0 0 40px;
}

.kpi {
  border-color: var(--forest-border);
  position: relative;
  transition: border-color .25s,transform .25s;
  background: var(--forest-glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 22px 18px;
  min-height: 128px;
  box-shadow: var(--forest-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.kpi strong {
  display: block;
  font-family: "DM Sans",sans-serif;
  font-weight: 500;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: var(--ink);
  font-size: 27px;
}

.kpi.warn strong {
  color: var(--amber);
}

.kpi span {
  display: block;
  line-height: 1.5;
  max-width: 18ch;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.view-tabs {
  flex-wrap: wrap;
  gap: 9px;
  display: none;
  margin: 0 0 24px;
  padding-bottom: 0;
  border-bottom: 0;
}

.view-tab {
  font-family: "DM Sans",sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: .18s;
  border: 1px solid #70925788;
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  background: var(--forest-shell);
  border-color: var(--forest-border);
  color: var(--ink);
}

.view-tab:hover {
  color: var(--ink);
  background: #315c3b;
  border-color: #b0c396;
}

.view-tab.active {
  background: var(--accent);
  color: #17392b;
  border-color: #c1e674;
  box-shadow: none;
}

body.is-admin .view-tab.export-btn {
  margin-left: auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  border-color: rgba(18,128,90,.35);
}

.view-tab.export-btn:hover {
  background: rgba(18,128,90,.1);
  border-color: var(--teal);
}

.corridor-workspace {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 32px 0 24px;
}

.kpi:hover {
  border-color: rgba(218,237,191,.6);
  transform: translateY(-2px);
}

.kpi::before {
  content: "";
  display: block;
  margin-bottom: 12px;
  mask: var(--kpi-icon) center/contain no-repeat;
  -webkit-mask: var(--kpi-icon) center/contain no-repeat;
  --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 1 5 10h3l-5 6h7v7h4v-7h7l-5-6h3z'/%3E%3C/svg%3E");
  background: #b4dc86;
  width: 22px;
  height: 22px;
}

.kpi:nth-child(2)::before {
  --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 2C8 1 2 7 4 16l12-9L6 19l-3 3 2 1 4-5C20 21 23 10 21 2Z'/%3E%3C/svg%3E");
}

.kpi:nth-child(3)::before {
  background: #edb052;
  --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 1a8 8 0 0 0-8 8c0 6 8 14 8 14s8-8 8-14a8 8 0 0 0-8-8m0 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8'/%3E%3C/svg%3E");
}

.kpi:nth-child(4)::before {
  background: #93dbae;
  --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 1h2v3h10V1h2v3h3v19H2V4h3zm-1 9v11h16V10zm3 3h3v3H7zm7 0h3v3h-3z'/%3E%3C/svg%3E");
}

.kpi:nth-child(5)::before {
  background: #6cdb94;
  --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 1h2v4a7 7 0 0 1 6 6h4v2h-4a7 7 0 0 1-6 6v4h-2v-4a7 7 0 0 1-6-6H1v-2h4a7 7 0 0 1 6-6zm1 6a5 5 0 1 0 0 10 5 5 0 0 0 0-10m0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6'/%3E%3C/svg%3E");
}

.kpi:nth-child(6)::before {
  background: #edb052;
  --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 14h4v9H2zm8-7h4v16h-4zm8-6h4v22h-4z'/%3E%3C/svg%3E");
}

.view-tab svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--teal);
}

.view-tab.active svg,
.view-tab.active:hover {
  color: #17392b;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 0 0 22px;
  scroll-margin-top: 0;
}

.section-heading h2 {
  font: 400 29px/1.15 "Newsreader",serif;
  margin: 0 0 6px;
  font-size: clamp(36px,3.7vw,56px);
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: 7px;
  color: #0d251b;
  font-weight: 600;
}

.section-heading p {
  margin: 0;
  font-size: 15px;
  color: #4f695a;
}

.section-indicator {
  font: 10px "IBM Plex Mono",monospace;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 9px;
  color: var(--ink);
  letter-spacing: .16em;
}

.section-indicator i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #497049;
  box-shadow: none;
}

.view-tab.admin-only {
  display: none;
}

body.is-admin .view-tab.admin-only {
  display: inline-flex;
}

body.is-admin .view-tabs {
  display: flex;
}


/* 04 — Mapa, filtros y ficha del árbol */

.map-shell {
  border-radius: 13px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.map-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.filters,
.map-view-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.filter,
.layer-btn {
  font-family: "DM Sans",sans-serif;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  border-color: var(--line2);
  font-size: 10px;
  font-weight: 500;
  min-height: 31px;
  padding: 6px 12px;
  color: var(--muted);
  background: rgba(7,33,23,.48);
  border: 1px solid var(--line2);
  box-shadow: inset 0 1px 0 rgba(225,244,201,.08);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.filter:hover,
.layer-btn:hover {
  color: var(--ink);
  background: rgba(103,143,73,.32);
  border-color: #a3c37a;
}

.filter.active,
.layer-btn.active {
  background: var(--accent);
  color: #17392b;
  border-color: #c4e77d;
  box-shadow: 0 2px 8px rgba(129,171,59,.12);
}

.layer-btn.tour-btn.active {
  background: rgba(184,71,42,.16);
  color: var(--alert);
  border-color: rgba(184,71,42,.45);
}

.filter.warnf.active {
  background: #f4e2bd;
  color: #7d551b;
  border-color: #d3b77c;
}

.map-search-row {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 14px;
  display: flex;
  gap: 7px;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--line);
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  min-width: 0;
}

.map-search {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  width: 100%;
}

.map-search span {
  font-family: "IBM Plex Mono",monospace;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .07em;
}

.map-search input {
  font-family: inherit;
  border-color: #61816466;
  width: 100%;
  background: rgba(6,30,22,.48);
  border: 1px solid var(--line2);
  border-radius: 9px;
  color: var(--ink);
  font-size: 11px;
  padding: 11px 13px;
  min-height: 40px;
  box-shadow: inset 0 1px 2px rgba(33,53,30,.04);
}

.map-search input:focus {
  outline: none;
  border-color: var(--teal);
}

.map-results {
  color: var(--muted);
  font-size: 10px;
  margin-left: auto;
}

.map-results b {
  font-family: "IBM Plex Mono",monospace;
  color: var(--ink);
  font-size: 13px;
}

.map-source-note {
  max-width: 34ch;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.map-area {
  position: relative;
  overflow: hidden;
  border-color: var(--line2);
  height: clamp(500px,46vh,650px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

#map {
  position: absolute;
  inset: 0;
  background: #0c251e;
}

.leaflet-container {
  font-family: inherit;
  background: #0c251e;
}

.map-warning {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px;
  text-align: center;
  color: #f4d9a6;
  font-size: 13px;
  background: rgba(0,0,0,.6);
  display: none;
}

.chip.proceso {
  color: #c6edb6;
  border-color: #96bd7280;
}

.chip.potencial {
  color: #f2d58c;
  background: rgba(143,108,32,.22);
  border-color: #c5ac6566;
}

.custom-tree-marker {
  background: none;
  border: none;
}

.marker-tree {
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--marker);
  border: 1.5px solid rgba(0,0,0,.35);
  box-shadow: 0 0 0 2px rgba(0,0,0,.25),0 4px 8px -2px rgba(0,0,0,.6);
  animation: pop .5s var(--delay,0s) both;
}

.marker-tree::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
}

.marker-tree.selected {
  width: 22px;
  height: 22px;
  box-shadow: 0 0 0 3px var(--marker),0 0 18px var(--marker);
  z-index: 999;
}

.legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  font-size: 10px;
  --ink: #f3f5e9;
  --muted: #d1dfd0;
  --faint: #acc1af;
  --teal: #d4f68d;
  --line: rgba(212,235,192,.18);
  --line2: rgba(212,235,192,.34);
  --panel: rgba(12,40,29,.62);
  --panel2: rgba(24,57,37,.72);
  --bg2: rgba(5,28,20,.45);
  background: rgba(4,31,23,.88);
  border-color: rgba(226,244,205,.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e6eeda;
  padding: 10px 12px;
}

.legend .lt {
  font-family: "IBM Plex Mono",monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-size: 8px;
  color: #d2dec6;
}

.legend .ramp {
  display: flex;
  align-items: center;
  gap: 0;
}

.legend .ramp i {
  display: block;
  width: 15px;
  height: 7px;
}

.legend .ramp .lbl {
  font-family: "IBM Plex Mono",monospace;
  font-size: 9px;
  padding: 0 3px;
  color: #d2dec6;
}

.tree-card {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 550;
  max-width: calc(100% - 24px);
  overflow: auto;
  max-height: calc(100% - 24px);
  border-color: #8da88088;
  --ink: #f3f5e9;
  --muted: #d1dfd0;
  --faint: #acc1af;
  --teal: #d4f68d;
  --line: rgba(212,235,192,.18);
  --line2: rgba(212,235,192,.34);
  --panel: rgba(12,40,29,.62);
  --panel2: rgba(24,57,37,.72);
  --bg2: rgba(5,28,20,.45);
  color: var(--ink);
  width: 300px;
  border: 1px solid rgba(220,243,188,.48);
  border-radius: 15px;
  padding: 18px;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,224,.13),0 14px 36px rgba(2,23,15,.3);
  background: linear-gradient(135deg,rgba(16,54,38,.78),rgba(4,28,21,.88));
}

.tree-card::-webkit-scrollbar {
  width: 8px;
}

.tree-card::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: 4px;
}

.tree-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(236,248,218,.1);
  color: #e6eddc;
  border-color: rgba(232,248,210,.45);
}

.tree-close:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.map-card-reopen {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 540;
  display: none;
  background: var(--amber);
  color: var(--muted);
  border: none;
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.tree-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
  padding-right: 25px;
  margin-bottom: 12px;
}

.tree-id {
  font-family: "IBM Plex Mono",monospace;
  margin-bottom: 6px;
  letter-spacing: .08em;
  font-size: 8px;
  color: #d4eea1;
  line-height: 1.5;
  max-width: 24ch;
}

.tree-card h3 {
  font-family: "Newsreader",serif;
  font-weight: 500;
  margin: 0 0 3px;
  font-size: 30px;
  line-height: 1.05;
  color: var(--ink);
}

.tree-species {
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.tree-location {
  color: var(--faint);
  margin-top: 5px;
  font-size: 11px;
}

.tree-status {
  font-family: "IBM Plex Mono",monospace;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 10px;
  padding: 4px 7px;
  color: #d6efaa;
  background: rgba(113,160,75,.2);
  border: 1px solid rgba(196,225,161,.3);
}

.coordinate-box {
  border: 1px solid var(--line);
  margin-bottom: 12px;
  padding: 11px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--bg2);
}

.coordinate-box small {
  color: var(--faint);
  font-family: "IBM Plex Mono",monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 8px;
}

.coordinate-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 6px 0 4px;
  flex-wrap: wrap;
}

.coordinate-main b {
  font-family: "IBM Plex Mono",monospace;
  color: var(--ink);
  font-size: 12px;
}

.coord-copy {
  background: transparent;
  border: 1px solid var(--line2);
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  font-size: 10px;
  padding: 5px 8px;
}

.coord-copy:hover {
  color: var(--ink);
  border-color: var(--teal);
}

.coordinate-box p {
  margin: 0;
  font-size: 10px;
  color: #c2dbad;
}

.tree-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 5px 0;
  margin-bottom: 8px;
  gap: 4px;
}

.tree-art {
  width: 120px;
  height: 88px;
}

.tree-art .trunk {
  fill: #7a5a3a;
}

.tree-art .crown-a {
  fill: #3f7d52;
}

.tree-art .crown-b {
  fill: #4f9463;
}

.tree-art .crown-c {
  fill: #356745;
}

.tree-photo span {
  font-size: 11px;
  color: var(--faint);
  text-align: center;
}

.photo-link {
  display: inline-block;
  font-size: 12.5px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(18,128,90,.38);
  border-radius: 8px;
  padding: 6px 13px;
  transition: .16s;
  margin: 2px 0 4px;
  border-color: var(--line2);
}

.photo-link:hover {
  background: rgba(18,128,90,.1);
  border-color: var(--teal);
}

.gallery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 2px;
}

.gallery-strip a {
  line-height: 0;
}

.gallery-strip img {
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line2);
  display: block;
  background: var(--bg2);
  width: 70px;
  height: 62px;
}

.photo-inline {
  color: var(--teal);
  text-decoration: none;
}

.photo-inline:hover,
.gallery-more:hover {
  text-decoration: underline;
}

.gallery-thumb {
  cursor: pointer;
}

.gallery-more {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.tree-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 12px;
}

.tree-row small {
  display: block;
  color: var(--faint);
  font-family: "IBM Plex Mono",monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-size: 8px;
}

.tree-row b {
  color: var(--ink);
  font-weight: 500;
  font-size: 11px;
}

.tree-row.full {
  grid-column: 1/-1;
}

.mon-flag {
  grid-column: 1/-1;
  background: rgba(184,71,42,.1);
  border: 1px solid rgba(184,71,42,.3);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: var(--muted);
}

.mon-flag b {
  color: var(--alert);
}

.mon-ok {
  grid-column: 1/-1;
  background: rgba(18,128,90,.08);
  border: 1px solid rgba(18,128,90,.28);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: #d3e7bf;
}

.cat-box {
  border: 1px solid var(--line);
  padding: 11px;
  margin-bottom: 12px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--bg2);
}

.cat-box .cat-t {
  font-size: 10px;
  color: var(--faint);
  font-family: "IBM Plex Mono",monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--line2);
  padding: 4px 9px;
  background: rgba(190,222,147,.12);
  border-color: rgba(190,222,147,.26);
  color: #e1eed2;
  font-size: 10px;
}

.chip.amenaza {
  border-color: rgba(184,71,42,.4);
  color: #ffba99;
}

.chip.endemic {
  color: var(--amber);
  border-color: rgba(168,104,12,.4);
}

.chip.uso {
  color: var(--blue);
  border-color: rgba(31,111,160,.4);
}

.cat-usos-t {
  font-size: 10px;
  color: var(--faint);
  font-family: "IBM Plex Mono",monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 10px 0 7px;
}

.cat-fuente {
  font-size: 11px;
  color: var(--faint);
  font-style: italic;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.no-cat {
  grid-column: 1/-1;
  font-size: 12px;
  color: var(--faint);
  font-style: italic;
}

.tree-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  text-align: center;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  transition: background .2s ease, border-color .2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #17392b;
}

.btn.ghost {
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line2);
}

.btn.ghost:hover {
  background: var(--panel2);
  color: var(--ink);
  border-color: var(--teal);
}

.map-dashboard {
  display: grid;
  grid-template-columns: minmax(0,1fr) 290px;
  gap: 20px;
  align-items: stretch;
}

.leaflet-control-zoom a {
  background: rgba(9,38,30,.9) !important;
  color: #f2f5e8 !important;
  border-color: rgba(218,238,194,.3) !important;
}

.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(9,38,30,.86) !important;
  color: #d0dcc9 !important;
}

.leaflet-control-attribution a {
  color: #e8f3d6 !important;
}

.btn.primary:hover {
  background: #ceffa0;
}

.map-controls {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(240px,.44fr);
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--forest-shell);
  box-shadow: var(--forest-shadow);
  border-color: var(--forest-border);
}

.map-controls .map-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.map-controls .map-search {
  flex: 1 0 100%;
}

.map-controls .map-source-note {
  display: none;
}

.tree-card .mon-flag {
  color: #f0d4a3;
  background: rgba(101,63,18,.28);
  border-color: rgba(235,176,81,.55);
}

.tree-card .mon-flag b {
  color: #ffd080;
}

.tree-card .coordinate-box,
.tree-card .cat-box {
  background: rgba(3,24,17,.32);
}


/* 05 — Resumen y descubrimiento */

.corridor-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--forest-border);
  border-radius: 16px;
  background: var(--forest-shell);
  box-shadow: var(--forest-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.corridor-summary h3 {
  font: 400 23px "Newsreader",serif;
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.corridor-summary > p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: -7px 0 0;
}

.summary-main {
  --ink: #f3f5e9;
  --muted: #d1dfd0;
  --faint: #acc1af;
  --teal: #d4f68d;
  --line: rgba(212,235,192,.18);
  --line2: rgba(212,235,192,.34);
  --panel: rgba(12,40,29,.62);
  --panel2: rgba(24,57,37,.72);
  --bg2: rgba(5,28,20,.45);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 4px 9px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  background: linear-gradient(135deg,rgba(74,116,68,.87),rgba(8,44,30,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}

.summary-main span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}

.summary-main strong {
  display: block;
  letter-spacing: -.04em;
  font-family: "Newsreader", Georgia, serif;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 500;
  margin: 6px 0;
  color: #f7f8e8;
}

.summary-main svg {
  width: 100%;
  display: block;
  height: 45px;
  color: #d0ef81;
}

.summary-note {
  grid-column: 2;
  font-size: 8px;
  line-height: 1.4;
  margin: -2px 0 0;
  color: #d2dfbf;
}

.summary-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.summary-pair > div {
  --ink: #f3f5e9;
  --muted: #d1dfd0;
  --faint: #acc1af;
  --teal: #d4f68d;
  --line: rgba(212,235,192,.18);
  --line2: rgba(212,235,192,.34);
  --panel: rgba(12,40,29,.62);
  --panel2: rgba(24,57,37,.72);
  --bg2: rgba(5,28,20,.45);
  color: var(--ink);
  padding: 14px;
  border: 1px solid rgba(237,247,209,.36);
  border-radius: 11px;
  background: linear-gradient(135deg,rgba(49,90,48,.83),rgba(8,39,28,.94));
}

.summary-pair strong {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: #f3f6e5;
}

.summary-pair span {
  display: block;
  margin-top: 3px;
  color: #e1ead3;
  font-size: 10px;
}

.summary-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 11px;
  --ink: #f3f5e9;
  --muted: #d1dfd0;
  --faint: #acc1af;
  --teal: #d4f68d;
  --line: rgba(212,235,192,.18);
  --line2: rgba(212,235,192,.34);
  --panel: rgba(12,40,29,.62);
  --panel2: rgba(24,57,37,.72);
  --bg2: rgba(5,28,20,.45);
  color: var(--ink);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 5px 10px;
  padding: 12px;
  background: rgba(11,47,33,.9);
  border: 1px solid rgba(216,236,187,.4);
  border-radius: 11px;
  line-height: 1.5;
}

.summary-foot svg {
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
  width: 23px;
  height: 23px;
  grid-row: 1/3;
  margin: 0;
}

.summary-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--teal);
  font-size: 10px;
  font-weight: 600;
}

.summary-link svg {
  width: 15px;
  height: 15px;
}

.corridor-discovery {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr;
  padding: 0;
  gap: 16px;
  margin-top: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.corridor-discovery > section + section {
  border-left: 1px solid var(--glass-border);
  padding-left: 18px;
}

.discovery-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  align-items: flex-start;
  gap: 10px;
}

.discovery-heading h3 {
  font: 400 23px/1.1 "Newsreader",serif;
  margin: 0 0 7px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.discovery-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.discovery-heading .summary-link {
  flex: none;
  font-size: 9px;
  white-space: nowrap;
  padding-top: 3px;
}

.discovery-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.discovery-species .discovery-cards {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.discovery-cards .species-cover,
.discovery-cards .site-cover {
  aspect-ratio: 4/3;
}

.discovery-cards .species-body {
  padding: 11px;
  gap: 6px;
}

.discovery-cards .species-body h4 {
  font-size: 18px;
}

.discovery-cards .species-body .sci {
  font-size: 10px;
}

.discovery-cards .species-usos,
.discovery-cards .species-fuente,
.discovery-cards .species-uses,
.discovery-cards .species-actions,
.discovery-cards .card-actions,
.discovery-cards .guide-species-button,
.discovery-cards .site-obs,
.discovery-cards .record-meta {
  display: none;
}

.discovery-cards .species-chips {
  max-height: 24px;
  overflow: hidden;
}

.discovery-cards .chip {
  font-size: 8px;
  padding: 3px 7px;
}

.discovery-cards .site-cover span {
  font-size: 9px;
}

.discovery-empty {
  font-size: 12px;
  color: var(--muted);
}

.summary-main > span {
  grid-column: 1/-1;
  font-size: 11px;
  color: #ecf2db;
}

.summary-foot p {
  font-size: 10px;
  color: #e1ead3;
  margin: 0;
}

.summary-foot .summary-link {
  grid-column: 2;
}

.summary-foot .summary-link svg {
  grid-row: auto;
  width: 14px;
  height: 14px;
}

.summary-life {
  position: relative;
  min-height: 115px;
  flex: 1;
  margin: 0 -18px -18px;
  overflow: hidden;
}

.summary-life img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 70% 50%;
}

.summary-life::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(6,31,22,.88),transparent);
}

.summary-life figcaption {
  position: relative;
  z-index: 1;
  padding: 26px 18px;
  color: #f2f5df;
  font: italic 500 19px/1.25 "Newsreader", Georgia, serif;
  max-width: 175px;
}

.corridor-discovery > section {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--forest-shell);
  box-shadow: var(--forest-shadow);
  border-color: var(--forest-border);
}


/* 06 — Catálogo y tarjetas de registros */

.cat-shell {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--forest-shell);
  box-shadow: var(--forest-shadow);
  border-color: var(--forest-border);
}

.cat-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 4px 4px 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-color: var(--line);
  gap: 16px;
}

.cat-toolbar .map-search {
  flex: 1;
  min-width: 240px;
}

.species-grid {
  display: grid;
  overflow: auto;
  padding: 2px;
  grid-template-columns: repeat(auto-fill,minmax(min(250px,100%),1fr));
  gap: 18px;
  max-height: 760px;
}

.species-grid::-webkit-scrollbar {
  width: 8px;
}

.species-grid::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: 4px;
}

.species-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--forest-glass);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 13px;
  box-shadow: var(--forest-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  border-color: var(--forest-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.species-card:hover {
  transform: translateY(-2px);
  border-color: rgba(205,235,167,.6);
  box-shadow: inset 0 1px 0 rgba(239,255,220,.16), 0 15px 28px rgba(18,43,27,.2);
}

.species-cover {
  position: relative;
  width: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #183e2b;
  aspect-ratio: 4/3;
}

.species-cover img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .7s ease;
  object-fit: cover;
}

.species-cover:hover img {
  transform: scale(1.05);
}

.species-cover .tree-art {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 90px;
  height: 66px;
  display: none;
}

.species-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
  gap: 9px;
}

.species-body h4 {
  margin: 0;
  font-family: "Newsreader",serif;
  font-weight: 500;
  line-height: 1.2;
  font-size: 24px;
  color: var(--ink);
}

.species-body .sci {
  font-style: italic;
  font-size: 12px;
  margin-top: -4px;
  color: var(--muted);
}

.species-chips,
.species-usos {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.species-fuente {
  font-size: 11px;
  color: var(--faint);
  font-style: italic;
}

.species-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.species-uses {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  gap: 12px;
}

.uses-section {
  min-width: 0;
}

.uses-section h5 {
  margin: 0 0 5px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--teal);
}

.uses-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.uses-empty {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
  font-style: italic;
}

.uses-categories .chip {
  font-size: 10px;
  white-space: normal;
  line-height: 1.5;
}

.uses-button {
  border-color: var(--teal);
  color: var(--teal);
}

.uses-dialog {
  width: min(580px,calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line2);
  background: var(--forest-shell);
  border-color: var(--forest-border);
  border-radius: 18px;
  box-shadow: var(--forest-shadow);
  color: var(--ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.uses-dialog::backdrop {
  background: rgba(6,10,7,.65);
  backdrop-filter: blur(4px);
}

.uses-dialog .admin-modal-head {
  gap: 16px;
  align-items: flex-start;
}

.uses-dialog .admin-modal-head > .btn {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}

.uses-dialog .btn:focus-visible,
.uses-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.uses-dialog h3 {
  font-size: 24px;
}

.uses-dialog .sci {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 4px 0 0;
}

.uses-detail {
  gap: 20px;
  padding-top: 18px;
}

.uses-detail .uses-text {
  font-size: 14px;
}

.uses-detail h5 {
  font-size: 13px;
}

.uses-source {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.uses-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 12px;
}

.uses-links a {
  color: var(--teal);
  text-underline-offset: 3px;
}

.cat-empty {
  grid-column: 1/-1;
  padding: 40px 10px;
  text-align: center;
  color: var(--faint);
  font-size: 13.5px;
}

.site-cover {
  width: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  font-size: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(145deg,#31543a,#173d2b);
  aspect-ratio: 16/9;
}

.site-cover.potencial {
  background: linear-gradient(160deg,rgba(168,104,12,.16),rgba(168,104,12,.03));
}

.site-obs,
.record-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.card-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.card-actions .btn {
  flex: none;
  padding: 6px 11px;
  font-size: 12px;
}

.cat-toolbar-title {
  font-family: "Newsreader",serif;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 21px;
}

.species-card:hover .species-cover img {
  transform: scale(1.04);
}

.site-cover::before {
  content: none;
}

.site-cover::after {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #142b20bb;
  border: 1px solid #c6e5b966;
  box-shadow: 0 0 0 12px #d7ffc008;
  mask: none;
  display: none;
}

.species-card:hover .site-cover::before {
  transform: scale(1.06);
}

.site-cover.potencial::before {
  opacity: .6;
}

.species-actions .btn {
  font-size: 11px;
}

.species-cover:has(.tree-art) {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,#31543a,#173d2b);
}

.species-cover:has(.tree-art)::before {
  content: "";
  width: 48px;
  height: 48px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 2C8 1 2 7 4 16l12-9L6 19l-3 3 2 1 4-5C20 21 23 10 21 2Z'/%3E%3C/svg%3E") center/contain no-repeat;
  background: #c1de9e;
  opacity: .7;
}

.species-cover:has(.tree-art)::after {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: .03em;
  content: "Sin fotografía registrada";
  color: var(--muted);
}

.site-cover svg {
  width: 36px;
  height: 36px;
  color: #b7d395;
  filter: none;
}

.site-cover span {
  font-size: 10px;
  color: var(--muted);
  text-shadow: none;
}

.cat-shell > .map-source-note {
  margin-bottom: 20px;
  max-width: 90ch;
  font-size: 12px;
}


/* 07 — Metas de restauración */

.objetivos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(360px,100%),1fr));
  gap: 20px;
}

.objetivo-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid var(--faint);
  padding: 24px;
  border-left-width: 3px;
  background: var(--forest-glass);
  border-color: var(--forest-border);
  box-shadow: var(--forest-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.objetivo-card.cumplido {
  border-left-color: var(--teal);
}

.objetivo-card.en_curso {
  border-left-color: var(--blue);
}

.objetivo-card.en_riesgo {
  border-left-color: var(--amber);
}

.objetivo-card.retrasado {
  border-left-color: var(--alert);
}

.objetivo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.objetivo-head h4 {
  margin: 0;
  font-family: "Newsreader",serif;
  font-weight: 500;
  color: var(--ink);
  font-size: 25px;
}

.objetivo-badge {
  font-family: "IBM Plex Mono",monospace;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .03em;
}

.objetivo-badge.cumplido {
  background: rgba(18,128,90,.14);
  color: var(--teal);
}

.objetivo-badge.en_curso {
  background: rgba(31,111,160,.14);
  color: var(--blue);
}

.objetivo-badge.en_riesgo {
  background: rgba(168,104,12,.14);
  color: var(--amber);
}

.objetivo-badge.retrasado {
  background: rgba(184,71,42,.14);
  color: var(--alert);
}

.objetivo-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.objetivo-progress-bar {
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  height: 7px;
  background: rgba(3,23,17,.65);
}

.objetivo-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--faint);
  transition: width .3s;
  box-shadow: none;
}

.objetivo-card.cumplido .objetivo-progress-fill {
  background: var(--teal);
}

.objetivo-card.en_curso .objetivo-progress-fill {
  background: var(--blue);
}

.objetivo-card.en_riesgo .objetivo-progress-fill {
  background: var(--amber);
}

.objetivo-card.retrasado .objetivo-progress-fill {
  background: var(--alert);
}

.objetivo-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.objetivo-progress-label b {
  color: var(--ink);
  font-family: "IBM Plex Mono",monospace;
}

.objetivo-timeline-track {
  position: relative;
  height: 6px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-top: 2px;
}

.objetivo-timeline-elapsed {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--line2);
  border-radius: 999px;
}

.objetivo-timeline-today {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 14px;
  background: var(--ink);
  border-radius: 1px;
}

.objetivo-timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--faint);
  font-family: "IBM Plex Mono",monospace;
  margin-top: 5px;
}

.objetivo-foot {
  color: var(--faint);
  font-style: italic;
  font-size: 11px;
  line-height: 1.7;
}


/* 08 — Formularios y administración */

.admin-only {
  display: none;
}

body.is-admin .admin-only {
  display: inline-block;
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(6,10,7,.92);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal-overlay.open {
  display: flex;
}

.admin-modal-box {
  position: relative;
  width: min(640px,94vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line2);
  padding: 22px;
  background: var(--forest-shell);
  border-color: var(--forest-border);
  border-radius: 18px;
  box-shadow: var(--forest-shadow);
  color: var(--ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.admin-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.admin-modal-head h3 {
  margin: 0;
  font-family: "Newsreader",serif;
  font-weight: 500;
  font-size: 27px;
}

.admin-modal-box .lightbox-close {
  position: static;
}

.admin-modal-error {
  border: 1px solid rgba(184,71,42,.3);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 12.5px;
  margin-bottom: 12px;
  background: #f5e5d9;
  border-color: #e8c7ad;
  color: #8a452b;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 11px;
}

.admin-field label {
  font-family: "IBM Plex Mono",monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--muted);
}

.admin-field label.req::after {
  content: " *";
  color: var(--amber);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 11px;
  font-family: inherit;
  resize: vertical;
  min-height: 40px;
  font-size: 13px;
  background: rgba(5,28,20,.65);
  border-color: var(--line2);
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.admin-field.full {
  grid-column: 1/-1;
}

.admin-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.especie-combo {
  position: relative;
}

.especie-combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 8px;
  max-height: 230px;
  overflow: auto;
  box-shadow: 0 16px 34px -14px #000;
}

.especie-combo-opt {
  padding: 7px 11px;
  font-size: 13px;
  cursor: pointer;
  border-top: 1px solid var(--line);
}

.especie-combo-opt:first-child {
  border-top: none;
}

.especie-combo-opt i {
  font-style: italic;
}

.especie-combo-opt .cmn {
  color: var(--faint);
  font-size: 12px;
}

.especie-combo-opt:hover,
.especie-combo-opt.active {
  background: rgba(18,128,90,.14);
}

.especie-combo-empty {
  padding: 8px 11px;
  font-size: 12px;
  color: var(--faint);
}

.especie-combo-hint {
  font-size: 11px;
  color: var(--alert);
  margin-top: 3px;
}

.especie-combo-preview {
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 4px;
}

.especie-combo-preview b,
.sync-row span {
  color: var(--muted);
}

.geo-tool {
  margin-bottom: 8px;
}

.geo-tools-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.geo-tools-row .btn {
  flex: none;
  padding: 8px 12px;
  font-size: 12.5px;
}

.geo-map {
  height: 190px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg2);
}

.geo-map .leaflet-control-attribution {
  font-size: 9px;
}

.geo-status {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--faint);
  padding: 7px 9px;
  border: 1px dashed var(--line2);
  border-radius: 8px;
}

.geo-status.ok {
  color: var(--teal);
  border-color: rgba(18,128,90,.35);
  background: rgba(18,128,90,.06);
}

.geo-status.err {
  color: var(--alert);
  border-color: rgba(184,71,42,.35);
  background: rgba(184,71,42,.06);
}

.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-opt {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
}

.chip-opt:has(input:checked),
.chip-opt.checked {
  color: var(--teal);
  border-color: rgba(18,128,90,.4);
  background: rgba(18,128,90,.1);
}

.chip-opt input {
  margin: 0;
}

.sync-summary {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sync-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
  background: var(--bg2);
}

.sync-row b {
  color: var(--ink);
  min-width: 110px;
}

.sync-row span.warn,
.sync-detail.warn b {
  color: var(--amber);
}

.sync-detail {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.sync-detail b {
  color: var(--ink);
}

.sync-detail ul {
  margin: 6px 0 0;
  padding-left: 18px;
  max-height: 160px;
  overflow: auto;
}

.sync-detail.warn {
  border-left: 3px solid var(--amber);
  padding-left: 10px;
}

.export-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 9px 0 2px;
}

.export-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-family: "DM Sans",sans-serif;
}

.export-checks input {
  accent-color: var(--teal);
}

.admin-notes {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-notes h4 {
  margin: 0 0 9px;
  font-size: 13px;
  color: var(--muted);
}

.admin-note {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  margin-bottom: 7px;
  font-size: 12.5px;
  background: var(--bg2);
}

.admin-note .meta {
  color: var(--faint);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.admin-note .meta button {
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 11px;
  padding: 0;
}

.admin-note .meta button:hover {
  color: var(--alert);
}

.admin-notes-add {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 6px;
}

.admin-notes-add textarea {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 12.5px;
  font-family: inherit;
  resize: vertical;
}

.admin-fotos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-foto-thumb {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line2);
  background: var(--bg2);
}

.admin-foto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-foto-thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(11,17,13,.85);
  border: 1px solid var(--line2);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
}

.admin-foto-thumb button:hover {
  color: var(--alert);
  border-color: var(--alert);
}

.admin-fotos-add {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-fotos-add input[type=file] {
  font-size: 12px;
  color: var(--muted);
  max-width: 220px;
}

.inv-entrada-form {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.inv-entrada-form label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  color: var(--faint);
  font-family: "IBM Plex Mono",monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.inv-entrada-form input {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 7px 9px;
  font-size: 13px;
  font-family: inherit;
}

.inv-entrada-obs {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 12.5px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
}

.admin-modal-box > .map-source-note {
  margin-bottom: 14px;
}

.admin-notes-add.is-stacked {
  flex-direction: column;
  align-items: stretch;
}


/* 09 — Galería ampliada */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(1,10,5,.95);
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-figure {
  position: relative;
  max-width: min(1100px,92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line2);
  box-shadow: 0 30px 80px -30px #000;
  background: var(--bg2);
}

.lightbox-caption {
  font-size: 13px;
  text-align: center;
  color: #d0e0d1;
}

.lightbox-caption b {
  color: #f0f5e8;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #183322;
  color: #eaf0e2;
  border-color: #8ab97388;
}

.lightbox-close:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .16s;
  background: #183322;
  color: #eaf0e2;
  border-color: #8ab97388;
}

.lightbox-nav:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--panel2);
}

.lightbox-prev {
  left: -56px;
}

.lightbox-next {
  right: -56px;
}


/* 10 — Impacto, cronología y pie de página */

footer {
  border-top: 1px solid var(--line2);
  padding: 44px 0 72px;
  font-size: 12px;
  --ink: #f3f5e9;
  --muted: #d1dfd0;
  --faint: #acc1af;
  --teal: #d4f68d;
  --line: rgba(212,235,192,.18);
  --line2: rgba(212,235,192,.34);
  --panel: rgba(12,40,29,.62);
  --panel2: rgba(24,57,37,.72);
  --bg2: rgba(5,28,20,.45);
  background: linear-gradient(135deg,#103626,#09261c);
  color: var(--muted);
  margin-top: 48px;
}

.footer-brands {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,1fr);
  gap: 64px;
  align-items: center;
  padding-bottom: 36px;
}

.footer-brand {
  display: flex;
  gap: 24px;
  align-items: center;
  min-width: 0;
}

.footer-logo {
  object-fit: contain;
  flex: none;
  transition: transform .3s ease;
  width: 80px;
  height: 80px;
}

.footer-brand-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-label {
  display: block;
  color: var(--teal);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.footer-brand h2,
.footer-author h2 {
  font-family: "Newsreader",serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 25px;
}

.footer-brand p {
  margin: 0;
  line-height: 1.8;
  max-width: 420px;
}

.footer-author {
  border-left: 1px solid var(--line);
  padding: 18px 24px;
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-author p {
  margin: 0;
  line-height: 1.7;
}

.footer-author .footer-label {
  color: var(--faint);
  margin-bottom: 10px;
}

.footer-author .footer-email {
  margin-top: 12px;
}

.footer-brand .footer-email {
  margin: 12px 0 0;
}

.footer-email a {
  position: relative;
  display: inline-block;
  padding: 3px 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.footer-email a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.footer-note {
  margin: 0;
  max-width: 520px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--faint);
}

.footer-note b {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 3px;
}

.footer-developer {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  justify-content: center;
  gap: 24px;
  padding: 10px 0;
}

.footer-logo-enjambre {
  width: 88px;
  height: 88px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.footer-developer-copy {
  line-height: 1.6;
}

.footer-developer-copy span {
  display: block;
  color: var(--faint);
  font-size: 12px;
  margin-bottom: 4px;
}

.footer-developer-copy h2 {
  font-family: inherit;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}

.footer-contact {
  display: flex;
  margin-left: 20px;
  gap: 10px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform .2s ease,background .2s ease,color .2s ease;
  border: 1px solid var(--line2);
  background: rgba(2,21,13,.2);
  color: var(--teal);
}

.footer-contact svg {
  display: block;
  width: 19px;
  height: 19px;
}

footer a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 3px;
}

.impact-band {
  margin: 55px 0 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #82996666;
  border-radius: 14px;
  padding: 55px 42px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 40px;
  min-height: 310px;
  background: var(--forest-shell);
  border-color: var(--forest-border);
  box-shadow: var(--forest-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.impact-band::before {
  content: none;
}

.impact-band::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#04130ff2,#06180e9c 65%,#05160fd9);
  content: none;
}

.impact-band h2 {
  font: 400 clamp(28px,3.3vw,46px)/1.05 "Newsreader",serif;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}

.impact-band h2 em {
  color: var(--teal);
}

.impact-band p {
  font-size: 12px;
  max-width: 45ch;
  line-height: 1.7;
  margin: 0 0 20px;
  color: var(--muted);
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  align-items: end;
  gap: 16px;
}

.impact-stats > div {
  text-align: center;
  border-left: 1px solid #b7d09b33;
  padding: 10px;
  border-left-color: var(--line);
}

.impact-stats strong {
  display: block;
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 7px;
}

.impact-stats span {
  font-size: 10px;
  line-height: 1.5;
  display: block;
  color: var(--muted);
}

.impact-stats svg {
  color: var(--teal);
  width: 27px;
  height: 27px;
  margin-bottom: 15px;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s,transform .8s;
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.corridor-timeline {
  margin-top: 20px;
  border: 1px solid var(--line2);
  border-radius: 13px;
  padding: 24px;
  border-color: var(--forest-border);
  background: var(--forest-shell);
  box-shadow: var(--forest-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.timeline-years {
  display: grid;
  grid-template-columns: repeat(8,minmax(0,1fr));
  gap: 12px;
}

.timeline-years > div {
  position: relative;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--forest-glass);
  border-color: var(--forest-border);
  box-shadow: var(--forest-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.timeline-years > div + div::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8baa62;
  box-shadow: none;
}

.timeline-years strong {
  display: block;
  color: var(--teal);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-years span {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-brand .footer-logo {
  width: 160px;
  height: 160px;
}


/* Animaciones compartidas */
@keyframes pop{0%{opacity:0;transform:rotate(-45deg) scale(.2)}100%{opacity:1;transform:rotate(-45deg) scale(1)}}


@media (hover:hover) {

  .footer-brand:hover .footer-logo {
    transform: translateY(-3px);
  }

  .footer-developer:hover .footer-logo {
    transform: translateY(-3px);
  }

  .footer-email a:hover {
    color: var(--ink);
  }

  .footer-email a:hover::after {
    transform: scaleX(1);
  }

  .footer-contact a:hover {
    transform: translateY(-3px);
    background: var(--teal);
    color: #17392b;
  }

}


@media (min-width:1600px) {

  .hero-text {
    max-width: 700px;
  }

  h1 {
    font-size: 80px;
  }

}


@media (max-width:1390px) {

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(204,229,176,.35);
    border-radius: 14px;
    background: rgba(8,35,25,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .site-nav button {
    font-size: 12px;
    text-align: left;
    padding: 12px;
  }

  .header-field {
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
  }

}


@media (max-width:1250px) {

  .brand span {
    font-size: 8px;
  }

  .brand b {
    font-size: 15px;
  }

  .header-field {
    font-size: 10px;
    padding: 9px 12px;
  }

  .kpi {
    padding: 20px 15px;
  }

  .kpi strong {
    font-size: 23px;
  }

  .hero-species {
    max-width: 125px;
    right: 4%;
    top: 25%;
  }

  .hero-text {
    max-width: 570px;
  }

  .map-dashboard {
    grid-template-columns: minmax(0,1fr) 260px;
    gap: 16px;
  }

  .map-controls {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
  }

  .map-search-row {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0 0;
  }

  .map-search {
    flex: 1;
    width: auto;
  }

  .header-inner {
    padding: 0 18px;
    gap: 12px;
  }

}


@media (max-width:1050px) {

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }

  .header-field {
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .summary-link {
    grid-column: 1;
    grid-row: 2;
  }

  .kpis {
    gap: 10px;
  }

  .kpi {
    min-height: 130px;
  }

  .kpi span {
    font-size: 10px;
  }

  .hero-species {
    display: none;
  }

  .hero-text {
    max-width: 560px;
  }

  .map-area {
    height: 650px;
  }

  .impact-band {
    padding: 36px 28px;
    gap: 25px;
  }

  .corridor-discovery {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 12px;
  }

  .timeline-years {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .timeline-years > div:nth-child(5)::before {
    display: none;
  }

  .discovery-heading h3 {
    font-size: 20px;
  }

  .map-dashboard {
    grid-template-columns: minmax(0,1fr);
  }

  .map-controls {
    grid-template-columns: minmax(0,1fr) minmax(230px,.5fr);
  }

  .map-search-row {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 0 0 0 14px;
  }

  .corridor-summary {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    align-items: center;
  }

  .corridor-summary h3 {
    grid-column: 1;
  }

  .corridor-summary > p {
    grid-column: 1;
  }

  .summary-main {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  .summary-pair {
    grid-column: 3;
    grid-row: 1 / 4;
  }

  .summary-foot {
    grid-column: 1;
    grid-row: 3;
  }

  .summary-life {
    display: none;
  }

  .discovery-heading {
    flex-wrap: wrap;
  }

  .corridor-discovery > section {
    padding: 14px;
  }

  .corridor-discovery > section + section {
    padding-left: 14px;
  }

}


@media (max-width:900px) {

  .kpis {
    grid-template-columns: repeat(3,1fr);
  }

}


@media (max-width:800px) {

  footer {
    padding-top: 32px;
  }

  .footer-brands {
    grid-template-columns: minmax(0,1fr);
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer-brand {
    gap: 18px;
  }

  .footer-logo {
    width: 84px;
    height: 84px;
  }

  .footer-brand h2 {
    font-size: 24px;
  }

  .footer-author h2 {
    font-size: 24px;
  }

  .footer-author {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .footer-developer {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-logo-enjambre {
    width: 44px;
    height: 44px;
  }

  .footer-contact {
    margin-left: 6px;
  }

  .footer-note {
    text-align: center;
    max-width: none;
  }

}


@media (max-width:760px) {

  .hero-inner {
    gap: 14px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    text-align: left;
    padding-top: 20px;
    padding-bottom: 135px;
  }

  .hero-text {
    max-width: 78%;
    min-width: 0;
  }

  h1 {
    font-size: clamp(39px,7.4vw,57px);
    max-width: 15ch;
    line-height: 1.03;
    margin-bottom: 18px;
  }

  .lede {
    font-size: 13px;
    max-width: 35ch;
    margin: 0;
  }

  :root {
    --header-height: 68px;
  }

  .wrap {
    padding-inline: 20px;
  }

  .brand img {
    width: 29px;
    height: 38px;
  }

  .brand span {
    font-size: 6px;
    letter-spacing: .04em;
  }

  .brand b {
    font-size: 12px;
  }

  .header-field {
    padding: 8px 10px;
    font-size: 8px;
  }

  .hero-stage {
    max-height: none;
    background: #04130f;
    min-height: 610px;
  }

  .hero-scroll-video {
    object-fit: cover;
    object-position: 50% 50%;
  }

  .hero-stage::before {
    background: linear-gradient(90deg,rgba(0,14,8,.85),rgba(0,14,8,.15) 90%),linear-gradient(0deg,#04130f,transparent 55%);
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: .17em;
    margin-bottom: 18px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .action {
    font-size: 11px;
    padding: 11px 17px;
    min-height: 42px;
  }


  .kpis {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
    margin-bottom: 28px;
  }

  .kpi {
    padding: 16px 12px;
    min-height: 116px;
  }

  .kpi::before {
    width: 20px;
    height: 20px;
    margin-bottom: 9px;
  }

  .kpi strong {
    font-size: 22px;
  }

  .kpi span {
    font-size: 10px;
  }

  .kpi:nth-child(4) strong {
    font-size: 18px;
    padding-top: 5px;
  }

  .view-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    margin-bottom: 24px;
    gap: 8px;
    display: flex;
    margin: 0 0 22px;
    padding-bottom: 8px;
  }

  .view-tab {
    flex: none;
    padding: 9px 13px;
    min-height: 38px;
    font-size: 10px;
  }

  .section-heading h2 {
    font-size: 39px;
  }

  .section-heading p {
    font-size: 13px;
    max-width: 35ch;
  }

  .section-indicator {
    display: none;
  }

  .map-source-note {
    max-width: none;
    font-size: 10px;
  }

  .map-toolbar {
    margin-bottom: 14px;
  }

  .map-search-row {
    gap: 10px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
  }

  .map-search {
    min-width: min(220px,100%);
    flex-basis: 100%;
    width: 100%;
  }

  .filter {
    flex: none;
    font-size: 10px;
    padding: 7px 11px;
    white-space: nowrap;
  }

  .layer-btn {
    flex: none;
    font-size: 10px;
    padding: 7px 11px;
    white-space: nowrap;
  }

  .species-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .species-body {
    padding: 15px 12px;
  }

  .species-body h4 {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .species-body .sci {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .species-actions {
    flex-direction: column;
  }

  .site-obs {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .record-meta {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .objetivos-grid {
    grid-template-columns: 1fr;
  }

  .objetivo-card {
    padding: 19px;
  }

  .objetivo-head h4 {
    font-size: 23px;
  }

  .objetivo-badge {
    font-size: 8px;
  }

  .impact-band {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 35px;
    padding: 28px 22px;
  }

  .impact-band h2 {
    font-size: 36px;
    max-width: 18ch;
  }

  .impact-band p {
    font-size: 12px;
  }

  .impact-stats {
    gap: 6px;
  }

  .impact-stats > div:first-child {
    border-left: none;
  }

  .impact-stats strong {
    font-size: 23px;
  }

  .impact-stats svg {
    margin-bottom: 8px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-modal-overlay {
    padding: 14px;
  }

  .admin-modal-box {
    width: 100%;
    padding: 18px;
  }

  .corridor-summary h3 {
    font-size: 21px;
    grid-column: 1/-1;
  }

  .summary-main strong {
    font-size: 40px;
  }

  .summary-pair strong {
    font-size: 28px;
    display: block;
  }

  .summary-main svg {
    height: 32px;
  }

  .footer-logo {
    width: 64px;
    height: 64px;
  }

  .footer-brand h2 {
    font-size: 24px;
  }

  .footer-author h2 {
    font-size: 24px;
  }

  .footer-logo-enjambre {
    width: 80px;
    height: 80px;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  footer {
    padding-bottom: 110px;
  }

  .corridor-discovery {
    padding: 18px;
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
  }

  .corridor-discovery > section + section {
    border-left: none;
    padding-top: 22px;
    padding-left: 18px;
    border-top: 1px solid var(--glass-border);
  }

  .corridor-discovery > section:last-child {
    display: block;
  }

  .corridor-discovery > section:not(.discovery-species) .discovery-cards .species-card {
    display: grid;
    grid-template-columns: 110px 1fr;
  }

  .corridor-discovery > section:not(.discovery-species) .site-cover {
    height: 100%;
    aspect-ratio: auto;
  }

  .discovery-species .discovery-cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 155px;
    overflow-x: auto;
    padding-bottom: 5px;
    gap: 10px;
    scroll-snap-type: x proximity;
  }

  .discovery-cards .species-body {
    padding: 12px;
  }

  .discovery-cards .species-body h4 {
    font-size: 19px;
  }

  .discovery-cards .species-body .sci {
    font-size: 10px;
  }

  .discovery-heading .summary-link {
    font-size: 9px;
  }

  .corridor-timeline {
    padding: 20px;
  }

  .corridor-timeline .discovery-heading {
    align-items: flex-start;
  }

  .timeline-years {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }

  .timeline-years > div:nth-child(odd)::before {
    display: none;
  }

  .timeline-years > div {
    padding: 13px;
  }

  .timeline-years > div:nth-child(5)::before {
    display: none;
  }

  .account-toggle {
    width: 31px;
    height: 31px;
  }

  .footer-brand .footer-logo {
    width: 132px;
    height: 132px;
  }

  .footer-developer {
    gap: 16px;
    justify-content: center;
  }

  .footer-developer-copy h2 {
    font-size: 18px;
  }

  .footer-developer-copy span {
    font-size: 11px;
  }

  .footer-contact {
    margin-left: 0;
    flex-basis: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .hero-scroll.film-entered .hero-stage::before {
    background: linear-gradient(0deg,#04130f 0%,transparent 26%,transparent 80%,rgba(4,19,15,.2) 100%);
  }

  .site-header {
    top: 8px;
    left: 10px;
    right: 10px;
    height: 60px;
    border-radius: 13px;
  }

  body::before {
    height: 8px;
  }

  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .brand {
    gap: 7px;
  }

  .header-field svg {
    width: 12px;
    height: 12px;
  }

  .menu-toggle {
    width: 31px;
    height: 31px;
  }

  .admin-bar {
    top: 76px;
    right: 12px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .map-controls {
    grid-template-columns: minmax(0,1fr);
    padding: 13px;
    gap: 12px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .map-view-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .map-area {
    --map-mobile-height: 460px;
    height: auto;
    display: grid;
    grid-template-rows: var(--map-mobile-height) auto;
    gap: 12px;
    border: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  #map {
    height: var(--map-mobile-height);
    grid-row: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
  }

  .tree-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    grid-row: 2;
    box-sizing: border-box;
    padding: 20px;
  }

  .tree-card h3 {
    font-size: 30px;
  }

  .tree-id {
    font-size: 9px;
    max-width: 26ch;
  }

  .tree-row b {
    font-size: 12px;
  }

  .legend {
    top: calc(var(--map-mobile-height) - 58px);
    bottom: auto;
    left: 10px;
  }

  .map-warning {
    top: calc(var(--map-mobile-height) - 30px);
    bottom: auto;
  }

  .map-card-reopen {
    top: 12px;
    right: 12px;
  }

  .corridor-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px;
  }

  .corridor-summary > p {
    grid-column: 1/-1;
  }

  .summary-main {
    grid-column: 1;
    grid-row: 3;
    display: block;
  }

  .summary-note {
    display: block;
    font-size: 8px;
    margin-top: 8px;
  }

  .summary-pair {
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .summary-pair > div {
    padding: 12px;
  }

  .summary-pair span {
    display: block;
    margin-left: 0;
  }

  .summary-foot {
    grid-column: 1/-1;
    grid-row: 4;
  }

  .cat-shell {
    padding: 16px;
  }

  .corridor-discovery > section {
    padding: 18px;
  }

  .discovery-heading {
    flex-wrap: nowrap;
    align-items: center;
  }

  .discovery-heading h3 {
    font-size: 22px;
  }

  .discovery-species .species-card {
    scroll-snap-align: start;
  }

}


@media (max-width:720px) {

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }

  .lightbox-overlay {
    padding: 16px;
  }

}


@media (max-width:560px) {

  .uses-dialog {
    padding: 18px;
  }

  .species-actions .btn {
    padding: 8px 10px;
  }

  .inv-entrada-form {
    grid-template-columns: 1fr 1fr;
  }

  .kpis {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .view-tab {
    max-width: 100%;
    padding: 10px 13px;
    min-height: 44px;
  }

  body.is-admin .view-tab.export-btn {
    margin-left: 0;
  }

  .map-search {
    min-width: 0;
    flex-basis: 100%;
  }

  .cat-toolbar .map-search {
    min-width: 0;
    flex-basis: 100%;
  }

  .map-search input {
    width: 100%;
    min-width: 0;
  }

  .species-grid {
    grid-template-columns: repeat(auto-fill,minmax(min(230px,100%),1fr));
  }

  .filter {
    max-width: 100%;
    white-space: normal;
  }

  .layer-btn {
    max-width: 100%;
    white-space: normal;
  }

}


@media (max-width:420px) {

  .header-field svg {
    display: none;
  }

  .header-field {
    padding: 8px;
    font-size: 8px;
  }

  .brand span {
    font-size: 6px;
  }

  .brand b {
    font-size: 11px;
  }

  .menu-toggle {
    width: 32px;
    height: 32px;
  }

  .hero-text {
    max-width: 91%;
  }

  .hero-inner {
    padding-bottom: 155px;
  }

  .hero-stage {
    min-height: 630px;
  }

  .hero-stage::before {
    background: linear-gradient(90deg,rgba(0,14,8,.87),rgba(0,14,8,.2)),linear-gradient(0deg,#04130f,transparent 50%);
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions {
    gap: 8px;
  }

  .action {
    padding: 10px 13px;
    font-size: 10px;
  }

  .lede {
    max-width: 30ch;
  }

  .kpi {
    padding: 15px 11px;
  }

  .kpi strong {
    font-size: 22px;
  }

  .kpi:nth-child(4) strong {
    font-size: 16px;
    padding-top: 6px;
  }

  .kpi span {
    font-size: 9px;
  }


  .species-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .species-cover {
    aspect-ratio: 16/10;
  }

  .species-body {
    padding: 19px;
  }

  .species-body h4 {
    font-size: 26px;
  }

  .map-card-reopen {
    top: 14px;
    font-size: 11px;
  }

  .legend {
    left: 8px;
    padding: 7px;
    bottom: auto;
  }

  .legend .ramp i {
    width: 15px;
  }

  .legend .ramp .lbl {
    font-size: 8px;
  }

  .map-view-controls {
    gap: 5px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading p {
    max-width: none;
  }

  .cat-toolbar {
    gap: 12px;
  }

  .map-search {
    min-width: 100%;
  }

  .brand {
    gap: 7px;
  }

  .brand img {
    width: 27px;
  }

  .account-toggle {
    width: 31px;
    height: 31px;
  }


  .header-inner {
    padding: 0 10px;
    gap: 7px;
  }

  .tree-card {
    padding: 18px;
  }

}


@media (prefers-reduced-motion:reduce) {

  footer * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  footer *::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .marker-tree {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  *::before {
    animation: none !important;
    transition: none !important;
  }

  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .species-card:hover {
    transform: none;
  }

  .kpi:hover {
    transform: none;
  }

  .action:hover {
    transform: none;
  }

  .hero-scroll.film-static {
    height: auto !important;
  }

}
