/* =========================================================
   Las Vueltas de Bichos y Agua · Los Bichos de Cascajal
   Hoja de estilos principal
   ========================================================= */

:root {
  --paper: #fbfaf5;
  --paper-deep: #f4eddf;
  --ink: #10312e;
  --ink-soft: #4a6660;
  --ink-faint: #78908a;

  --teal-900: #0b3d3b;
  --teal-700: #14635c;
  --teal-500: #2f8a7f;
  --aqua: #9fd8cf;
  --mist: #e3f2ee;
  --mist-soft: #f0f8f5;

  --sand: #efe3ca;
  --leaf: #7e9b4c;
  --sun: #e2a53c;
  --coral: #cf765c;

  --line: rgba(16, 49, 46, 0.12);
  --line-strong: rgba(16, 49, 46, 0.2);

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;

  --shadow-soft: 0 18px 40px -28px rgba(11, 61, 59, 0.45);
  --shadow-plate: 0 34px 70px -34px rgba(11, 61, 59, 0.5);

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

  --wrap: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--aqua);
  color: var(--teal-900);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--teal-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Tipografía de secciones ---------- */

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.eyebrow .pulse {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 5px rgba(126, 155, 76, 0.16);
}

.eyebrow--light {
  color: var(--aqua);
}

.lead {
  margin: 0;
  max-width: 56ch;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.86rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.btn svg {
  flex: none;
  transition: transform 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--teal-900);
  color: #fff;
  box-shadow: 0 16px 30px -18px rgba(11, 61, 59, 0.9);
}

.btn-primary:hover {
  background: var(--teal-700);
  box-shadow: 0 20px 34px -18px rgba(11, 61, 59, 0.75);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--teal-500);
}

.btn-light {
  background: var(--paper);
  color: var(--teal-900);
  box-shadow: 0 14px 26px -18px rgba(0, 0, 0, 0.6);
}

.btn-light:hover {
  background: #fff;
}

.btn-whatsapp {
  background: #25d366;
  color: #073b25;
  box-shadow: 0 14px 26px -18px rgba(0, 0, 0, 0.6);
}

.btn-whatsapp:hover {
  background: #1fc45d;
}

.btn-whatsapp:focus-visible {
  outline-color: #fff;
}

/* =========================================================
   Fauna ambiental animada
   ========================================================= */

.ambient-insects {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
  contain: layout style paint;
}

.insect {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.62;
  will-change: transform;
}

.insect svg {
  display: block;
  overflow: visible;
}

.insect--butterfly {
  width: 44px;
  height: 44px;
  animation: fly-butterfly 48s linear infinite;
  animation-delay: -12s;
}

.insect--butterfly svg {
  animation: insect-bob 5.5s ease-in-out infinite alternate;
}

.insect--dragonfly {
  width: 64px;
  height: 40px;
  opacity: 0.5;
  animation: fly-dragonfly 58s linear infinite;
  animation-delay: -31s;
}

.insect--dragonfly svg {
  animation: insect-bob 6.5s ease-in-out infinite alternate-reverse;
}

.insect--firefly {
  width: 27px;
  height: 27px;
  opacity: 0.58;
  animation: fly-firefly 42s linear infinite;
  animation-delay: -17s;
}

.wing {
  transform-box: fill-box;
  transform-origin: center;
  animation: wing-flap 0.62s ease-in-out infinite alternate;
}

.wing--left {
  transform-origin: right center;
  animation-delay: -0.18s;
}

.wing--right {
  transform-origin: left center;
}

.dragonfly-wings {
  transform-box: fill-box;
  transform-origin: center;
  animation: dragonfly-flutter 1.15s ease-in-out infinite alternate;
}

.firefly-glow {
  animation: firefly-glow 3.8s ease-in-out infinite;
}

@keyframes fly-butterfly {
  0% {
    transform: translate3d(5vw, 18vh, 0) rotate(-8deg);
  }
  12% {
    transform: translate3d(20vw, 8vh, 0) rotate(6deg);
  }
  26% {
    transform: translate3d(38vw, 21vh, 0) rotate(-4deg);
  }
  40% {
    transform: translate3d(58vw, 7vh, 0) rotate(8deg);
  }
  55% {
    transform: translate3d(76vw, 25vh, 0) rotate(-6deg);
  }
  70% {
    transform: translate3d(92vw, 12vh, 0) rotate(4deg);
  }
  84% {
    transform: translate3d(66vw, 37vh, 0) rotate(-5deg);
  }
  94% {
    transform: translate3d(29vw, 29vh, 0) rotate(7deg);
  }
  100% {
    transform: translate3d(5vw, 18vh, 0) rotate(-8deg);
  }
}

@keyframes fly-dragonfly {
  0% {
    transform: translate3d(89vw, 56vh, 0) rotate(-4deg);
  }
  20% {
    transform: translate3d(67vw, 43vh, 0) rotate(6deg);
  }
  40% {
    transform: translate3d(79vw, 69vh, 0) rotate(-3deg);
  }
  60% {
    transform: translate3d(93vw, 51vh, 0) rotate(7deg);
  }
  80% {
    transform: translate3d(70vw, 76vh, 0) rotate(-6deg);
  }
  100% {
    transform: translate3d(89vw, 56vh, 0) rotate(-4deg);
  }
}

@keyframes fly-firefly {
  0% {
    transform: translate3d(-4vw, 76vh, 0) rotate(-5deg);
  }
  25% {
    transform: translate3d(13vw, 66vh, 0) rotate(7deg);
  }
  50% {
    transform: translate3d(24vw, 84vh, 0) rotate(-4deg);
  }
  75% {
    transform: translate3d(8vw, 89vh, 0) rotate(6deg);
  }
  100% {
    transform: translate3d(-4vw, 76vh, 0) rotate(-5deg);
  }
}

@keyframes insect-bob {
  from {
    transform: translateY(-3px) rotate(-1.5deg);
  }
  to {
    transform: translateY(3px) rotate(1.5deg);
  }
}

@keyframes wing-flap {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0.38);
  }
}

@keyframes dragonfly-flutter {
  from {
    transform: scaleY(1) rotate(0deg);
  }
  to {
    transform: scaleY(0.72) rotate(2deg);
  }
}

@keyframes firefly-glow {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.9;
  }
}

/* =========================================================
   Encabezado
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(251, 250, 245, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(11, 61, 59, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  line-height: 1;
}

.brand-logo {
  width: auto;
  height: 54px;
  max-width: 145px;
  flex: none;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--aqua);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-mark--small {
  width: 38px;
  height: 38px;
}

.brand-mark--small svg {
  width: 26px;
  height: 26px;
}

.brand-text {
  display: grid;
  gap: 0.15rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.site-nav > a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav > a:hover,
.site-nav > a.is-active {
  color: var(--teal-700);
}

.site-nav > a:hover::after,
.site-nav > a.is-active::after {
  transform: scaleX(1);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.68rem 1.05rem;
  border-radius: 999px;
  background: var(--teal-900);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: var(--teal-700);
  transform: translateY(-1px);
}

.site-nav .nav-cta svg {
  transition: transform 0.2s ease;
}

.site-nav .nav-cta:hover svg {
  transform: translateX(2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) {
  top: 16px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 26px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* =========================================================
   Portada
   ========================================================= */

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 62% at 88% 8%, rgba(159, 216, 207, 0.4), transparent 62%),
    radial-gradient(44% 54% at 4% 78%, rgba(239, 227, 202, 0.55), transparent 66%),
    linear-gradient(180deg, #fbfaf5 0%, #f7f6ee 100%);
}

.hero-deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(47, 138, 127, 0.3);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.85), rgba(159, 216, 207, 0.14) 70%);
  animation: float 15s ease-in-out infinite;
}

.bubble-1 {
  width: 46px;
  height: 46px;
  top: 14%;
  left: 4%;
}

.bubble-2 {
  width: 18px;
  height: 18px;
  top: 58%;
  left: 47%;
  animation-delay: -4s;
  animation-duration: 11s;
}

