/* =========================================================
   NewDrop Solutions — Hoja de estilos principal
   Estructura:
   1. Tokens de diseño
   2. Reset y base
   3. Utilidades y layout
   4. Componentes (botones, tarjetas, badges)
   5. Header y navegación
   6. Secciones
   7. Formulario
   8. Footer
   9. Animaciones y reveal
   10. Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. Tokens de diseño
   --------------------------------------------------------- */
:root {
  /* Superficies — carbón, no negro puro: las secciones se distinguen con luz */
  --bg: #0d1017;
  --bg-elev: #12161f;
  --surface: #171c26;
  --surface-2: #1d2330;
  --surface-3: #262d3d;

  /* Texto */
  --text: #eef1f7;
  --text-soft: #c3cbd9;
  --text-muted: #99a3b5;

  /* Marca */
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --accent-3: #22d3ee;
  --accent-ink: #04121c;

  /* Líneas y sombras */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.19);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  --glow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 18px 60px -24px rgba(56, 189, 248, 0.45);

  /* Radios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Layout */
  --container: 1180px;
  --header-h: 72px;

  /* Tipografía */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono",
    Menlo, Consolas, monospace;

  /* Transiciones */
  --t-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-med: 320ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow: 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------
   2. Reset y base
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* Salvaguarda global contra desbordamiento horizontal.
   Solo en <html>: recorta en el viewport sin crear contenedor de
   scroll intermedio, por lo que position: sticky sigue funcionando. */
html {
  overflow-x: clip;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip en lugar de hidden: recorta sin convertir body en contenedor
     de scroll, así position: sticky de los descendientes sigue activo */
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

/* Iluminación ambiental global, muy sutil y sin coste de repintado */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(52rem 38rem at 10% 4%, rgba(56, 189, 248, 0.19), transparent 62%),
    radial-gradient(70rem 50rem at 50% 108%, rgba(34, 211, 238, 0.11), transparent 60%);
}

/* Rejilla técnica de fondo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 100%);
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(56, 189, 248, 0.4);
  text-underline-offset: 3px;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}

a:hover {
  color: #7dd3fc;
  text-decoration-color: currentColor;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.5rem + 2.6vw, 3.5rem);
  font-weight: 700;
}

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

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem);
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

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

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

::selection {
  background: rgba(56, 189, 248, 0.28);
  color: #fff;
}

/* Enlace de salto para lectores de pantalla y teclado */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t-fast);
}

.skip-link:focus-visible {
  top: 16px;
  color: var(--accent-ink);
}

/* Testigo para detectar el desplazamiento sin escuchar el evento scroll */
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 12px;
  pointer-events: none;
}

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

/* ---------------------------------------------------------
   3. Utilidades y layout
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.6rem + 2vw, 2rem);
}

/* Capa de partículas de fondo (canvas generado por js/particles.js) */
.particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particles canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* El contenido de las secciones con partículas queda por encima */
.section > .container,
.hero > .container {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding-block: clamp(4rem, 2.4rem + 6.5vw, 7.5rem);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* Alternancia gradual entre secciones: un lavado de luz que aparece y
   desaparece de forma progresiva, sin líneas ni cortes bruscos */
main > .section:nth-of-type(even) {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 12%,
    rgba(255, 255, 255, 0.045) 50%,
    rgba(255, 255, 255, 0.03) 88%,
    rgba(255, 255, 255, 0) 100%
  );
}

.section--tight {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.lead {
  max-width: 44rem;
  margin-top: 1.15rem;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.175rem);
}

.text-grad {
  background: linear-gradient(100deg, #ffffff 8%, #9fd8ff 48%, #a5b4fc 92%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-grad-flow 10s ease-in-out infinite;
}

@keyframes text-grad-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hr-glow {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong) 18%,
    rgba(56, 189, 248, 0.35) 50%,
    var(--line-strong) 82%,
    transparent
  );
}

.grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1vw, 1.5rem);
}

/* ---------------------------------------------------------
   4. Componentes
   --------------------------------------------------------- */

/* Botones */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-med),
    background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex: none;
  transition: transform var(--t-med);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px -12px rgba(56, 189, 248, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--primary:hover {
  color: #ffffff;
  box-shadow: 0 16px 42px -12px rgba(56, 189, 248, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

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

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.9rem;
}

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

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Tarjeta base con foco de luz que sigue al puntero */
.card {
  position: relative;
  padding: clamp(1.35rem, 1.1rem + 0.7vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-med), border-color var(--t-med),
    box-shadow var(--t-med);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    22rem 22rem at var(--mx, 50%) var(--my, 0%),
    rgba(56, 189, 248, 0.14),
    transparent 62%
  );
  transition: opacity var(--t-med);
}

.card:hover,
.card:focus-within {
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(56, 189, 248, 0.1);
  transform: translateY(-4px);
}

.card:hover::before,
.card:focus-within::before {
  opacity: 1;
}

.card__title {
  margin-bottom: 0.55rem;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.955rem;
}

/* Icono en cápsula */
.icon-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.1));
  color: var(--accent);
  transition: color var(--t-med), border-color var(--t-med), transform var(--t-med);
}

.card:hover .icon-box {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px) scale(1.04);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

/* Etiqueta técnica */
.chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   5. Header y navegación
   --------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med), border-color var(--t-med),
    box-shadow var(--t-med), backdrop-filter var(--t-med);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(13, 16, 23, 0.82);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 640;
  font-size: 1.03rem;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: #ffffff;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand__name b {
  font-weight: 640;
}

.brand__name span {
  color: var(--text-muted);
  font-weight: 450;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: translateX(-50%);
  transition: width var(--t-med);
}

.nav__link.is-active {
  color: #ffffff;
}

.nav__link.is-active::after {
  width: 18px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* En escritorio el CTA vive en .header__actions; dentro del panel de
   navegación solo se muestra en la versión móvil. */
@media (min-width: 861px) {
  .nav .btn {
    display: none;
  }
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-med), opacity var(--t-fast), top var(--t-med);
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}

.nav-toggle__bars span:nth-child(2) {
  top: 5px;
}

.nav-toggle__bars span:nth-child(3) {
  top: 10px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------
   6. Secciones
   --------------------------------------------------------- */

/* --- Hero --- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 6vw, 5.5rem));
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  overflow: hidden;
}

/* Fundido suave del hero hacia la siguiente sección */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(90px, 10vw, 150px);
  z-index: 2;
  background: linear-gradient(180deg, rgba(13, 16, 23, 0), var(--bg));
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem 0.4rem 0.45rem;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--r-pill);
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.12),
    rgba(99, 102, 241, 0.08)
  );
  color: #cfe9ff;
  font-size: 0.83rem;
  font-weight: 550;
}

.hero__badge-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.18);
}

.hero__badge-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

/* Flotación suave del diagrama del hero */
@media (prefers-reduced-motion: no-preference) {
  .hero__visual {
    animation: hero-float 9s ease-in-out infinite;
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(56, 189, 248, 0);
  }
}

.hero h1 {
  margin-top: 1.4rem;
}

.hero__sub {
  max-width: 34rem;
  margin-top: 1.35rem;
  color: var(--text-soft);
  font-size: clamp(1.03rem, 0.98rem + 0.35vw, 1.2rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero__meta svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent-3);
}

/* Visual del hero */
.hero__visual {
  position: relative;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  background: radial-gradient(
    closest-side,
    rgba(56, 189, 248, 0.16),
    transparent 72%
  );
  filter: blur(6px);
}

.diagram {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

/* Barra de métricas */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}

.stats__item {
  position: relative;
  padding: 1.4rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  background-color: var(--bg-elev);
}

.stats__value {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
}

.stats__value .unit {
  color: var(--accent);
  font-size: 0.62em;
  font-weight: 600;
}

