/* ============================================================
   ENAIAX — The Event Horizon
   Monochromatic design system. Grayscale only; emphasis is
   carried by inversion (black on white / white on black),
   hairline rules, and the horizon mark.
   ============================================================ */

:root {
  /* Surfaces */
  --void: #0a0a0c;          /* dark sections: hero, nav, cta, footer */
  --void-2: #121215;        /* panels on dark */
  --bg: #ffffff;
  --surface: #f5f5f6;

  /* Text on light */
  --text: #17171a;
  --text-2: #4c4c53;
  --text-3: #6e6e76;

  /* Text on dark */
  --dtext: #f4f4f5;
  --dtext-2: #a6a6ad;
  --dtext-3: #77777e;

  /* Lines */
  --line: #e4e4e7;
  --line-strong: #17171a;
  --dline: rgba(255, 255, 255, 0.16);
  --dline-soft: rgba(255, 255, 255, 0.09);

  /* States */
  --hover-dark: #333338;   /* hover for black buttons */
  --hover-light: #d9d9dd;  /* hover for white buttons */
  --error: #b91c1c;        /* form validation only */

  /* The one color: the AI itself. Text accent (.ai spans) uses --ai;
     the logo mark's wedges use the deeper --ai-deep (inline SVG).
     Nowhere else. */
  --ai: #8b76ff;
  --ai-deep: #6a4df4;

  /* Type */
  --font: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 3px;

  /* Z-scale */
  --z-nav: 100;
  --z-skip: 200;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: var(--z-skip);
  padding: 0.6rem 1rem;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  transition: top 0.15s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

::selection {
  background: var(--text);
  color: #fff;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out),
    border-color 0.15s var(--ease-out);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* On light: solid black */
.btn-inverse {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn-inverse:hover {
  background: var(--hover-dark);
  border-color: var(--hover-dark);
}

/* On dark: solid white */
.btn-light {
  background: #fff;
  color: var(--void);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--hover-light);
  border-color: var(--hover-light);
}

/* On dark: outline */
.btn-ghost {
  background: transparent;
  color: var(--dtext);
  border-color: var(--dline);
}

.btn-ghost:hover {
  border-color: #fff;
}

/* ============ Nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--void);
  color: var(--dtext);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out);
}

.nav.scrolled {
  border-bottom-color: var(--dline-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}

.nav-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dtext-2);
  text-decoration: none;
  transition: color 0.15s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link-contact {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.2s var(--ease-out);
}

.nav-toggle.active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ============ Hero ============ */

.hero {
  background: var(--void);
  color: var(--dtext);
  overflow: hidden;
}

/* The AI word: the accent's only home in text */
.ai {
  color: var(--ai);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-headline {
  font-size: clamp(2.5rem, 4.6vw + 0.6rem, 4.35rem);
  font-weight: 640;
  font-stretch: 112%;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #fff;
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--dtext-2);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Hero entrance (JS adds .hero-enter to body; content visible by default) */
.hero-enter .hero-headline,
.hero-enter .hero-sub,
.hero-enter .hero-ctas {
  animation: rise 0.7s var(--ease-out) both;
}

.hero-enter .hero-sub { animation-delay: 0.08s; }
.hero-enter .hero-ctas { animation-delay: 0.16s; }

.hero-enter .hero-visual {
  animation: fade 1.1s var(--ease-out) 0.2s both;
}

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

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-visual {
  margin: 0;
  justify-self: center;
  width: min(100%, 460px);
}

.horizon-wrap {
  position: relative;
}

#horizon {
  width: 100%;
  aspect-ratio: 1;
}

.readout-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--dtext-3);
}

.horizon-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--dtext-2);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--dline-soft);
}

.hero-strip p {
  font-size: 0.875rem;
  color: var(--dtext-2);
}

.hero-strip-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-strip-facts li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--dline);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dtext-2);
  white-space: nowrap;
}

/* ============ Sections (shared) ============ */

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head-wide {
  max-width: 52rem;
}

.section-head h2,
.arch-copy h2 {
  font-size: clamp(1.75rem, 2.2vw + 0.75rem, 2.6rem);
  font-stretch: 108%;
  letter-spacing: -0.022em;
}

.section-head p {
  margin-top: 1.1rem;
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 60ch;
}

/* Reveal (class added by JS; default is visible) */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ Why local ============ */

.why-local {
  background: var(--surface);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.9375rem;
}

.compare th,
.compare td {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  color: var(--text-2);
}

.compare thead th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface);
}

.compare tbody th {
  font-weight: 600;
  color: var(--text);
  width: 22%;
}

.compare .compare-us {
  color: var(--text);
  background: var(--surface);
}

.compare thead th.compare-us {
  background: var(--text);
  color: #fff;
}

.why-local-close {
  max-width: 52rem;
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
}

/* ============ Cómo funciona ============ */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.how-copy h2 {
  font-size: clamp(1.75rem, 2.2vw + 0.75rem, 2.6rem);
  font-stretch: 108%;
  letter-spacing: -0.022em;
}

.how-copy > p {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: var(--text-2);
}

.how-steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.how-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.how-id {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-3);
  padding-top: 0.2rem;
}

.how-step h3 {
  font-size: 1.0625rem;
}

.how-step p {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.seal-wrap {
  justify-self: center;
  width: min(100%, 380px);
}

.seal-exterior {
  position: relative;
  margin-bottom: 2.25rem;
  border-bottom: 1px dashed var(--text-3);
}

.seal-exterior-label {
  position: absolute;
  bottom: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 0.6rem;
  background: var(--bg);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
}

.seal-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0.35rem 0;
  color: var(--text-3);
}

.seal-flow svg {
  grid-column: 2;
}