.bubble-3 {
  width: 74px;
  height: 74px;
  right: 3%;
  top: 62%;
  opacity: 0.6;
  animation-delay: -7s;
  animation-duration: 18s;
}

.bubble-4 {
  width: 26px;
  height: 26px;
  right: 13%;
  top: 9%;
  animation-delay: -2s;
  animation-duration: 12s;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(47, 138, 127, 0.16);
}

.ripple-1 {
  width: 340px;
  height: 340px;
  top: -160px;
  right: -80px;
}

.ripple-2 {
  width: 220px;
  height: 220px;
  bottom: -120px;
  left: -60px;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(6px, -18px, 0);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.75rem);
}

.hero-copy h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 6.1vw, 4.9rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
}

.hl {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
  color: var(--teal-700);
}

.hl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1%;
  right: -1%;
  bottom: 0.05em;
  height: 0.2em;
  border-radius: 999px;
  background: var(--aqua);
  opacity: 0.7;
  transform: rotate(-1deg);
}

.hl-water {
  color: var(--teal-900);
}

.hl-water::after {
  background: var(--sand);
  opacity: 0.95;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
  padding: 0.42rem 1rem 0.42rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 22px -18px rgba(11, 61, 59, 0.55);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.team-badge svg {
  padding: 3px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal-700);
}

.team-badge strong {
  font-weight: 700;
  color: var(--ink);
}

.hero-copy .lead {
  max-width: 52ch;
  font-size: clamp(1rem, 1.2vw, 1.09rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 2.4rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px dashed var(--line-strong);
}

.hero-stats div {
  display: grid;
  gap: 0.15rem;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--teal-700);
}

.hero-stats dd {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Lámina de la portada ---------- */

.hero-figure {
  position: relative;
  margin: 0;
  padding: 0 0.5rem;
}

.plate {
  position: relative;
  padding: clamp(0.65rem, 1.3vw, 1rem);
  border: 1px solid rgba(16, 49, 46, 0.09);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: var(--shadow-plate);
  transform: rotate(-1.8deg);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.55s ease;
}

.plate:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 42px 80px -36px rgba(11, 61, 59, 0.55);
}

.plate img {
  border-radius: 12px;
}

.tape {
  position: absolute;
  z-index: 2;
  width: 92px;
  height: 26px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.42)),
    rgba(159, 216, 207, 0.72);
  box-shadow: 0 2px 6px rgba(11, 61, 59, 0.12);
  backdrop-filter: blur(1px);
}

.tape-a {
  top: -13px;
  left: 8%;
  transform: rotate(-4deg);
}

.tape-b {
  right: 7%;
  bottom: -12px;
  transform: rotate(3deg);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.45)),
    rgba(239, 227, 202, 0.9);
}

.hero-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 1.3rem 0 0;
  padding-left: 0.4rem;
  max-width: 44ch;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.hero-figure figcaption strong {
  color: var(--teal-700);
  font-weight: 700;
}

.hero-figure figcaption span {
  display: block;
  width: 100%;
  padding-top: 0.15rem;
  font-style: italic;
}

.sticker {
  position: absolute;
  top: -26px;
  right: -18px;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  transform: rotate(9deg);
  box-shadow: 0 14px 26px -16px rgba(11, 61, 59, 0.6);
  border: 3px solid #fffdf8;
}

/* =========================================================
   Secciones generales
   ========================================================= */

.section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  max-width: none;
}

.section-head--split h2 {
  margin-bottom: 0;
}

.section--mist {
  background:
    radial-gradient(70% 90% at 90% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(180deg, var(--mist) 0%, var(--mist-soft) 55%, var(--mist) 100%);
  border-block: 1px solid rgba(16, 49, 46, 0.06);
}

/* ---------- Características ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.feature {
  position: relative;
  overflow: hidden;
  padding: 1.7rem 1.6rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature::before {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -62px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--mist-soft);
  transition: transform 0.45s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 138, 127, 0.35);
  box-shadow: 0 26px 52px -30px rgba(11, 61, 59, 0.5);
}

.feature:hover::before {
  transform: scale(1.2);
}

.feature-number {
  position: absolute;
  top: 1.1rem;
  right: 1.35rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(16, 49, 46, 0.08);
}

.feature-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.15rem;
  border-radius: 15px;
  background: var(--mist);
  color: var(--teal-700);
}

.feature h3 {
  position: relative;
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  position: relative;
  margin: 0;
  font-size: 0.91rem;
  color: var(--ink-soft);
}

.quote-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px dashed rgba(16, 49, 46, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(239, 227, 202, 0.55), rgba(227, 242, 238, 0.6));
  text-align: center;
}

.quote-strip p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--teal-900);
}

.quote-strip span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Video ---------- */

.section--video {
  background:
    radial-gradient(58% 78% at 92% 6%, rgba(159, 216, 207, 0.3), transparent 65%),
    linear-gradient(180deg, #faf6ec 0%, #f3eee2 100%);
  border-block: 1px solid rgba(16, 49, 46, 0.06);
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.video-copy h2 {
  margin-bottom: 0.9rem;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  margin: 1.8rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px dashed var(--line-strong);
  list-style: none;
}

.video-meta li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.video-meta-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--teal-700);
}

.video-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.video-frame {
  position: relative;
  margin: 0;
  padding: clamp(0.6rem, 1.2vw, 0.85rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: var(--shadow-plate);
  transform: rotate(0.7deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.video-frame:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 40px 76px -36px rgba(11, 61, 59, 0.52);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0b1f1d;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1f1d;
}

.video-frame figcaption {
  margin: 0.85rem 0.25rem 0.1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.video-frame figcaption strong {
  color: var(--teal-700);
  font-weight: 700;
}

/* ---------- Macroinvertebrados ---------- */

.macro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(2.2rem, 5vw, 4.5rem);
}

.macro-copy {
  padding-top: 0.4rem;
}

.macro-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.macro-copy strong {
  color: var(--teal-900);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
}

.chip--yellow span {
  background: #dfb04e;
}

.chip--orange span {
  background: #dd8f4e;
}

.chip--red span {
  background: #cf6a52;
}

.meter-card {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid rgba(16, 49, 46, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 56px -38px rgba(11, 61, 59, 0.55);
  transform: rotate(1deg);
}

.meter-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meter-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.meter-intro {
  margin: 0 0 1.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.scale-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 1.3rem;
}

.scale-seg {
  height: 9px;
  flex: 1;
  border-radius: 999px;
}

.scale-seg--yellow {
  background: #e8c46a;
}

.scale-seg--orange {
  background: #dd8f4e;
}

.scale-seg--red {
  background: #cf6a52;
}

.scale-list {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scale-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.scale-dot {
  width: 11px;
  height: 11px;
  flex: none;
  margin-top: 0.38rem;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 49, 46, 0.045);
}

.scale-dot--yellow {
  background: #dfb04e;
}

.scale-dot--orange {
  background: #dd8f4e;
}

.scale-dot--red {
  background: #cf6a52;
}

.scale-list div {
  display: grid;
  gap: 0.1rem;
}

.scale-list strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.scale-list div span {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.meter-note {
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* ---------- Equipo ---------- */

.section--team {
  background:
    radial-gradient(52% 38% at 100% 0%, rgba(159, 216, 207, 0.23), transparent 70%),
    radial-gradient(48% 40% at 0% 100%, rgba(239, 227, 202, 0.5), transparent 70%),
    var(--paper);
}

.group-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 2.5rem 0 1rem;
}

.group-head:first-of-type {
  margin-top: 0;
}

.group-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.group-head .count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 0.42rem;
  border-radius: 999px;
  background: var(--mist);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-700);
}

.group-head::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.person {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.4rem 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px -30px rgba(11, 61, 59, 0.55);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.person::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent, var(--teal-500));
  opacity: 0.85;
}

.person:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 49, 46, 0.2);
  box-shadow: 0 28px 48px -32px rgba(11, 61, 59, 0.5);
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mist) 0%, #fff 85%);
  color: var(--accent, var(--teal-700));
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(16, 49, 46, 0.04);
}

