/* =============================================================
   StellaMaris — Liquid Wave archetype (biotech adaptation)
   1. Tokens
   ============================================================= */
:root {
  /* Light mineral base */
  --bg:        #f1f6f7;
  --bg-2:      #e4eef0;
  --paper:     #ffffff;

  /* Deep teal / forest (dark sections) */
  --deep:      #06303a;
  --deep-2:    #093f49;
  --deep-3:    #0f4d58;

  /* Ink */
  --ink:       #0f262b;
  --ink-soft:  #2d4248;
  --ink-mute:  #5d7178;

  /* Text on dark */
  --cream:     #eef5f6;
  --cream-2:   #c2d6da;
  --cream-3:   #7d969c;

  /* Accents */
  --accent:    #0fb4d8;   /* cian del agua (logo) */
  --accent-2:  #0a8aa8;   /* cian profundo */
  --amber:     #c2933f;   /* dorado espiga (logo) */

  --line:      rgba(15,38,43,0.12);
  --line-light:rgba(238,245,246,0.16);

  --sans:    "Inter", system-ui, sans-serif;
  --display: "Sora", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.2rem, 5vw, 5rem);
  --maxw: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.2rem;
}
.eyebrow-light { color: var(--accent); opacity: .92; }

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  margin-bottom: 1.4rem;
}
.section-title em { color: var(--accent); font-style: italic; }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.65;
}
.lede-light { color: var(--cream-2); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background .3s var(--ease-out), color .3s, box-shadow .4s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(15,180,216,.7);
}
.btn-primary:hover { background: #19c1e6; box-shadow: 0 16px 40px -12px rgba(15,180,216,.8); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--deep);
  transition: opacity .8s var(--ease-out), clip-path .9s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.splash-logo { width: 96px; height: auto; animation: dropPulse 1.7s var(--ease-soft) infinite; }
.splash-name { font-family: var(--display); font-weight: 600; letter-spacing: .02em; color: var(--cream); font-size: 1.2rem; }
@keyframes dropPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.86); opacity: .65; }
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-solid {
  background: rgba(243,246,244,.82);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--maxw); margin-inline: auto;
  padding: 1.1rem var(--gutter);
}
.nav-logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--cream); transition: color .4s; }
.nav.is-solid .nav-logo { color: var(--ink); }
.nav-logo-img { height: 42px; width: auto; display: block; }
.footer-brand .nav-logo-img { height: 38px; }
.nav-links { display: none; gap: 1.8rem; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--cream-2); position: relative; padding: .2rem 0; transition: color .3s; }
.nav.is-solid .nav-links a { color: var(--ink-soft); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; padding: .6rem 1.1rem; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); transition: transform .35s var(--ease-out), opacity .3s; }
.nav.is-solid .nav-toggle span { background: var(--ink); }
.nav.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 0 var(--gutter);
  max-height: 0; overflow: hidden;
  background: rgba(243,246,244,.96);
  backdrop-filter: blur(14px);
  transition: max-height .5s var(--ease-out), padding .4s;
}
.nav.is-open .nav-mobile { max-height: 420px; padding-block: 1rem 1.6rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
.nav-mobile a { padding: .85rem .2rem; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.nav-mobile a.btn { border: 0; margin-top: .8rem; color: #fff; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--gutter) 9rem;
  overflow: hidden;
  color: var(--cream);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,48,58,.55) 0%, rgba(6,48,58,.35) 45%, rgba(6,48,58,.85) 100%),
    radial-gradient(80% 60% at 25% 30%, rgba(10,61,54,.25), transparent 70%);
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 38vh; min-height: 220px; z-index: -1; }
.hero-waves .wave { transform-box: fill-box; }
.wave-1 { fill: rgba(15,180,216,.22); animation: waveX 14s ease-in-out infinite; }
.wave-2 { fill: rgba(10,138,168,.28); animation: waveX 19s ease-in-out infinite reverse; }
.wave-3 { fill: var(--bg); animation: waveX 24s ease-in-out infinite; }
@keyframes waveX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-40px); }
}

