/* =========================================================
   AER — Operational Intelligence
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #090A0B;
  --surface: #0F1113;
  --surface-2: #14171A;
  --line: #1D2125;
  --line-strong: #2A2F35;
  --text: #E6E8EA;
  --text-2: #A3A9B0;
  --text-3: #6B7279;
  --accent: #8FA6BD;      /* azul acero */
  --accent-dim: #5E7489;
  --error: #C98B8B;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(88px, 12vw, 160px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent-dim); color: #fff; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 14px; font-size: 14px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text-2); background: rgba(255,255,255,.02); }
.btn-arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(9, 10, 11, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 20px; height: 20px; color: var(--text); }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: .28em; }
.brand-sep { width: 1px; height: 14px; background: var(--line-strong); }
.brand-desc { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }

.nav-list { display: flex; align-items: center; gap: 36px; }
.nav-list a {
  font-size: 13px; color: var(--text-2); letter-spacing: .02em;
  transition: color .2s var(--ease);
}
.nav-list a:hover { color: var(--text); }
.nav-list .nav-cta {
  color: var(--text); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.nav-list .nav-cta:hover { border-color: var(--text-2); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle-bar {
  position: absolute; left: 12px; right: 12px; height: 1px; background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-bar:nth-of-type(2) { top: 18px; }
.nav-toggle-bar:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 64px) 0 40px;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(9,10,11,.88) 38%, rgba(9,10,11,.2) 75%, rgba(9,10,11,.5) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2);
  margin-bottom: 36px;
}
.eyebrow-line { width: 32px; height: 1px; background: var(--accent); }

.hero-title {
  max-width: 13ch;
  font-size: clamp(42px, 7.4vw, 96px);
  font-weight: 500; line-height: 1.02; letter-spacing: -.035em;
}
.hero-sub {
  max-width: 52ch; margin-top: 32px;
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 300; color: var(--text-2); line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

.hero-meta {
  position: relative; display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 72px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.hero-meta-coord { margin-left: auto; }

/* ---------- Statement ---------- */
.statement { padding: var(--section-y) 0; border-bottom: 1px solid var(--line); }
.statement-inner {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px 40px; align-items: start;
}
.statement-text {
  font-size: clamp(26px, 3.6vw, 46px); font-weight: 400; line-height: 1.2; letter-spacing: -.02em;
  max-width: 24ch;
}
.statement-text em { font-style: normal; color: var(--accent); }
.statement-aside {
  grid-column: 2; max-width: 48ch; color: var(--text-2); font-weight: 300; font-size: 17px; margin-top: 16px;
}
.section-index, .section-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
}
.section-index { padding-top: 14px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; border-bottom: 1px solid var(--line); }
.section-surface { background: var(--surface); }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); max-width: 720px; }
.section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-label::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.section-title {
  font-size: clamp(28px, 4vw, 48px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1;
  text-transform: uppercase;
}
.section-sub { margin-top: 16px; color: var(--text-2); font-weight: 300; font-size: 17px; }

/* ---------- Services ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  position: relative; padding: 40px 36px 48px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease);
}
.service::before {
  content: ""; position: absolute; left: -1px; top: -1px; height: 1px; width: 0; background: var(--accent);
  transition: width .5s var(--ease);
}
.service:hover { background: var(--surface); }
.service:hover::before { width: calc(100% + 1px); }
.service-num { font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: .1em; }
.service-icon { width: 44px; height: 44px; color: var(--accent); margin: 48px 0 40px; stroke-width: 1; }
.service-title { font-size: 21px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 14px; }
.service-text { color: var(--text-2); font-weight: 300; font-size: 15px; max-width: 34ch; }

/* ---------- Pricing ---------- */
.pricing { border: 1px solid var(--line); background: var(--bg); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 24px 32px; border-bottom: 1px solid var(--line); }
.price-table thead th {
  padding-top: 18px; padding-bottom: 18px;
  font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); background: var(--surface-2);
}
.price-table tbody th { font-weight: 400; font-size: 17px; }
.price-table tbody tr { transition: background-color .25s var(--ease); }
.price-table tbody tr:hover { background: var(--surface); }
.price-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tbody td { font-size: 17px; color: var(--text); }
.row-code {
  display: inline-block; min-width: 56px; font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .08em;
}