.stats__label {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.855rem;
  line-height: 1.45;
}

/* --- Problema --- */
.problem__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

.pain {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: border-color var(--t-med), background-color var(--t-med),
    transform var(--t-med);
}

.pain:hover {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.045);
  transform: translateY(-3px);
}

.pain__x {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 7px;
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}

.pain__x svg {
  width: 13px;
  height: 13px;
}

.problem__note {
  margin-top: 2.25rem;
  padding: 1.5rem 1.65rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.07), transparent 65%);
  color: var(--text-soft);
}

.problem__note strong {
  color: #fff;
  font-weight: 600;
}

/* --- Propuesta de valor --- */
.value__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

.compare {
  display: grid;
  gap: 1rem;
}

.compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.compare__cell {
  font-size: 0.92rem;
  line-height: 1.5;
}

.compare__cell--bad {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.5);
  text-decoration-thickness: 1px;
}

.compare__cell--good {
  color: var(--text);
  font-weight: 520;
}

.compare__arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
}

.compare__arrow svg {
  width: 14px;
  height: 14px;
}

/* --- Soluciones --- */
.solutions__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.solutions__grid .card {
  display: flex;
  flex-direction: column;
}

.solution__benefit {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line-strong);
  color: var(--accent-3);
  font-size: 0.83rem;
  font-weight: 550;
}

.solution__benefit svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* --- IA --- */
.ai {
  position: relative;
}

.ai__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 3.5vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(38rem 26rem at 88% 8%, rgba(99, 102, 241, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.ai__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 0.7rem;
}

.ai__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.028);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: border-color var(--t-med), color var(--t-med),
    background-color var(--t-med), transform var(--t-med);
}

.ai__item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
  color: #fff;
  transform: translateX(3px);
}

.ai__item svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent-2);
}

.ai__caption {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Proceso --- */
.steps-wrap {
  position: relative;
}

.steps {
  display: grid;
  gap: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  padding: clamp(1.5rem, 1.1rem + 1vw, 2.15rem) 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step__num {
  position: relative;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.28));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity var(--t-med);
}

.step__body {
  max-width: 42rem;
}

.step__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.step__text {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

/* Línea de progreso vertical ligada al scroll */
.steps__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(2.75rem - 1px);
  width: 2px;
  background: var(--line);
  overflow: hidden;
}

.steps__rail-fill {
  width: 100%;
  height: var(--progress, 0%);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
  transition: height 120ms linear;
}

.step__dot {
  position: absolute;
  left: calc(2.75rem - 5px);
  top: calc(clamp(1.5rem, 1.1rem + 1vw, 2.15rem) + 0.5rem);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--bg);
  transition: background-color var(--t-med), box-shadow var(--t-med);
}

.step.is-active .step__dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg), 0 0 16px rgba(56, 189, 248, 0.8);
}

/* --- Integraciones / Tecnología --- */
.tech__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 3.5vw, 3.75rem);
  align-items: center;
}

.arch {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.tech__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.tech__tags .chip {
  transition: border-color var(--t-med), color var(--t-med),
    background-color var(--t-med), transform var(--t-med);
}

.tech__tags .chip:hover {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.09);
  color: #cfe9ff;
  transform: translateY(-2px);
}

/* --- Beneficios --- */
.benefits__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
}

.benefit__kpi {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Diferenciación --- */
.diff {
  position: relative;
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(34rem 24rem at 12% 0%, rgba(56, 189, 248, 0.13), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006)),
    var(--surface);
  overflow: hidden;
}

.diff__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  align-items: center;
}

.diff__list {
  display: grid;
  gap: 0.85rem;
}

.diff__item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.diff__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-3);
}

.diff__check svg {
  width: 12px;
  height: 12px;
}

