/* ==========================================================================
   MACÍAS AI — maciasai.com
   Tokens y sistema visual según "Brief de diseño web — maciasai.com.md".
   Contraste de todos los pares de color verificado WCAG AA (mín. 5.56:1).
   ========================================================================== */

:root {
  /* Fondos */
  --bg-dark: #080C14;
  --bg-dark-card: rgba(255, 255, 255, 0.04);
  --bg-dark-card-border: rgba(255, 255, 255, 0.08);
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;

  /* Primario — único color de acción */
  --primary: #1B4FFF;
  --primary-soft: rgba(27, 79, 255, 0.10);
  --primary-light: #60AFFF;   /* coincide con el .AI del logo (#5FA0FF) */

  /* Acentos decorativos, con moderación */
  --accent-violet: #A78BFA;
  --accent-green: #34D399;
  --accent-amber: #FBBF24;

  /* Texto */
  --text-on-dark: #FFFFFF;
  --text-muted-dark: #94A3B8;
  --text-soft-dark: #CBD5E1;
  --text-on-light: #0F172A;
  --text-muted-light: #475569;

  /* Sistema */
  --maxw: 1200px;
  --radius: 16px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 200ms var(--ease);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: "DM Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Foco visible en todo elemento interactivo (regla de accesibilidad, prioridad 1) */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ── Iconos SVG (sin emojis) ─────────────────────────────────────────────── */
.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Fondo animado ───────────────────────────────────────────────────────── */
/* El canvas va fijo detrás de todo. Las secciones oscuras son transparentes
   para dejarlo ver, así el fondo no se corta al hacer scroll. La sección clara
   (FAQ) sí es opaca y lo tapa a propósito. */
.bg-canvas, .bg-glow {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* Azul claro al 32%: es el techo. El fondo resultante (#1E315F) deja el gris
   --text-muted-dark en 4.93:1, justo por encima del mínimo AA de 4.5. Subirlo
   más, o usar un azul más claro, tumba la legibilidad del texto gris. */
.bg-glow {
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(76, 127, 255, 0.32), transparent 72%),
    radial-gradient(ellipse 45% 45% at 80% 78%, rgba(167, 139, 250, 0.12), transparent 72%);
}

/* Todo el contenido, por encima del fondo */
.nav, main, .footer { position: relative; z-index: 1; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.section { padding: 112px 0; position: relative; }
.section--tight { padding-top: 0; }
.section--dark { background: transparent; color: var(--text-on-dark); }
.section--light { background: var(--bg-light); color: var(--text-on-light); }

/* Textura sutil de puntos en las secciones claras */
.dotgrid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.dotgrid > .container { position: relative; z-index: 1; }

/* ── Tipografía de sección ───────────────────────────────────────────────── */
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 16px;
}
.kicker--onDark { color: var(--primary-light); }

.sec-head { max-width: 720px; margin-bottom: 56px; }

.sec-title {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text-on-light);
}
.sec-title--onDark { color: var(--text-on-dark); }

.sec-lead {
  margin-top: 20px; font-size: 18px; color: var(--text-muted-light); max-width: 60ch;
}
.sec-lead--onDark { color: var(--text-muted-dark); }

.sec-note {
  margin-top: 40px; font-size: 15px; color: var(--text-muted-light);
  max-width: 68ch; padding-left: 16px; border-left: 3px solid var(--primary-soft);
}
.sec-note strong { color: var(--text-on-light); }
.sec-note--onDark { color: var(--text-muted-dark); border-left-color: rgba(96, 175, 255, 0.35); }
.sec-note--onDark strong { color: #fff; }

/* Bloque de cierre de la sección Servicios (sustituye a los precios) */
.sec-cta {
  margin-top: 44px; padding: 30px 34px; border-radius: var(--radius);
  background: var(--bg-dark-card); border: 1px solid var(--bg-dark-card-border);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.sec-cta p { font-size: 16px; color: var(--text-muted-dark); max-width: 62ch; }
.sec-cta strong { color: #fff; font-weight: 500; }
.sec-cta .btn { flex: none; }

.text-grad {
  background: linear-gradient(100deg, var(--primary-light), var(--accent-violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo__mark {
  font-weight: 700; font-size: 21px; letter-spacing: -0.02em;
  color: #fff; white-space: nowrap;
}
.logo__dot { color: var(--primary-light); }
.logo__mark--lg { font-size: 30px; }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 9999px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  min-height: 44px; /* objetivo táctil mínimo */
}
.btn--lg { padding: 16px 32px; font-size: 16px; }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover {
  background: #1440E0;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 79, 255, 0.35);
}
.btn--primary .icon { transition: transform var(--t); }
.btn--primary:hover .icon { transform: translateX(4px); }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; background: transparent;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
.nav.is-stuck {
  background: rgba(8, 12, 20, 0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--text-soft-dark);
  transition: color var(--t);
}
.nav__links > a:hover { color: #fff; }
/* Selector hijo para ganar en especificidad a `.nav__links > a` de arriba;
   si no, el CTA del menú móvil reaparece en escritorio. */
.nav__links > .nav__cta-mobile { display: none; }

.nav__burger {
  display: none; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__burger span {
  width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 72px) 0 96px;
  background: transparent; color: #fff;
  text-align: center;
}
.hero__inner { position: relative; z-index: 1; }

/* 920px: ancho medido para que el titular caiga en 3 líneas equilibradas a 72px.
   En 2 líneas no entra — exigiría bajar la fuente a 59px y romper la escala. */
.hero__title {
  font-size: clamp(40px, 6.6vw, 72px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  max-width: min(920px, 100%); margin: 0 auto;
}
.hero__title-soft { color: var(--text-soft-dark); }

.hero__sub {
  margin: 26px auto 0; max-width: 56ch;
  font-size: clamp(16px, 1.6vw, 19px); color: var(--text-muted-dark);
}
.hero__actions { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__trust { margin-top: 30px; font-size: 14px; color: var(--text-muted-dark); }

/* ── Grids y cards ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; margin-top: 14px; }
.card p { margin-top: 12px; font-size: 16px; color: var(--text-muted-light); }

/* ── Card oscura (secciones Servicios y Demos) ───────────────────────────── */
.card--dark {
  background: var(--bg-dark-card);
  border-color: var(--bg-dark-card-border);
  box-shadow: none;
}
.card--dark:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(96, 175, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.card--dark h3 { color: var(--text-on-dark); }
.card--dark p { color: var(--text-muted-dark); }
.card--dark .card__list li { color: var(--text-muted-dark); }
.card--dark .card__list li::before { background: var(--primary-light); }

/* Cuadrado con icono azul */
.card__icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center; border-radius: 11px;
  background: rgba(27, 79, 255, 0.16);
  border: 1px solid rgba(96, 175, 255, 0.22);
  color: var(--primary-light);
  transition: background var(--t), border-color var(--t);
}
.card__icon svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card--dark:hover .card__icon {
  background: rgba(27, 79, 255, 0.3);
  border-color: rgba(96, 175, 255, 0.5);
}

/* Enlace inferior, separado por un divisor */
.card__link {
  margin-top: auto; padding-top: 22px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--primary-light);
  border-top: 1px solid var(--bg-dark-card-border);
}
.card__link .icon { transition: transform var(--t); }
.card__link:hover { color: #fff; }
.card__link:hover .icon { transform: translateX(4px); }
.card--demo .card__link .icon { transition: transform var(--t); }
.card--demo .card__link:hover .icon { transform: translate(3px, -3px); }

.chip {
  align-self: flex-start;
  display: inline-block; padding: 6px 13px; border-radius: 9999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
}
.chip--violet { background: rgba(167, 139, 250, 0.14); color: var(--accent-violet); }

.card__list { margin-top: 18px; display: grid; gap: 9px; }
.card__list li {
  position: relative; padding-left: 20px;
  font-size: 15px; color: var(--text-muted-light);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

.card__foot {
  margin-top: auto; padding-top: 26px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.price { font-size: 15px; font-weight: 700; color: var(--text-on-light); }
.price small { display: block; font-weight: 400; font-size: 13px; color: var(--text-muted-light); margin-top: 3px; }

.arrow-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  transition: background var(--t), color var(--t), transform var(--t);
}
.card:hover .arrow-btn { background: var(--primary); color: #fff; transform: translate(2px, -2px); }

/* Demos */
.tag {
  align-self: flex-start;
  display: inline-block; padding: 5px 11px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
/* Ámbar claro: sobre el fondo oscuro, el ámbar oscuro sería ilegible */
.tag--demo {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--accent-amber);
}
.demo__rubro { margin-top: 4px !important; font-size: 14px !important; color: var(--text-muted-dark) !important; }
.card--demo h3 { margin-top: 12px; }

/* ── Quién soy ───────────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 0.85fr 1fr; gap: 64px; align-items: center; }

.about__photo {
  width: 100%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--bg-dark-card-border);
}

.checks { margin-top: 30px; display: grid; gap: 16px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; color: var(--text-muted-dark); }
.checks strong { color: #fff; font-weight: 500; }
.icon--check { color: var(--accent-green); margin-top: 4px; }

.about__social { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 9999px; min-height: 44px;
  border: 1px solid var(--bg-dark-card-border); background: var(--bg-dark-card);
  font-size: 15px; font-weight: 500; color: var(--text-soft-dark);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.social:hover { color: #fff; border-color: var(--primary-light); background: rgba(96, 175, 255, 0.10); }

/* ── Timeline ────────────────────────────────────────────────────────────── */
.timeline { position: relative; display: grid; gap: 20px; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--accent-green), var(--accent-violet));
  border-radius: 2px; opacity: 0.65;
}

.step { position: relative; }
.step::before {
  content: ""; position: absolute; left: -34px; top: 30px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-dark); border: 2px solid var(--accent-violet);
}
.step__body {
  position: relative; overflow: hidden;
  background: var(--bg-dark-card); border: 1px solid var(--bg-dark-card-border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color var(--t), background var(--t);
}
.step:hover .step__body { border-color: rgba(96, 175, 255, 0.4); background: rgba(255, 255, 255, 0.055); }

.step__num {
  position: absolute; right: 18px; bottom: -34px; z-index: 0;
  font-size: 170px; font-weight: 700; line-height: 1;
  color: #fff; opacity: 0.04; letter-spacing: -0.04em; pointer-events: none;
}
.step__body > * { position: relative; z-index: 1; }
.step h3 { margin-top: 14px; font-size: 23px; font-weight: 700; color: #fff; }
.step p { margin-top: 12px; font-size: 16px; color: var(--text-muted-dark); max-width: 62ch; }

.deliverable {
  margin-top: 20px !important; padding: 14px 18px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 15px !important; color: var(--text-soft-dark) !important;
}
.deliverable span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-green); margin-bottom: 3px;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--bg-white); border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px; overflow: hidden; transition: border-color var(--t), box-shadow var(--t);
}
.faq__item[open] { border-color: rgba(27, 79, 255, 0.35); box-shadow: var(--shadow-sm); }

.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; min-height: 44px;
  font-size: 17px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--primary); }

/* Icono +/− dibujado en CSS, rota al abrir */
.faq__icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--primary); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after  { width: 2px; height: 14px; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__item[open] .faq__icon::before { transform: translate(-50%, -50%) rotate(180deg); }

.faq__body { padding: 0 24px 24px; }
.faq__body p { font-size: 16px; color: var(--text-muted-light); max-width: 66ch; }

/* ── CTA final ───────────────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; text-align: center; }
/* Sin filter: blur() — un blur enorme y permanente es de lo más caro que puede
   pintar el navegador. El degradado solo ya da el mismo resultado. */
.cta__glow {
  position: absolute; left: 50%; top: 50%;
  width: min(900px, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(27, 79, 255, 0.22), transparent 62%);
  pointer-events: none;
}
.cta > .container { position: relative; z-index: 1; }
.cta__title {
  font-size: clamp(30px, 4.4vw, 50px); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.02em; color: #fff;
}
.cta__lead { margin: 22px auto 0; max-width: 54ch; font-size: 18px; color: var(--text-muted-dark); }
.cta__actions { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__trust { margin-top: 26px; font-size: 14px; color: var(--text-muted-dark); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { padding: 72px 0 36px; border-top: 1px solid var(--bg-dark-card-border); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer__tag { margin-top: 16px; font-size: 15px; color: var(--text-muted-dark); max-width: 38ch; }
.footer__col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.footer__col ul { margin-top: 10px; display: grid; }
/* min-height 44px: objetivo táctil mínimo, en vez de separar con gap */
.footer__col ul a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; color: var(--text-muted-dark); transition: color var(--t);
}
.footer__col ul a:hover { color: var(--primary-light); }
.footer__legal {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--bg-dark-card-border);
  font-size: 14px; color: var(--text-muted-dark);
}

/* ── WhatsApp flotante ───────────────────────────────────────────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #062B14;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform var(--t), box-shadow var(--t);
}
.wa-float svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
/* Progressive enhancement: sin JS el contenido queda visible.
   La clase .js la agrega script.js antes de ocultar nada. */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 380px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 780px) {
  .section { padding: 72px 0; }
  .section--tight { padding-top: 0; }
  .sec-head { margin-bottom: 40px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .card { padding: 26px; }

  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 12, 20, 0.98);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: 12px 24px 28px;
    border-bottom: 1px solid var(--bg-dark-card-border);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--t), transform var(--t);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links > a {
    padding: 16px 0; border-bottom: 1px solid var(--bg-dark-card-border);
    font-size: 17px; min-height: 44px; display: flex; align-items: center;
  }
  .nav__links > .nav__cta-mobile { display: inline-flex; margin-top: 22px; }

  .hero { min-height: auto; padding: calc(var(--nav-h) + 56px) 0 72px; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .sec-cta { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px; }
  .sec-cta .btn { width: 100%; }
  .step__body { padding: 26px; }
  .step__num { font-size: 120px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .card__foot { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ── Movimiento reducido ─────────────────────────────────────────────────── */
@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;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  /* El JS ya no dibuja el canvas si se pidió reducir movimiento; esto lo oculta
     por si acaso, y deja el degradado estático, que no se mueve. */
  .bg-canvas { display: none; }
}
