/* ============================================================
   SECTIONS — per-section styles (§1 through §9 + nav + footer)
   ============================================================ */

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out),
    padding 0.4s var(--ease-out),
    background-color 0.4s var(--ease-out),
    backdrop-filter 0.4s var(--ease-out);
  pointer-events: none;
}
nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
nav.compact {
  padding: 16px 64px;
  background: rgba(26, 26, 24, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-mark svg {
  width: 28px;
  height: 28px;
  transition: transform 0.5s var(--ease-out);
}
.nav-mark:hover svg {
  transform: rotate(90deg);
}
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}
.nav-wordmark span {
  color: var(--fg-primary);
}

/* ─── §1 HERO ────────────────────────────────────────────── */
#hero {
  --mouse-x: 0%;
  --mouse-y: 0%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 64px;
  background:
    radial-gradient(ellipse 80% 60% at calc(70% + var(--mouse-x)) calc(40% + var(--mouse-y)), rgba(var(--color-cobalt-rgb), 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at calc(20% - var(--mouse-x)) calc(80% - var(--mouse-y)), rgba(10, 20, 50, 0.40) 0%, transparent 60%),
    var(--surface-default);
  transition: background-position 0.6s var(--ease-out);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  margin-bottom: 32px;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin-bottom: 40px;
  filter: url('#smoke-filter');
  will-change: filter, opacity, transform;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  font-style: italic;
  color: var(--fg-secondary);
  max-width: 520px;
  line-height: 1.6;
}

.hero-sub .word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 64px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.scroll-indicator.visible {
  opacity: 0.6;
}
.scroll-indicator::before {
  content: '';
  width: 1px;
  height: 32px;
  background: var(--fg-secondary);
  opacity: 0.4;
  transform-origin: top;
  animation: lineDown 2.4s var(--ease-in-out) infinite;
}

/* ─── §2 LA PREGUNTA ─────────────────────────────────────── */
#pregunta {
  padding: 140px 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(var(--color-cobalt-rgb), 0.04) 0%, transparent 70%),
    var(--surface-default);
  border-top: 1px solid var(--border-subtle);
}

.pregunta-q {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--fg-primary);
  max-width: 800px;
  margin-bottom: 56px;
}
.pregunta-q .char {
  display: inline-block;
}

.pregunta-body {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-secondary);
}
.pregunta-body em {
  color: var(--fg-primary);
  font-style: italic;
}

/* ─── §3 EL NOMBRE ───────────────────────────────────────── */
#nombre {
  padding: 120px 0;
  background:
    linear-gradient(180deg, var(--surface-default) 0%, rgba(12, 36, 97, 0.15) 50%, var(--surface-default) 100%);
  border-top: 1px solid var(--border-subtle);
}

.nombre-stage {
  position: relative;
  display: inline-block;
  margin-bottom: 64px;
  user-select: none;
  line-height: 0.85;
}

.nombre-word {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--color-bone-rgb), 0.18);
}

.nombre-fill {
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-cobalt);
  -webkit-text-stroke: 1px rgba(var(--color-cobalt-rgb), 0.85);
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}

.nombre-def {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 800px;
}

.nombre-etym {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--color-cobalt);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.nombre-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-secondary);
}
.nombre-text strong {
  color: var(--fg-primary);
  font-weight: 400;
}

/* ─── §4 ARQUITECTURA ────────────────────────────────────── */
#arquitectura {
  padding: 140px 0;
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(var(--color-cobalt-rgb), 0.05) 0%, transparent 60%),
    var(--surface-default);
}

.arch-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 96px;
}

.arch-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--fg-primary);
}

.arch-body {
  font-size: 17px;
  color: var(--fg-secondary);
  line-height: 1.7;
  padding-top: 8px;
}
.arch-body em {
  color: var(--fg-primary);
  font-style: normal;
}

.modules-track {
  position: relative;
  overflow: hidden;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(8, 48vw);
  gap: 2px;
  will-change: transform;
}