.diff__item b {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.diff__item span {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* --- CTA intermedio --- */
.cta-band {
  position: relative;
  padding: clamp(2.5rem, 1.6rem + 3.5vw, 4.25rem) clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--r-xl);
  background:
    radial-gradient(32rem 17rem at 50% 106%, rgba(99, 102, 241, 0.4), transparent 66%),
    radial-gradient(30rem 15rem at 50% -6%, rgba(56, 189, 248, 0.32), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--bg-elev);
  text-align: center;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
      120deg,
      transparent 38%,
      rgba(255, 255, 255, 0.07) 50%,
      transparent 62%
    )
    0 0 / 260% 100% no-repeat;
  animation: sheen 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen {
  0%,
  62% {
    background-position: 130% 0;
  }
  100% {
    background-position: -130% 0;
  }
}

.cta-band__content {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  max-width: 24ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 46ch;
  margin: 1.05rem auto 0;
  color: var(--text-soft);
}

.cta-band .btn {
  margin-top: 1.9rem;
}

/* --- FAQ --- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: stretch;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.15rem 0.25rem;
  color: var(--text);
  font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.06rem);
  font-weight: 550;
  line-height: 1.45;
  text-align: left;
  transition: color var(--t-fast);
}

.faq__trigger:hover {
  color: #7dd3fc;
}

.faq__icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  transition: transform var(--t-med), border-color var(--t-med),
    background-color var(--t-med);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: opacity var(--t-fast), transform var(--t-med);
}

.faq__icon::before {
  width: 11px;
  height: 1.5px;
}

.faq__icon::after {
  width: 1.5px;
  height: 11px;
}

.faq__trigger[aria-expanded="true"] .faq__icon {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  transform: rotate(180deg);
}

.faq__trigger[aria-expanded="true"] .faq__icon::after {
  opacity: 0;
  transform: scaleY(0);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med);
}

.faq__panel[data-open="true"] {
  grid-template-rows: 1fr;
}

.faq__panel > div {
  overflow: hidden;
}

.faq__answer {
  padding: 0 3rem 1.35rem 0.25rem;
  color: var(--text-muted);
  font-size: 0.955rem;
}

.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin-top: 2.25rem;
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)),
    var(--surface);
}

.faq__aside p {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.faq__aside .btn {
  margin-top: 1.35rem;
}

/* ---------------------------------------------------------
   7. Contacto y formulario
   --------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 3.5vw, 3.75rem);
  align-items: start;
}

.contact__info .lead {
  margin-bottom: 2rem;
}

.contact__points {
  display: grid;
  gap: 1.15rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.contact__point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact__point .icon-box {
  width: 38px;
  height: 38px;
  margin-bottom: 0;
  border-radius: 11px;
}

.contact__point .icon-box svg {
  width: 18px;
  height: 18px;
}

.contact__point b {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
}

.contact__point a,
.contact__point span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form {
  padding: clamp(1.35rem, 1rem + 1.6vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  color: var(--text-soft);
  font-size: 0.87rem;
  font-weight: 550;
}

.field label .opt {
  color: var(--text-muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
    background-color var(--t-fast);
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5f6879;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.field.has-error input,
.field.has-error textarea {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}

.field__error {
  display: none;
  color: #fca5a5;
  font-size: 0.82rem;
}

.field.has-error .field__error {
  display: block;
}

/* Casilla de privacidad */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.35rem 0 1.35rem;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.check label {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.5;
  cursor: pointer;
}

.check.has-error label {
  color: #fca5a5;
}

/* Trampa anti-spam invisible (sin depender de JS) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Estado del formulario */
.form__status {
  display: none;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1.1rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form__status[data-state="success"],
.form__status[data-state="error"],
.form__status[data-state="info"] {
  display: flex;
}

.form__status[data-state="success"] {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
}

.form__status[data-state="error"] {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
}

.form__status[data-state="info"] {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
  color: #bae6fd;
}

.form__status svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

.form__status a {
  color: inherit;
  font-weight: 600;
}

.form__foot {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Spinner del botón */
.btn__spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.is-loading .btn__label,
.btn.is-loading svg {
  display: none;
}

/* ---------------------------------------------------------
   8. Footer
   --------------------------------------------------------- */
.footer {
  position: relative;
  padding-top: clamp(2.75rem, 2rem + 2.5vw, 4rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
}

.footer__about p {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer__title {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer__links {
  display: grid;
  gap: 0.6rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

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

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer__bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.to-top svg {
  width: 14px;
  height: 14px;
}

/* ---------------------------------------------------------
   8b. Páginas legales
   --------------------------------------------------------- */
.legal-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 4.5rem));
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.breadcrumb span[aria-current] {
  color: var(--text-soft);
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3rem);
}

.legal-hero p {
  max-width: 44rem;
  margin-top: 1rem;
  color: var(--text-soft);
}

.legal-body {
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}

.prose {
  max-width: 46rem;
  padding: clamp(1.35rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006)),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.prose h2 {
  margin-top: 2.35rem;
  font-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.5rem);
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.6rem;
  font-size: 1.03rem;
}

.prose p,
.prose li {
  margin-top: 0.85rem;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.prose ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.prose ul li {
  margin-top: 0.45rem;
  padding-left: 0.25rem;
}

.prose ul li::marker {
  color: var(--accent);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose .updated {
  margin-top: 0;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.prose .contact-block {
  margin-top: 1.4rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-md);
  background: rgba(56, 189, 248, 0.05);
}

.prose .contact-block p {
  margin-top: 0.35rem;
}

.prose .contact-block p:first-child {
  margin-top: 0;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

/* ---------------------------------------------------------
   9. Animaciones y reveal
   --------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* Variantes de aparición para dar variedad entre secciones */
[data-reveal="left"] {
  transform: translateX(-30px);
}

[data-reveal="right"] {
  /* 12px: cabe dentro del padding del contenedor en todos los anchos,
     de modo que el estado oculto no desborda el documento */
  transform: translateX(12px);
}

[data-reveal="zoom"] {
  transform: scale(0.93);
}

[data-reveal="blur"] {
  filter: blur(7px);
  transform: none;
}

[data-reveal="flip"] {
  transform: perspective(700px) rotateX(10deg);
  transform-origin: top center;
}

/* Titular del hero: aparición palabra a palabra */
.hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  animation: word-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--wd, 0ms);
}

@keyframes word-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Marquesina de capacidades */
.marquee-section {
  position: relative;
  padding-block: 1.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-section .marquee + .marquee {
  margin-top: 0.9rem;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}

.marquee-section:hover .marquee {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin: 0;
  padding-inline: 1.75rem;
  list-style: none;
}

.marquee__group li {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__group li::after {
  content: "\2022";
  color: rgba(56, 189, 248, 0.45);
  font-size: 1rem;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
  }
}

/* Aurora ambiental en el hero */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.aurora i:nth-child(1) {
  width: 46%;
  aspect-ratio: 1;
  left: -12%;
  top: -18%;
  background: radial-gradient(circle at 35% 35%, rgba(56, 189, 248, 0.2), transparent 70%);
  animation: aurora-a 24s ease-in-out infinite alternate;
}

.aurora i:nth-child(2) {
  width: 38%;
  aspect-ratio: 1;
  right: -10%;
  bottom: -20%;
  background: radial-gradient(circle at 60% 40%, rgba(99, 102, 241, 0.2), transparent 70%);
  animation: aurora-b 30s ease-in-out infinite alternate;
}

@keyframes aurora-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(70px, 50px, 0) scale(1.18);
  }
}

@keyframes aurora-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.1);
  }
  to {
    transform: translate3d(-60px, -40px, 0) scale(1);
  }
}

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Halo que sigue al puntero (solo punteros finos) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 65%);
  transform: translate3d(-9999px, -9999px, 0);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