.seal-flow em {
  grid-column: 3;
  justify-self: start;
  padding-left: 0.75rem;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text-2);
}

.seal-perimeter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
}

.seal-label {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 0.5rem;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text);
  white-space: nowrap;
}

.seal-node {
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
  text-align: center;
}

.seal-node-solid {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.seal-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.seal-caption .readout-dot {
  border-color: var(--text-3);
}

/* ============ Servicio ============ */

.lifecycle {
  background: var(--surface);
}

/* ============ Lifecycle ============ */

.lc-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 5rem);
}

.lc-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.lc-id {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-3);
  padding-top: 0.2rem;
}

.lc-item h3 {
  font-size: 1.0625rem;
}

.lc-item p {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* ============ Capacidades (use cases) ============ */

.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.uc-cell {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  transition: background-color 0.2s var(--ease-out);
}

.uc-cell:hover {
  background: var(--bg);
}

.uc-cell h3 {
  font-size: 1.0625rem;
}

.uc-cell p {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  flex-grow: 1;
}

.uc-tag {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
}

/* ============ Process ============ */

.phase-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: phase;
}

.phase {
  position: relative;
  padding-top: 1.4rem;
  counter-increment: phase;
}

.phase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -2rem;
  border-top: 1px solid var(--line);
}

.phase:last-child::before {
  right: 0;
}

.phase::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}

.phase h3 {
  font-size: 1.125rem;
}

.phase h3::before {
  content: counter(phase, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
}

.phase p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.honesty {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.honesty-title {
  font-size: 1.25rem;
}

.honesty-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  margin-top: 1.5rem;
}

.honesty-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.honesty-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.honesty-list li + li {
  border-top: 1px solid var(--line);
}

.honesty-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--text);
}

.honesty-list-wont li::before {
  content: "\2013"; /* – */
}

/* ============ Por qué ahora (pilares) ============ */

.pillars {
  background: var(--surface);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-strong);
}

.pillar h3 {
  font-size: 1.125rem;
}

.pillar p {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  flex-grow: 1;
}

.pillar-src {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
  text-decoration: none;
}

.pillar-src:hover {
  text-decoration: underline;
}

.pillar-law {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--void);
  color: var(--dtext);
}

.pillar-law h3 {
  font-size: 1.25rem;
  color: #fff;
}

.pillar-law p {
  margin-top: 0.9rem;
  max-width: 62ch;
  font-size: 0.9375rem;
  color: var(--dtext-2);
}

/* ============ CTA ============ */

.cta {
  background: var(--void);
  color: var(--dtext);
  padding-block: var(--section-y);
}

.cta-inner {
  max-width: 46rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-mark {
  margin-bottom: 2rem;
}

.cta-headline {
  font-size: clamp(1.85rem, 2.6vw + 0.75rem, 2.85rem);
  font-stretch: 110%;
  color: #fff;
}

.cta-sub {
  margin-top: 1.1rem;
  max-width: 36rem;
  color: var(--dtext-2);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* ============ Contact ============ */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contact-info h2 {
  font-size: clamp(1.65rem, 2vw + 0.75rem, 2.35rem);
  font-stretch: 108%;
}

.contact-info > p {
  margin-top: 1.1rem;
  color: var(--text-2);
}

.contact-meta {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-email {
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.contact-next {
  margin-top: 2rem;
}

.contact-next h3 {
  font-size: 1rem;
}

.contact-next ol {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
}

.contact-next li {
  padding: 0.25rem 0;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.contact-form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.req {
  color: var(--text-3);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color 0.15s var(--ease-out);
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.form-group input.error {
  border-color: var(--error);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-error {
  display: block;
  min-height: 1rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--error);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-2);
  text-align: center;
}

.form-note.error {
  color: var(--error);
}

/* ============ Footer ============ */

.footer {
  background: var(--void);
  color: var(--dtext-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}

.footer-tagline {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  color: var(--dtext-2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.footer-col-label {
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--dtext-3);
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--dtext-2);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--dline-soft);
  font-size: 0.8125rem;
  color: var(--dtext-2);
}

.footer-status {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

/* ============ Páginas legales ============ */

.legal-main {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) var(--pad-x) clamp(4rem, 9vw, 6rem);
}

.legal-main h1 {
  font-size: clamp(1.85rem, 2.6vw + 0.75rem, 2.6rem);
  font-stretch: 108%;
}

.legal-updated {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.legal-main h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
}

.legal-main p,
.legal-main li {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.legal-main ul {
  padding-left: 1.2rem;
}

.legal-pending {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--text-3);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-2);
}

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

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

  .hero-visual {
    width: min(100%, 400px);
  }

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

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

  .phase-track {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

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

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

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: var(--void);
    border-bottom: 1px solid var(--dline);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 0.8rem var(--pad-x);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link-contact {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 760px) {
  /* Stack the comparison table: each row becomes aspect + labeled pair */
  .compare thead {
    display: none;
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare tr {
    border: 1px solid var(--line);
  }

  .compare tr + tr {
    border-top: 0;
  }

  .compare th,
  .compare td {
    border: 0;
    padding: 0.85rem 1rem;
  }

  .compare tbody th {
    width: 100%;
    padding-bottom: 0;
  }

  .compare td::before {
    display: block;
    margin-bottom: 0.15rem;
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    color: var(--text-3);
  }

  .compare td:not(.compare-us)::before {
    content: "IA EN LA NUBE";
  }

  .compare td.compare-us::before {
    content: "IA LOCAL CON ENAIAX";
  }

  .lc-ledger {
    grid-template-columns: 1fr;
  }

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

  .phase-track {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .phase::before {
    right: 0;
  }

  .honesty-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .honesty-list-wont {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============ Reduced motion ============ */

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

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

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