.person-role {
  margin: 0 0 0.32rem;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, var(--teal-700));
}

.person h4 {
  margin: 0 0 0.38rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.person-bio {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.team-grid--teachers .person {
  padding-top: 1.65rem;
  padding-bottom: 1.7rem;
}

.team-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  max-width: 640px;
  margin: 2.4rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-faint);
}

/* ---------- Contacto ---------- */

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.8rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(47, 138, 127, 0.55), transparent 55%),
    linear-gradient(135deg, #0b3d3b 0%, #10312e 55%, #0d443f 100%);
  color: #eaf6f2;
  box-shadow: 0 36px 80px -40px rgba(11, 61, 59, 0.8);
}

.contact-card h2 {
  margin-bottom: 0.8rem;
  color: #fff;
}

.contact-card p {
  margin: 0;
  max-width: 54ch;
  font-size: 0.98rem;
  color: rgba(234, 246, 242, 0.78);
}

.contact-actions {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.95rem 0.5rem 0.5rem;
  border: 1px solid rgba(234, 246, 242, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #eaf6f2;
  text-decoration: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.contact-phone:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(234, 246, 242, 0.4);
  transform: translateY(-1px);
}

.contact-phone-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: rgba(159, 216, 207, 0.16);
  color: var(--aqua);
}

.contact-phone-text {
  display: grid;
  gap: 0.04rem;
  line-height: 1.2;
}

.contact-phone-text small {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 246, 242, 0.62);
}

.contact-phone-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}

.contact-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 0.25rem;
  font-size: 0.8rem;
  color: rgba(234, 246, 242, 0.68) !important;
}

/* Redes y publicaciones del proyecto */
.contact-social {
  width: 100%;
  min-width: 0;
  padding-top: 0.2rem;
}

.contact-social-title {
  margin: 0 0 0.5rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 246, 242, 0.6) !important;
}

.contact-social-links {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 340px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(234, 246, 242, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #eaf6f2;
  text-decoration: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(234, 246, 242, 0.4);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

.social-link-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
}

.social-link--tiktok .social-link-icon {
  background: linear-gradient(135deg, #14201f 0%, #000 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(37, 244, 238, 0.32);
}

.social-link--blog .social-link-icon {
  background: rgba(217, 178, 106, 0.18);
  color: #f0dcae;
}

.social-link-text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.2;
}

.social-link-text strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.social-link-text small {
  font-size: 0.65rem;
  color: rgba(234, 246, 242, 0.64);
}

.social-link-arrow {
  flex: none;
  margin-left: auto;
  color: rgba(234, 246, 242, 0.55);
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-link:hover .social-link-arrow {
  transform: translate(1px, -1px);
  color: #fff;
}

.contact-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact-decoration span {
  position: absolute;
  border: 1px solid rgba(159, 216, 207, 0.22);
  border-radius: 50%;
}

.contact-decoration span:nth-child(1) {
  width: 260px;
  height: 260px;
  right: -70px;
  top: -120px;
}

.contact-decoration span:nth-child(2) {
  width: 380px;
  height: 380px;
  right: -150px;
  bottom: -250px;
}

.contact-decoration span:nth-child(3) {
  width: 16px;
  height: 16px;
  left: 46%;
  bottom: 18%;
  background: rgba(159, 216, 207, 0.28);
  border: none;
}

/* =========================================================
   Pie de página
   ========================================================= */

.site-footer {
  padding: 2.6rem 0 0;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding-bottom: 2.4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: auto;
  height: 48px;
  max-width: 120px;
  flex: none;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.footer-brand p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.2rem;
}

.footer-nav a {
  padding-block: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-copy {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: right;
  color: var(--ink-faint);
}

/* ---------- Quebrada animada ---------- */

.footer-creek {
  position: relative;
  margin-top: 0;
  line-height: 0;
  background: linear-gradient(180deg, var(--paper) 0%, #eef6f0 100%);
}

.footer-creek svg {
  display: block;
  width: 100%;
  height: clamp(130px, 15vw, 190px);
}

.creek-current--one {
  animation: creek-dash 18s linear infinite;
}

.creek-current--two {
  animation: creek-dash 26s linear infinite reverse;
}

.creek-glint {
  animation: creek-glint 8s ease-in-out infinite;
}

.creek-glint--two {
  animation-delay: -3s;
}

.creek-glint--three {
  animation-delay: -6s;
}

.creek-reeds {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: reed-sway 7s ease-in-out infinite alternate;
}

.creek-reeds--right {
  animation-duration: 9s;
  animation-delay: -3s;
}

.creek-leaf {
  transform-box: fill-box;
  transform-origin: center;
  animation: leaf-drift 38s linear infinite;
}

.creek-rings {
  transform-box: fill-box;
  transform-origin: center;
  animation: creek-rings 5.5s ease-in-out infinite;
}

@keyframes creek-dash {
  to {
    stroke-dashoffset: -232;
  }
}

@keyframes creek-glint {
  0%,
  100% {
    opacity: 0.14;
    transform: translateX(0);
  }
  50% {
    opacity: 0.62;
    transform: translateX(18px);
  }
}

@keyframes reed-sway {
  from {
    transform: rotate(-0.8deg);
  }
  to {
    transform: rotate(1.2deg);
  }
}

@keyframes leaf-drift {
  0% {
    opacity: 0;
    transform: translate3d(-170px, 0, 0) rotate(-8deg);
  }
  6% {
    opacity: 0.85;
  }
  92% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate3d(1330px, 7px, 0) rotate(10deg);
  }
}

@keyframes creek-rings {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.02);
  }
}

/* =========================================================
   Animaciones de aparición
   ========================================================= */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1020px) {
  .site-nav {
    gap: 1.25rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
  }

  .sticker {
    top: -22px;
    right: -10px;
    width: 76px;
    height: 76px;
    font-size: 0.76rem;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.2rem;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.25rem;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-figure {
    width: min(100%, 620px);
    margin-inline: auto;
    padding: 0;
  }

  .video-layout {
    grid-template-columns: 1fr;
  }

  .video-copy {
    max-width: 660px;
  }

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

  .meter-card {
    transform: none;
    max-width: 560px;
  }

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

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-items: start;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-copy {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 250, 245, 0.98);
    box-shadow: 0 24px 40px -30px rgba(11, 61, 59, 0.5);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: 0.75rem 0.35rem;
    font-size: 0.98rem;
  }

  .site-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 0.4rem;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 760px) {
  .insect--dragonfly {
    display: none;
  }

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

  .feature {
    padding: 1.55rem 1.4rem 1.6rem;
  }

  .team-grid,
  .team-grid--teachers {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.6rem 2.2rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 1.75rem);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-logo {
    height: 44px;
    max-width: 110px;
    border-radius: 8px;
  }

  .footer-logo {
    height: 42px;
    max-width: 96px;
  }

  .insect--firefly {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark svg {
    width: 27px;
    height: 27px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .brand-sub {
    font-size: 0.57rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 11.5vw, 3.4rem);
  }

  .team-badge {
    font-size: 0.8rem;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .btn {
    padding: 0.8rem 1.15rem;
    font-size: 0.88rem;
  }

  .sticker {
    width: 68px;
    height: 68px;
    top: -18px;
    right: -6px;
    font-size: 0.68rem;
    border-width: 2px;
  }

  .hero-figure figcaption {
    padding-left: 0.15rem;
    font-size: 0.75rem;
  }

  .quote-strip {
    text-align: left;
    justify-content: flex-start;
  }

  .contact-card {
    border-radius: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 0.3rem 1rem;
  }

  .footer-creek svg {
    height: 145px;
  }

  .contact-buttons {
    width: 100%;
  }
}

/* =========================================================
   Accesibilidad: movimiento reducido
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ambient-insects {
    display: none;
  }

  .creek-current--one,
  .creek-current--two,
  .creek-glint,
  .creek-reeds,
  .creek-leaf,
  .creek-rings {
    animation: none !important;
  }
}

/* =========================================================
   Impresión
   ========================================================= */

@media print {
  .ambient-insects,
  .footer-creek {
    display: none;
  }

  .site-header {
    position: static;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .video-frame {
    box-shadow: none;
  }
}

/* =========================================================
   CAPA INMERSA · SELVA, QUEBRADA, RECORRIDO Y ORGANISMOS
   ========================================================= */

:root {
  --paper: #f7f4ea;
  --paper-deep: #efe8d6;
  --ink: #20362f;
  --ink-soft: #4d635a;
  --ink-faint: #586d65;

  --teal-900: #24423b;
  --teal-700: #3a6b5e;
  --teal-500: #6f9f92;
  --aqua: #b9ddd2;
  --mist: #e6efe3;
  --mist-soft: #f1f6ec;

  --sand: #ecdfc6;
  --leaf: #8aa36a;
  --sun: #d9b26a;
  --coral: #c98a76;

  --line: rgba(32, 54, 47, 0.12);
  --line-strong: rgba(32, 54, 47, 0.2);

  --shadow-soft: 0 18px 40px -30px rgba(32, 54, 47, 0.45);
  --shadow-plate: 0 34px 70px -36px rgba(32, 54, 47, 0.5);
}

body {
  background: var(--paper);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Fondo de selva por capas ---------- */

.jungle-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
  contain: layout paint style;
}

.jungle-photo {
  position: absolute;
  inset: -4%;
  background: url("assets/selva/selva-fondo.jpg") center 42% / cover no-repeat;
  opacity: 0.72;
  filter: saturate(0.72) brightness(1.06) contrast(0.92);
  transform: scale(1.04);
  animation: jungle-breathe 70s ease-in-out infinite alternate;
  will-change: transform;
}

.jungle-rays {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 18%, rgba(255, 252, 235, 0.5) 33%, transparent 47%),
    linear-gradient(96deg, transparent 54%, rgba(255, 252, 235, 0.32) 69%, transparent 81%);
  mix-blend-mode: screen;
  opacity: 0.62;
}

.jungle-canopy {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: clamp(200px, 32vh, 400px);
  opacity: 0.42;
  filter: blur(0.5px);
}

.jungle-ferns {
  position: absolute;
  bottom: -50px;
  width: clamp(210px, 24vw, 330px);
  height: clamp(300px, 46vh, 520px);
  opacity: 0.28;
  filter: blur(0.4px);
}

.jungle-ferns--left {
  left: -40px;
}

.jungle-ferns--right {
  right: -40px;
}

.jungle-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 48% at 50% 0%, rgba(255, 252, 240, 0.78), transparent 72%),
    linear-gradient(
      180deg,
      rgba(247, 244, 234, 0.62) 0%,
      rgba(247, 244, 234, 0.46) 34%,
      rgba(235, 246, 234, 0.6) 68%,
      rgba(247, 244, 234, 0.78) 100%
    );
}