.hero-inner { position: relative; max-width: 900px; }
.kicker {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.6rem;
}
.hero .kicker {
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: 1.6rem;
  text-shadow: 0 4px 40px rgba(0,0,0,.35);
}
.hero-title em { color: #fff; font-style: italic; background: linear-gradient(180deg, transparent 62%, rgba(15,180,216,.5) 62%); }
.hero-sub { font-size: clamp(1.05rem, 1.9vw, 1.35rem); color: var(--cream-2); max-width: 50ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-orb {
  position: absolute; top: 18%; right: 6vw; z-index: -1;
  width: clamp(140px, 22vw, 300px); aspect-ratio: 1;
  display: none;
  animation: orbBob 7s ease-in-out infinite;
}
.orb-core {
  position: absolute; inset: 18%;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 35% 30%, rgba(15,180,216,.9), rgba(10,138,168,.55) 60%, rgba(6,48,58,.2));
  box-shadow: inset 0 0 40px rgba(255,255,255,.25), 0 30px 60px -20px rgba(15,180,216,.6);
  filter: blur(.2px);
  animation: blobMorph 12s ease-in-out infinite;
}
.orb-ring { position: absolute; inset: 0; border: 1px solid rgba(238,244,239,.35); border-radius: 50%; animation: orbSpin 18s linear infinite; }
.orb-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 16px rgba(255,255,255,.7); }
.orb-dot-a { top: -3px; left: 50%; }
.orb-dot-b { bottom: 8%; left: -3px; background: var(--amber); }
.orb-dot-c { top: 30%; right: -3px; background: var(--accent); }
@keyframes orbBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes blobMorph {
  0%,100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  33% { border-radius: 60% 40% 42% 58% / 48% 60% 40% 52%; }
  66% { border-radius: 38% 62% 56% 44% / 60% 42% 58% 40%; }
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3);
  z-index: 2;
}
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* =============================================================
   8. Sections — shared
   ============================================================= */
section { position: relative; }
.problem, .action, .science, .cta { background: var(--deep); color: var(--cream); }
.problem, .action, .science { padding-block: clamp(4.5rem, 9vw, 8rem); }
.solution, .cycle, .impact, .faq { padding-block: clamp(4.5rem, 9vw, 8rem); }
.solution { background: var(--bg); }
.cycle { background: var(--bg-2); }
.impact { background: var(--bg); }
.faq { background: var(--bg-2); }

/* Wave dividers */
.wave-divider { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(60px, 8vw, 120px); }
.wave-divider path { fill: var(--bg); }
.action .wave-divider path { fill: var(--bg); }
.tech .wave-divider path { fill: var(--bg-2); }
.wave-up { top: 0; bottom: auto; transform: rotate(180deg); }
.problem .wave-up path { fill: var(--bg); }
.science .wave-up path { fill: var(--bg); }

/* Status banner — field-testing notice */
.status-banner {
  display: flex; align-items: center; gap: .9rem;
  margin-top: 2.4rem; padding: 1rem 1.4rem;
  background: rgba(15,180,216,.1);
  border: 1px solid rgba(15,180,216,.35); border-radius: 100px;
  max-width: 60ch;
}
.status-banner p { color: var(--cream); font-size: .95rem; line-height: 1.5; }
.status-banner strong { color: var(--accent); }
.status-dot {
  flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(15,180,216,.6); animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(15,180,216,.5); }
  70% { box-shadow: 0 0 0 12px rgba(15,180,216,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,180,216,0); }
}

/* Pillars (qualitative, no figures) */
.pillars { display: grid; gap: 1.4rem; margin-top: 2.6rem; grid-template-columns: 1fr; }
.pillar { padding: 1.9rem; border: 1px solid var(--line-light); border-radius: 18px; background: rgba(255,255,255,.03); }
.pillar-glyph {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem;
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--deep);
  background: var(--accent); border-radius: 14px;
}
.pillar h3 { font-size: 1.2rem; color: var(--cream); margin-bottom: .5rem; }
.pillar p { color: var(--cream-2); font-size: .94rem; line-height: 1.55; }

