/* =========================================================
   GD Project Solutions — Homepage UI kit
   Composes the design tokens (styles.css) into the live home
   surfaces: topbar, hero + stage rail, servicios, razones,
   anatomía, lugar, contacto, footer. Premium industrial
   editorial direction. Copy is locked to the source of truth.
   ========================================================= */

.gd-home { background: var(--bg); }
body.is-scroll-locked { overflow: hidden; }
.gtm-noscript { position: absolute; width: 0; height: 0; border: 0; visibility: hidden; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200; transform: translateY(-140%);
  background: var(--steel-950); color: #fff; padding: 10px 14px; border-radius: var(--r-2);
  font-weight: 600; text-decoration: none; box-shadow: var(--e-float);
}
.skip-link:focus-visible { transform: none; }
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 160; width: 100%; height: 3px;
  appearance: none; border: 0; background: transparent;
}
.scroll-progress::-webkit-progress-bar { background: transparent; }
.scroll-progress::-webkit-progress-value { background: var(--copper-500); }
.scroll-progress::-moz-progress-bar { background: var(--copper-500); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--topbar-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--topbar-border);
}
.topbar__row { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__gd { font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: var(--fg); }
.brand__dot { width: 7px; height: 7px; background: var(--copper-500); display: inline-block; flex-shrink: 0; }
.brand__name { font-weight: 500; font-size: 16px; letter-spacing: -.005em; color: var(--fg); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--r-2); color: var(--fg); font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: color var(--mo-base) var(--mo-ease), background var(--mo-base) var(--mo-ease);
}
.nav a:hover { color: var(--accent-text); background: var(--accent-soft); text-decoration: none; }
.nav__cta {
  background: var(--accent-bg) !important; color: #fff !important; padding: 0 18px !important;
  min-height: 44px !important; font-family: var(--font-mono); font-size: 12px !important;
  letter-spacing: .06em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  transition: background var(--mo-base) var(--mo-dry), box-shadow var(--mo-base) var(--mo-dry);
}
.nav__cta:hover,
.nav__cta:focus-visible { background: var(--accent-bg-hover) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.nav__cta .btn__arrow { display: inline-block; margin-left: 6px; }
.nav__cta:hover .btn__arrow,
.nav__cta:focus-visible .btn__arrow { transform: translateX(3px); }

/* ---------- Theme toggle — instrument capsule ---------- */
.theme-toggle {
  --tt-x: 0px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 44px;
  min-width: var(--tap-min); min-height: var(--tap-min);
  padding: 0; flex-shrink: 0;
  border: 0; background: transparent; cursor: pointer;
}
:root[data-theme="dark"] .theme-toggle { --tt-x: 28px; }
.theme-toggle:focus-visible { outline: var(--focus-outline); outline-offset: 2px; border-radius: var(--r-full); }
.theme-toggle__track {
  position: relative; display: inline-block;
  width: 56px; height: 28px;
  border: 1px solid var(--hairline-2); border-radius: var(--r-full);
  background: var(--surface-3);
  box-shadow: inset 0 1px 2px rgba(28,28,30,.08);
  transition: border-color var(--mo-base) var(--mo-dry), background var(--mo-base) var(--mo-dry);
}
.theme-toggle:hover .theme-toggle__track { border-color: var(--accent-line); }
.theme-toggle__ico {
  position: absolute; top: 50%; z-index: 2; width: 14px; height: 14px;
  transform: translateY(-50%);
  color: var(--ink-3);
  transition: color var(--mo-base) var(--mo-dry);
}
.theme-toggle .ico-sun  { left: 6px; color: var(--ink); }
.theme-toggle .ico-moon { right: 6px; }
:root[data-theme="dark"] .theme-toggle .ico-sun  { color: var(--ink-3); }
:root[data-theme="dark"] .theme-toggle .ico-moon { color: var(--ink); }
.theme-toggle__thumb {
  position: absolute; top: 3px; left: 3px; z-index: 1;
  width: 20px; height: 20px; border-radius: var(--r-full);
  background: var(--surface-1);
  border: 1px solid var(--hairline-2);
  box-shadow: 0 1px 2px rgba(28,28,30,.16);
  transform: translateX(var(--tt-x));
  transition: transform var(--mo-base) var(--mo-dry),
              background var(--mo-base) var(--mo-dry),
              border-color var(--mo-base) var(--mo-dry);
}
:root[data-theme="dark"] .theme-toggle__thumb { background: var(--steel-700); border-color: rgba(255,255,255,.28); }
.theme-toggle:active .theme-toggle__thumb { transform: translateX(var(--tt-x)) scale(.92); }
/* no-JS fallback: follow the OS scheme when boot.js could not stamp data-theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle { --tt-x: 28px; }
  :root:not([data-theme="light"]) .theme-toggle__thumb { background: var(--steel-700); border-color: rgba(255,255,255,.28); }
  :root:not([data-theme="light"]) .theme-toggle .ico-sun  { color: var(--ink-3); }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { color: var(--ink); }
}

.nav-burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: var(--b-hairline); border-radius: var(--r-2); background: transparent; color: var(--fg); cursor: pointer;
}
.nav-burger:hover { border-color: var(--accent-bg); color: var(--accent-text); }
@media (max-width: 780px) {
  .nav a:not(.nav__cta) { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 520px) { .nav__cta { display: none !important; } .brand__name { font-size: 14px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 18px;
  border-bottom: var(--b-hairline);
  background:
    radial-gradient(900px 320px at 90% -10%, var(--glow-strong), transparent 60%),
    var(--bg);
}
.hero > .wrap { position: relative; z-index: 2; }
/* fondito tecnológico — faint engineering grid (drifts) + copper trace (SVG) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(28,28,30,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,28,30,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 91% 82% at 80% 45%, #000 24%, transparent 80%);
          mask-image: radial-gradient(ellipse 91% 82% at 80% 45%, #000 24%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: no-repeat; background-size: 100% 100%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 500' preserveAspectRatio='none'><defs><linearGradient id='v1' x1='0' x2='1' y1='0' y2='0'><stop offset='0' stop-color='%23C45D2C' stop-opacity='0'/><stop offset='0.3' stop-color='%23C45D2C' stop-opacity='0.5'/><stop offset='0.7' stop-color='%23C45D2C' stop-opacity='0.5'/><stop offset='1' stop-color='%23C45D2C' stop-opacity='0'/></linearGradient></defs><g><path d='M -50 360 Q 400 300 760 330 T 1660 270' fill='none' stroke='url(%23v1)' stroke-width='1.2'/><path d='M -50 360 Q 400 300 760 330 T 1660 270' fill='none' stroke='%23C45D2C' stroke-width='0.6' stroke-opacity='0.5' stroke-dasharray='2 9'><animate attributeName='stroke-dashoffset' from='0' to='-220' dur='30s' repeatCount='indefinite'/></path><path d='M -40 430 Q 460 390 860 372 T 1660 312' fill='none' stroke='%231C1C1E' stroke-width='1' stroke-opacity='0.06'/><circle cx='330' cy='338' r='2.4' fill='%23C45D2C' opacity='0.7'/><circle cx='760' cy='330' r='2.6' fill='%23C45D2C'><animate attributeName='r' values='2.2;3.6;2.2' dur='5s' repeatCount='indefinite'/><animate attributeName='opacity' values='0.6;1;0.6' dur='5s' repeatCount='indefinite'/></circle><circle cx='760' cy='330' r='14' fill='none' stroke='%23C45D2C' stroke-opacity='0.5'><animate attributeName='r' values='10;20;10' dur='5s' repeatCount='indefinite'/><animate attributeName='stroke-opacity' values='0.6;0.05;0.6' dur='5s' repeatCount='indefinite'/></circle><circle cx='1240' cy='250' r='40' fill='none' stroke='%23C45D2C' stroke-opacity='0.16'><animate attributeName='r' values='30;120;30' dur='13s' repeatCount='indefinite'/><animate attributeName='stroke-opacity' values='0.28;0;0.28' dur='13s' repeatCount='indefinite'/></circle></g></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: hero-drift 44s ease-in-out infinite alternate; }
}
@keyframes hero-drift { 0% { transform: translate3d(-.5%, 0, 0); } 100% { transform: translate3d(.5%, -.2%, 0); } }
@media (prefers-reduced-motion: reduce) {
  .hero::after { display: none; }
}
@media (max-width: 600px) { .hero::after { display: none; } .hero::before { opacity: .5; } }
.hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 1000px) { .hero__grid { grid-template-columns: 1fr; gap: 36px; } }
.hero__main { display: flex; flex-direction: column; gap: 24px; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); display: inline-flex; align-items: center; gap: 14px;
}
.hero__eyebrow::before { content: ""; width: 60px; height: 4px; background: var(--accent-decor); }
.hero__claim {
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(38px, 5.6vw, 68px); line-height: 1.0; letter-spacing: -.03em;
  color: var(--fg); margin: 0; text-wrap: balance;
}
.hero__claim em { font-style: normal; color: var(--accent-text); position: relative; display: inline-block; }
.hero__claim em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: 4px; background: var(--copper-500); transform: scaleX(0); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .hero__claim em::after { transition: transform 800ms var(--mo-dry) 480ms; }
}
.hero__claim.is-in em::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .hero__claim em::after { transform: scaleX(1); }
}
.hero__lede { display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.hero__lede-row { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-top: 10px; border-top: var(--b-hairline); }
.hero__lede-row:first-child { border-top: none; padding-top: 0; }
.hero__lede-n { font-family: var(--font-mono); font-size: 11px; color: var(--accent-text); letter-spacing: .08em; padding-top: 3px; font-weight: 500; }
.hero__lede-p { font-size: 15.5px; line-height: 1.5; color: var(--fg); margin: 0; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

/* ---------- Buttons (kit-local, mirrors Button primitive) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap-min); padding: 0 var(--s-6);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: -.005em;
  border-radius: var(--r-2); border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition:
    background var(--mo-base) var(--mo-dry),
    border-color var(--mo-base) var(--mo-dry),
    color var(--mo-base) var(--mo-dry),
    box-shadow var(--mo-base) var(--mo-dry),
    transform var(--mo-fast) var(--mo-dry);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* Primary — copper fill; hover deepens + machined inner edge light */
.btn--p {
  background: var(--accent-bg); color: #fff; border-color: var(--accent-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.btn--p:hover,
.btn--p:focus-visible {
  background: var(--accent-bg-hover); border-color: var(--accent-bg-hover); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.05);
}
.btn--p:active { box-shadow: inset 0 1px 0 rgba(0,0,0,.12); }

/* Secondary — hairline that activates to copper, soft copper wash */
.btn--s { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--s:hover,
.btn--s:focus-visible {
  border-color: var(--accent-line); color: var(--accent-text); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-ring);
}
.btn--full { width: 100%; }
.btn--lg { min-height: 52px; padding: 0 var(--s-7, 28px); font-size: 15px; }

/* Arrow — advances on hover/focus, settles +1px on press */
.btn__arrow { font-family: var(--font-mono); transition: transform var(--mo-base) var(--mo-dry); }
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(4px); }
.btn:active .btn__arrow { transform: translateX(5px); }