@keyframes jungle-breathe {
  from {
    transform: scale(1.04) translate3d(-6px, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(8px, -8px, 0);
  }
}

/* Las secciones se vuelven translúcidas para dejar ver la selva */

.site-header {
  background: rgba(247, 244, 234, 0.86);
}

.hero::before {
  background:
    radial-gradient(58% 62% at 88% 8%, rgba(185, 221, 210, 0.34), transparent 62%),
    radial-gradient(44% 54% at 4% 78%, rgba(236, 223, 198, 0.5), transparent 66%),
    linear-gradient(100deg, rgba(247, 244, 234, 0.93) 0%, rgba(247, 244, 234, 0.7) 46%, rgba(230, 239, 227, 0.26) 100%);
}

/* El centro queda opaco para el texto; los bordes se abren para dejar ver la selva. */

#proyecto {
  background:
    linear-gradient(90deg, transparent 0%, rgba(247, 244, 234, 0.82) 8%, rgba(247, 244, 234, 0.82) 92%, transparent 100%),
    linear-gradient(180deg, rgba(247, 244, 234, 0.42) 0%, rgba(247, 244, 234, 0.52) 100%);
}

.section--video {
  background:
    linear-gradient(90deg, transparent 0%, rgba(247, 244, 234, 0.8) 8%, rgba(247, 244, 234, 0.8) 92%, transparent 100%),
    radial-gradient(58% 78% at 92% 6%, rgba(185, 221, 210, 0.3), transparent 65%),
    linear-gradient(180deg, rgba(247, 244, 234, 0.44) 0%, rgba(239, 232, 214, 0.52) 100%);
}

.section--mist {
  background:
    linear-gradient(90deg, transparent 0%, rgba(230, 239, 227, 0.8) 8%, rgba(230, 239, 227, 0.8) 92%, transparent 100%),
    linear-gradient(
      180deg,
      rgba(230, 239, 227, 0.48) 0%,
      rgba(241, 246, 236, 0.58) 55%,
      rgba(230, 239, 227, 0.48) 100%
    );
}

.section--team {
  background:
    linear-gradient(90deg, transparent 0%, rgba(247, 244, 234, 0.8) 8%, rgba(247, 244, 234, 0.8) 92%, transparent 100%),
    radial-gradient(52% 38% at 100% 0%, rgba(185, 221, 210, 0.24), transparent 70%),
    radial-gradient(48% 40% at 0% 100%, rgba(236, 223, 198, 0.46), transparent 70%),
    linear-gradient(180deg, rgba(247, 244, 234, 0.44) 0%, rgba(247, 244, 234, 0.54) 100%);
}

#contacto {
  background:
    linear-gradient(90deg, transparent 0%, rgba(247, 244, 234, 0.8) 8%, rgba(247, 244, 234, 0.8) 92%, transparent 100%),
    linear-gradient(180deg, rgba(241, 246, 236, 0.32) 0%, rgba(247, 244, 234, 0.52) 100%);
}

.contact-card {
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(111, 159, 146, 0.5), transparent 55%),
    linear-gradient(135deg, #24423b 0%, #1f3730 55%, #2a4a41 100%);
}

/* ---------- Quebrada principal ---------- */

.creek-scene {
  position: relative;
  z-index: 1;
  height: clamp(220px, 27vw, 370px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(247, 244, 234, 0.9) 0%, #dbe8d5 22%, #cbdfd2 100%);
  border-block: 1px solid rgba(32, 54, 47, 0.06);
}

.creek-scene::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 42px;
  background: linear-gradient(180deg, rgba(247, 244, 234, 0.95), rgba(247, 244, 234, 0));
  pointer-events: none;
}

.creek-scene svg {
  display: block;
  width: 100%;
  height: 100%;
}

.creek-scene .creek-current--one {
  animation: creek-dash 24s linear infinite;
}

.creek-scene .creek-current--two {
  animation: creek-dash 34s linear infinite reverse;
}

.creek-scene .creek-glint {
  animation-duration: 9s;
}

.creek-scene .creek-glint--two {
  animation-delay: -3.5s;
}

.creek-scene .creek-glint--three {
  animation-delay: -6.5s;
}

.creek-scene .creek-glint--four {
  animation-delay: -1.5s;
}

.creek-scene .creek-reeds {
  animation-duration: 8s;
}

.creek-scene .creek-reeds--right {
  animation-duration: 10.5s;
  animation-delay: -3s;
}

.creek-scene .creek-leaf {
  animation: leaf-drift 46s linear infinite;
}

.creek-scene .creek-leaf--two {
  animation-duration: 58s;
  animation-delay: -22s;
}

.creek-scene .creek-rings {
  animation-duration: 7s;
}

.creek-reflection {
  transform-box: fill-box;
  transform-origin: center;
  animation: reflection-sway 13s ease-in-out infinite alternate;
}

@keyframes reflection-sway {
  from {
    transform: translateX(-4px);
  }
  to {
    transform: translateX(5px);
  }
}

/* ---------- Insectos adicionales ---------- */

.insect--butterfly-two {
  width: 40px;
  height: 40px;
  opacity: 0.48;
  animation: fly-butterfly-two 62s linear infinite;
  animation-delay: -27s;
}

.insect--butterfly-two .wing {
  animation-duration: 0.78s;
}