/* Split layouts */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
.split-media { position: relative; }
.media-tag {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(6,48,58,.78); color: var(--cream); padding: .5rem .9rem; border-radius: 100px; backdrop-filter: blur(6px);
}
.blob {
  border-radius: 56% 44% 52% 48% / 54% 46% 54% 46%;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(6,48,58,.5);
  animation: blobMorph 16s ease-in-out infinite;
}
.blob img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.blob-alt { border-radius: 48% 52% 44% 56% / 50% 54% 46% 50%; }

.ticks { list-style: none; margin-top: 1.6rem; display: grid; gap: .85rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Action grid */
.action-grid { display: grid; gap: 1.4rem; margin-top: 2.8rem; grid-template-columns: 1fr; }
.action-card {
  padding: 2.2rem; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line-light);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.action-glyph {
  display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 1.2rem;
  font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--deep);
  background: var(--accent); border-radius: 18px;
}
.action-card h3 { font-size: 1.5rem; margin-bottom: .7rem; color: var(--cream); }
.action-card p { color: var(--cream-2); }

/* Cycle */
.cycle-steps { list-style: none; counter-reset: step; display: grid; gap: 1px; margin-top: 2.8rem; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; grid-template-columns: 1fr; }
.cycle-step { background: var(--paper); padding: 1.8rem; position: relative; }
.cycle-num { font-family: var(--mono); font-size: .85rem; color: var(--accent-2); letter-spacing: .1em; }
.cycle-step h3 { font-size: 1.25rem; margin: .6rem 0 .5rem; }
.cycle-step p { color: var(--ink-mute); font-size: .95rem; }

.cycle-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.4rem; }
.cg { position: relative; border-radius: 16px; overflow: hidden; }
.cg img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease-out); }
.cg:hover img { transform: scale(1.07); }
.cg figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .8rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: #fff;
  background: linear-gradient(transparent, rgba(6,48,58,.85));
}

/* Endorsements */
.endorse { list-style: none; margin-top: 1.8rem; display: grid; gap: .2rem; }
.endorse li { padding: 1rem 0; border-bottom: 1px solid var(--line-light); display: flex; flex-direction: column; gap: .2rem; }
.endorse strong { color: var(--cream); font-weight: 600; }
.endorse span { color: var(--cream-3); font-size: .88rem; }

/* Impact */
.impact-grid { display: grid; gap: 1.4rem; margin-top: 2.8rem; grid-template-columns: 1fr; }
.impact-card {
  padding: 2rem; border-radius: 20px; background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -36px rgba(6,48,58,.4);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.impact-card h3 { font-size: 1.5rem; margin-bottom: .6rem; color: var(--accent-2); }
.impact-card p { color: var(--ink-soft); }

/* FAQ */
.faq-list { margin-top: 2.4rem; display: grid; gap: .8rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: .4rem 1.4rem; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0; font-family: var(--display); font-weight: 600; font-size: 1.08rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; color: var(--accent); transition: transform .35s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.2rem; color: var(--ink-mute); }

/* =============================================================
   9. CTA / Contact
   ============================================================= */
.cta { padding-block: clamp(5rem, 10vw, 9rem); overflow: hidden; }
.cta-waves { position: absolute; top: -2px; left: 0; right: 0; width: 100%; height: 30vh; min-height: 160px; transform: rotate(180deg); }
.cta-waves .wave-1 { fill: rgba(15,180,216,.16); }
.cta-waves .wave-2 { fill: rgba(10,138,168,.2); }
.cta-inner { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
.cta-contact { list-style: none; margin-top: 2rem; display: grid; gap: 1rem; }
.cta-contact li { display: flex; flex-direction: column; gap: .15rem; }
.cta-contact span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); }
.cta-contact a { color: var(--accent); font-weight: 500; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cta-form { background: rgba(255,255,255,.05); border: 1px solid var(--line-light); border-radius: 24px; padding: clamp(1.6rem, 4vw, 2.6rem); backdrop-filter: blur(8px); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-3); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  background: rgba(6,48,58,.4); border: 1px solid var(--line-light); color: var(--cream);
  font-family: var(--sans); font-size: 1rem; transition: border-color .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--cream-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(6,48,58,.6); }