body.cursor-ready .cursor-glow {
  opacity: 1;
}

.cursor-glow.is-active {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 65%);
}

/* Anillos de pulso del núcleo del diagrama */
.ring-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: ring-pulse 3.4s cubic-bezier(0.25, 0.5, 0.4, 1) infinite;
}

.ring-pulse--late {
  animation-delay: 1.7s;
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* Microinteracciones: brillo que barre los botones primarios */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-180%) skewX(-18deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn--primary:hover::after,
.btn--primary:focus-visible::after {
  transform: translateX(320%) skewX(-18deg);
}

/* Microinteracciones: rebote del icono al pasar por la tarjeta */
.card:hover .icon-box svg {
  animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.18) rotate(-7deg);
  }
  70% {
    transform: scale(0.96) rotate(2deg);
  }
  100% {
    transform: scale(1);
  }
}

/* Microinteracciones: brillo en las etiquetas técnicas */
.chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.chip:hover::after {
  transform: translateX(120%);
}

/* Subrayado animado en enlaces del pie, contacto y migas */
.footer__links a,
.to-top,
.contact__point a {
  position: relative;
}

.footer__links a::after,
.to-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer__links a:hover::after,
.to-top:hover::after {
  transform: scaleX(1);
}

/* Respuesta del FAQ: desvanecido descendente */
.faq__panel[data-open="true"] .faq__answer {
  animation: faq-in 0.4s ease;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Crecimiento de la línea inferior de las métricas al entrar en vista */
.stats__item::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.stats.is-visible .stats__item::after {
  transform: scaleX(1);
}

/* Destello que recorre el borde superior del pie de página */
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
  background-size: 220% 100%;
  animation: foot-shimmer 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes foot-shimmer {
  0%,
  100% {
    background-position: 200% 0;
  }
  50% {
    background-position: -100% 0;
  }
}

/* Etiquetas de tecnología: aparición en cascada */
.tech__tags li:nth-child(1) { --reveal-delay: 0ms; }
.tech__tags li:nth-child(2) { --reveal-delay: 40ms; }
.tech__tags li:nth-child(3) { --reveal-delay: 80ms; }
.tech__tags li:nth-child(4) { --reveal-delay: 120ms; }
.tech__tags li:nth-child(5) { --reveal-delay: 160ms; }
.tech__tags li:nth-child(6) { --reveal-delay: 200ms; }
.tech__tags li:nth-child(7) { --reveal-delay: 240ms; }
.tech__tags li:nth-child(8) { --reveal-delay: 280ms; }
.tech__tags li:nth-child(9) { --reveal-delay: 320ms; }
.tech__tags li:nth-child(10) { --reveal-delay: 360ms; }
.tech__tags li:nth-child(11) { --reveal-delay: 400ms; }
.tech__tags li:nth-child(12) { --reveal-delay: 440ms; }

/* ---------------------------------------------------------
   Animaciones adicionales (lote 2)
   --------------------------------------------------------- */

/* Línea de gradiente que crece bajo los títulos de sección */
.section__head h2,
.contact__info h2 {
  position: relative;
}

.section__head h2::after,
.contact__info h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 58px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
}