.insect--damselfly {
  width: 58px;
  height: 28px;
  opacity: 0.48;
  animation: fly-damselfly 66s linear infinite;
  animation-delay: -8s;
}

.insect--damselfly svg {
  animation: insect-bob 7.5s ease-in-out infinite alternate;
}

.damselfly-wings {
  transform-box: fill-box;
  transform-origin: center;
  animation: dragonfly-flutter 1.7s ease-in-out infinite alternate;
}

.insect--beetle {
  width: 27px;
  height: 23px;
  opacity: 0.5;
  animation: fly-beetle 54s linear infinite;
  animation-delay: -21s;
}

.insect--beetle svg {
  animation: insect-bob 4.2s ease-in-out infinite alternate-reverse;
}

@keyframes fly-butterfly-two {
  0% {
    transform: translate3d(96vw, 62vh, 0) rotate(6deg);
  }
  18% {
    transform: translate3d(78vw, 44vh, 0) rotate(-5deg);
  }
  36% {
    transform: translate3d(58vw, 58vh, 0) rotate(7deg);
  }
  54% {
    transform: translate3d(38vw, 38vh, 0) rotate(-6deg);
  }
  72% {
    transform: translate3d(16vw, 54vh, 0) rotate(5deg);
  }
  88% {
    transform: translate3d(30vw, 70vh, 0) rotate(-3deg);
  }
  100% {
    transform: translate3d(96vw, 62vh, 0) rotate(6deg);
  }
}

@keyframes fly-damselfly {
  0% {
    transform: translate3d(-6vw, 44vh, 0) rotate(3deg);
  }
  25% {
    transform: translate3d(22vw, 34vh, 0) rotate(-4deg);
  }
  50% {
    transform: translate3d(48vw, 47vh, 0) rotate(3deg);
  }
  75% {
    transform: translate3d(74vw, 33vh, 0) rotate(-5deg);
  }
  100% {
    transform: translate3d(-6vw, 44vh, 0) rotate(3deg);
  }
}

@keyframes fly-beetle {
  0% {
    transform: translate3d(8vw, 88vh, 0) rotate(-8deg);
  }
  30% {
    transform: translate3d(34vw, 80vh, 0) rotate(10deg);
  }
  60% {
    transform: translate3d(62vw, 90vh, 0) rotate(-6deg);
  }
  85% {
    transform: translate3d(86vw, 82vh, 0) rotate(8deg);
  }
  100% {
    transform: translate3d(8vw, 88vh, 0) rotate(-8deg);
  }
}

/* ---------- Botón dentro de macroinvertebrados ---------- */

.macro-cta {
  margin-top: 1.6rem;
}

/* =========================================================
   Recorrido de investigación
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section--route {
  background:
    linear-gradient(90deg, transparent 0%, rgba(243, 240, 230, 0.82) 8%, rgba(243, 240, 230, 0.82) 92%, transparent 100%),
    radial-gradient(52% 40% at 96% 4%, rgba(185, 221, 210, 0.26), transparent 68%),
    linear-gradient(180deg, rgba(247, 244, 234, 0.5) 0%, rgba(238, 243, 223, 0.56) 100%);
  border-block: 1px solid rgba(32, 54, 47, 0.06);
}

.route-head {
  max-width: none;
}

.route-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.route-tagline > span {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-500);
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  align-items: start;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
}

/* ---------- Mapa ilustrado ---------- */

.route-map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, 0.95);
  box-shadow: var(--shadow-plate);
}

.route-map-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.route-map-top p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.route-map-top p strong {
  color: var(--teal-900);
  font-weight: 700;
}

.route-map-top > span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.route-map {
  position: relative;
  aspect-ratio: 1000 / 800;
  overflow: hidden;
  background: #eef3df;
}

.route-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.map-label {
  position: absolute;
  left: var(--label-x, 0%);
  top: var(--label-y, 0%);
  z-index: 2;
  transform: translate(0, -50%);
  padding: 0.16rem 0.5rem;
  border: 1px solid rgba(32, 54, 47, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.86);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #45604f;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.map-label--river {
  background: rgba(226, 244, 238, 0.9);
  color: #2b6459;
}

.map-label--bocatoma {
  background: rgba(246, 240, 222, 0.92);
  color: #6f6040;
}

/* La etiqueta de la desembocadura se alinea hacia la izquierda para no
   salirse del mapa cuando la columna se estrecha. */
.map-label--mouth {
  transform: translate(-100%, -50%);
}