/* Disabled — after hover rules so they win (form submit while sending) */
.btn:disabled,
.btn[aria-disabled="true"] { cursor: not-allowed; opacity: .55; transform: none; }
.btn--p:disabled { background: var(--accent-bg); border-color: var(--accent-bg); box-shadow: none; }
.btn--s:disabled { border-color: var(--line); color: var(--fg-muted); background: transparent; box-shadow: none; }
.btn:disabled .btn__arrow { transform: none; }

/* ---------- Sistema GD (servicios + metodo) ---------- */
.sistema-gd {
  position: relative;
  overflow: hidden;
  background: var(--bg-bone);
  color: var(--fg);
  padding: 0 0 86px;
}
.sistema-gd::after {
  content: "";
  position: absolute;
  inset: 240px 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(213,218,225,.16), transparent 44%);
  opacity: .28;
}
.sistema-gd__hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: var(--steel-900);
}
.sistema-gd__hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 3px;
  background: var(--copper-500);
}
.sistema-gd__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  filter: saturate(.92) contrast(1.05);
}
.sistema-gd__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(14,14,16,.96) 26%, rgba(14,14,16,.78) 62%, rgba(14,14,16,.52)),
    radial-gradient(90% 120% at 88% 6%, rgba(199,100,50,.28), transparent 56%);
}
.sistema-gd__hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 64ch;
  padding: 64px 0 76px;
}
.sistema-gd__title { color: #fff; }
.sistema-gd__title em { color: var(--copper-300); }
.sistema-gd__lede {
  max-width: 58ch;
  margin: 0;
  color: var(--steel-200);
  font-size: 16px;
  line-height: 1.58;
}
.sistema-gd__wrap {
  position: relative;
  z-index: 2;
  margin-top: 34px;
}
.sistema-gd__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 520px at 72% -16%, rgba(255,255,255,.035), transparent 52%),
    radial-gradient(520px 340px at 14% 36%, rgba(199,100,50,.045), transparent 64%),
    linear-gradient(180deg, var(--steel-900), var(--steel-950));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-3);
  box-shadow:
    0 34px 96px rgba(7,20,38,.26),
    inset 0 2px 0 rgba(199,100,50,.66),
    inset 0 1px 0 rgba(255,255,255,.045),
    inset 0 -80px 110px rgba(0,0,0,.36);
}
.sistema-gd__panel::before {
  content: "";
  position: absolute;
  inset: -32% -44% -38% -38%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 48% 34% at 22% 46%, rgba(242,189,156,.24) 0%, rgba(230,146,102,.17) 24%, rgba(199,100,50,.075) 48%, transparent 72%),
    radial-gradient(ellipse 38% 56% at 32% 52%, rgba(131,54,20,.18) 0%, rgba(131,54,20,.075) 42%, transparent 74%),
    linear-gradient(104deg, transparent 0 22%, rgba(230,146,102,.055) 34%, rgba(199,100,50,.13) 46%, rgba(230,146,102,.055) 58%, transparent 76% 100%);
  background-size: 178% 138%, 152% 184%, 228% 100%;
  background-position: 4% 46%, 0% 52%, 0% 50%;
  opacity: .66;
  mix-blend-mode: screen;
  filter: saturate(1.08);
  animation: gd-sheen 12s cubic-bezier(.38,0,.18,1) infinite alternate;
  will-change: background-position, opacity;
}
.sistema-gd__panel::after {
  content: "";
  position: absolute;
  inset: 3% 6% 8% 5%;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(105deg, transparent 0 28%, rgba(240,190,164,.16) 40%, rgba(199,100,50,.12) 52%, transparent 70% 100%);
  opacity: .42;
  mix-blend-mode: screen;
  transform: translate3d(-12%, 0, 0) skewX(-8deg);
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%, #000 70%, transparent);
  animation: gd-tail-sweep 6.8s cubic-bezier(.38,0,.18,1) infinite alternate;
  will-change: transform, opacity;
}
.sistema-gd__summary,
.sistema-gd__flow,
.sistema-gd__modules,
.sistema-gd__method {
  position: relative;
  z-index: 1;
}
.sistema-gd__summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 24px;
  align-items: end;
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.01)),
    rgba(0,0,0,.06);
}
.sistema-gd__summary .t-eyebrow,
.sistema-gd__summary-title,
.sistema-gd__summary-text {
  grid-column: 1;
}
.sistema-gd__summary-title {
  margin: 0;
  color: #fff;
  max-width: 30ch;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.06;
  font-weight: 650;
}
.sistema-gd__summary-text {
  max-width: 58ch;
  margin: 0;
  color: var(--steel-200);
  font-size: 14px;
  line-height: 1.55;
}
.sistema-gd__flow {
  --flow-duration: 4.4s;
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  height: 42px;
  margin: -4px 0 -2px;
}
.sistema-gd__flow-line {
  position: absolute;
  top: 50%;
  left: 8.333%;
  right: 8.333%;
  height: 2px;
  overflow: visible;
  background: linear-gradient(90deg, var(--copper-500), var(--copper-700));
  box-shadow: 0 0 10px rgba(196,93,44,.18);
  transform: translateY(-50%);
}
.sistema-gd__flow-line::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 0%;
  width: 18%;
  height: 52px;
  background:
    radial-gradient(circle at 86% 50%, rgba(242,189,156,.34) 0 8%, rgba(230,146,102,.16) 9% 28%, transparent 62%),
    linear-gradient(90deg, transparent, rgba(242,189,156,.18) 10%, rgba(230,146,102,.82) 46%, rgba(242,189,156,.30) 76%, transparent);
  filter: drop-shadow(0 0 16px rgba(230,146,102,.32));
  opacity: 0;
  transform: translate3d(-50%,0,0) scaleX(.92);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 78%, transparent);
  animation: sistemaFlowScan var(--flow-duration) linear infinite;
}
.sistema-gd__flow-dot {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: var(--steel-900);
  box-shadow: inset 0 0 12px rgba(255,255,255,.025);
  transform: translate(-50%, -50%);
}
.sistema-gd__flow-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper-500);
  box-shadow: 0 0 0 0 rgba(196,93,44,.5);
  animation: sistemaFlowCore var(--flow-duration) linear infinite;
}
.sistema-gd__flow-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(242,189,156,.34) 0 10%, rgba(230,146,102,.16) 11% 32%, transparent 64%);
  opacity: 0;
  transform: scale(.66);
  animation: sistemaFlowPulse var(--flow-duration) linear infinite;
}
.sistema-gd__flow-dot:nth-child(2) { left: 8.333%; }
.sistema-gd__flow-dot:nth-child(3) { left: 25%; }
.sistema-gd__flow-dot:nth-child(4) { left: 41.667%; }
.sistema-gd__flow-dot:nth-child(5) { left: 58.333%; }
.sistema-gd__flow-dot:nth-child(6) { left: 75%; }
.sistema-gd__flow-dot:nth-child(7) { left: 91.667%; }
.sistema-gd__flow-dot:nth-child(2)::before,
.sistema-gd__flow-dot:nth-child(2)::after { animation-delay: .18s; }
.sistema-gd__flow-dot:nth-child(3)::before,
.sistema-gd__flow-dot:nth-child(3)::after { animation-delay: .92s; }
.sistema-gd__flow-dot:nth-child(4)::before,
.sistema-gd__flow-dot:nth-child(4)::after { animation-delay: 1.66s; }
.sistema-gd__flow-dot:nth-child(5)::before,
.sistema-gd__flow-dot:nth-child(5)::after { animation-delay: 2.4s; }
.sistema-gd__flow-dot:nth-child(6)::before,
.sistema-gd__flow-dot:nth-child(6)::after { animation-delay: 3.14s; }
.sistema-gd__flow-dot:nth-child(7)::before,
.sistema-gd__flow-dot:nth-child(7)::after { animation-delay: 3.88s; }
.sistema-gd__regions {
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 0;
  align-self: end;
  padding-left: 0;
  list-style: none;
}
.sistema-gd__regions li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  color: var(--copper-300);
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid rgba(227,144,97,.32);
  border-radius: 999px;
  background: rgba(227,144,97,.08);
}
.sistema-gd__method {
  display: grid;
  grid-template-columns: minmax(210px, .3fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-2);
  background: rgba(0,0,0,.2);
}
.section-anchor {
  position: absolute;
  top: calc(var(--nav-h) * -1 - 18px);
  left: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.sistema-gd__method-copy {
  display: grid;
  gap: 8px;
}
.sistema-gd__method-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 650;
}
.sistema-gd__proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sistema-gd__proof li {
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045)),
    rgba(255,255,255,.035);
  transition: transform var(--mo-base) var(--mo-ease),
              border-color var(--mo-base) var(--mo-ease),
              box-shadow var(--mo-base) var(--mo-ease);
}
.sistema-gd__proof li:hover {
  transform: translateY(-2px);
  border-color: rgba(227,144,97,.45);
  box-shadow: 0 4px 14px rgba(0,0,0,.24), inset 0 2px 0 rgba(227,144,97,.40);
}
.sistema-gd__proof strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.15;
}
.sistema-gd__proof span {
  color: var(--steel-300);
  font-size: 12.5px;
  line-height: 1.34;
  transition: color var(--mo-base) var(--mo-ease);
}
.sistema-gd__proof li:hover span { color: var(--steel-200); }
.sistema-gd__cta {
  min-height: 46px;
  white-space: nowrap;
}
.sistema-gd__modules {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sistema-gd__modules li {
  min-width: 0;
}
.sistema-gd__module {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 138px;
  height: 100%;
  padding: 32px 16px 16px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    rgba(14,14,16,.16);
  transition:
    border-color var(--mo-base) var(--mo-ease),
    background var(--mo-base) var(--mo-ease),
    box-shadow var(--mo-base) var(--mo-ease);
}
/* Console rail through the module row: segment + status node.
   The card responds by state change, not movement (no hover lift). */
.sistema-gd__module::before {
  content: ""; position: absolute; top: 21px; left: 16px; right: -11px; height: 1px;
  background: rgba(255,255,255,.16);
  pointer-events: none;
  transition: background var(--mo-base) var(--mo-dry);
}
.sistema-gd__modules li:last-child .sistema-gd__module::before { right: 16px; }
.sistema-gd__module::after {
  content: ""; position: absolute; top: 18px; left: 16px;
  width: 7px; height: 7px; border-radius: var(--r-1);
  background: var(--steel-900);
  border: 1px solid rgba(227,144,97,.55);
  pointer-events: none;
  transition: background var(--mo-fast) var(--mo-dry), box-shadow var(--mo-fast) var(--mo-dry);
}
.sistema-gd__module:hover,
.sistema-gd__module:focus-visible {
  color: #fff;
  text-decoration: none;
  border-color: rgba(227,144,97,.72);
  background:
    radial-gradient(160px 80px at 88% 12%, rgba(227,144,97,.24), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.055));
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
}
.sistema-gd__module:hover::before,
.sistema-gd__module:focus-visible::before { background: rgba(227,144,97,.55); }
.sistema-gd__module:hover::after,
.sistema-gd__module:focus-visible::after { background: var(--copper-500); box-shadow: 0 0 0 3px rgba(196,93,44,.22); }
.sistema-gd__stage,
.sistema-gd__code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--copper-300);
  letter-spacing: .08em;
}
.sistema-gd__stage {
  min-height: 13px;
  color: var(--steel-300);
}
.sistema-gd__module strong {
  color: #fff;
  font-size: 14.5px;
  line-height: 1.14;
  font-weight: 650;
}
.sistema-gd__module span:last-child {
  color: var(--steel-200);
  font-size: 12.5px;
  line-height: 1.35;
  transition: color var(--mo-base) var(--mo-ease);
}
/* Hover: metadata gains contrast (code + description) */
.sistema-gd__module .sistema-gd__code { transition: color var(--mo-base) var(--mo-ease); }
.sistema-gd__module:hover .sistema-gd__code,
.sistema-gd__module:focus-visible .sistema-gd__code { color: var(--copper-200); }
.sistema-gd__module:hover span:last-child,
.sistema-gd__module:focus-visible span:last-child { color: var(--steel-100); }
@keyframes sistemaSmokeDrift {
  0% {
    opacity: .72;
    transform: translate3d(-10%, -2%, 0) rotate(-3deg) scale(1);
  }
  38% {
    opacity: .94;
    transform: translate3d(2%, 2%, 0) rotate(-1deg) scale(1.04);
  }
  72% {
    opacity: .82;
    transform: translate3d(14%, -1%, 0) rotate(.6deg) scale(1.08);
  }
  100% {
    opacity: .74;
    transform: translate3d(24%, 2%, 0) rotate(1.8deg) scale(1.12);
  }
}
@keyframes sistemaSmokeTrail {
  0% {
    opacity: .08;
    transform: translate3d(-58%, 7%, 0) rotate(-8deg) scaleX(.78);
  }
  16% {
    opacity: .76;
    transform: translate3d(-32%, 2%, 0) rotate(-7deg) scaleX(.96);
  }
  48% {
    opacity: .66;
    transform: translate3d(10%, -2%, 0) rotate(-4deg) scaleX(1.08);
  }
  76% {
    opacity: .42;
    transform: translate3d(42%, 3%, 0) rotate(-2deg) scaleX(1.18);
  }
  100% {
    opacity: .08;
    transform: translate3d(72%, 6%, 0) rotate(0deg) scaleX(1.28);
  }
}
@keyframes sistemaFlowScan {
  0% {
    opacity: 0;
    left: 0%;
    transform: translate3d(-50%,0,0) scaleX(.88);
  }
  4% {
    opacity: .88;
  }
  86% {
    opacity: .88;
    left: 100%;
    transform: translate3d(-50%,0,0) scaleX(1.04);
  }
  94% {
    opacity: 0;
    left: 100%;
    transform: translate3d(-50%,0,0) scaleX(.96);
  }
  100% {
    opacity: 0;
    left: 100%;
    transform: translate3d(-50%,0,0) scaleX(.96);
  }
}
@keyframes sistemaFlowCore {
  0% {
    box-shadow: 0 0 14px 2px rgba(196,93,44,.55);
  }
  9%, 100% {
    box-shadow: 0 0 0 0 rgba(196,93,44,0);
  }
}
@keyframes sistemaFlowPulse {
  0% {
    opacity: 1;
    transform: scale(.92);
  }
  10% {
    opacity: .16;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(.78);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sistema-gd__panel::before,
  .sistema-gd__panel::after,
  .sistema-gd__flow-line::before,
  .sistema-gd__flow-dot::before,
  .sistema-gd__flow-dot::after {
    animation: none;
  }
}
@media (max-width: 1120px) {
  .sistema-gd__flow { display: none; }
  .sistema-gd__modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sistema-gd__module { min-height: 126px; }
  /* 3-col layout: self-contained status strips, no cross-gap chaining */
  .sistema-gd__module::before { right: 16px; }
}
@media (max-width: 1060px) {
  .sistema-gd__summary { grid-template-columns: 1fr; }
  .sistema-gd__regions {
    grid-column: 1;
    grid-row: auto;
    margin-top: 2px;
  }
}
@media (max-width: 920px) {
  .sistema-gd__method { grid-template-columns: 1fr; align-items: stretch; }
  .sistema-gd__cta { justify-self: start; }
  .sistema-gd__proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .sistema-gd { padding-bottom: 64px; }
  .sistema-gd__hero { min-height: 280px; }
  .sistema-gd__hero-inner { padding: 48px 0 56px; }
  .sistema-gd__wrap { margin-top: 22px; }
  .sistema-gd__panel { padding: 14px; gap: 14px; }
  .sistema-gd__summary { padding: 17px; }
  .sistema-gd__modules,
  .sistema-gd__proof { grid-template-columns: 1fr; }
  .sistema-gd__module { min-height: 0; }
  .sistema-gd__proof li { min-height: 0; }
}

/* ---------- Lugar ---------- */
.lugar { background: var(--bg); padding: 64px 0; border-bottom: var(--b-hairline); }
.lugar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
  gap: clamp(48px, 5vw, 76px);
  align-items: start;
}
.lugar__content { display: flex; flex-direction: column; gap: 22px; max-width: 720px; padding-top: 4px; }
.lugar__media {
  margin: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 62% 38%;
  gap: 0;
  padding: 10px;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  background: var(--surface-2);
  box-shadow: var(--card-shadow);
}
.lugar__media::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  z-index: 4;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent-decor), rgba(199,100,50,.48), transparent);
}
.lugar__media::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(10px + 38%);
  z-index: 4;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(199,100,50,.36), transparent);
}
.lugar__img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  filter: saturate(.9) contrast(1.04);
  box-shadow: none;
}
.lugar__img--main {
  grid-column: 1 / -1;
  grid-row: 1;
  object-position: 50% 58%;
  border-bottom: 1px solid var(--hairline);
  border-radius: calc(var(--r-3) - 5px) calc(var(--r-3) - 5px) 0 0;
}
.lugar__img--site {
  grid-column: 1;
  grid-row: 2;
  object-position: 50% 50%;
  border-right: 1px solid var(--hairline);
  border-radius: 0 0 0 calc(var(--r-3) - 5px);
}
.lugar__img--port {
  grid-column: 2;
  grid-row: 2;
  object-position: 50% 50%;
  border-radius: 0 0 calc(var(--r-3) - 5px) 0;
  filter: saturate(.96) contrast(1.08);
}
.lugar__head { display: flex; flex-direction: column; gap: 14px; }
.lugar__h2 {
  font-size: clamp(36px, 3.55vw, 52px);
  line-height: 1;
  letter-spacing: -.035em;
  margin: 0;
  color: var(--fg);
  font-weight: 650;
  max-width: 20ch;
}
.lugar__h2 em { font-style: normal; color: var(--accent-text); display: block; margin-top: 2px; }
.lugar__body { display: flex; flex-direction: column; gap: 14px; }
.lugar__p { font-size: clamp(16px, 1.16vw, 18px); line-height: 1.62; color: var(--fg-muted); margin: 0; max-width: 68ch; }
.lugar__p:first-child { color: var(--fg); }
.lugar__p strong { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) {
  .lugar__inner { grid-template-columns: 1fr; gap: 24px; }
  .lugar__media { width: min(100%, 560px); justify-self: start; }
}
@media (max-width: 560px) {
  .sistema-gd__flow { width: calc(100% - 8px); }
  .lugar__media {
    grid-template-rows: 62% 38%;
    padding: 8px;
  }
  .lugar__h2 { max-width: 16ch; }
  .lugar__media::before { left: 8px; right: 8px; top: 8px; }
  .lugar__media::after { left: 8px; right: 8px; bottom: calc(8px + 38%); }
}