.field textarea { resize: vertical; }
.btn-check { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; display: none; }
.cta-form.is-sent .btn-label { display: none; }
.cta-form.is-sent .btn-check { display: block; animation: drawCheck .6s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.form-note { margin-top: 1rem; font-size: .9rem; color: var(--accent); min-height: 1.2em; }

/* =============================================================
   10. Footer
   ============================================================= */
.footer { background: #042830; color: var(--cream-2); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.footer-brand .nav-logo { color: var(--cream); margin-bottom: 1rem; }
.footer-brand p { max-width: 38ch; color: var(--cream-3); font-size: .95rem; }
.footer-nav { display: grid; gap: .7rem; align-content: start; }
.footer-nav a { color: var(--cream-2); font-size: .95rem; transition: color .3s; }
.footer-nav a:hover { color: var(--accent); }
.footer-meta { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--cream-3); }
.credits-link { font-family: var(--mono); font-size: .78rem; color: var(--cream-3); text-decoration: underline; text-underline-offset: 3px; }
.credits-link:hover { color: var(--accent); }
.credits { max-width: var(--maxw); margin: 1.5rem auto 0; padding-inline: var(--gutter); font-size: .76rem; color: var(--cream-3); line-height: 1.7; }
.credits a { color: var(--cream-2); text-decoration: underline; }

/* =============================================================
   10b. Tecnología — diagramas
   ============================================================= */
.tech { background: var(--bg); padding-block: clamp(4.5rem, 9vw, 8rem); }
.tech-figure { margin-top: clamp(2.6rem, 5vw, 4rem); }
.tech-fig-title { font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--accent-2); margin-bottom: 1.2rem; }
.tech-note {
  margin-top: 2.6rem; padding: .9rem 1.3rem; display: inline-flex; gap: .6rem;
  font-family: var(--mono); font-size: .82rem; color: var(--ink-soft);
  background: rgba(15,180,216,.08); border: 1px solid rgba(15,180,216,.3); border-radius: 100px;
}