.route-markers {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.point-marker {
  --point: #d9a83f;
  --point-ink: #6b4f14;
  --point-soft: #fbf1d8;
  position: absolute;
  left: var(--marker-x, 0%);
  top: var(--marker-y, 0%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2.5px solid var(--point);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px -6px rgba(16, 49, 46, 0.55), 0 0 0 4px rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.point-marker--yellow {
  --point: #d9a83f;
  --point-ink: #6b4f14;
  --point-soft: #fbf1d8;
}

.point-marker--orange {
  --point: #dd8f4e;
  --point-ink: #7a461a;
  --point-soft: #fbe9d8;
}

.point-marker--red {
  --point: #cf6a52;
  --point-ink: #772d1c;
  --point-soft: #f8e2db;
}

.point-marker:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--point-soft);
  box-shadow: 0 8px 18px -6px rgba(16, 49, 46, 0.5), 0 0 0 7px rgba(255, 255, 255, 0.72);
}

.point-marker[aria-selected="true"] {
  background: var(--point-soft);
  box-shadow: 0 8px 20px -6px rgba(16, 49, 46, 0.55), 0 0 0 7px rgba(255, 255, 255, 0.8), 0 0 0 10px var(--point);
}

.point-marker-number {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1;
  color: var(--point-ink);
}

.point-marker-label {
  position: absolute;
  top: calc(100% + 0.32rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.92);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  pointer-events: none;
}

.route-map-foot {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.2rem 1.15rem;
  border-top: 1px solid var(--line);
  background: rgba(248, 246, 237, 0.7);
}

.route-legend-title {
  margin: 0 0 0.5rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.route-legend ul {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.route-legend li > div {
  display: grid;
  gap: 0.05rem;
}

.route-legend strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
}

.route-legend div span {
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.quality-dot {
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: #d9a83f;
  box-shadow: 0 0 0 3px rgba(16, 49, 46, 0.05);
}

.quality-dot--yellow {
  background: #d9a83f;
}

.quality-dot--orange {
  background: #dd8f4e;
}

.quality-dot--red {
  background: #cf6a52;
}

.route-map-note {
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.68rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* ---------- Fichas de los puntos ---------- */

.route-detail {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 253, 247, 0.98), rgba(243, 247, 235, 0.94));
  box-shadow: var(--shadow-soft);
}

.route-detail-head {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.route-detail-eyebrow {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.route-detail-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.route-panel {
  display: none;
}

.route-panel.is-active {
  display: block;
  animation: routePanelIn 0.32s ease both;
}

@keyframes routePanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.route-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.route-point-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: #d9a83f;
  color: #4d370d;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.32);
}

.route-point-badge--yellow {
  background: #ecc672;
  color: #513a0f;
}

.route-point-badge--orange {
  background: #e9a569;
  color: #62360f;
}

.route-point-badge--red {
  background: #dd8b75;
  color: #5c2011;
}

.route-panel-title {
  min-width: 0;
}

.route-panel-kicker {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.route-panel-title h3 {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.quality-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #f7ecd3;
  color: #6e5220;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.quality-pill .quality-dot {
  margin-top: 0;
  width: 8px;
  height: 8px;
  box-shadow: none;
}

.quality-pill--yellow {
  background: #f7ecd3;
  color: #6e5220;
}

.quality-pill--orange {
  background: #fbe8d6;
  color: #7c4718;
}

.quality-pill--red {
  background: #f6ded7;
  color: #7e3524;
}

.route-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.8rem 0 0;
  border-top: 1px dashed var(--line-strong);
}

.route-facts div {
  display: grid;
  gap: 0.1rem;
}

.route-facts dt {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.route-facts dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.route-disclaimer {
  max-width: 84ch;
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid rgba(221, 143, 78, 0.55);
  border-radius: 0 10px 10px 0;
  background: rgba(251, 233, 216, 0.5);
  font-size: 0.72rem;
  line-height: 1.6;
  color: #6d5747;
}

/* =========================================================
   Organismos encontrados
   ========================================================= */

.section--groups {
  background:
    linear-gradient(90deg, transparent 0%, rgba(241, 246, 236, 0.84) 8%, rgba(241, 246, 236, 0.84) 92%, transparent 100%),
    linear-gradient(180deg, rgba(241, 246, 236, 0.5) 0%, rgba(247, 244, 234, 0.56) 100%);
  border-block: 1px solid rgba(32, 54, 47, 0.06);
}

.groups-head {
  max-width: none;
}

.group-filters {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.js .group-filters {
  display: flex;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-btn span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 19px;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: rgba(32, 54, 47, 0.08);
  font-size: 0.64rem;
  font-weight: 700;
}

.filter-btn:hover {
  border-color: var(--teal-500);
  color: var(--teal-700);
  transform: translateY(-1px);
}

.filter-btn.is-active {
  border-color: transparent;
  background: var(--teal-900);
  color: #fff;
}

.filter-btn.is-active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.filter-btn:focus-visible {
  outline-offset: 2px;
}

.filter-btn--yellow {
  border-color: rgba(217, 168, 63, 0.5);
}

.filter-btn--orange {
  border-color: rgba(221, 143, 78, 0.5);
}

.filter-btn--red {
  border-color: rgba(207, 106, 82, 0.5);
}

.group-status {
  display: none;
  margin: 0 0 1.6rem;
  font-size: 0.76rem;
  color: var(--ink-faint);
}

.js .group-status {
  display: block;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.group-card {
  --accent: var(--teal-500);
  --tag-bg: #eef2e8;
  --tag-ink: #4d635a;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.group-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 4px;
  background: var(--accent);
}

.group-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 107, 94, 0.32);
  box-shadow: 0 28px 52px -32px rgba(32, 54, 47, 0.5);
}

.group-card[hidden] {
  display: none;
}

.group-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef2e8;
}

.group-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.group-card:hover .group-photo img {
  transform: scale(1.035);
}

.group-photo figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(36, 66, 59, 0.72);
  color: #f2f7ef;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.group-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.05rem 1.2rem 1.25rem;
}

.group-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.group-order {
  margin: 0;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.group-tag {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.group-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.group-common {
  margin: 0.12rem 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-700);
}

.group-desc {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.group-facts {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0 0;
  border-top: 1px dashed var(--line-strong);
}

.group-facts div {
  display: grid;
  gap: 0.1rem;
}

.group-facts dt {
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.group-facts dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.group-found {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: auto 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-size: 0.7rem;
  font-weight: 600;
}

.group-found span {
  color: var(--accent);
}

.group-note {
  max-width: 78ch;
  margin: 1.6rem 0 0;
  font-size: 0.77rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* ---------- Metodología ---------- */

.method {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.95), rgba(241, 246, 236, 0.92));
  box-shadow: var(--shadow-soft);
}

.method-copy h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.method-copy > p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.method-copy strong {
  color: var(--teal-900);
}

.method-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  position: relative;
  padding-left: 1.1rem;
}

.method-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(111, 159, 146, 0.14);
}

.method-list strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.method-list span {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.method-panel {
  align-self: start;
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.method-panel-title {
  margin: 0 0 0.9rem;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.route-scale {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-scale-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.route-scale-row > span:last-child {
  display: grid;
  gap: 0.12rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.route-scale-row strong {
  font-size: 0.78rem;
  color: var(--ink);
}

.method-note {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

.method-caveat {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 1.4rem;
  padding: 1.2rem clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(201, 138, 118, 0.35);
  border-radius: var(--radius);
  background: rgba(245, 224, 216, 0.55);
}

.method-caveat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: #a85f49;
}

.method-caveat p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #5f4a3f;
}

.method-caveat strong {
  color: #7d4632;
}

/* ---------- Créditos ---------- */

.credits {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.credits h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.credits > p {
  max-width: 82ch;
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

.credits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.3rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credits-list li {
  font-size: 0.67rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

.credits-list a {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.credits-list a:hover {
  color: var(--teal-900);
}

.credits-ref {
  margin-top: 1rem !important;
  font-size: 0.69rem !important;
}

/* ---------- Ajustes responsive de la capa nueva ---------- */

@media (max-width: 1100px) {
  .group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .route-layout {
    grid-template-columns: 1fr;
  }

  .route-detail {
    max-width: 680px;
  }

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

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

  .method-panel {
    max-width: 560px;
  }

  .jungle-ferns {
    opacity: 0.16;
  }
}

@media (max-width: 900px) {
  .point-marker {
    width: 40px;
    height: 40px;
  }

  .point-marker-number {
    font-size: 1.05rem;
  }

  .map-label {
    font-size: 0.52rem;
    padding: 0.14rem 0.42rem;
  }
}

@media (max-width: 760px) {
  .insect--damselfly,
  .insect--butterfly-two {
    display: none;
  }

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

  .creek-scene {
    height: 230px;
  }

  .creek-scene .creek-reeds--right {
    display: none;
  }

  .jungle-ferns {
    opacity: 0.12;
  }

  .group-filters {
    gap: 0.4rem;
  }

  .filter-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }

  .route-map-top,
  .route-map-foot {
    padding-inline: 0.9rem;
  }

  /* En pantallas angostas el texto casi toca los bordes: fondo más uniforme. */
  #proyecto,
  .section--team,
  #contacto {
    background: rgba(247, 244, 234, 0.92);
  }

  .section--video {
    background: rgba(243, 240, 230, 0.93);
  }

  .section--mist {
    background: rgba(236, 243, 233, 0.93);
  }

  .section--groups {
    background: rgba(243, 246, 237, 0.93);
  }

  .section--route {
    background: rgba(243, 240, 230, 0.93);
  }
}

@media (max-width: 560px) {
  .insect--beetle {
    display: none;
  }

  .creek-scene {
    height: 200px;
  }

  .creek-scene .creek-reflection,
  .creek-scene .creek-glint--four {
    display: none;
  }

  .group-body {
    padding: 1rem;
  }

  .point-marker {
    width: 36px;
    height: 36px;
  }

  .point-marker-label {
    display: none;
  }

  .route-detail {
    padding: 1rem;
  }

  .route-panel-head {
    flex-wrap: wrap;
  }

  .quality-pill {
    margin-left: 0;
  }

  .route-point-badge {
    width: 36px;
    height: 36px;
  }

  .credits-list {
    grid-template-columns: 1fr;
  }

  .method-caveat {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* ---------- Movimiento reducido para la capa nueva ---------- */

@media (prefers-reduced-motion: reduce) {
  .jungle-photo,
  .creek-reflection {
    animation: none !important;
  }

  .point-marker,
  .group-photo img {
    transition: none;
  }

  .route-panel.is-active {
    animation: none;
  }

  .group-card:hover .group-photo img {
    transform: none;
  }

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

  .point-marker:hover,
  .point-marker[aria-selected="true"] {
    transform: translate(-50%, -50%);
  }
}

@media print {
  .jungle-bg,
  .creek-scene {
    display: none;
  }

  .section,
  .section--mist,
  .section--video,
  .section--team,
  .section--route,
  .section--groups {
    background: #fff;
  }

  .route-panel {
    display: block !important;
    break-inside: avoid;
  }
}

/* =========================================================
   Galerías de fotografías y visor ampliable
   ========================================================= */

.team-gallery {
  margin-top: clamp(2.8rem, 6vw, 4rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
}

.team-gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  margin-bottom: 1.2rem;
}

.team-gallery-head h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.team-gallery-head > p {
  max-width: 46ch;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.photo-gallery {
  display: grid;
  gap: 1rem;
}

.photo-gallery--team {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-tile {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.photo-tile figcaption {
  padding: 0.75rem 0.9rem 0.85rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.92);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.photo-zoom {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #eef2e8;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
}

.photo-zoom img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-zoom:hover img {
  transform: scale(1.03);
}

.photo-zoom:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: -3px;
}

.photo-zoom-icon {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 61, 59, 0.78);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Fichas de organismos: la foto completa, sin recortes anatómicos. */
.group-grid--specimens {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.group-photo--specimen {
  aspect-ratio: 4 / 3;
  background: #0e1311;
}

.group-photo--specimen .photo-zoom {
  height: 100%;
  background: #0e1311;
}

.group-photo--specimen .photo-zoom img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #0e1311;
}

.group-photo--specimen:hover .photo-zoom img {
  transform: none;
}

.group-photo--specimen figcaption {
  pointer-events: none;
}

.group-card--tentative {
  --accent: #2f8a7f;
  --tag-bg: #e3f2ee;
  --tag-ink: #14635c;
}

.group-card--confirmar {
  --accent: #c2a064;
  --tag-bg: #f4eddf;
  --tag-ink: #6d5426;
}

.group-found--pending {
  background: #eef2e8;
  color: #4d635a;
}

.group-found--pending span {
  color: #78908a;
}

/* Fichas agrupadas por punto de recolección */
.group-card--punto-1,
.group-card[data-category="punto-1"] {
  --accent: #d9a83f;
}

.group-card--punto-2,
.group-card[data-category="punto-2"] {
  --accent: #d9a83f;
}

.group-card--punto-3,
.group-card[data-category="punto-3"] {
  --accent: #dd8f4e;
}

.group-card--punto-4,
.group-card[data-category="punto-4"] {
  --accent: #cf6a52;
}

.group-card--punto-1 .group-tag,
.group-card--punto-2 .group-tag {
  background: #f7ecd3;
  color: #6e5220;
}

.group-card--punto-3 .group-tag {
  background: #f8e7d5;
  color: #7a4218;
}

.group-card--punto-4 .group-tag {
  background: #f7e0d9;
  color: #7a2f20;
}

.group-found--yellow {
  background: #f7ecd3;
  color: #6e5220;
}

.group-found--yellow span {
  color: #c99a2f;
}

.group-found--orange {
  background: #f8e7d5;
  color: #7a4218;
}

.group-found--orange span {
  color: #d17c38;
}

.group-found--red {
  background: #f7e0d9;
  color: #7a2f20;
}

.group-found--red span {
  color: #bf5138;
}

/* Aviso de procedencia */
.id-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  margin: 1.6rem 0 1.4rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(194, 160, 100, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(244, 237, 223, 0.86), rgba(255, 253, 247, 0.9));
}

.id-callout-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #8a6a2f;
}

.id-callout-copy {
  min-width: 0;
}

.id-callout-kicker {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6a2f !important;
}

.id-callout h3 {
  margin: 0.1rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.id-callout p {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.id-callout p:last-child {
  margin-bottom: 0;
}

.id-callout--provenance {
  border-color: rgba(47, 138, 127, 0.32);
  background: linear-gradient(135deg, rgba(227, 242, 238, 0.82), rgba(255, 253, 247, 0.92));
}

.id-callout--provenance .id-callout-icon {
  color: var(--teal-700);
}

.id-callout--provenance .id-callout-kicker {
  color: var(--teal-700) !important;
}

/* Organismos dentro de cada ficha de punto */
.route-photo-set {
  margin-top: 0.2rem;
  padding: 0.8rem 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.72);
}

.route-photo-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.6rem;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.route-photo-title strong {
  color: var(--teal-900);
}

.route-photo-title span {
  font-size: 0.64rem;
  color: var(--ink-faint);
}

.route-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 0.6rem;
}

.route-thumbs--single {
  grid-template-columns: minmax(0, 160px);
}

.route-thumb {
  min-width: 0;
  margin: 0;
}

.route-thumb .photo-zoom {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #0e1311;
}

.route-thumb .photo-zoom img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #0e1311;
}

.route-thumb .photo-zoom:hover img {
  transform: scale(1.02);
}

.route-thumb .photo-zoom-icon {
  right: 0.4rem;
  bottom: 0.4rem;
  width: 26px;
  height: 26px;
}

.route-thumb figcaption {
  display: grid;
  gap: 0.08rem;
  margin-top: 0.4rem;
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.route-thumb figcaption a {
  color: var(--teal-700);
  font-weight: 700;
  text-decoration: none;
}

.route-thumb figcaption a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.route-thumb figcaption span {
  font-size: 0.61rem;
  color: var(--ink-faint);
}

/* Acceso a la galería desde el pie del mapa */
.route-map-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(47, 138, 127, 0.28);
  border-radius: 14px;
  background: rgba(227, 242, 238, 0.72);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.route-map-cta:hover {
  border-color: rgba(47, 138, 127, 0.5);
  background: rgba(227, 242, 238, 1);
}

.route-map-cta-count {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-900);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.route-map-cta-text {
  display: grid;
  flex: 1;
  gap: 0.05rem;
  min-width: 0;
}

.route-map-cta-text strong {
  font-size: 0.74rem;
  color: var(--teal-900);
}

.route-map-cta-text small {
  font-size: 0.65rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.route-map-cta > svg {
  flex: none;
  color: var(--teal-700);
}

/* Visor ampliable */
html.is-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: min(1100px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #0c1514;
  color: #f2f7ef;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(8, 20, 18, 0.84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-title {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 247, 239, 0.72);
}

.lightbox-count {
  margin: 0 0 0 auto;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: rgba(242, 247, 239, 0.72);
}

.lightbox-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.lightbox-figure img {
  width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  background: #0c1514;
}

.lightbox-figure figcaption {
  padding: 0.8rem 1.1rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(242, 247, 239, 0.86);
  text-align: center;
}

.lightbox-nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1rem 1rem;
}

.lightbox-nav button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.lightbox-nav button:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 1020px) {
  .group-grid--specimens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .photo-gallery--team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .photo-gallery--team {
    grid-template-columns: 1fr;
  }

  .group-grid--specimens {
    grid-template-columns: 1fr;
  }

  .team-gallery-head {
    align-items: flex-start;
  }

  .lightbox-figure img {
    max-height: calc(100vh - 230px);
  }
}

@media (max-width: 560px) {
  .id-callout {
    grid-template-columns: 1fr;
  }

  .contact-social-links {
    max-width: none;
  }

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

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

  .lightbox {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .lightbox-inner {
    max-height: calc(100vh - 1rem);
  }

  .lightbox-figure img {
    max-height: calc(100vh - 250px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-zoom img,
  .route-map-cta {
    transition: none;
  }

  .photo-zoom:hover img {
    transform: none;
  }

  .lightbox,
  .lightbox * {
    animation: none !important;
  }
}

@media print {
  .lightbox,
  .photo-zoom-icon {
    display: none !important;
  }

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

/* =========================================================
   Solución: biofiltro de cinco etapas
   ========================================================= */

.section--solution {
  background:
    radial-gradient(58% 48% at 8% 0%, rgba(185, 221, 210, 0.32), transparent 70%),
    radial-gradient(42% 42% at 100% 18%, rgba(236, 223, 198, 0.42), transparent 72%),
    linear-gradient(180deg, rgba(247, 244, 234, 0.55) 0%, rgba(236, 243, 233, 0.6) 100%);
  border-block: 1px solid rgba(32, 54, 47, 0.06);
}

.bio-head {
  max-width: none;
}

.bio-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.38rem 0.85rem;
  border: 1px solid rgba(217, 178, 106, 0.55);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.75);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6b4f14;
}

.bio-status > span {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(217, 178, 106, 0.2);
}

/* ---------- Introducción ---------- */

.bio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
}

.bio-hero {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, 0.95);
  box-shadow: var(--shadow-plate);
}

.bio-hero .photo-zoom {
  aspect-ratio: 4 / 3;
}

.bio-hero .photo-zoom img {
  height: 100%;
  object-fit: cover;
}

.bio-hero figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
  padding: 0.85rem 1.05rem 0.95rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.92);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.bio-hero figcaption strong {
  color: var(--ink);
}

.bio-hero figcaption span {
  margin-left: auto;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.bio-challenges {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bio-challenge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.8);
  box-shadow: var(--shadow-soft);
}

.bio-challenge-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: var(--mist);
  color: var(--teal-700);
}

.bio-challenge h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bio-challenge p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Bloques de la sección ---------- */

.bio-block {
  margin-top: clamp(3rem, 6vw, 4.4rem);
  padding-top: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line);
}

.bio-block-head {
  max-width: 780px;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}

.bio-block-head h3,
.bio-gallery-head h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bio-block-head p,
.bio-gallery-head p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- Diagrama de flujo ---------- */

.bio-flow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.8rem;
}

.bio-flow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(207, 118, 92, 0.4);
  border-radius: 999px;
  background: rgba(248, 226, 219, 0.6);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a2f20;
}

.bio-flow-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.bio-flow-pill--out {
  border-color: rgba(58, 107, 94, 0.35);
  background: rgba(230, 239, 227, 0.75);
  color: var(--teal-700);
}

.bio-flow-pill--out::before {
  background: var(--teal-500);
}

.bio-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 clamp(1.8rem, 4vw, 2.6rem);
  padding: 0;
  list-style: none;
}

.bio-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.82);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.bio-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid var(--teal-500);
  border-right: 2px solid var(--teal-500);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.6;
}

.bio-flow-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal-700);
}

