/* NARAO Technologies — estilos principales.
   Identidad de NARAO Match (Inter, azules de marca) adaptada a fondo negro. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Superficies */
  --bg: #0a0a0b;
  --bg-alt: #0f1012;
  --surface: #15161a;
  --surface-2: #1c1e23;
  --border: #2a2d34;
  --border-strong: #3a3e47;

  /* Texto */
  --text: #f5f7fa;
  --muted: #b6bdc9;
  --subtle: #8f97a6;

  /* Marca (NARAO Match) */
  --primary: #1a56db;
  --primary-hover: #2d68f0;
  --brand-check: #0556fa;
  --accent: #00d2ff;
  --link: #8ab0ff;

  /* Estados */
  --warn: #f3b548;
  --warn-bg: rgba(243, 181, 72, 0.12);
  --info-bg: rgba(26, 86, 219, 0.18);
  --dev: #c7b8ff;
  --dev-bg: rgba(160, 140, 255, 0.14);

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #b3cbff; }
strong { font-weight: 650; color: var(--text); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: 880px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Tipografía */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.lead-sub { margin-top: 14px; color: var(--subtle); font-size: 1rem; max-width: 560px; }
.nowrap-md { white-space: nowrap; }

.note { font-size: 0.8125rem; color: var(--subtle); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost, .btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--link); color: #fff; background: rgba(138, 176, 255, 0.06); }
.btn:focus-visible { outline-offset: 3px; }

/* Insignias */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-info { background: var(--info-bg); color: #b9ceff; }
.badge-dev { background: var(--dev-bg); color: var(--dev); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }

/* Cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  border-radius: 6px;
}
.brand-mark { width: auto; height: 40px; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-word { width: auto; height: 20px; }
.brand-sub {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  padding-left: 1px;
}

.nav-panel { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  padding: 6px 2px;
}
.nav-links a:hover { color: #fff; }
.nav-cta { min-height: 40px; padding: 9px 18px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Presentación principal */
.hero { padding: 72px 0 var(--section-y); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-visual { display: flex; flex-direction: column; gap: 12px; }
.flow-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}
.flow-title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); margin-bottom: 10px; }
.flow { position: relative; display: flex; flex-direction: column; gap: 6px; }
.flow::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--border-strong);
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.flow-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--subtle);
  z-index: 1;
}
.flow-task { color: var(--muted); font-size: 0.9375rem; }
.flow-product {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
}
.flow-step-match .flow-dot { border-color: var(--brand-check); background: var(--brand-check); }
.flow-step-match .flow-task { color: var(--text); font-weight: 600; }
.flow-step-match .flow-product { border-color: rgba(26, 86, 219, 0.6); background: var(--info-bg); }

.mini-match {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.mini-doc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.mini-doc span { display: block; font-size: 0.75rem; color: var(--subtle); line-height: 1.3; }
.mini-doc strong { display: block; margin-top: 4px; font-size: 1.05rem; }
.mini-doc:nth-child(2) strong { color: var(--warn); }
.mini-alert {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  padding-top: 4px;
}

/* Secciones */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid #17181c; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }
.section-intro { color: var(--muted); font-size: 1.0625rem; }
.section-link { margin-top: 28px; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin 0.18s var(--ease); }
.link-arrow:hover::after { margin-left: 4px; }

/* Productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  transition: border-color 0.2s var(--ease);
}
.product:hover { border-color: var(--border-strong); }
.product:target { border-color: var(--link); }
.product-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  column-gap: 40px;
  row-gap: 14px;
  border-color: rgba(26, 86, 219, 0.45);
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.10) 0%, var(--surface) 55%);
}
.product-featured > * { grid-column: 1; }
.product-featured > .addon { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
.product-featured > .product-cta { grid-column: 1; }
.product-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-benefit { font-size: 1.0625rem; font-weight: 600; color: var(--text); line-height: 1.45; }
.product-featured .product-benefit { font-size: 1.25rem; }
.product-example {
  font-size: 0.9375rem;
  border-left: 2px solid var(--border-strong);
  padding-left: 14px;
}
.product-example span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 2px;
}
.product-cta { align-self: flex-start; margin-top: auto; }
.module-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.product h3 { margin-bottom: 0; }
.platform-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Funcionalidades */
.benefits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 64px; }
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 2px solid var(--primary);
}
.benefit h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 0.9375rem; }
.action-title { font-size: 1.375rem; margin-bottom: 6px; }

/* ERP */
.erp { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.erp-copy > p { color: var(--muted); font-size: 1.0625rem; margin-bottom: 20px; }
.erp-points { display: flex; flex-direction: column; gap: 12px; }
.erp-points li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--muted);
}
.erp-points strong { display: block; margin-bottom: 4px; }
.steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-hint { font-size: 0.8125rem; color: var(--subtle); }
.product-featured .product-cta { margin-top: 6px; justify-self: start; }

.addon {
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.addon-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}
.addon-name { font-weight: 750; color: var(--text); font-size: 1.0625rem; margin: 6px 0 4px; }