.dg-frame {
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -36px rgba(6,48,58,.45);
  border: 1px solid var(--line);
  background: #dbe9ec;
}
.dg-frame-light { background: #eef6f8; }
.dg { width: 100%; height: auto; display: block; }

/* texto dentro de los SVG */
.dg-tag-text { fill: var(--cream); font-family: var(--mono); font-size: 16px; letter-spacing: .02em; }
.dg-mol { fill: #fff; font-family: var(--display); font-weight: 600; font-size: 13px; text-anchor: middle; }
.dg-mol-sm { fill: #fff; font-family: var(--display); font-weight: 600; font-size: 11px; text-anchor: middle; }
.dg-aquifer-text { fill: var(--cream); font-family: var(--mono); font-size: 18px; letter-spacing: .04em; }
.dg-bad-text { fill: #5a3320; }
.dg-small-label { fill: #3a4146; font-family: var(--mono); font-size: 14px; letter-spacing: .04em; }

/* leyenda */
.dg-legend { list-style: none; display: grid; gap: .7rem; margin-top: 1.6rem; grid-template-columns: 1fr; }
.dg-legend li { display: flex; align-items: center; gap: .7rem; color: var(--ink-soft); font-size: .92rem; }
.dg-key { flex: none; width: 18px; height: 18px; border-radius: 6px; }
.dg-key-mesh { background: #f1e7c6; background-image: linear-gradient(#c9ad6a 1.4px, transparent 1.4px), linear-gradient(90deg, #c9ad6a 1.4px, transparent 1.4px); background-size: 7px 7px; }

/* comparativa */
.dg-compare { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.dg-col { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.dg-col .dg { background: #dbe9ec; }
.dg-col-cap { padding: 1rem 1.2rem 1.2rem; font-size: .92rem; font-weight: 500; }
.dg-col-bad { color: #a84e2a; }
.dg-col-good { color: var(--accent); }

/* animaciones de vida (gateadas en reduced-motion) */
.dg-water-d { transform-box: fill-box; transform-origin: center; animation: dgDrop 3.2s var(--ease-soft) infinite; }
@keyframes dgDrop { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }

.dg-cross .dg-drip { animation: dgDripFall 4.2s ease-in infinite; }
@keyframes dgDripFall {
  0% { opacity: 0; transform: translateY(-6px); }
  16% { opacity: 1; }
  80% { opacity: 1; transform: translateY(178px); }
  100% { opacity: 0; transform: translateY(184px); }
}

.dg-cross .dg-no3-item { animation: dgFallA 4.2s ease-in infinite; }
@keyframes dgFallA {
  0% { opacity: 0; transform: translateY(-10px); }
  18% { opacity: 1; }
  72% { opacity: 1; transform: translateY(150px); }
  100% { opacity: 0; transform: translateY(155px); }
}
.dg-cross .dg-n2-item { animation: dgRiseA 4.2s ease-out infinite; }
@keyframes dgRiseA {
  0% { opacity: 0; transform: translateY(10px); }
  20% { opacity: 1; }
  80% { opacity: .9; transform: translateY(-150px); }
  100% { opacity: 0; transform: translateY(-160px); }
}
.dg-fall-long { animation: dgFallLong 4s ease-in infinite; }
@keyframes dgFallLong {
  0% { opacity: 0; transform: translateY(-10px); }
  15% { opacity: 1; }
  85% { opacity: 1; transform: translateY(250px); }
  100% { opacity: .2; transform: translateY(260px); }
}
.dg-fall-short { animation: dgFallShort 3.8s ease-in infinite; }
@keyframes dgFallShort {
  0% { opacity: 0; transform: translateY(-10px); }
  20% { opacity: 1; }
  70% { opacity: 1; transform: translateY(110px); }
  100% { opacity: 0; transform: translateY(115px); }
}
.dg-rise-short { animation: dgRiseShort 3.8s ease-out infinite; }
@keyframes dgRiseShort {
  0% { opacity: 0; transform: translateY(8px); }
  25% { opacity: 1; }
  80% { opacity: .9; transform: translateY(-150px); }
  100% { opacity: 0; transform: translateY(-160px); }
}
.dg-bact-i { transform-box: fill-box; transform-origin: center; animation: dgWiggle 5s ease-in-out infinite; }
@keyframes dgWiggle { 0%,100% { transform: translate(0,0); } 50% { transform: translate(3px,-3px); } }
.dg-gel { animation: dgBreathe 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dgBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.015); } }

@media (min-width: 720px) {
  .dg-legend { grid-template-columns: repeat(2, 1fr); }
  .dg-compare { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   11. Reveal effects
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   11b. Blog + lector de artículo
   ============================================================= */
.blog { background: var(--bg); padding-block: clamp(4.5rem, 9vw, 8rem); }
.blog-intro { color: var(--ink-soft); max-width: 58ch; margin-top: 1rem; font-size: 1.05rem; }
.blog-loading { color: var(--ink-mute); margin-top: 2.4rem; }

.blog-grid { display: grid; gap: 1.4rem; margin-top: 2.8rem; grid-template-columns: 1fr; }
.blog-card {
  position: relative; text-align: left; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.9rem 1.9rem 1.7rem; border-radius: 20px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 20px 50px -38px rgba(6,48,58,.45);
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.blog-card.is-revealed { opacity: 1; transform: none; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -34px rgba(6,48,58,.5); border-color: rgba(15,180,216,.35); }
.blog-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.blog-card-cat {
  align-self: flex-start; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-2);
  background: rgba(15,180,216,.10); border: 1px solid rgba(15,180,216,.22);
  padding: .3rem .7rem; border-radius: 100px;
}
.blog-card-title { font-family: var(--display); font-size: 1.3rem; line-height: 1.18; color: var(--ink); }
.blog-card-excerpt { color: var(--ink-soft); font-size: .96rem; line-height: 1.55; }
.blog-card-meta { font-family: var(--mono); font-size: .72rem; color: var(--ink-mute); letter-spacing: .03em; margin-top: .2rem; }
.blog-card-more { margin-top: auto; padding-top: .6rem; color: var(--accent-2); font-weight: 600; font-size: .92rem; transition: transform .35s var(--ease-out); }
.blog-card:hover .blog-card-more { transform: translateX(4px); }
.blog-card-static { padding: 1.9rem; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.blog-card-static h3 { font-family: var(--display); font-size: 1.3rem; line-height: 1.18; color: var(--ink); margin-bottom: .6rem; }
.blog-card-static p { color: var(--ink-soft); font-size: .96rem; line-height: 1.55; }

/* Lector modal */
.reader { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end; }
.reader[hidden] { display: none; }
.reader-backdrop { position: absolute; inset: 0; background: rgba(4,28,34,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.reader.is-open .reader-backdrop { opacity: 1; }
.reader-panel {
  position: relative; height: 100%; width: min(680px, 100%); background: var(--paper);
  box-shadow: -30px 0 80px -40px rgba(0,0,0,.5); transform: translateX(40px); opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out); display: flex; flex-direction: column;
}
.reader.is-open .reader-panel { transform: none; opacity: 1; }
.reader-panel:focus { outline: none; }
.reader-close {
  position: absolute; top: 1rem; right: 1.1rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); font-size: 1.6rem; line-height: 1;
  cursor: pointer; transition: background .3s, transform .3s; display: flex; align-items: center; justify-content: center;
}
.reader-close:hover { background: var(--bg); transform: rotate(90deg); }
.reader-scroll { overflow-y: auto; padding: clamp(2.4rem, 5vw, 3.4rem) clamp(1.6rem, 5vw, 3.2rem) 3.4rem; height: 100%; }
.reader-cat { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .9rem; }
.reader-title { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.12; color: var(--ink); margin-bottom: .8rem; }
.reader-meta { font-family: var(--mono); font-size: .76rem; color: var(--ink-mute); margin-bottom: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.reader-body > * { margin-bottom: 1.25rem; }
.reader-body p { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.72; }
.reader-body h3 { font-family: var(--display); font-size: 1.25rem; color: var(--ink); margin-top: 2.2rem; line-height: 1.25; }
.reader-body blockquote {
  border-left: 3px solid var(--accent); padding: .4rem 0 .4rem 1.3rem; margin-inline: 0;
  font-family: var(--display); font-size: 1.18rem; font-style: italic; color: var(--accent-2); line-height: 1.5;
}
.reader-body ul { padding-left: 1.3rem; color: var(--ink-soft); line-height: 1.7; }
.reader-body li { margin-bottom: .5rem; }
.no-scroll { overflow: hidden; }
/* Defensive: split-text safety (none used, but per skill convention) */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   12. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .cycle-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .action-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .cycle-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
  .hero-orb { display: block; }
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse .split-media { order: 2; }
  .cycle-steps { grid-template-columns: repeat(4, 1fr); }
  .cta-inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* =============================================================
   13. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave-1, .wave-2, .wave-3 { animation: none; }
  .hero-orb, .orb-ring, .orb-core { animation: none; }
  .hero-scroll-line { animation: none; }
  .dg-water-d, .dg-bact-i, .dg-gel, .dg-cross .dg-drip,
  .dg-cross .dg-no3-item, .dg-cross .dg-n2-item,
  .dg-fall-long, .dg-fall-short, .dg-rise-short { animation: none; opacity: 1; transform: none; }
}