.bio-flow-number {
  margin-top: 0.15rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.bio-flow-name {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

/* ---------- Fichas de las etapas ---------- */

.bio-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bio-stage {
  --stage: var(--teal-500);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  padding: 1.45rem 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow-soft);
}

.bio-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--stage);
}

.bio-stage--1 {
  --stage: #c2a064;
}

.bio-stage--2 {
  --stage: #cf765c;
}

.bio-stage--3 {
  --stage: #8aa36a;
}

.bio-stage--4 {
  --stage: #3a6b5e;
}

.bio-stage--5 {
  --stage: #20362f;
}

.bio-stage--summary {
  --stage: #6f9f92;
  background: linear-gradient(160deg, rgba(230, 239, 227, 0.9), rgba(255, 253, 247, 0.95));
}

.bio-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.bio-stage-number {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--mist);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.bio-stage-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: var(--mist);
  color: var(--stage);
}

.bio-stage h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.bio-stage > p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.bio-stage-facts {
  display: grid;
  gap: 0.55rem;
  margin: auto 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

.bio-stage-facts div {
  display: grid;
  gap: 0.1rem;
}

.bio-stage-facts dt {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.bio-stage-facts dd {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.bio-stage-facts--summary {
  gap: 0.5rem;
  padding-top: 0;
  border-top: 0;
}

.bio-stage-facts--summary div {
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--line);
}

.bio-stage-facts--summary div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* ---------- Comparación de prototipos ---------- */

.bio-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.bio-compare-card {
  margin: 0;
}

.bio-compare-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.8rem;
}

.bio-compare-card figcaption strong {
  color: var(--ink);
}

.bio-compare-card figcaption span {
  font-size: 0.68rem;
  color: var(--ink-faint);
}

.bio-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow-soft);
}

