/* ── AEVUM Life Sciences — CSS ─────────────────────────────────────────── */

/* Tokens */
:root {
  --void:       oklch(8% 0.009 168);
  --deep:       oklch(13% 0.011 162);
  --forest:     oklch(20% 0.013 158);
  --jade:       oklch(38% 0.115 158);
  --jade-mid:   oklch(52% 0.13 155);
  --jade-light: oklch(65% 0.11 152);
  --jade-glow:  oklch(52% 0.13 155 / 0.18);
  --ivory:      oklch(96% 0.010 85);
  --parchment:  oklch(88% 0.016 82);
  --stone:      oklch(48% 0.012 82);
  --ink:        oklch(18% 0.008 165);
  --gold:       oklch(68% 0.115 78);
  --gold-dim:   oklch(55% 0.09 78);

  --font-display:   'EB Garamond', Georgia, serif;
  --font-interface: 'Inter', system-ui, sans-serif;
  --font-mono:      'Space Mono', monospace;

  --max-w: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-pad-y: clamp(80px, 10vh, 140px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; }
body {
  font-family: var(--font-interface);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--void);
  color: var(--ivory);
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--jade-mid);
  outline-offset: 3px;
}

/* Section backgrounds */
.section-dark      { background: var(--void);      color: var(--ivory); }
.section-light     { background: var(--ivory);     color: var(--ink); }
.section-parchment { background: var(--parchment); color: var(--ink); }

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Section number */
.section-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--jade-mid);
  letter-spacing: 0.08em;
  display: block;
  flex-shrink: 0;
}
.section-dark .section-num { color: var(--jade-light); }

/* Section header row (number + content side by side like palladiogroup) */
.section-header-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}
@media (max-width: 640px) {
  .section-header-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1.14;
}
.section-headline { color: var(--ink); }
.section-headline.light { color: var(--ivory); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.875em 2em;
  background: var(--jade);
  color: var(--ivory);
  font-family: var(--font-interface);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background 0.25s ease;
  white-space: nowrap;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--jade-mid); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.875em 2em;
  background: transparent;
  color: var(--jade-light);
  font-family: var(--font-interface);
  font-size: 0.875rem;
  border: 1px solid var(--forest);
  transition: border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--jade-mid); color: var(--jade-mid); }

/* ── NAV ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  background: oklch(8% 0.009 168 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--forest);
}
.nav-logo {
  font-family: var(--font-interface);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.35em;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  line-height: 1;
  opacity: 0;
  transform: translateY(-10px);
}
.nav-sub {
  font-family: var(--font-mono);
  font-size: 0.42rem;
  letter-spacing: 0.5em;
  color: var(--jade-light);
  border-top: 1px solid var(--jade);
  padding-top: 3px;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font-interface);
  font-size: 0.8rem;
  font-weight: 400;
  color: oklch(75% 0.01 165);
  padding: 0.4em 0.7em;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25em;
}
.nav-links a:hover { color: var(--ivory); }
.nav-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--jade-mid);
}
.nav-cta {
  font-size: 0.8rem;
  padding: 0.65em 1.4em;
  opacity: 0;
  transform: translateY(-10px);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: oklch(8% 0.009 168 / 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem var(--pad-x) 2rem;
    border-bottom: 1px solid var(--forest);
    gap: 0.5rem;
    align-items: flex-start;
  }
  .nav-links.open a { font-size: 1rem; padding: 0.5em 0; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ── HERO ─────────────────────────────────────────────────────────────── */
.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: calc(var(--pad-x) + 80px) var(--pad-x) var(--pad-x);
}
.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--jade-light);
  display: block;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(10px);
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 1.75rem;
  overflow: hidden;
}
.hero-line {
  display: block;
  transform: translateY(80px);
  opacity: 0;
}
.hero-line-italic {
  font-style: italic;
  font-weight: 400;
  color: oklch(80% 0.08 155);
}
.hero-sub {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.75;
  color: oklch(75% 0.01 165);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero-areas {
  color: var(--jade-light);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: scale(0.95);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--forest);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--jade-mid);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}
.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--stone);
  writing-mode: vertical-rl;
  text-transform: lowercase;
}

/* ── 01 NOSOTROS ──────────────────────────────────────────────────────── */
.section-nosotros {
  padding: var(--section-pad-y) 0;
}
.nosotros-body {
  max-width: 600px;
  margin-left: 80px;
  margin-bottom: clamp(3rem, 6vh, 5rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.nosotros-copy {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.8;
  color: var(--stone);
}
@media (max-width: 640px) {
  .nosotros-body { margin-left: 0; }
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid oklch(80% 0.008 82);
}
@media (max-width: 900px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .metrics-grid { grid-template-columns: 1fr 1fr; } }
.metric {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
  border-right: 1px solid oklch(80% 0.008 82);
  border-bottom: 1px solid oklch(80% 0.008 82);
}
.metric:last-child { border-right: none; }
@media (max-width: 900px) {
  .metric:nth-child(2n) { border-right: none; }
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--jade);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.metric-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--gold);
  line-height: 1;
  display: block;
}
.metric-unit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--jade);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  display: block;
}
.metric-desc {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--stone);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── 02 PIPELINE ──────────────────────────────────────────────────────── */
.pinned-section { height: 400vh; position: relative; }
.pinned-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) { .pinned-section { height: 250vh; } }