.module-card {
  padding: 40px 36px 44px;
  position: relative;
  cursor: default;
  min-height: 380px;
  transition:
    background 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    border-style 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

/* Spotlight — applied to whichever card sits in the first slot */
.module-card.is-spotlight {
  background: rgba(var(--color-cobalt-rgb), 0.16);
  border-color: rgba(var(--color-cobalt-rgb), 0.70) !important;
  border-style: solid !important;
  opacity: 1 !important;
  transform: translateY(-4px) scale(1.015);
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(var(--color-cobalt-rgb), 0.35),
    0 0 80px -12px rgba(var(--color-cobalt-rgb), 0.55),
    0 12px 40px -12px rgba(0, 0, 0, 0.6),
    inset 0 0 60px -16px rgba(var(--color-cobalt-rgb), 0.18);
}
.module-card.is-spotlight::before {
  background: var(--color-cobalt) !important;
  box-shadow: 0 0 16px rgba(var(--color-cobalt-rgb), 0.7);
  width: 2px !important;
  content: '' !important;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}
.module-card.is-spotlight .module-name {
  color: var(--fg-primary);
}
.module-card.is-spotlight .module-function {
  color: rgba(var(--color-bone-rgb), 0.85);
}
.module-card.is-spotlight .module-status {
  color: var(--color-cobalt) !important;
  text-shadow: 0 0 12px rgba(var(--color-cobalt-rgb), 0.5);
}

.module-card.built {
  background: rgba(var(--color-cobalt-rgb), 0.06);
  border: 1px solid rgba(var(--color-cobalt-rgb), 0.30);
}
.module-card.built::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: var(--color-cobalt);
}

.module-card.dev {
  background: rgba(var(--color-cobalt-rgb), 0.025);
  border: 1px solid rgba(var(--color-cobalt-rgb), 0.12);
  animation: devPulse 3s var(--ease-in-out) infinite;
}

.module-card.conceptual {
  background: transparent;
  border: 1px dashed rgba(var(--color-stone-rgb), 0.20);
  opacity: 0.55;
}

.module-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg-primary);
  margin-bottom: 8px;
}
.module-card.conceptual .module-name {
  color: var(--fg-secondary);
}

.module-function {
  font-size: 15px;
  color: var(--fg-primary);
  line-height: 1.5;
  margin-bottom: 12px;
  font-weight: 400;
}

.module-desc {
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.module-status {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.module-card.built .module-status {
  color: var(--color-cobalt);
}
.module-card.dev .module-status {
  color: rgba(var(--color-cobalt-rgb), 0.6);
}
.module-card.conceptual .module-status {
  color: rgba(var(--color-stone-rgb), 0.5);
}

/* ─── §5 HIPOCAMPO ───────────────────────────────────────── */
#hipocampo {
  padding: 140px 0;
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(var(--color-cobalt-rgb), 0.06) 0%, transparent 60%),
    var(--surface-default);
}

.hipo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.hipo-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
  margin-bottom: 16px;
}

.hipo-sub {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cobalt);
  margin-bottom: 32px;
}

.hipo-neuro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-secondary);
  margin-bottom: 40px;
}
.hipo-neuro strong {
  color: var(--fg-primary);
  font-weight: 400;
}

.hipo-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hipo-fact {
  padding: 20px 0;
  border-bottom: 1px solid rgba(var(--color-stone-rgb), 0.10);
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.hipo-fact:first-child {
  border-top: 1px solid rgba(var(--color-stone-rgb), 0.10);
}

.hipo-fact-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-cobalt);
  min-width: 80px;
  padding-top: 2px;
}

.hipo-fact-text {
  font-size: 15px;
  color: var(--fg-secondary);
  line-height: 1.6;
  flex: 1;
}
.hipo-fact-text strong {
  color: var(--fg-primary);
  font-weight: 400;
}

/* ─── §6 INSTANCIA VIVA ──────────────────────────────────── */
#instancia {
  padding: 140px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-default);
}

.instancia-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.instancia-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--fg-primary);
  margin-bottom: 28px;
}

