/* =========================================================
   Neura Cloud — base.css
   Tokens de diseño, reset, tipografía y utilidades comunes
   ========================================================= */

:root {
  /* Color — primario del sistema: #2794AB */
  --ink: #12272e;
  --ink-soft: #47626c;
  --ink-faint: #7f959d;
  --paper: #f7fafb;
  --surface: #ffffff;
  --line: #e2eaed;
  --brand: #2794ab;
  --brand-deep: #1e768a;
  --brand-tint: #e6f3f6;
  --clay: #c0703c;
  --clay-tint: #f9efe6;
  --dark: #0e2830;
  --dark-soft: #143a45;
  --on-dark: #e9f1f3;
  --on-dark-muted: #9cb9c1;
  --on-dark-line: rgba(233, 241, 243, 0.14);

  /* Tipografía */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;

  /* Forma y elevación */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 42, 51, 0.06);
  --shadow-md: 0 12px 32px -14px rgba(13, 42, 51, 0.18);
  --shadow-lg: 0 28px 64px -28px rgba(13, 42, 51, 0.3);

  --header-h: 76px;
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

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

/* ---------- Layout ---------- */

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section {
  padding-block: 96px;
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* ---------- Tipografía ---------- */

h1,
h2,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.3rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

/* Énfasis con segunda tipografía: Instrument Serif itálica + color acento */
em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  color: var(--clay);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.btn-light {
  background: var(--surface);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--brand-tint);
  transform: translateY(-1px);
}

.btn-note {
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 0.85em;
}

/* ---------- Revelado al hacer scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.12s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.24s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.36s;
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn:hover {
    transform: none;
  }
}