/* Match en acción */
.demo-label { margin-bottom: 14px; }
.docs-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.doc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.doc:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--subtle);
  border-right: 2px solid var(--subtle);
  transform: translateY(-50%) rotate(45deg);
}
.doc-type { font-weight: 700; color: var(--text); }
.doc-q { color: var(--subtle); font-size: 0.875rem; margin: 2px 0 14px; }
.doc-value { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--text); }
.doc-value span { display: block; font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-top: 4px; }
.doc:nth-child(2) .doc-value { color: var(--warn); }
.doc-result { border-color: rgba(243, 181, 72, 0.5); background: linear-gradient(180deg, rgba(243, 181, 72, 0.08), var(--surface)); }
.doc-result .doc-value { color: var(--warn); }
.doc-note { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }

.screenshot { display: flex; flex-direction: column; gap: 12px; }
.screenshot-frame {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px;
  overflow-x: auto;
}
.screenshot-frame img { min-width: 640px; width: 100%; }
.scroll-hint { display: none; }
@media (max-width: 680px) { .scroll-hint { display: inline; } }

/* Encuentra tu solución */
.finder { display: flex; flex-direction: column; gap: 10px; }
.finder a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.finder a:hover { border-color: var(--link); background: var(--surface-2); }
.finder-need { font-weight: 550; }
.finder-product {
  flex-shrink: 0;
  color: var(--link);
  font-weight: 650;
  font-size: 0.9375rem;
}
.finder-product::after { content: " →"; }
.finder li:last-child a { background: transparent; border-style: dashed; }

/* Cómo trabajamos */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.step-n { display: block; font-size: 0.875rem; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; font-size: 1.125rem; }
.step p { color: var(--muted); font-size: 0.9375rem; }

/* Sobre NARAO */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 560 / 593;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.about-copy h2 { margin-bottom: 20px; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.0625rem; margin-bottom: 16px; max-width: 620px; }
.about-copy .btn { margin-top: 8px; }

/* Contacto */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.0625rem; }
.contact-alt { margin-top: 18px; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}
.form-help { grid-column: 1 / -1; font-size: 0.875rem; color: var(--subtle); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option { background: var(--surface); color: var(--text); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4a4f5a; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(138, 176, 255, 0.28);
}
.field [aria-invalid="true"] { border-color: #f08a7e; }
.field-error { font-size: 0.875rem; color: #f5a397; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 4px; }
.form-legal { flex: 1 1 260px; font-size: 0.8125rem; color: var(--subtle); }
.form-status { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.is-error { color: #f5a397; }

/* Pie */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand p { color: var(--muted); margin-top: 16px; font-size: 0.9375rem; }
.footer-brand .footer-place { margin-top: 6px; color: var(--subtle); }
.footer-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #1d1f24;
  font-size: 0.8125rem;
  color: var(--subtle);
}

/* Páginas legales y 404 */
.page { padding: 64px 0 var(--section-y); }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 12px; }
.page h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.page li + li { margin-top: 6px; }
.page .updated { color: var(--subtle); font-size: 0.875rem; margin-bottom: 8px; }
.page-404 { min-height: calc(100vh - var(--header-h) - 160px); display: flex; align-items: center; }
.page-404 .lead { margin: 8px 0 28px; }
.page-404 .hero-actions { margin-top: 0; }

/* Aparición suave, desactivada con movimiento reducido */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn-primary:hover { transform: none; }
}

/* Tableta */
@media (max-width: 1040px) {
  :root { --section-y: 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 620px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid > .product:nth-child(3) { grid-column: 1 / -1; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits > .benefit:last-child { grid-column: 1 / -1; }
  .erp { grid-template-columns: 1fr; gap: 24px; }
  .steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .docs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc:nth-child(2)::after { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Menú compacto */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-panel.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid #1d1f24; }
  .nav-cta { min-height: 48px; }
}

/* Móvil */
@media (max-width: 680px) {
  :root { --gutter: 16px; --section-y: 64px; --header-h: 64px; }
  .brand-mark { height: 34px; }
  .brand-word { height: 17px; }
  .brand-sub { font-size: 0.5rem; letter-spacing: 0.38em; }
  .hero { padding-top: 44px; }
  .hero-actions .btn { width: 100%; }
  .flow-card { padding: 18px; }
  .flow-step { grid-template-columns: 16px minmax(0, 1fr); gap: 4px 14px; }
  .flow-product { grid-column: 2; justify-self: start; }
  .mini-match { grid-column: 2; gap: 6px; }
  .mini-doc { padding: 8px; }
  .mini-doc strong { font-size: 0.95rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product, .product-featured { padding: 22px; }
  .product-featured { display: flex; }
  .product-cta { width: 100%; }
  .docs-row { grid-template-columns: 1fr; }
  .doc::after { display: none; }
  .finder a { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; }
  .steps, .steps.steps-3 { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; margin-bottom: 48px; }
  .nowrap-md { white-space: normal; }
  .platform-foot { padding: 18px; }
  .platform-foot .btn { width: 100%; }
  .product-grid > .product:nth-child(3) { grid-column: auto; }
  .about { grid-template-columns: 1fr; }
  .about-photo img { max-width: 280px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