.instancia-text p {
  font-size: 17px;
  color: var(--fg-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}
.instancia-text p em {
  color: var(--fg-primary);
  font-style: italic;
}

/* Terminal */
.terminal {
  background: var(--surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.terminal-chrome {
  padding: 12px 16px;
  background: var(--surface-chrome);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red    { background: rgba(255, 95, 86, 0.4); }
.dot.yellow { background: rgba(255, 189, 46, 0.4); }
.dot.green  { background: rgba(39, 201, 63, 0.4); }

.terminal-title {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(var(--color-stone-rgb), 0.5);
  letter-spacing: 0.06em;
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 24px 24px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  min-height: 380px;
}

.t-line {
  color: var(--fg-secondary);
  white-space: nowrap;
  overflow: hidden;
}
.t-line.prompt {
  color: rgba(var(--color-cobalt-rgb), 0.7);
}
.t-line.output {
  color: rgba(var(--color-bone-rgb), 0.5);
  padding-left: 16px;
}
.t-line.highlight {
  color: var(--fg-primary);
}
.t-line.dim {
  color: rgba(var(--color-stone-rgb), 0.35);
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--color-cobalt);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
}

/* ─── §7 MANIFIESTO ──────────────────────────────────────── */
#manifiesto {
  padding: 180px 0 200px;
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(var(--color-cobalt-rgb), 0.04) 0%, transparent 70%),
    var(--surface-default);
  position: relative;
}

.manifesto-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#manifiesto > .container {
  position: relative;
  z-index: 1;
}

.manifesto-body {
  max-width: 72ch;
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--fg-primary);
  margin-bottom: 48px;
}

.manifesto-link {
  display: inline-block;
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--color-cobalt);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--color-cobalt-rgb), 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.manifesto-link:hover {
  color: var(--fg-primary);
  border-color: var(--fg-primary);
}
.manifesto-link em {
  font-style: italic;
  color: inherit;
}

.manifesto-close {
  font-size: clamp(26px, 3vw, 40px) !important;
  font-style: italic !important;
  color: var(--fg-primary) !important;
  line-height: 1.45 !important;
}

.manifesto-body p.manifesto-sm {
  font-size: clamp(13px, 1.4vw, 18px);
}
.manifesto-body p.manifesto-sm em { color: var(--fg-secondary); font-style: italic; }
.manifesto-body p.manifesto-sm strong { color: var(--fg-primary); font-weight: 700; }

.manifesto-body p {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--fg-primary);
  margin-bottom: 48px;
}
.manifesto-body p:last-child {
  margin-bottom: 0;
}
.manifesto-body p em {
  color: var(--fg-secondary);
  font-style: italic;
}
.manifesto-body p strong {
  color: var(--fg-primary);
  font-weight: 700;
}

.manifesto-rule {
  width: 40px;
  height: 1px;
  background: var(--color-cobalt);
  margin: 64px 0;
  opacity: 0.5;
}

/* Manifiesto texture layers */
.mfx-rules {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.mfx-rules span {
  border-right: 1px solid rgba(var(--color-bone-rgb), 0.035);
}
.mfx-rules span:last-child {
  border-right: none;
}

.mfx-mark {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: 0.035;
  will-change: transform;
}

.mfx-frag {
  position: absolute;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--color-bone-rgb), 0.10);
  pointer-events: none;
  will-change: transform;
}
.mfx-frag.f1 {
  top: 10%; left: 8%;
  transform: rotate(-90deg);
  transform-origin: left top;
}
.mfx-frag.f2 {
  bottom: 14%; right: 10%;
  transform: rotate(90deg);
  transform-origin: right bottom;
}
.mfx-frag.f3 { top: 40%; left: 4%; }
.mfx-frag.f4 { bottom: 28%; right: 6%; }

.mfx-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.04' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14  0 0 0 0 0.34  0 0 0 0 1  0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  mix-blend-mode: screen;
}

/* ─── §8 ROADMAP ─────────────────────────────────────────── */
#roadmap {
  padding: 140px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-default);
}

.roadmap-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 96px;
}

.roadmap-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--fg-primary);
}

.roadmap-sub {
  font-size: 17px;
  color: var(--fg-secondary);
  line-height: 1.7;
  padding-top: 6px;
}
.roadmap-sub strong {
  color: var(--fg-primary);
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-bottom: 16px;
}

.timeline-track {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 0;
  height: 1px;
  background: rgba(var(--color-stone-rgb), 0.15);
  overflow: hidden;
}

.timeline-fill {
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--color-cobalt);
  transition: width 1.6s var(--ease-out);
}

.timeline-sweep {
  position: absolute;
  top: 0;
  left: -120px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--color-cobalt-rgb), 0.9), transparent);
  animation: sweep 6s var(--ease-in-out) infinite;
}