#pipeline-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pipeline-header {
  position: absolute;
  top: calc(80px + 2.5rem);
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}
.pipeline-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--ivory);
  font-weight: 500;
}
.pipeline-steps {
  position: absolute;
  bottom: 3rem;
  left: var(--pad-x);
  max-width: 380px;
  z-index: 2;
}
.pipeline-step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
}
.pipeline-step.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--jade-mid);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.6rem;
}
.step-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.step-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: oklch(72% 0.01 165);
  max-width: 320px;
}
.pipeline-progress {
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 180px;
  background: var(--forest);
  z-index: 2;
}
.pipeline-progress-bar {
  width: 100%;
  background: var(--jade-mid);
  height: 0%;
  transition: height 0.1s ease;
}

/* ── 03 ÁREAS ─────────────────────────────────────────────────────────── */
.section-areas {
  padding: var(--section-pad-y) 0;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: oklch(78% 0.012 82);
  border-top: 1px solid oklch(78% 0.012 82);
}
@media (max-width: 900px) { .areas-grid { grid-template-columns: 1fr; } }

.area-card {
  background: var(--parchment);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease;
  cursor: default;
}
.area-card:hover, .area-card:focus-visible {
  background: var(--ivory);
  outline: none;
}
.area-card:hover .area-link,
.area-card:focus-visible .area-link { color: var(--jade); }
.area-card:hover { box-shadow: inset 0 3px 0 0 var(--jade); }

.area-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(5rem, 10vw, 8rem);
  color: oklch(82% 0.012 82);
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  transition: color 0.25s;
}
.area-card:hover .area-num { color: oklch(78% 0.01 158 / 0.5); }

.area-icon {
  color: var(--jade);
  margin-bottom: 1.5rem;
  width: 36px;
  height: 36px;
}
.area-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--ink);
  margin-bottom: 0.9rem;
  line-height: 1.2;
}
.area-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--stone);
  margin-bottom: 2rem;
}
.area-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--jade);
  transition: color 0.2s;
}

/* ── 04 INVESTIGACIÓN ─────────────────────────────────────────────────── */
.section-investigacion {
  padding: var(--section-pad-y) 0;
  position: relative;
  overflow: hidden;
}
#cell-canvas {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 40vw, 500px);
  height: clamp(280px, 40vw, 500px);
  opacity: 0.35;
  pointer-events: none;
}
.investigacion-inner { position: relative; z-index: 2; }
.investigacion-sub {
  font-size: 0.88rem;
  line-height: 1.8;
  color: oklch(68% 0.01 165);
  margin-top: 1.25rem;
  max-width: 460px;
}
.accordion-list {
  margin-top: clamp(2.5rem, 5vh, 4rem);
  border-top: 1px solid var(--forest);
  max-width: 680px;
}
.accordion-item { border-bottom: 1px solid var(--forest); }
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.3rem 0;
  color: var(--ivory);
  text-align: left;
  transition: color 0.2s;
}
.accordion-header:hover { color: var(--jade-light); }
.accordion-header[aria-expanded="true"] { color: var(--jade-light); }
.accordion-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--jade-mid);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  min-width: 30px;
}
.accordion-title {
  font-family: var(--font-interface);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 400;
  flex: 1;
}
.accordion-arrow {
  font-size: 0.9rem;
  color: var(--jade-mid);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.accordion-body {
  overflow: hidden;
  height: 0;
}
.accordion-content {
  padding: 0 0 1.5rem 2.75rem;
}
.accordion-content p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: oklch(68% 0.01 165);
}

/* ── 05 IMPACTO ───────────────────────────────────────────────────────── */
.section-impacto { padding: var(--section-pad-y) 0; }
.impacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .impacto-grid { grid-template-columns: 1fr; } }

.impacto-left { display: flex; flex-direction: column; }
.impacto-sub {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--stone);
  margin-top: 1.25rem;
  max-width: 380px;
  margin-bottom: 2.5rem;
}
.impacto-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid oklch(80% 0.008 82);
}
@media (max-width: 500px) { .impacto-metrics { grid-template-columns: 1fr; } }
.impacto-metric {
  padding: 1.5rem 1rem 1.5rem 0;
  border-right: 1px solid oklch(80% 0.008 82);
  border-bottom: 1px solid oklch(80% 0.008 82);
}
.impacto-metric:nth-child(2n) { padding-left: 1.25rem; border-right: none; }
.impacto-metric .metric-num { font-size: clamp(2rem, 3.5vw, 3rem); }
.impacto-metric .metric-unit { font-size: 0.68rem; line-height: 1.4; }

