/* ==========================================================================
   LUSIASOFT — Hoja de estilos global
   Software, Web e Inteligencia Artificial para empresas
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --navy-950: #071020;
  --navy-900: #0c1729;
  --navy-800: #12203a;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e3e8f0;
  --line-soft: #edf1f7;
  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --brand-soft: #eff6ff;
  --brand-2: #38bdf8;
  --brand-2-soft: #e0f2fe;
  --teal: #0e7490;
  --violet: #4f46e5;
  --amber: #b45309;
  --red: #b91c1c;
  --ok: #15803d;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  /* Spacing & radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.07), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(10, 17, 32, 0.28);

  /* Layout */
  --container: 1160px;
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: #dbe7ff; color: var(--ink); }

/* ---------- A11y helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--navy-950); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.875rem;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 780px; }
main { display: block; }
section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  border-radius: var(--radius-sm);
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--primary:active { background: var(--brand-700); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #c3ccd9; background: var(--bg-soft); color: var(--ink); }
.btn--ghost-dark { background: transparent; color: #e6edf7; border-color: rgba(255, 255, 255, 0.22); }
.btn--ghost-dark:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 0.875rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn .icon { width: 16px; height: 16px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 10px 28px -20px rgba(15, 23, 42, 0.25);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__mark { display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 30px; height: 30px; }
.brand__name { line-height: 1.1; }
.brand__name small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.main-nav { margin-left: auto; }
.main-nav__list { display: flex; align-items: center; gap: 4px; }
.main-nav__item { position: relative; }
.main-nav__item--has-mega { display: flex; align-items: center; }
.mega-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 32px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  margin-left: 1px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.mega-caret:hover { color: var(--ink); background: var(--bg-soft); }
.mega-caret[aria-expanded="true"] { color: var(--brand-700); background: var(--brand-soft); }
.mega-caret__icon { display: inline-flex; transition: transform 0.15s ease; }
.mega-caret__icon svg { width: 14px; height: 14px; }
.mega-caret[aria-expanded="true"] .mega-caret__icon { transform: rotate(180deg); }
.main-nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.main-nav__link:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.main-nav__link.is-active { color: var(--brand-700); background: var(--brand-soft); font-weight: 600; }
.main-nav__link[aria-expanded="true"] { color: var(--brand-600); background: var(--brand-soft); }
.main-nav__chevron { width: 14px; height: 14px; transition: transform 0.15s ease; color: var(--muted); }
.main-nav__link[aria-expanded="true"] .main-nav__chevron { transform: rotate(180deg); }
.main-nav__item--cta { margin-left: 8px; }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 6px);
  width: 640px;
  max-width: min(640px, calc(100vw - 40px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
/* Últimos elementos con mega menú: alinear a la derecha para no desbordar */
.main-nav__item--right .mega {
  left: auto; right: 0;
  transform: translateY(6px);
}
.main-nav__item--right .mega.is-open { transform: translateY(0); }
.mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega__link {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: background-color 0.14s ease;
}
.mega__link:hover { background: var(--bg-soft); text-decoration: none; }
.mega__icon { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-600); }
.mega__icon svg { width: 20px; height: 20px; }
.mega__title { display: block; font-weight: 600; font-size: 0.9rem; line-height: 1.3; color: var(--ink); }
.mega__desc { display: block; font-size: 0.8rem; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.mega__foot {
  margin-top: 10px; padding: 12px 14px; border-top: 1px solid var(--line-soft);
  font-size: 0.85rem; color: var(--muted);
}
.mega__foot a { font-weight: 600; color: var(--brand-600); }

/* Mobile menu */
.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--ink); border: 1px solid var(--line);
  background: var(--surface);
}
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-menu {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg);
  overflow-y: auto;
  padding: 12px 24px 40px;
  border-top: 1px solid var(--line-soft);
}
.mobile-menu.is-open { display: block; }
.mobile-menu__link {
  display: block; padding: 13px 2px;
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__link:hover { text-decoration: none; color: var(--brand-600); }
.mobile-sub { margin: 0 0 4px; }
.mobile-sub__title {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 13px 2px; font-size: 1.05rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-soft); text-align: left;
}
.mobile-sub__title[aria-expanded="true"] .mobile-sub__chevron { transform: rotate(180deg); }
.mobile-sub__chevron { width: 18px; height: 18px; color: var(--muted); transition: transform 0.15s ease; }
.mobile-sub__panel { display: none; padding: 6px 0 8px 12px; }
.mobile-sub__panel.is-open { display: block; }
.mobile-sub__panel a {
  display: block; padding: 9px 2px; font-size: 0.95rem; color: var(--ink-soft);
}
.mobile-sub__panel a:hover { color: var(--brand-600); text-decoration: none; }
.mobile-menu__cta { margin-top: 20px; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-950);
  color: #e8eef8;
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148, 181, 255, 0.14) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 72% 18%, rgba(37, 99, 235, 0.22), transparent 60%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: center;
  padding: 88px 0 84px;
}
.hero__content { max-width: 640px; }
.hero__brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.hero__brand-mark { display: grid; place-items: center; flex: none; }
.hero__brand-mark svg { width: 34px; height: 34px; }
.hero__brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.hero__brand-name .brand__soft { color: #60a5fa; font-weight: 700; }
.hero__brand-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.18); }
.hero__brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #7c93b8;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  color: #93c5fd;
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-bottom: 22px;
}
.hero__eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
.hero h1 {
  font-size: clamp(2.05rem, 5vw, 3.1rem);
  line-height: 1.12; letter-spacing: -0.025em; font-weight: 800;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 20px;
}
.hero h1 .accent { color: #60a5fa; }
.hero__lead {
  font-size: 1.125rem; line-height: 1.7; color: #b6c3d8;
  max-width: 660px; margin-bottom: 32px;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__microcopy {
  font-size: 0.8125rem; color: #8fa3c2;
  font-weight: 500; letter-spacing: 0.01em;
}
.hero__microcopy strong { color: #c4d2e6; font-weight: 600; }

/* ---------- Hero: interfaz de software (dock) ---------- */
.hero-dock {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}
.hero-dock__panel {
  background: rgba(13, 23, 41, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 30px 70px -30px rgba(2, 6, 18, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
}
.hero-dock__bar {
  display: flex; align-items: center; gap: 7px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-dock__dots { display: inline-flex; gap: 5px; margin-right: 8px; }
.hero-dock__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.hero-dock__dots i:nth-child(1) { background: rgba(251, 113, 133, 0.55); }
.hero-dock__dots i:nth-child(2) { background: rgba(250, 204, 21, 0.55); }
.hero-dock__dots i:nth-child(3) { background: rgba(74, 222, 128, 0.55); }
.hero-dock__title {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #7c93b8; font-weight: 600;
}
.hero-dock__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.66rem; color: #5eead4; }
.hero-dock__live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.9); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-dock__rows { display: grid; gap: 8px; }
.hero-dock__row {
  display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr 0.8fr;
  gap: 8px; align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: #8fa3c2;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid transparent;
}
.hero-dock__row--head {
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #5b7092;
}
.hero-dock__row--hl {
  background: rgba(56, 189, 248, 0.07);
  border-color: rgba(56, 189, 248, 0.22);
}
.hero-dock__cell--name { color: #dbe6f5; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.hero-dock__cell--name svg { width: 11px; height: 11px; color: var(--brand-2); flex: none; }
.hero-dock__pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.66rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(52, 211, 153, 0.12); color: #5eead4;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.hero-dock__pill--blue { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; border-color: rgba(56, 189, 248, 0.25); }
.hero-dock__pill--muted { background: rgba(148, 163, 184, 0.1); color: #8fa3c2; border-color: rgba(148, 163, 184, 0.18); }
.hero-dock__chip {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(37, 99, 235, 0.2); color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.4);
  white-space: nowrap;
}
.hero-dock__chip--cyan { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border-color: rgba(56, 189, 248, 0.3); }
.hero-dock__process {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-dock__process-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: #5b7092; margin-bottom: 8px; }
.hero-dock__process-label svg { width: 12px; height: 12px; color: var(--brand-2); }
.hero-dock__flow { display: flex; align-items: center; gap: 8px; }
.hero-dock__step {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.72rem; color: #c3d0e4; font-weight: 500;
  white-space: nowrap;
}
.hero-dock__step svg { width: 13px; height: 13px; }
.hero-dock__step .ok { color: #5eead4; }
.hero-dock__step--active {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(96, 165, 250, 0.5);
  color: #eaf2ff;
}
.hero-dock__step--pending { color: #7c93b8; background: rgba(255, 255, 255, 0.02); }
.hero-dock__arrow { color: #3b5a8f; flex: none; width: 14px; height: 14px; }
.hero-dock__float {
  position: absolute;
  background: rgba(10, 17, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px -18px rgba(2, 6, 18, 0.9);
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
}
.hero-dock__float--api { top: -18px; left: -26px; }
.hero-dock__float--sync { bottom: 30px; right: -30px; }
.hero-dock__float-icon { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.hero-dock__float-icon--blue { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
.hero-dock__float-icon svg { width: 17px; height: 17px; }
.hero-dock__float b { display: block; font-size: 0.72rem; color: #e6edf7; font-weight: 600; line-height: 1.3; }
.hero-dock__float span { display: block; font-family: var(--font-mono); font-size: 0.62rem; color: #6d84a8; margin-top: 2px; }

/* ---------- Hero: editor de código ---------- */
.hero-editor {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}
.hero-editor__window {
  position: relative;
  z-index: 2;
  background: rgba(11, 20, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(2, 6, 18, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-editor__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.hero-editor__file {
  font-family: var(--font-mono);
  font-size: 0.72rem; color: #8fa3c2; font-weight: 600;
}
.hero-editor__bar .hero-editor__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.66rem; color: #5eead4; }
.hero-editor__live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.9); animation: pulse 2.2s ease-in-out infinite; }
.hero-editor__body {
  display: flex;
  padding: 18px 18px 16px;
  gap: 14px;
  min-height: 240px;
}
.hero-editor__gutter {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.72rem; line-height: 1.75;
  color: #33476b;
  text-align: right;
  user-select: none;
  white-space: pre;
}
.hero-editor__code {
  font-family: var(--font-mono);
  font-size: 0.76rem; line-height: 1.75;
  color: #c3d0e4;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}
.hero-editor__code .tk { color: #7dd3fc; }
.hero-editor__code .fn { color: #93c5fd; }
.hero-editor__code .str { color: #5eead4; }
.hero-editor__code .lit { color: #fbbf24; }
.hero-editor__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.hero-editor__status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.66rem; color: #5eead4;
}
.hero-editor__status i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.hero-editor__lang {
  font-family: var(--font-mono); font-size: 0.66rem;
  color: #7c93b8; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-editor__float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
}
.hero-editor__float--code { top: -16px; left: -24px; }
.hero-editor__float--api {
  bottom: 44px; right: -30px;
  background: rgba(7, 14, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px -18px rgba(2, 6, 18, 0.9);
}
.hero-editor__codechip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1rem; line-height: 1;
  color: #7dd3fc;
  background: rgba(7, 14, 30, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px -18px rgba(2, 6, 18, 0.9);
}

/* ---------- Tarjetas con fotografía ---------- */
.photo-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit; text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.photo-card:hover { text-decoration: none; color: inherit; border-color: #c9d3e2; box-shadow: var(--shadow); transform: translateY(-2px); }
.photo-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.photo-card:hover .photo-card__media img { transform: scale(1.03); }
.photo-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.photo-card__body h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 7px; }
.photo-card__body p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-950); color: #e8eef8; }
.section--tight { padding: 56px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-soft) 0%, #eef3fa 100%); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-600);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #7ab3ff; }
.section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.18; letter-spacing: -0.02em; font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 16px;
}
.section--dark h2 { color: #fff; }
.section__sub {
  font-size: 1.0625rem; color: var(--ink-soft); line-height: 1.7;
  text-wrap: pretty;
}
.section--dark .section__sub { color: #a9b8cf; }
.section__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.section__head .section__actions { margin-top: 24px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.card:hover { border-color: #c9d3e2; box-shadow: var(--shadow); }
.card--link { display: block; color: inherit; text-decoration: none; }
.card--link:hover { text-decoration: none; color: inherit; }
.card__icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-600);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 0.925rem; color: var(--ink-soft); line-height: 1.6; }
.card__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 0.875rem; font-weight: 600; color: var(--brand-600);
}
.card__more svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.card--link:hover .card__more svg { transform: translateX(3px); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: var(--navy-950);
  color: #e8eef8;
  position: relative; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 65% at 78% 12%, rgba(37, 99, 235, 0.24), transparent 62%);
}
.page-hero__inner { position: relative; padding: 72px 0 64px; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
  color: #fff; max-width: 760px; text-wrap: balance;
  margin-bottom: 16px;
}
.page-hero__lead { font-size: 1.0938rem; line-height: 1.7; color: #b6c3d8; max-width: 680px; }
.page-hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 20px 0 0; font-size: 0.8125rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; color: #b6c3d9; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-600); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose h2 {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -0.015em;
  color: var(--ink); margin: 44px 0 14px;
}
.prose h3 { font-size: 1.09rem; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; font-size: 0.99rem; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 500; }
.prose ul { margin: 0 0 18px; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--ink-soft); font-size: 0.99rem; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 2px; background: var(--brand); border-radius: 2px;
}
.prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose ol li { margin-bottom: 9px; color: var(--ink-soft); padding-left: 4px; }
.prose ol li::marker { color: var(--brand-600); font-weight: 700; }
.prose .note {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px 18px; font-size: 0.925rem; color: var(--ink-soft);
  margin: 20px 0;
}

/* ---------- Step process ---------- */
.steps { display: grid; gap: 20px; }
.steps__item {
  display: flex; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.steps__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--brand-600);
  background: var(--brand-soft);
  border: 1px solid #dbeafe;
  border-radius: 8px;
  height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center;
}
.steps__body h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.steps__body h3 svg { width: 18px; height: 18px; color: var(--brand-600); flex: none; }
.steps__body p { font-size: 0.925rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Problem/solution pairs ---------- */
.problems { display: grid; gap: 14px; }
.problems__item {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.problems__q { font-size: 0.95rem; color: var(--ink); font-weight: 500; }
.problems__q::before { content: "“"; color: var(--brand); }
.problems__q::after { content: "”"; color: var(--brand); }
.problems__arrow { color: var(--brand); display: grid; place-items: center; }
.problems__arrow svg { width: 22px; height: 22px; }
.problems__a { text-align: right; }
.problems__a a { font-weight: 700; font-size: 0.95rem; color: var(--brand-600); white-space: nowrap; }
.problems__a span { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-top: 1px; }

/* ---------- Differentiators ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.diff-grid__item {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
}
.diff-grid__item svg { width: 18px; height: 18px; color: var(--brand-600); flex: none; }

/* ---------- Tech grid ---------- */
.tech { display: grid; gap: 16px; }
.tech__cat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.tech__cat h3 { font-size: 0.875rem; font-weight: 700; color: #fff; letter-spacing: 0.01em; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tech__cat h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.tech__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech__tags span {
  font-family: var(--font-mono);
  font-size: 0.78rem; color: #c3d0e4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 11px; border-radius: 999px;
}

/* ---------- Quote / band ---------- */
.band {
  background: var(--navy-950);
  color: #e8eef8;
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 80% at 85% 20%, rgba(37, 99, 235, 0.25), transparent 60%);
}
.band__inner { position: relative; max-width: 640px; }
.band h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-bottom: 12px; text-wrap: balance; }
.band p { color: #b6c3d8; font-size: 1.02rem; line-height: 1.7; margin-bottom: 26px; }
.band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Portfolio / projects ---------- */
.proyectos-vacio {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding: 48px 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.proyectos-vacio p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.65; }
.proyectos-vacio p + p { margin-top: 8px; }
.proyectos-vacio a { font-weight: 600; color: var(--brand-700); }

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.project-card:hover { border-color: #c9d3e2; box-shadow: var(--shadow); }
.project-card__media { position: relative; aspect-ratio: 16 / 8.5; overflow: hidden; background: var(--navy-900); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.project-card:hover .project-card__media img { transform: scale(1.02); }
.project-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-card__tag {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-soft);
  border-radius: 999px; padding: 4px 11px; margin-bottom: 12px;
}
.project-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.project-card p { font-size: 0.925rem; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.project-card__meta { margin-top: 16px; font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left;
  padding: 18px 22px;
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.faq__q:hover { color: var(--brand-700); }
.faq__q[aria-expanded="true"] { color: var(--brand-700); }
.faq__q svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 0.18s ease; }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--brand-600); }
.faq__a { display: none; padding: 0 22px 20px; }
.faq__a.is-open { display: block; }
.faq__a p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.65; }
.faq__a p + p { margin-top: 10px; }
.faq__a a { color: var(--brand-700); }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--navy-950);
  color: #e8eef8;
  position: relative; overflow: hidden;
}
.cta-final::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 90% at 80% 10%, rgba(37, 99, 235, 0.26), transparent 60%);
}
.cta-final__inner { position: relative; padding: 88px 0; text-align: center; max-width: 700px; margin-inline: auto; }
.cta-final h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; text-wrap: balance; }
.cta-final p { color: #b6c3d8; font-size: 1.05rem; line-height: 1.7; margin-bottom: 30px; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-final__note { margin-top: 18px; font-size: 0.8125rem; color: #8fa3c2; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-aside h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.contact-aside p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 22px; }
.contact-points { display: grid; gap: 12px; }
.contact-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.925rem; color: var(--ink-soft); }
.contact-points svg { width: 18px; height: 18px; color: var(--brand-600); flex: none; margin-top: 2px; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.form-field label .req { color: var(--brand-600); }
.form-field .hint { font-size: 0.78rem; color: var(--muted); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 11px 13px;
  font-size: 0.9375rem;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: var(--red); }
.form-error { display: none; font-size: 0.8rem; color: var(--red); font-weight: 500; }
.form-error.is-visible { display: block; }
.form-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.form-legal { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }
.form-legal a { font-weight: 500; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--ok); }
.form-status--error { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); }

/* ---------- Blog ---------- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.post-card:hover { border-color: #c9d3e2; box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--navy-900); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.post-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-card h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand-600); text-decoration: none; }
.post-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.post-card__tag {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-soft);
  border-radius: 999px; padding: 4px 11px; margin-top: 14px;
}
.post-card__tag:hover { text-decoration: none; background: #dbeafe; }
.post-card__tag--news { color: var(--teal); background: #ecfeff; }
.post-card__tag--news:hover { background: #cffafe; }

/* Article */
.article-header { padding: 56px 0 0; }
.article-header .breadcrumbs { padding: 0 0 24px; }
.article-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; max-width: 780px; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; }
.article-meta a { color: var(--brand-600); font-weight: 600; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; align-items: start; padding: 40px 0 72px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.875rem; }
.toc h2 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-soft); border-left: 2px solid transparent; margin-left: -1px; }
.toc a:hover { color: var(--brand-600); border-left-color: var(--brand); text-decoration: none; }
.article-body { font-size: 1.02rem; }
.article-body p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 18px; }
.article-body h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); margin: 44px 0 16px; }
.article-body h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 30px 0 12px; }
.article-body ul { margin: 0 0 20px; }
.article-body ul li { position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--ink-soft); }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 0.64em; width: 8px; height: 2px; background: var(--brand); border-radius: 2px; }
.article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body ol li { margin-bottom: 9px; color: var(--ink-soft); padding-left: 4px; }
.article-body ol li::marker { color: var(--brand-600); font-weight: 700; }
.article-body strong { color: var(--ink); }
.article-body .key-box {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 24px; margin: 26px 0;
}
.article-body .key-box h3 { margin-top: 0; font-size: 1rem; }
.article-body .key-box p:last-child { margin-bottom: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.92rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.article-body th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.article-body td { color: var(--ink-soft); }
.article-cta { margin: 36px 0; }
.article-faq { margin: 36px 0 0; }

/* ---------- Vídeo embebido en artículos ---------- */
.article-video { margin: 0 0 28px; }
.video-embed {
  background: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-embed__frame { aspect-ratio: 16 / 9; }
.video-embed__frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-embed__cta {
  padding: 14px 18px;
  font-size: 0.9rem; color: #c3d0e4;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.video-embed__cta a { color: #7dd3fc; font-weight: 600; }
.video-embed__meta { color: #7c93b8; font-size: 0.8rem; }

/* ---------- Related / list pages ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 0.875rem; font-weight: 500; color: var(--ink-soft);
  background: var(--surface);
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-soft); text-decoration: none; }
.chip--active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-700); font-weight: 600; }

/* ---------- Featured / hero image on service pages ---------- */
.hero-media { margin: 40px 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-lg); }
.hero-media img { width: 100%; height: auto; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #94a3b8; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.site-footer h3 { color: #e2e8f0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #94a3b8; font-size: 0.9rem; }
.site-footer a:hover { color: #cbd5e1; }
.footer-brand__name { color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.footer-brand__name .brand__soft { color: #7ab3ff; font-weight: 700; }
.footer-brand__tag { margin: 10px 0 18px; font-size: 0.925rem; line-height: 1.6; color: #94a3b8; max-width: 300px; }
.footer-brand__note { font-size: 0.8rem; color: #64748b; max-width: 300px; line-height: 1.55; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: 0.8125rem; color: #64748b;
}
.site-footer__bottom nav ul { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Error / empty states ---------- */
.empty {
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 56px 32px;
}
.empty__icon { width: 48px; height: 48px; margin: 0 auto 18px; color: var(--brand-600); }
.empty h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.empty p { color: var(--ink-soft); font-size: 0.95rem; max-width: 460px; margin: 0 auto 22px; }

/* ---------- Small utils ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.inline-list { display: inline-flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Trust list (inline icons) ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.trust-strip__item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.trust-strip__item svg { width: 22px; height: 22px; color: var(--brand-600); flex: none; margin-top: 2px; }
.trust-strip__item h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; }
.trust-strip__item p { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .main-nav__link { padding: 9px 8px; font-size: 0.875rem; }
  .mega-caret { width: 20px; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner .main-nav__item--cta { display: none; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: none; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; margin: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__content { max-width: 100%; }
  .hero-dock { max-width: 560px; justify-self: start; }
}
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-aside { position: static; }
  .trust-strip { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 84px 0 76px; }
  .problems__item { grid-template-columns: 1fr; gap: 8px; }
  .problems__arrow { justify-self: start; transform: rotate(90deg); }
  .problems__a { text-align: left; }
  .hero-dock__float--api { left: -8px; }
  .hero-dock__float--sync { right: -8px; }
  .hero-editor__float--code { left: -8px; }
  .hero-editor__float--api { right: -8px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .band { padding: 40px 28px; }
  .steps__item { padding: 20px; }
  .hero__actions .btn, .page-hero__actions .btn, .band__actions .btn, .cta-final__actions .btn { flex: 1 1 auto; justify-content: center; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
  .section__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-dock__flow { overflow-x: auto; padding-bottom: 4px; }
  .hero-dock__step { flex: none; }
  .hero-dock__float { display: none; }
  .hero-dock__row { grid-template-columns: 1.6fr 1fr 1fr; }
  .hero-dock__row > :nth-child(4), .hero-dock__row > :nth-child(5) { display: none; }
  .hero-editor__float { display: none; }
  .hero-editor__body { min-height: 200px; }
}
fy-content: center; }
}