.timeline-nodes {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  position: relative;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.node-dot-wrap {
  padding: 16px 0 24px;
  position: relative;
}

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

.timeline-node.n-built .node-dot {
  background: var(--color-cobalt);
  box-shadow: 0 0 12px rgba(var(--color-cobalt-rgb), 0.5);
}

.timeline-node.n-dev .node-dot {
  background: transparent;
  border: 1.5px solid rgba(var(--color-cobalt-rgb), 0.5);
  animation: devPulse 2.5s var(--ease-in-out) infinite;
}

.timeline-node.n-concept .node-dot {
  background: transparent;
  border: 1px solid rgba(var(--color-stone-rgb), 0.30);
}

.node-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg-primary);
  margin-bottom: 4px;
}
.timeline-node.n-dev .node-name {
  color: rgba(var(--color-bone-rgb), 0.6);
}
.timeline-node.n-concept .node-name {
  color: rgba(var(--color-stone-rgb), 0.5);
}

.node-fn {
  font-size: 11px;
  color: var(--fg-secondary);
  line-height: 1.5;
  max-width: 90px;
  opacity: 0.7;
}
.timeline-node.n-concept .node-fn {
  opacity: 0.35;
}

.node-stage {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 12px;
}
.timeline-node.n-built .node-stage {
  color: var(--color-cobalt);
}
.timeline-node.n-dev .node-stage {
  color: rgba(var(--color-cobalt-rgb), 0.4);
}
.timeline-node.n-concept .node-stage {
  color: rgba(var(--color-stone-rgb), 0.25);
}

/* ─── CLOSING STATEMENT ──────────────────────────────────── */
.closing-statement {
  padding: 160px 24px;
  text-align: center;
  background: var(--surface-default);
  border-top: 1px solid var(--border-subtle);
}

.closing-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--fg-primary);
  text-shadow:
    0 0 80px rgba(var(--color-cobalt-rgb), 0.35),
    0 0 160px rgba(var(--color-cobalt-rgb), 0.15);
  max-width: 800px;
  margin: 0 auto;
}

.closing-text .word {
  display: inline-block;
  white-space: nowrap;
}

/* ─── §9 FOOTER (Contact the Project) ────────────────────── */
footer {
  padding: 140px 0 32px;
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(var(--color-cobalt-rgb), 0.06) 0%, transparent 60%),
    var(--surface-default);
}

footer .section-label {
  margin-bottom: 64px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-col-right {
  align-items: flex-end;
}

.footer-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.footer-email {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.3vw, 16px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg-primary);
  position: relative;
  display: inline-block;
  width: fit-content;
  transition: color 0.3s var(--ease-out);
}
.footer-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--color-cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.footer-email:hover {
  color: var(--color-cobalt);
}
.footer-email:hover::after {
  transform: scaleX(1);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--color-stone-rgb), 0.25);
  border-radius: 50%;
  color: var(--fg-primary);
  transition:
    color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}
.footer-social:hover {
  color: var(--color-cobalt);
  border-color: var(--color-cobalt);
  background-color: rgba(var(--color-cobalt-rgb), 0.08);
  transform: translateY(-2px);
}

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

.footer-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
}
.footer-mark svg {
  width: 20px;
  height: 20px;
}
.footer-mark span {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.footer-copy {
  font-size: 11px;
  color: rgba(var(--color-stone-rgb), 0.30);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  footer {
    padding: 56px 24px 24px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
  }
  .footer-col-right {
    align-items: flex-start;
  }
  .footer-base {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  nav.compact { padding: 14px 24px; }
  #hero { padding: 0 24px; }
  .scroll-indicator { left: 24px; }
  .arch-intro,
  .hipo-layout,
  .instancia-layout,
  .roadmap-header { grid-template-columns: 1fr; gap: 40px; }
  .nombre-def { grid-template-columns: 1fr; gap: 28px; }
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
    transform: none !important;
  }
  .timeline-nodes { grid-template-columns: repeat(4, 1fr); }
  .cta-form { flex-direction: column; }
  .cta-input {
    border-right: 1px solid rgba(var(--color-stone-rgb), 0.20);
    border-bottom: none;
  }
}
