:root {
  --paper: #f5f7fa;
  --ink: #0e1b2c;
  --muted: #55677c;
  --line: #d7dfea;
  --accent: #1d4ed8;
  --accent-soft: #e9effb;
  --value: #0e7c66;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
  --space-y: clamp(72px, 12vh, 128px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ------------------------------------------------------------------ */
/* Page axis — the signature                                           */
/* ------------------------------------------------------------------ */

.page {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 640px) {
  .page::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: var(--line);
  }

  .section:not(.hero)::before {
    content: "";
    position: absolute;
    top: calc(var(--space-y) + 7px);
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--paper);
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-cl {
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Shared section scaffolding                                          */
/* ------------------------------------------------------------------ */

.section {
  position: relative;
  padding: var(--space-y) 0 calc(var(--space-y) - 24px);
  padding-left: 0;
}

@media (min-width: 640px) {
  .section {
    padding-left: clamp(28px, 4vw, 56px);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow-dash {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 40px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  padding-top: clamp(80px, 14vh, 160px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 88px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 12ch;
}

.hero-goal {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hero-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  top: 0.08em;
  right: -1.3em;
}

.hero-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-sub {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
}

.hl-value {
  color: var(--value);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  padding: 15px 26px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent);
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.15s ease;
}

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

@media (max-width: 480px) {
  .hero-mark {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Cards (principios)                                                  */
/* ------------------------------------------------------------------ */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-title .hl-value {
  color: var(--value);
}

.card-body {
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Steps (método)                                                      */
/* ------------------------------------------------------------------ */

.steps {
  list-style: none;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  padding-top: 4px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.step-body {
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
}

/* ------------------------------------------------------------------ */
/* IA (procesos)                                                       */
/* ------------------------------------------------------------------ */

.ai-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 44px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.ai-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.ai-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.ai-label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--paper);
}

.ai-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.ai-body {
  font-size: 15px;
  color: var(--muted);
  max-width: 46ch;
}

@media (max-width: 640px) {
  .ai-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Ámbito (sectores)                                                   */
/* ------------------------------------------------------------------ */

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tags li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 9px 17px;
}

.tags li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Experiencia                                                         */
/* ------------------------------------------------------------------ */

.lede {
  max-width: 56ch;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

.section-contact .section-title {
  margin-bottom: 12px;
}

.contact-sub {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
}

.email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  transition: color 0.15s ease;
}

.email:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .hero .eyebrow,
  .hero-title,
  .hero-sub,
  .hero .btn {
    opacity: 0;
    animation: rise 0.7s ease forwards;
  }

  .hero-title {
    animation-delay: 0.05s;
  }

  .hero-sub {
    animation-delay: 0.15s;
  }

  .hero .btn {
    animation-delay: 0.25s;
  }

  @keyframes rise {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

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