.price-total {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 36px 32px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(143,166,189,.06), transparent 60%);
  border-left: 2px solid var(--accent);
}
.price-total-label { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); font-weight: 500; }
.price-total-cur { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.price-total-value {
  font-size: clamp(40px, 6vw, 72px); font-weight: 500; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-total-value .cur { font-size: .4em; color: var(--text-2); font-weight: 400; letter-spacing: 0; vertical-align: .9em; margin-right: 4px; }

.pricing-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 28px 32px;
}
.pricing-note { max-width: 60ch; font-size: 14px; color: var(--text-3); font-weight: 300; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.step { position: relative; padding-right: 8px; }
.step-track { position: relative; height: 1px; background: var(--line-strong); margin-bottom: 36px; }
.step-node {
  position: absolute; left: 0; top: -4px; width: 9px; height: 9px;
  border: 1px solid var(--accent); background: var(--bg); transform: rotate(45deg);
}
.step-track::after {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--accent);
  transition: width 1.2s var(--ease) .2s;
}
.step.is-visible .step-track::after { width: 100%; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: .1em; }
.step-title { margin: 14px 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.step-text { color: var(--text-2); font-size: 15px; font-weight: 300; max-width: 26ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 64px 96px; align-items: start; }
.contact-title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.contact-text { margin: 28px 0 40px; color: var(--text-2); font-weight: 300; font-size: 17px; max-width: 44ch; }
.btn-wa { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px;
  padding: 40px; border: 1px solid var(--line); background: var(--bg);
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  border-radius: 0; padding: 10px 0; font-size: 16px; color: var(--text);
  transition: border-color .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field select option { background: var(--surface-2); color: var(--text); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 6px; height: 6px;
  border-right: 1px solid var(--text-2); border-bottom: 1px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: var(--error); }
.field-error { min-height: 0; font-size: 12px; color: var(--error); margin-top: 6px; }
.field-error:empty { display: none; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 4px; }
.form-hint { font-size: 13px; color: var(--text-3); font-weight: 300; }
.form-status { font-size: 14px; color: var(--accent); }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--text-3); transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ---------- Mallas de nodos ---------- */
.mesh-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}
.statement, .section-mesh, .section-contact { position: relative; overflow: hidden; }
.statement > .container, .section-mesh > .container, .section-contact > .container { position: relative; z-index: 1; }

/* ---------- Marcos de imagen (minimal) ---------- */
.frame { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.62);
  transform: scale(1.04); transition: transform 1.6s var(--ease), filter .8s var(--ease);
}
.frame::after { /* tinte acero */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(143,166,189,.10), rgba(9,10,11,.35));
  mix-blend-mode: normal;
}
.frame.is-visible img { transform: scale(1); }
.frame:hover img { filter: grayscale(1) contrast(1.1) brightness(.75); }
.frame-mesh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.frame-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; padding: 12px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2);
  background: linear-gradient(0deg, rgba(9,10,11,.8), transparent);
}
/* esquinas tipo nodo */
.frame::before {
  content: ""; position: absolute; inset: 8px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 7px 1px,
    linear-gradient(var(--accent), var(--accent)) left top / 1px 7px,
    linear-gradient(var(--accent), var(--accent)) right top / 7px 1px,
    linear-gradient(var(--accent), var(--accent)) right top / 1px 7px;
  background-repeat: no-repeat; opacity: .8;
}

.statement-inner { grid-template-columns: 120px minmax(0, 1fr) minmax(0, .85fr); gap: 24px 56px; }
.statement-body { min-width: 0; }
.statement-aside { grid-column: auto; }
.frame-statement { aspect-ratio: 4 / 3; align-self: center; }

.method-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 40px 64px;
  align-items: end; margin-bottom: clamp(48px, 7vw, 88px);
}
.method-head .section-head { margin-bottom: 0; }
.frame-method { aspect-ratio: 4 / 5; }

/* ---------- Banda visual ---------- */
.band {
  position: relative; overflow: hidden; min-height: clamp(380px, 56vw, 620px);
  display: flex; align-items: center; border-bottom: 1px solid var(--line);
}
.band-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.55);
}
.band-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(9,10,11,.7) 40%, rgba(9,10,11,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
}
.band-mesh { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-inner { position: relative; z-index: 1; pointer-events: none; }
.band-text {
  font-size: clamp(30px, 4.4vw, 58px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; max-width: 22ch;
}
.band-text em { font-style: normal; color: var(--accent); }
.band-meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.band-meta span { display: inline-flex; align-items: center; gap: 10px; }
.band-meta span::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--accent); }

/* ---------- Contacto: fondo ---------- */
.contact-bg { position: absolute; inset: 0 auto 0 0; width: 46%; pointer-events: none; }
.contact-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: .32;
  filter: grayscale(1) contrast(1.1);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}