.impacto-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
#globe-canvas {
  width: min(100%, 480px);
  height: min(100%, 480px);
  aspect-ratio: 1;
}

/* ── 06 ÉTICA ─────────────────────────────────────────────────────────── */
.section-etica { padding: var(--section-pad-y) 0; }
.etica-quote {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vh, 5rem);
  text-align: center;
  padding: clamp(2rem, 4vw, 4rem) var(--pad-x);
  border-top: 1px solid oklch(78% 0.012 82);
  border-bottom: 1px solid oklch(78% 0.012 82);
}
.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.quote-attribution {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--stone);
  letter-spacing: 0.04em;
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: oklch(78% 0.012 82);
  border-top: 1px solid oklch(78% 0.012 82);
}
@media (max-width: 900px) { .pilares-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .pilares-grid { grid-template-columns: 1fr; } }

.pilar-card {
  background: var(--parchment);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.2rem, 2.5vw, 2rem);
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
  cursor: default;
}
.pilar-card:hover, .pilar-card:focus-visible {
  background: var(--ivory);
  outline: none;
  box-shadow: inset 0 3px 0 0 var(--jade);
}
.pilar-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 7vw, 6rem);
  color: oklch(82% 0.012 82);
  position: absolute;
  top: -0.75rem;
  right: 0.75rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.pilar-icon { color: var(--jade); margin-bottom: 1.25rem; }
.pilar-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.pilar-desc {
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--stone);
}

/* ── 07 CONTACTO ──────────────────────────────────────────────────────── */
.section-contacto { padding: var(--section-pad-y) 0; }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
@media (max-width: 900px) { .contacto-grid { grid-template-columns: 1fr; } }

.contacto-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--ivory);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.contacto-sub {
  font-size: 0.9rem;
  line-height: 1.8;
  color: oklch(68% 0.01 165);
  margin-bottom: 2rem;
}
.contacto-info { display: flex; flex-direction: column; gap: 0.75rem; }
.contacto-info-item {
  font-size: 0.82rem;
  line-height: 1.6;
  color: oklch(65% 0.01 165);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.info-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--jade-mid);
  text-transform: uppercase;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--jade-mid);
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  padding: 0.85em 1em;
  background: var(--deep);
  border: 1px solid var(--forest);
  color: var(--ivory);
  font-family: var(--font-interface);
  font-size: 0.875rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: oklch(40% 0.008 165); }
.form-input:focus { border-color: var(--jade-mid); }
.form-input.error { border-color: oklch(55% 0.15 25); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234aa86e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
  cursor: pointer;
}
.form-select option { background: var(--deep); color: var(--ivory); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: oklch(55% 0.15 25);
  letter-spacing: 0.04em;
  min-height: 1em;
}
.form-submit {
  width: 100%;
  justify-content: center;
  padding: 1em 2em;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  position: relative;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: oklch(20% 0.05 158);
  border: 1px solid var(--jade);
  color: var(--jade-light);
  font-size: 0.875rem;
  line-height: 1.6;
}
.success-check {
  font-size: 1.1rem;
  color: var(--jade-light);
  flex-shrink: 0;
}

/* ── FOOTER ───────────────────────────────────────────────────────────── */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--forest);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-interface);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.38rem;
  letter-spacing: 0.5em;
  color: var(--jade-light);
  border-top: 1px solid var(--jade);
  padding-top: 3px;
  margin-top: 3px;
}
.footer-copy {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--stone);
  text-align: center;
}
.footer-note { font-size: 0.7rem; color: oklch(38% 0.01 165); }
.footer-link { color: var(--jade-mid); transition: color 0.2s; }
.footer-link:hover { color: var(--jade-light); }
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: oklch(45% 0.01 165);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--jade-mid); }

/* ── GSAP initial states (overridden by JS) ───────────────────────────── */
.nav-links li { opacity: 0; transform: translateY(-12px); }
.section-num  { opacity: 0; }
.section-headline { opacity: 0; transform: translateY(40px); }
.nosotros-copy { opacity: 0; transform: translateY(20px); }
.metric { opacity: 0; transform: translateY(20px); }
.area-card { opacity: 0; transform: translateY(30px); }
.accordion-item { opacity: 0; transform: translateY(16px); }
.impacto-left > * { opacity: 0; transform: translateY(20px); }
.etica-quote { opacity: 0; transform: translateY(30px); }
.pilar-card { opacity: 0; transform: translateY(24px); }
.contacto-left > * { opacity: 0; transform: translateY(20px); }
.form-group { opacity: 0; transform: translateY(16px); }
.form-submit { opacity: 0; transform: translateY(16px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .scroll-line::after { animation: none; }
}