/* ---------- Contacto (dark surface + form) ---------- */
.contacto { position: relative; overflow: hidden; background: var(--bg-dark); color: var(--fg-on-dark); padding: 96px 0 80px; }
.contacto > .wrap { position: relative; z-index: 1; }
.contacto .t-eyebrow { color: var(--copper-300); }
.contacto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contacto__left { display: flex; flex-direction: column; gap: 24px; }
.contacto__h2 { font-family: var(--font-sans); font-weight: 600; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.025em; color: #fff; margin: 0; max-width: 18ch; }
.contacto__h2 em { font-style: normal; color: var(--copper-300); }
.contacto__lede { font-size: 15.5px; line-height: 1.6; color: var(--steel-200); margin: 0; max-width: 48ch; }
.contacto__meta { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.10); }
.contacto__meta-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.contacto__meta-row:last-child { border-bottom: none; }
.contacto__meta-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-300); }
.contacto__meta-value { font-size: 15px; color: #fff; }
.contacto__meta-value a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; text-decoration: none; }
.contacto__meta-value a:hover { color: var(--copper-300); text-decoration: underline; }
.contacto__form { background: var(--surface-card); color: var(--fg); border: 1px solid var(--hairline); border-radius: var(--r-3); padding: 32px 28px 28px; position: relative; overflow: hidden; box-shadow: var(--card-shadow); }
.contacto__form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--copper-500); }
.contacto__form-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.contacto__form-h { font-family: var(--font-sans); font-size: 20px; font-weight: 600; color: var(--fg); margin: 0; letter-spacing: -.01em; }
.contacto__form-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); display: inline-flex; align-items: center; gap: 6px; }
.contacto__form-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--steel-400); }
.contacto__form-tag[data-state="typing"]::before,
.contacto__form-tag[data-state="submitting"]::before { background: var(--signal-warn); }
.contacto__form-tag[data-state="success"]::before { background: var(--signal-success); }
.contacto__form-tag[data-state="error"]::before { background: var(--signal-error); }
.contacto__form-tag[data-state="success"] { color: var(--signal-success-text); }
.contacto__form-tag[data-state="error"] { color: var(--signal-error-text); }
@media (prefers-reduced-motion: no-preference) {
  .contacto__form-tag[data-state="submitting"]::before { animation: chip-pulse 1.1s var(--mo-ease) infinite; }
}
@keyframes chip-pulse { 50% { opacity: .35; } }
/* Submitting scan — a glint sweeps the copper top bar of the card */
@media (prefers-reduced-motion: no-preference) {
  .contacto__form.is-submitting::after {
    content: ""; position: absolute; top: 0; left: 0; z-index: 1;
    width: 30%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--copper-200), transparent);
    animation: form-scan 1.1s var(--mo-ease) infinite;
  }
}
@keyframes form-scan {
  from { transform: translateX(-100%); }
  to   { transform: translateX(433%); }
}
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field-label { font-size: 13px; font-weight: 500; color: var(--fg-muted); display: flex; justify-content: space-between; }
.field-label .req { color: var(--accent-text); margin-left: 2px; }
.field-label .opt { color: var(--fg-faint); font-weight: 400; font-size: 12px; }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-sans); font-size: 14.5px; color: var(--fg); background: var(--surface-card);
  border: 1px solid var(--line); border-radius: var(--r-2); padding: 11px 13px; min-height: 44px;
  transition: border-color var(--mo-base) var(--mo-ease), box-shadow var(--mo-base) var(--mo-ease);
}
.input::placeholder, .textarea::placeholder { color: var(--fg-faint); }
.select option { background: #fff; color: #1C1C1E; }
.textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--steel-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--copper-700); box-shadow: var(--focus-ring); }
.field-label { transition: color var(--mo-base) var(--mo-ease); }
.field:focus-within .field-label { color: var(--accent-text); }
.field-helper, .field-counter { font-size: 12px; line-height: 1.35; color: var(--fg-muted); }
.field-counter { font-family: var(--font-mono); justify-self: end; }
.field-counter[data-state="warn"] { color: var(--signal-warn); }
.field-counter[data-state="full"] { color: var(--signal-error); }
/* Per-field validation states */
.field-error {
  align-items: baseline; gap: 8px;
  font-size: 12px; line-height: 1.4; color: var(--signal-error-text);
}
.field-error:not([hidden]) { display: flex; }
.field-error::before { content: ""; flex: 0 0 8px; height: 2px; background: var(--signal-error); transform: translateY(-3px); }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--signal-error); }
.field--error .input:focus, .field--error .select:focus, .field--error .textarea:focus {
  border-color: var(--signal-error); box-shadow: 0 0 0 3px var(--signal-error-ring);
}
.field--error .field-label, .field--error:focus-within .field-label { color: var(--signal-error-text); }
.field--error .cb { border-color: var(--signal-error); }
.field--error .cb-row { color: var(--signal-error-text); }
.field--ok .input, .field--ok .textarea { border-color: var(--signal-success-border); }
@media (prefers-reduced-motion: no-preference) {
  .field-error:not([hidden]) { animation: field-error-in var(--mo-fast) var(--mo-dry); }
}
@keyframes field-error-in { from { opacity: 0; transform: translateY(-2px); } }
.cb-row { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: 13px; line-height: 1.5; color: var(--fg-muted); cursor: pointer; padding-top: 4px; }
.cb {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex-shrink: 0;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-1);
  background: var(--surface-card); margin-top: 0; position: relative; cursor: pointer;
  transition: background var(--mo-fast) var(--mo-dry), border-color var(--mo-fast) var(--mo-dry), box-shadow var(--mo-fast) var(--mo-dry);
}
.cb-row:hover .cb { border-color: var(--steel-400); }
.cb:focus-visible { box-shadow: var(--focus-ring); }
.cb:checked { background: var(--accent-bg); border-color: var(--accent-bg); }
.cb:checked::after { content: ""; position: absolute; top: 3px; left: 7px; width: 5px; height: 11px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .cb:checked::after { animation: cb-check-in var(--mo-fast) var(--mo-dry); }
}
@keyframes cb-check-in { from { opacity: 0; transform: rotate(45deg) scale(.6); } }
.link--accent { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.form-status { min-height: 0; font-size: 13px; line-height: 1.45; }
.form-status--success, .form-status--error {
  border-radius: var(--r-2); padding: 12px 13px; border: 1px solid transparent;
}
.form-status--success { color: var(--signal-success); background: var(--signal-success-bg); border-color: rgba(14,138,67,.25); }
.form-status--error { color: var(--signal-error); background: var(--signal-error-bg); border-color: rgba(209,43,30,.24); }
.form-status-fallback { margin-top: 6px; color: var(--fg-muted); }
.form-status-fallback a { color: var(--accent-text); }
.form-foot { font-size: 12.5px; color: var(--fg-muted); line-height: 1.5; margin: 8px 0 0; padding-top: 14px; border-top: var(--b-hairline); }
.form-foot strong { color: var(--fg); font-weight: 600; }

/* ---------- Post-submit confirmation ---------- */
.contacto__form--sent .contacto__form-head,
.contacto__form--sent .form-grid,
.contacto__form--sent .form-foot { display: none; }
.form-confirm { display: flex; flex-direction: column; gap: 16px; outline: none; }
.form-confirm[hidden] { display: none; }
.form-confirm__kicker {
  margin: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); display: inline-flex; align-items: center; gap: 10px;
}
.form-confirm__kicker::before { content: ""; width: 24px; height: 2px; background: var(--accent-decor); }
.form-confirm__title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.015em; color: var(--fg); }
.form-confirm__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }
.form-confirm__text strong { color: var(--fg); font-weight: 600; }
.form-confirm__steps { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; }
.form-confirm__step { display: grid; grid-template-columns: 26px 1fr; gap: 2px 12px; padding: 13px 0; border-top: var(--b-hairline); }
.form-confirm__step-code { grid-row: 1 / 3; padding-top: 3px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--fg-faint); }
.form-confirm__step strong { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fg); }
.form-confirm__step strong::after { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--line-strong); }
.form-confirm__step span:last-child { font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); }
.form-confirm__step--done .form-confirm__step-code { color: var(--accent-text); }
.form-confirm__step--done strong::after { width: 8px; height: 8px; border: 0; background: var(--signal-success-text); }
.form-confirm__again { align-self: flex-start; margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .form-confirm { opacity: 0; transition: opacity var(--mo-base) var(--mo-ease); }
  .form-confirm.is-live { opacity: 1; }
  .form-confirm__step { opacity: 0; transform: translateY(8px); transition: opacity var(--mo-slow) var(--mo-dry), transform var(--mo-slow) var(--mo-dry); }
  .form-confirm.is-live .form-confirm__step { opacity: 1; transform: none; }
  .form-confirm.is-live .form-confirm__step:nth-child(1) { transition-delay: 80ms; }
  .form-confirm.is-live .form-confirm__step:nth-child(2) { transition-delay: 260ms; }
  .form-confirm.is-live .form-confirm__step:nth-child(3) { transition-delay: 440ms; }
}
@media (max-width: 900px) { .contacto__grid { grid-template-columns: 1fr; gap: 36px; } .contacto { padding: 64px 0; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.gd-foot { position: relative; background: var(--steel-950); color: var(--fg-on-dark); padding: 56px 0 28px; }
/* Micro-background: dot matrix, faded at both edges */
.gd-foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 78%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 78%, transparent);
}
.gd-foot > .wrap { position: relative; z-index: 1; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 56px; margin-bottom: 40px; }
.foot__brand { display: flex; flex-direction: column; gap: 14px; }
.foot__brand .brand__gd, .foot__brand .brand__name { color: #fff; }
.foot__brand p { color: var(--fg-on-dark-mute); font-size: 14px; line-height: 1.55; margin: 0; max-width: 34ch; }
.foot__sectors { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--steel-400); text-transform: uppercase; }
.foot__col h4, .foot__col h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-300); margin: 0 0 16px; font-weight: 500; }
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot__col a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; text-decoration: none; font-size: 14px; }
.foot__col a:hover { color: var(--copper-300); text-decoration: underline; text-underline-offset: 3px; }
.foot__col li.muted { color: var(--steel-300); font-size: 13px; }
.foot__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line-on-dark); font-family: var(--font-mono); font-size: 11.5px; color: var(--steel-400); letter-spacing: .06em; }
.foot__bar a { display: inline-flex; align-items: center; min-height: 40px; color: var(--steel-300); text-decoration: none; }
.foot__bar a:hover { color: var(--copper-300); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Mobile drawer ---------- */
.gd-drawer-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(14,14,16,.5); opacity: 0; transition: opacity var(--mo-slow); }
.gd-drawer-backdrop[hidden] { display: none; }
.gd-drawer-backdrop.is-open { opacity: 1; }
.gd-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: 320px; max-width: 86vw;
  background: var(--bg); display: flex; flex-direction: column;
  visibility: hidden;
  transform: translateX(100%); transition: transform var(--mo-slow) var(--mo-ease-out), visibility 0s linear var(--mo-slow);
  box-shadow: -8px 0 32px rgba(0,0,0,.14);
}
.gd-drawer.is-open { visibility: visible; transform: translateX(0); transition-delay: 0s; }
.gd-drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding: 0 20px; border-bottom: var(--b-hairline); }
.gd-drawer__close { width: 44px; min-height: 44px; padding: 0; }
.gd-drawer__body { padding: 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gd-drawer__link { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 16px; font-size: 17px; font-weight: 600; color: var(--fg); text-decoration: none; border-radius: var(--r-2); border: 1px solid transparent; }
.gd-drawer__link:hover { border-color: var(--line); background: var(--bg-bone); text-decoration: none; }
.gd-drawer__link.is-active { border-color: var(--copper-500); background: var(--copper-050); }
.gd-drawer__link span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); letter-spacing: .14em; }
.gd-drawer__foot { padding: 20px; border-top: var(--b-hairline); display: flex; flex-direction: column; gap: 10px; }
.gd-drawer__foot a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; color: var(--fg); text-decoration: none; font-weight: 500; }
.gd-drawer__cta { margin-top: 8px; min-height: 44px; }
.gd-drawer__theme {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-top: var(--b-hairline);
}
.gd-drawer__theme-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint);
}