.section__head--center h2::after {
  left: 50%;
  margin-left: -29px;
}

.section__head[data-reveal].is-visible h2::after,
.section__head.is-visible h2::after,
.contact__info[data-reveal].is-visible h2::after {
  animation: head-line 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes head-line {
  to {
    transform: scaleX(1);
  }
}

/* Inclinación 3D de las tarjetas al pasar el puntero (JS) */
@media (hover: hover) and (pointer: fine) {
  .card[data-tilt] {
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color var(--t-med), box-shadow var(--t-med);
  }
}

/* Onda del botón al pulsarlo (JS) */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%);
  transform: scale(0);
  pointer-events: none;
  animation: ripple-out 0.6s ease-out forwards;
}

@keyframes ripple-out {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* Pulso de luz en los iconos de las tarjetas */
.icon-box {
  animation: icon-glow 4.5s ease-in-out infinite;
}

@keyframes icon-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
  50% {
    box-shadow: 0 0 20px -4px rgba(56, 189, 248, 0.5);
  }
}

/* Destello periódico en la insignia del hero */
.hero__badge {
  position: relative;
  overflow: hidden;
}

.hero__badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: badge-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes badge-sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  85%,
  100% {
    transform: translateX(120%);
  }
}

/* Segunda fila de la marquesina, en dirección contraria */
.marquee--rev {
  animation-direction: reverse;
  animation-duration: 42s;
}