.bio-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.bio-table caption {
  padding: 1rem 1.15rem 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.bio-table th,
.bio-table td {
  padding: 0.75rem 1.05rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.bio-table thead th {
  background: var(--mist);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.bio-table tbody th {
  width: 22%;
  font-weight: 600;
  color: var(--ink);
}

.bio-table tbody td {
  color: var(--ink-soft);
}

.bio-table tbody tr:last-child th,
.bio-table tbody tr:last-child td {
  border-bottom: 0;
}

.bio-cost {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(138, 163, 106, 0.38);
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(230, 239, 227, 0.9), rgba(255, 253, 247, 0.9));
}

.bio-cost-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #5f7a3f;
}

.bio-cost p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.bio-cost strong {
  color: var(--ink);
}

/* ---------- Capacidad de tratamiento ---------- */

.bio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bio-stat-col {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow-soft);
}

.bio-stat-col--current {
  border-color: rgba(58, 107, 94, 0.4);
  box-shadow: 0 24px 50px -32px rgba(32, 54, 47, 0.55);
}

.bio-stat-col--large {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(185, 221, 210, 0.5), transparent 70%),
    rgba(255, 253, 247, 0.96);
  border-color: rgba(58, 107, 94, 0.28);
}

.bio-stat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem 0.7rem;
  margin-bottom: 0.9rem;
}

.bio-stat-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.bio-stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(32, 54, 47, 0.08);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.bio-stat-badge--current {
  background: rgba(58, 107, 94, 0.14);
  color: var(--teal-700);
}

.bio-stat-badge--large {
  background: rgba(217, 178, 106, 0.22);
  color: #6b4f14;
}

.bio-stat-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.bio-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}

.bio-stat-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bio-stat-row dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.bio-stat-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--teal-900);
  text-align: right;
}

.bio-stat-row dd small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}

.bio-stat-note {
  margin: 0.9rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.bio-bars {
  margin-top: 1.1rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow-soft);
}

.bio-bars-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin-bottom: 0.85rem;
}

.bio-bars-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.bio-bars-head p {
  margin: 0;
  font-size: 0.68rem;
  color: var(--ink-faint);
}

.bio-bar-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 4.2rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.35rem 0;
}

.bio-bar-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.bio-bar-track {
  display: block;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 54, 47, 0.08);
}

.bio-bar-fill {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--teal-500);
}

.bio-bar-row--family .bio-bar-fill {
  background: var(--sun);
}

.bio-bar-row--current .bio-bar-fill {
  background: var(--teal-500);
}

.bio-bar-row--large .bio-bar-fill {
  background: var(--teal-900);
}

.bio-bar-value {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.bio-formulas {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--teal-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(230, 239, 227, 0.6);
}

.bio-formulas p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.bio-formulas p + p {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  color: var(--ink-faint);
}

.bio-formulas strong {
  color: var(--ink);
}

/* ---------- Galería de la feria ---------- */

.bio-gallery {
  margin-top: clamp(3rem, 6vw, 4.4rem);
  padding-top: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line);
}

.bio-gallery-head {
  max-width: 720px;
  margin-bottom: clamp(1.3rem, 3vw, 1.8rem);
}

.bio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* ---------- Adaptación a pantallas ---------- */

@media (max-width: 1100px) {
  .bio-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .bio-intro {
    grid-template-columns: 1fr;
  }

  .bio-challenges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bio-challenge {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .bio-stats {
    grid-template-columns: 1fr;
  }

  .bio-stat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.4rem;
  }
}

@media (max-width: 760px) {
  .section--solution {
    background: rgba(243, 246, 237, 0.93);
  }

  .bio-challenges {
    grid-template-columns: 1fr;
  }

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

  .bio-flow {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .bio-flow li {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.8rem 0.9rem;
    text-align: left;
  }

  .bio-flow-icon {
    flex: none;
  }

  .bio-flow-number {
    margin: 0;
  }

  .bio-flow-name {
    margin-left: auto;
  }

  .bio-flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -0.65rem;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .bio-stages {
    grid-template-columns: 1fr;
  }

  .bio-compare {
    grid-template-columns: 1fr;
  }

  .bio-gallery-grid {
    grid-template-columns: 1fr;
  }

  .bio-bar-row {
    grid-template-columns: 6rem minmax(0, 1fr) 4rem;
    gap: 0.55rem;
  }
}

@media (max-width: 560px) {
  .bio-hero figcaption span {
    margin-left: 0;
  }

  .bio-stage {
    padding: 1.2rem 1.1rem;
  }

  .bio-stage-facts--summary div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .bio-stat-list {
    grid-template-columns: 1fr;
  }

  .bio-bar-row {
    grid-template-columns: 5rem minmax(0, 1fr) 3.5rem;
  }

  .bio-bar-label {
    font-size: 0.7rem;
  }
}

@media print {
  .section--solution {
    background: #fff;
  }

  .bio-stage,
  .bio-stat-col,
  .bio-bars,
  .bio-table-wrap {
    box-shadow: none;
  }
}