/* =========================================================
   HOME — clean background in BOTH themes: no engineering grid,
   no SVG vein, no animated flow line. Every colour flips via the
   theme tokens (colors.css) referenced by the base rules above.
   ========================================================= */
/* ---------- Auxiliary pages (privacidad / 404) — same design system ---------- */
.aux-page { background: var(--bg); color: var(--fg); min-height: 100vh; display: flex; flex-direction: column; }
.aux-page .topbar { position: sticky; }
.aux-topnav { display: flex; align-items: center; gap: 8px; }
.aux-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-2); color: var(--fg); font-size: 14px; font-weight: 500; text-decoration: none; transition: color var(--mo-base) var(--mo-ease), background var(--mo-base) var(--mo-ease); }
.aux-back:hover { color: var(--accent-text); background: var(--accent-soft); }
.aux-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter, 24px) 72px; }
.aux-main .aux-kicker { margin: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); display: inline-flex; align-items: center; gap: 10px; max-width: none; }
.aux-kicker::before { content: ""; width: 24px; height: 2px; background: var(--accent-decor); }
.aux-h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; color: var(--fg); margin: 14px 0 8px; text-wrap: balance; }
.aux-main .aux-meta { font-size: 14px; color: var(--fg-muted); margin: 0 0 26px; }
.aux-meta strong { color: var(--fg); font-weight: 600; }
.aux-rule { height: 2px; border: 0; margin: 0 0 30px; background: linear-gradient(90deg, var(--accent-decor) 0 32%, var(--hairline) 32%); }
.aux-main h2 { font-size: 19px; font-weight: 600; color: var(--fg); letter-spacing: -.01em; margin: 32px 0 10px; }
.aux-main p { font-size: 15.5px; line-height: 1.66; color: var(--fg-muted); margin: 0 0 12px; max-width: 64ch; }
.aux-main p strong { color: var(--fg); font-weight: 600; }
.aux-main ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 9px; }
.aux-main li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.6; color: var(--fg-muted); }
.aux-main li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: var(--accent-decor); }
.aux-main a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.aux-main a.btn { color: #fff; text-decoration: none; }
.aux-foot { border-top: 1px solid var(--hairline); padding: 22px var(--gutter, 24px); text-align: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--fg-muted); }
.aux-foot a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.aux-foot a:hover { color: var(--fg); }