/* Línea de escaneo que recorre el diagrama de arquitectura */
.arch-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
}

.arch-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -60%;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.08), transparent);
  animation: scan-line 8s linear infinite;
  pointer-events: none;
}

@keyframes scan-line {
  to {
    transform: translateY(266.67%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .arch-frame::after {
    animation: none;
  }
}

/* Destello lento en los números de los pasos del proceso */
.step__num {
  background-size: 200% auto;
  animation: num-shimmer 6s ease-in-out infinite;
}

@keyframes num-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Preguntas frecuentes: fondo suave al pasar el puntero */
.faq__item {
  border-radius: var(--r-sm);
  transition: background-color var(--t-med);
}

.faq__item:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Animaciones del diagrama SVG */
.flow-line {
  stroke-dasharray: 6 8;
  animation: dash 2.4s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -28;
  }
}

.pkt {
  animation: pkt-move 3.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes pkt-move {
  0% {
    opacity: 0;
    offset-distance: 0%;
  }
  12%,
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    offset-distance: 100%;
  }
}

.core-ring {
  transform-origin: center;
  animation: ring-spin 18s linear infinite;
}

.core-ring--rev {
  animation-duration: 26s;
  animation-direction: reverse;
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.core-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: core-pulse 3.4s ease-in-out infinite;
}

@keyframes core-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

.node-blink {
  animation: node-blink 4s ease-in-out infinite;
}

@keyframes node-blink {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* ---------------------------------------------------------
   10. Responsive
   --------------------------------------------------------- */
/* Ajuste de holgura en pantallas medianas para que los CTA convivan mejor */
@media (max-width: 1200px) {
  .btn--lg {
    padding: 0.95rem 1.4rem;
    font-size: 0.98rem;
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .value__grid,
  .tech__layout,
  .ai__panel,
  .diff__grid,
  .contact__grid,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  /* El mensaje va primero; el diagrama refuerza justo después */
  .hero__visual {
    max-width: 34rem;
    margin-inline: auto;
  }

  .faq__aside {
    position: static;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: grid;
  }

  .header__actions .btn--primary {
    display: none;
  }

  /* Panel de navegación móvil */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    max-height: calc(100dvh - var(--header-h));
    padding: 1rem clamp(1.15rem, 0.6rem + 2vw, 2rem) 1.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(14, 17, 24, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t-med), transform var(--t-med),
      visibility var(--t-med);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    padding: 0.9rem 0.75rem;
    border-radius: var(--r-md);
    font-size: 1rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link.is-active {
    background: rgba(56, 189, 248, 0.1);
    color: #bae6fd;
  }

  .nav .btn {
    margin-top: 0.75rem;
  }

  body.is-locked {
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding-left: 2.25rem;
  }

  .steps__rail {
    left: 5px;
  }

  .step__dot {
    left: 1px;
    top: calc(clamp(1.5rem, 1.1rem + 1vw, 2.15rem) + 0.65rem);
  }

  .compare__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .compare__arrow {
    transform: rotate(90deg);
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .faq__answer {
    padding-right: 1rem;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__cta .btn {
    width: 100%;
  }

  .footer__bottom {
    justify-content: flex-start;
  }
}

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

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

/* Impresión básica de páginas legales */
@media print {
  .header,
  .footer,
  .nav-toggle,
  body::before,
  body::after {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