/* ---------- Servicios: nodos en las intersecciones ---------- */
.service::after {
  content: ""; position: absolute; right: -4px; bottom: -4px; z-index: 1;
  width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--line-strong);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.service:hover::after { border-color: var(--accent); transform: rotate(45deg); }

/* ---------- Metodología: paquete que recorre la línea ---------- */
.step-track { overflow: visible; }
.step.is-visible .step-track .step-node { animation: node-ping 4s var(--ease) infinite; }
.step:nth-child(2) .step-node { animation-delay: 1s !important; }
.step:nth-child(3) .step-node { animation-delay: 2s !important; }
.step:nth-child(4) .step-node { animation-delay: 3s !important; }
.step-track .step-node::after {
  content: ""; position: absolute; inset: -5px; border: 1px solid var(--accent); opacity: 0;
}
.step.is-visible .step-node::after { animation: node-ring 4s var(--ease) infinite; animation-delay: inherit; }
.steps .step-track::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 3px; height: 3px; z-index: 1;
  background: #DCE4EC; box-shadow: 0 0 8px rgba(143,166,189,.8);
  opacity: 0;
}
.step.is-visible .step-track::before { animation: packet-run 4s linear infinite; }
.step:nth-child(2) .step-track::before { animation-delay: 1s; }
.step:nth-child(3) .step-track::before { animation-delay: 2s; }
.step:nth-child(4) .step-track::before { animation-delay: 3s; }

@keyframes packet-run {
  0% { left: 0; opacity: 0; }
  5% { opacity: 1; }
  25% { left: 100%; opacity: 1; }
  27%, 100% { left: 100%; opacity: 0; }
}
@keyframes node-ping {
  0%, 100% { background: var(--bg); }
  3% { background: var(--accent); }
  12% { background: var(--bg); }
}
@keyframes node-ring {
  0% { opacity: .9; transform: scale(.6); }
  14% { opacity: 0; transform: scale(1.8); }
  100% { opacity: 0; }
}

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal:nth-child(2) { transition-delay: .08s; }
.js .hero .reveal:nth-child(3) { transition-delay: .16s; }
.js .hero .reveal:nth-child(4) { transition-delay: .24s; }
.js .services .reveal:nth-child(2), .js .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js .services .reveal:nth-child(3), .js .steps .reveal:nth-child(3) { transition-delay: .16s; }
.js .steps .reveal:nth-child(4) { transition-delay: .24s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 56px 32px; }
  .contact { grid-template-columns: 1fr; }
  .statement-inner { grid-template-columns: 120px minmax(0, 1fr); }
  .frame-statement { grid-column: 2; aspect-ratio: 16 / 9; }
  .contact-bg { width: 100%; height: 55%; }
  .contact-bg img {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  }
}

@media (max-width: 860px) {
  .brand-sep, .brand-desc { display: none; }
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: rgba(9,10,11,.97);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav-list a { display: block; padding: 16px 0; font-size: 16px; }
  .nav-list .nav-cta { text-align: center; padding: 14px; }
  .site-header.menu-open { background: rgba(9,10,11,.97); border-bottom-color: var(--line); }

  .hero-fade {
    background: linear-gradient(0deg, var(--bg) 8%, rgba(9,10,11,.78) 55%, rgba(9,10,11,.55) 100%);
  }
  .statement-inner { grid-template-columns: 1fr; }
  .statement-aside { grid-column: 1; }
  .section-index { padding-top: 0; }
  .frame-statement { grid-column: 1; margin-top: 24px; }
  .method-head { grid-template-columns: 1fr; }
  .frame-method { aspect-ratio: 16 / 10; }
  .band-fade {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(9,10,11,.55) 50%, var(--bg) 100%);
  }
}

@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .service { padding: 32px 24px 36px; }
  .service-icon { margin: 28px 0 28px; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta-coord { margin-left: 0; }

  /* Pricing table → stacked rows */
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr { display: block; width: 100%; }
  .price-table tr {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 20px; border-bottom: 1px solid var(--line);
  }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table tbody th { font-size: 16px; line-height: 1.4; }
  .price-table tbody td { font-size: 16px; }
  .row-code { display: block; min-width: 0; margin-bottom: 4px; }
  .price-total { flex-direction: column; align-items: flex-start; padding: 28px 20px; }
  .pricing-foot { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .pricing-foot .btn { width: 100%; }

  .form { grid-template-columns: 1fr; padding: 28px 20px; }
  .form-foot .btn, .btn-wa { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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

/* Imágenes ya oscuras: realzar en vez de oscurecer */
.frame-dark img { filter: grayscale(1) contrast(1.15) brightness(1.5); }
.frame-dark:hover img { filter: grayscale(1) contrast(1.2) brightness(1.7); }