.aux-404 { flex: 1; min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter, 24px); position: relative; }
.aux-404 .aux-404__num { font-family: var(--font-sans); font-weight: 700; font-size: clamp(110px, 22vw, 200px); line-height: .9; letter-spacing: -.04em; color: var(--accent-text); margin: 0 0 6px; max-width: none; }
.aux-404 .aux-404__text { max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--fg-muted); margin: 0 auto 28px; }
.aux-404__text a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.hero::before { display: none; }            /* remove the engineering grid */
/* Animated copper "estela" behind the hero — matches the service atmosphere */
.hero::after {
  content: ""; display: block;
  position: absolute; inset: -22% -26%; z-index: 0; pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(ellipse 44% 40% at 82% 14%, rgba(242,189,156,.20), rgba(199,100,50,.10) 46%, transparent 72%),
    radial-gradient(ellipse 40% 52% at 16% 60%, rgba(199,100,50,.10), transparent 70%),
    linear-gradient(104deg, transparent 0 26%, rgba(230,146,102,.06) 40%, rgba(199,100,50,.12) 50%, rgba(230,146,102,.06) 60%, transparent 74%);
  background-size: 160% 150%, 150% 160%, 240% 100%;
  background-position: 82% 14%, 16% 60%, 0% 50%;
  mix-blend-mode: screen; opacity: .7; filter: saturate(1.05);
  will-change: background-position, opacity;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: home-sheen 19s cubic-bezier(.38,0,.18,1) infinite alternate; }
}
@keyframes home-sheen {
  0%   { background-position: 82% 14%, 16% 60%, 0% 50%;  opacity: .5; }
  50%  { background-position: 66% 18%, 28% 56%, 52% 50%; opacity: .8; }
  100% { background-position: 88% 12%, 12% 64%, 100% 50%; opacity: .62; }
}
.sistema-gd::after { display: none; }
.sistema-gd__flow { display: none; }
/* sistema-gd panel stays a dark "control surface" in both themes */
.sistema-gd__title em, .sistema-gd__code, .sistema-gd__stage,
.sistema-gd__regions li { color: var(--copper-300); }
