/* Reset + tipografía base */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

[id] {
  scroll-margin-top: 68px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-1);
  font-weight: 800;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.875rem, 2.5vw + 1rem, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-1);
}

p {
  max-width: 68ch;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

/* Foco visible en todo elemento interactivo */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

/* Tag "NEW"-style, para destacar el servicio principal */
.eyebrow-new {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: var(--sp-2);
}

/* Parte de un título con menor énfasis — mismo tamaño/peso, color apagado */
.text-dim {
  color: var(--text-4);
}

.on-dark .text-dim {
  color: var(--text-inverse-3);
}

/* Palabra/frase destacada con degradé de color, para conceptos clave (IA) */
.text-gradient {
  background: linear-gradient(90deg, var(--accent-blue) 0%, #7b5fd9 55%, #d9457b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Link de acento estilo "Learn more >" */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--accent-blue);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-standard);
}

.link-arrow:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

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

/* Animación de entrada — Tier L1.
   Solo se oculta de entrada si hay JS real (clase .js en <html>, agregada
   por un script inline en <head>): así, sin JS, el contenido es visible
   desde el principio en vez de quedar en opacity:0 para siempre. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease-standard),
              transform var(--dur-slow) var(--ease-standard);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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