/* Earth-IA Racing · Software a medida
   Brand F1 / Racing Edition */

:root {
  /* F1 Racing Edition palette */
  --r-navy:     #002B5C;
  --r-navy-2:   #04305f;
  --r-silver:   #C6CCD2;
  --r-silver-2: #8A929B;
  --r-carbon:   #0B0F14;
  --r-carbon-2: #131820;
  --r-carbon-3: #1c222b;
  --r-electric: #00AEEF;
  --r-electric-glow: rgba(0, 174, 239, 0.55);
  --r-white:    #F5F7FA;
  --r-paper:    #ffffff;
  --r-ink:      #0e1116;
  --r-ink-2:    #3a4350;
  --r-line:     rgba(245, 247, 250, 0.10);
  --r-line-strong: rgba(245, 247, 250, 0.18);
  --r-line-light: #e6e9ee;

  /* Type */
  --f-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
  --f-tech:    'Orbitron', 'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--r-carbon);
  color: var(--r-white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Utility */
.eyebrow {
  font-family: var(--f-tech);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--r-electric);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--r-electric);
  box-shadow: 0 0 0 0 var(--r-electric-glow);
  animation: tele-pulse 1.6s var(--ease-std) infinite;
}
@keyframes tele-pulse {
  0%   { box-shadow: 0 0 0 0 var(--r-electric-glow); }
  70%  { box-shadow: 0 0 0 10px rgba(0,174,239,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,174,239,0); }
}

/* ====================== HEADER ====================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--r-line);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.brand .word { white-space: nowrap; }
.brand .mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--r-white);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.brand .mark img { width: 22px; height: 22px; object-fit: contain; }
.brand .word {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--r-white);
}
.brand .tag {
  font-family: var(--f-tech);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--r-electric);
  padding: 3px 8px;
  border: 1px solid rgba(0,174,239,0.35);
  border-radius: 4px;
  margin-left: 4px;
}

.nav-links {
  display: flex; gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 247, 250, 0.78);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: color 140ms var(--ease-out);
}
.nav-links a:hover { color: var(--r-white); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--r-electric);
  transition: width 200ms var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ====================== BUTTONS ====================== */

.btn {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: 0.01em;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out),
              border-color 160ms var(--ease-out), transform 80ms ease-out,
              box-shadow 160ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--r-electric);
  color: var(--r-carbon);
  box-shadow: 0 8px 28px rgba(0,174,239,0.28), inset 0 -2px 0 rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: #1ec0ff;
  box-shadow: 0 12px 36px rgba(0,174,239,0.40), inset 0 -2px 0 rgba(0,0,0,0.15);
}
.btn-secondary {
  background: transparent;
  color: var(--r-white);
  border-color: rgba(245,247,250,0.30);
}
.btn-secondary:hover {
  background: rgba(245,247,250,0.06);
  border-color: rgba(245,247,250,0.55);
}
.btn-light {
  background: var(--r-white);
  color: var(--r-carbon);
}
.btn-light:hover { background: var(--r-silver); }
.btn .arr { transition: transform 160ms var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }

/* ====================== HERO ====================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background: var(--r-carbon);
  isolation: isolate;
}
.hero .car-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/car-07.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: 0;
}
.hero .car-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--r-carbon) 0%, rgba(11,15,20,0.92) 30%, rgba(11,15,20,0.4) 65%, transparent 100%),
    linear-gradient(180deg, rgba(11,15,20,0.5) 0%, rgba(11,15,20,0.2) 50%, rgba(11,15,20,0.7) 100%);
}
.hero .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,247,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,247,250,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 30% 50%, black 30%, transparent 80%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 96px 0 64px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 760px;
}

.hero-copy {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0;
  text-transform: uppercase;
  color: var(--r-white);
}
.hero h1 .em {
  background: linear-gradient(120deg, var(--r-electric) 0%, #6fe0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .stripe {
  display: block;
  position: relative;
}
.hero .lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: rgba(245,247,250,0.78);
  max-width: 560px;
  margin: 0;
}
.hero .actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}

/* Hero telemetry HUD */
.hud {
  position: absolute;
  right: 28px;
  top: 110px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
  font-family: var(--f-tech);
}
.hud .chip {
  background: rgba(11,15,20,0.66);
  border: 1px solid var(--r-line-strong);
  border-radius: 6px;
  padding: 10px 14px;
  min-width: 130px;
  backdrop-filter: blur(8px);
}
.hud .chip .k {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(245,247,250,0.55);
  text-transform: uppercase;
}
.hud .chip .v {
  font-size: 22px;
  font-weight: 800;
  color: var(--r-white);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.hud .chip .v .accent { color: var(--r-electric); }

/* Hero number 07 */
.hero-07 {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  font-family: var(--f-tech);
  font-weight: 900;
  font-size: clamp(120px, 14vw, 220px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245,247,250,0.18);
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}

/* Hero stats strip */
.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--r-line);
  border-bottom: 1px solid var(--r-line);
  background: rgba(11,15,20,0.6);
  backdrop-filter: blur(10px);
}
.hero-stats .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hero-stats .stat {
  padding: 24px 28px;
  border-right: 1px solid var(--r-line);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .stat .v {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--r-white);
  display: flex; align-items: baseline; gap: 4px;
}
.hero-stats .stat .v .unit {
  font-family: var(--f-tech);
  font-size: 14px;
  font-weight: 700;
  color: var(--r-electric);
}
.hero-stats .stat .k {
  font-family: var(--f-tech);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,247,250,0.55);
}

/* ====================== SECTION GENERIC ====================== */

.section {
  padding: 120px 0;
  position: relative;
}
.section--light {
  background: var(--r-white);
  color: var(--r-ink);
}
.section--carbon {
  background: var(--r-carbon);
  color: var(--r-white);
}
.section--navy {
  background: linear-gradient(180deg, var(--r-navy) 0%, #001a3a 100%);
  color: var(--r-white);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 64px;
}
.section-head .left { max-width: 720px; }
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 16px 0 0 0;
}
.section-head .sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--r-ink-2);
  margin: 18px 0 0 0;
  max-width: 580px;
}
.section--carbon .section-head .sub,
.section--navy .section-head .sub { color: rgba(245,247,250,0.7); }
/* Proceso is dark-carbon but not .section--carbon — keep its sub legible */
.process .section-head .sub { color: rgba(245,247,250,0.72); }

.section-head .right {
  font-family: var(--f-tech);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--r-silver-2);
  padding-bottom: 8px;
}
.section--carbon .section-head .right { color: rgba(245,247,250,0.45); }

/* ====================== TRUST STRIP ====================== */

.trust-strip {
  background: var(--r-carbon-2);
  border-top: 1px solid var(--r-line);
  border-bottom: 1px solid var(--r-line);
  padding: 26px 0;
  overflow: hidden;
}
.trust-strip .marquee {
  position: relative;
  overflow: hidden;
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.trust-strip .marquee-track {
  display: flex;
  width: max-content;
  animation: trust-marquee 80s linear infinite;
}
/* each group is one full set; -50% shifts exactly two groups → seamless loop */
.trust-strip .marquee-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  flex: 0 0 auto;
}
.trust-strip .marquee:hover .marquee-track { animation-play-state: paused; }
.trust-strip .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  transition: opacity 200ms var(--ease-out);
}
.trust-strip .brand-logo:hover { opacity: 1; }
.trust-strip .brand-logo img {
  height: 24px;
  width: auto;
  display: block;
  /* force clean white silhouette regardless of each SVG's own fills/gradients */
  filter: brightness(0) invert(1);
}
.trust-strip .brand-logo .bn {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--r-white);
  white-space: nowrap;
}
@keyframes trust-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-strip .marquee {
    -webkit-mask-image: none; mask-image: none;
  }
  .trust-strip .marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .trust-strip .marquee-group:nth-child(n+2) { display: none; }
  .trust-strip .marquee-group { flex-wrap: wrap; justify-content: center; gap: 36px; padding-right: 0; }
}

/* ====================== SERVICES ====================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc {
  background: var(--r-paper);
  border: 1px solid var(--r-line-light);
  border-radius: 14px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 200ms;
}
.svc:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 43, 92, 0.10);
  border-color: rgba(0,43,92,0.18);
}
.svc::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--r-electric) 0%, var(--r-navy) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.svc:hover::after { transform: scaleX(1); }

.svc .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.svc .ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--r-carbon);
  color: var(--r-electric);
  display: flex; align-items: center; justify-content: center;
}
.svc .ico svg { width: 22px; height: 22px; }
.svc .num {
  font-family: var(--f-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--r-silver-2);
}
.svc h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--r-navy);
  margin: 0 0 12px 0;
}
.svc p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--r-ink-2);
  margin: 0 0 20px 0;
}
.svc ul {
  list-style: none;
  padding: 0; margin: 0 0 24px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.svc ul li {
  font-size: 13px;
  color: var(--r-ink-2);
  padding-left: 18px;
  position: relative;
}
.svc ul li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 1.5px;
  background: var(--r-electric);
}
.svc .more {
  margin-top: auto;
  font-family: var(--f-tech);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--r-navy);
  display: inline-flex; align-items: center; gap: 8px;
}
.svc .more .arr { transition: transform 160ms var(--ease-out); }
.svc:hover .more .arr { transform: translateX(4px); }

/* ====================== PROCESS / ESCUDERIA ====================== */

.process {
  background: var(--r-carbon);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(0,174,239,0.10), transparent 60%),
    radial-gradient(50% 50% at 10% 80%, rgba(0,43,92,0.30), transparent 60%);
  pointer-events: none;
}

.lap-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--r-line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(11,15,20,0.6);
}
.lap {
  padding: 36px 32px 32px;
  border-right: 1px solid var(--r-line-strong);
  position: relative;
  transition: background 240ms var(--ease-out);
}
.lap:last-child { border-right: 0; }
.lap:hover { background: rgba(0,174,239,0.04); }

.lap .lap-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.lap .n {
  font-family: var(--f-tech);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--r-electric);
}
.lap .phase {
  font-family: var(--f-tech);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--r-silver-2);
  padding: 4px 8px;
  border: 1px solid var(--r-line-strong);
  border-radius: 4px;
}
.lap h4 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0 0 10px 0;
  color: var(--r-white);
}
.lap .label {
  font-family: var(--f-tech);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--r-electric);
  margin-bottom: 14px;
}
.lap p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245,247,250,0.7);
  margin: 0 0 20px 0;
}
.lap .lap-time {
  font-family: var(--f-tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--r-silver-2);
  padding-top: 14px;
  border-top: 1px dashed var(--r-line-strong);
  display: flex; justify-content: space-between;
}
.lap .lap-time .t { color: var(--r-white); font-weight: 700; }

/* checkered finish band */
.finish {
  margin-top: 12px;
  height: 18px;
  background-image:
    linear-gradient(45deg, var(--r-white) 25%, transparent 25%),
    linear-gradient(-45deg, var(--r-white) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--r-white) 75%),
    linear-gradient(-45deg, transparent 75%, var(--r-white) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: var(--r-carbon);
  opacity: 0.85;
  border-radius: 4px;
}

/* ====================== STACK ====================== */

.stack {
  background: var(--r-white);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stack-card {
  background: var(--r-paper);
  border: 1px solid var(--r-line-light);
  border-radius: 14px;
  padding: 24px;
}
.stack-card .h {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.stack-card .h .blob {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--r-electric);
  box-shadow: 0 0 8px var(--r-electric);
}
.stack-card .h .t {
  font-family: var(--f-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--r-navy);
}
.stack-card ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.stack-card li {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--r-ink);
  padding: 6px 12px;
  background: var(--r-white);
  border: 1px solid var(--r-line-light);
  border-radius: 999px;
}

/* ====================== TELEMETRY / METRICS ====================== */

.telemetry {
  background: var(--r-navy);
  color: var(--r-white);
  position: relative;
  overflow: hidden;
}
.telemetry::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 20% 30%, rgba(0,174,239,0.20), transparent 70%),
    radial-gradient(50% 50% at 80% 70%, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}
.tele-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.tele-row h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 16px 0 24px;
}
.tele-row p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(245,247,250,0.78);
  margin: 0;
  max-width: 520px;
}

.dashboard {
  background: rgba(11, 15, 20, 0.55);
  border: 1px solid var(--r-line-strong);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}
.dashboard .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--r-line);
  margin-bottom: 20px;
}
.dashboard .bar .t {
  font-family: var(--f-tech);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--r-electric);
}
.dashboard .bar .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-tech);
  font-size: 10px; letter-spacing: 0.18em;
  color: rgba(245,247,250,0.6);
  text-transform: uppercase;
}
.dashboard .bar .live .d {
  width: 6px; height: 6px; border-radius: 999px;
  background: #20e07a;
  box-shadow: 0 0 8px #20e07a;
  animation: tele-blink 1.4s ease-in-out infinite;
}
@keyframes tele-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.dash-stat {
  background: rgba(245,247,250,0.04);
  border: 1px solid var(--r-line);
  border-radius: 10px;
  padding: 14px 16px;
}
.dash-stat .k {
  font-family: var(--f-tech);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,247,250,0.55);
}
.dash-stat .v {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--r-white);
  margin-top: 4px;
  display: flex; align-items: baseline; gap: 4px;
}
.dash-stat .v .u {
  font-family: var(--f-tech);
  font-size: 13px;
  color: var(--r-electric);
  font-weight: 700;
}
.dash-stat .delta {
  font-family: var(--f-tech);
  font-size: 11px;
  color: #20e07a;
  margin-top: 4px;
  letter-spacing: 0.08em;
}

/* sparkline */
.spark {
  height: 80px;
  border-radius: 10px;
  border: 1px solid var(--r-line);
  background:
    linear-gradient(180deg, rgba(0,174,239,0.10) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.spark svg { width: 100%; height: 100%; }

/* ====================== QUOTE ====================== */

.quote-box {
  background: var(--r-carbon);
  position: relative;
  overflow: hidden;
}
.quote-box::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(0,174,239,0.12), transparent 60%),
    radial-gradient(40% 40% at 80% 70%, rgba(0,43,92,0.30), transparent 60%);
}
.quote-inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.quote-inner .qtag {
  font-family: var(--f-tech);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--r-electric);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
}
.quote-inner blockquote {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 36px 0;
  color: var(--r-white);
  text-wrap: pretty;
}
.quote-inner blockquote .hl { color: var(--r-electric); }
.quote-inner .cite {
  display: inline-flex; align-items: center; gap: 16px;
}
.quote-inner .cite .av {
  width: 56px; height: 56px; border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid var(--r-line-strong);
}
.quote-inner .cite .who {
  text-align: left;
  font-family: var(--f-body);
}
.quote-inner .cite .who .n {
  font-weight: 700;
  font-size: 15px;
  color: var(--r-white);
}
.quote-inner .cite .who .r {
  font-family: var(--f-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,247,250,0.55);
  margin-top: 2px;
}

/* ====================== CTA / CONTACT ====================== */

.cta {
  background: var(--r-white);
  color: var(--r-ink);
}
.cta .panel {
  background: var(--r-carbon);
  color: var(--r-white);
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,43,92,0.18);
}
.cta .panel--solo {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.cta-actions {
  display: flex; gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.cta .panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 90% 20%, rgba(0,174,239,0.20), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(0,43,92,0.40), transparent 60%);
  pointer-events: none;
}
.cta .panel .left, .cta .panel .right { position: relative; z-index: 1; }
.cta h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 18px 0 18px;
  color: var(--r-white);
}
.cta h2 .em { color: var(--r-electric); }
.cta .lead {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245,247,250,0.75);
  margin: 0 0 28px 0;
}

.contact-rows {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 24px;
}
.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: rgba(245,247,250,0.04);
  border: 1px solid var(--r-line);
  border-radius: 10px;
  font-family: var(--f-tech);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(245,247,250,0.85);
}
.contact-row .ic {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(0,174,239,0.14);
  color: var(--r-electric);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .ic svg { width: 16px; height: 16px; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form .field.full { grid-column: span 2; }
.form label {
  font-family: var(--f-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,247,250,0.55);
}
.form input, .form textarea, .form select {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--r-white);
  padding: 14px 14px;
  border-radius: 8px;
  border: 1px solid var(--r-line-strong);
  background: rgba(245,247,250,0.04);
  outline: none;
  transition: border-color 160ms, background 160ms;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--r-electric);
  background: rgba(0,174,239,0.06);
}
.form textarea { resize: vertical; min-height: 110px; }
.form .submit { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.form .submit .note {
  font-family: var(--f-tech);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(245,247,250,0.45);
  text-transform: uppercase;
}

/* ====================== FOOTER ====================== */

.site-footer {
  background: var(--r-carbon);
  color: rgba(245,247,250,0.65);
  padding: 80px 0 32px;
  border-top: 1px solid var(--r-line);
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-footer .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.site-footer .col h5 {
  font-family: var(--f-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--r-white);
  margin: 6px 0 16px;
}
.site-footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.site-footer ul a:hover { color: var(--r-white); }
.site-footer .blurb {
  font-size: 14px; line-height: 1.55; max-width: 320px;
  margin: 0;
}
.site-footer .bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--r-line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245,247,250,0.45);
  text-transform: uppercase;
}
.site-footer .bottom .right { display: flex; gap: 24px; }

/* ====================== RESPONSIVE ====================== */

@media (max-width: 1200px) {
  .hud { display: none; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
}

/* ====================== HERO CAR-BG VARIANT (full bleed) ====================== */

.hero.hero--car-bg .hero-inner {
  display: flex;
  align-items: center;
  min-height: 660px;
  padding: 120px 0 56px;
}
.hero.hero--car-bg .hero-copy {
  max-width: 620px;
}
.hero.hero--car-bg .car-bg {
  background-image: url("assets/car-07.png");
}

/* ====================== HERO CAR (main hero visual) ====================== */

.hero-car {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  max-height: 520px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,174,239,0.12) 0%, rgba(11,15,20,0.0) 60%),
    linear-gradient(180deg, #1a1f26 0%, #0B0F14 100%);
  border: 1px solid var(--r-line-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,174,239,0.05);
}
.hero-car img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-car::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,15,20,0.6) 0%, transparent 30%, transparent 70%, rgba(0,174,239,0.10) 100%),
    linear-gradient(180deg, transparent 50%, rgba(11,15,20,0.55) 100%);
  z-index: 1;
}
.hero-car::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,174,239,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,174,239,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(70% 60% at 30% 50%, black 30%, transparent 90%);
  z-index: 1;
  pointer-events: none;
}
.hero-car .corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--r-electric);
  opacity: 0.75;
  z-index: 3;
}
.hero-car .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hero-car .corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.hero-car .corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.hero-car .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.hero-car-07 {
  position: absolute;
  right: 24px; bottom: 8px;
  z-index: 2;
  font-family: var(--f-tech);
  font-weight: 900;
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245,247,250,0.28);
  letter-spacing: 0.02em;
  pointer-events: none;
}
.hero-car-chip {
  position: absolute;
  left: 20px; top: 20px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,174,239,0.45);
  background: rgba(11,15,20,0.65);
  backdrop-filter: blur(8px);
  font-family: var(--f-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--r-electric);
}
.hero-car-chip .d {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--r-electric);
  box-shadow: 0 0 8px var(--r-electric);
  animation: tele-pulse 1.6s var(--ease-std) infinite;
}

/* ====================== HERO CONSTELLATION VISUAL ====================== */

.hero-constellation {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  min-height: 460px;
}
.hero-constellation .logo-wrap {
  position: relative;
  width: 420px; height: 420px;
  display: flex; align-items: center; justify-content: center;
  max-width: 100%;
}
.hero-constellation img {
  width: 220px; height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 30px 80px rgba(0,174,239,0.35));
  z-index: 2;
  position: relative;
}
.hero-constellation .ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(0,174,239,0.18);
  border-radius: 999px;
  animation: ring-pulse 6s cubic-bezier(0.4,0,0.2,1) infinite;
}
.hero-constellation .ring.r2 { inset: 36px; border-color: rgba(0,174,239,0.22); animation-delay: 1s; }
.hero-constellation .ring.r3 { inset: 72px; border-color: rgba(0,174,239,0.28); animation-delay: 2s; }
.hero-constellation .ring.r4 { inset: 108px; border-color: rgba(0,174,239,0.34); animation-delay: 3s; }
@keyframes ring-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.02); }
}
.hero-constellation .corner {
  position: absolute;
  width: 28px; height: 28px;
  border: 1.5px solid var(--r-electric);
  opacity: 0.6;
}
.hero-constellation .corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-constellation .corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-constellation .corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-constellation .corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ====================== HERO GRID LAYOUT (two-column) ====================== */

.hero--two-col .hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-height: auto;
  padding: 96px 0 64px;
}
.hero--two-col .car-bg { display: none; }
.hero--two-col .grid-bg {
  mask-image: radial-gradient(60% 50% at 50% 50%, black 30%, transparent 80%);
}

/* ====================== ABOUT (Sobre nosotros) ====================== */

.about {
  background: var(--r-white);
  color: var(--r-ink);
}
.about-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-row--solo {
  display: block;
  max-width: 820px;
}
.about-photo {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--r-carbon);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}
.about-photo .tagline {
  position: absolute; left: 20px; bottom: 20px;
  font-family: var(--f-tech);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--r-white);
  background: rgba(11,15,20,0.65);
  border: 1px solid var(--r-line-strong);
  border-radius: 6px;
  padding: 6px 10px;
  backdrop-filter: blur(8px);
}
.about-row h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 16px 0 18px;
  color: var(--r-navy);
}
.about-row h2 .em { color: var(--r-electric); }
.about-row p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--r-ink-2);
  margin: 0 0 14px;
}
.about-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
}
.about-tags span {
  font-family: var(--f-tech);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-navy);
  border: 1px solid var(--r-line-light);
  background: var(--r-white);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ====================== SOFTWARE A MEDIDA HERO BLOCK ====================== */

.swdev-hero {
  background: var(--r-carbon);
  position: relative;
  overflow: hidden;
}
.swdev-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("assets/car-44.png");
  background-size: cover;
  background-position: right center;
  opacity: 0.55;
  z-index: 0;
}
.swdev-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--r-carbon) 0%, rgba(11,15,20,0.92) 30%, rgba(11,15,20,0.4) 65%, transparent 100%),
    linear-gradient(180deg, rgba(11,15,20,0.5) 0%, rgba(11,15,20,0.2) 50%, rgba(11,15,20,0.7) 100%);
  z-index: 1;
}
.swdev-hero .inner {
  position: relative; z-index: 2;
  padding: 120px 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.swdev-hero h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 18px 0 22px;
  color: var(--r-white);
}
.swdev-hero h2 .em {
  background: linear-gradient(120deg, var(--r-electric) 0%, #6fe0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.swdev-hero .lead {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(245,247,250,0.78);
  margin: 0 0 28px;
  max-width: 520px;
}
.swdev-hero .badge-07 {
  position: absolute;
  right: 28px; top: 32px;
  font-family: var(--f-tech);
  font-weight: 900;
  font-size: clamp(80px, 10vw, 160px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245,247,250,0.18);
  letter-spacing: 0.02em;
  z-index: 2;
  pointer-events: none;
}
.swdev-hero .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,174,239,0.5);
  background: rgba(0,174,239,0.10);
  font-family: var(--f-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--r-electric);
}
.swdev-hero .pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--r-electric);
  box-shadow: 0 0 8px var(--r-electric);
}

/* mini-stats inside swdev-hero */
.swdev-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.swdev-stats .s {
  background: rgba(11,15,20,0.5);
  border: 1px solid var(--r-line-strong);
  border-radius: 10px;
  padding: 14px 16px;
  backdrop-filter: blur(6px);
}
.swdev-stats .s .k {
  font-family: var(--f-tech);
  font-size: 10px; letter-spacing: 0.18em;
  color: rgba(245,247,250,0.6);
  text-transform: uppercase;
}
.swdev-stats .s .v {
  font-family: var(--f-display);
  font-weight: 800; font-size: 22px;
  color: var(--r-white);
  margin-top: 4px;
  display: flex; align-items: baseline; gap: 4px;
}
.swdev-stats .s .v .u {
  font-family: var(--f-tech);
  font-size: 12px; color: var(--r-electric);
}

@media (max-width: 1024px) {
  .hero--two-col .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 64px 0 32px; }
  .hero-constellation .logo-wrap { width: 320px; height: 320px; }
  .hero-car { aspect-ratio: 16/9; max-height: 380px; }
  .swdev-hero .inner { grid-template-columns: 1fr; padding: 80px 0 48px; gap: 32px; }
  .about-row { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 420px; aspect-ratio: 16/10; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .lap-board { grid-template-columns: 1fr 1fr; }
  .lap { border-right: 1px solid var(--r-line-strong); border-bottom: 1px solid var(--r-line-strong); }
  .lap:nth-child(2n) { border-right: 0; }
  .lap:nth-last-child(-n+2) { border-bottom: 0; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .tele-row { grid-template-columns: 1fr; gap: 40px; }
  .cta .panel { grid-template-columns: 1fr; padding: 40px; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { min-height: 640px; }
  .hero-inner { min-height: 640px; padding: 48px 0 32px; }
  .hud { display: none; }
  .hero-07 { right: 16px; bottom: 16px; opacity: 0.7; }
  .hero-stats .row { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:nth-child(2) { border-right: 0; }
  .hero-stats .stat:nth-child(1), .hero-stats .stat:nth-child(2) {
    border-bottom: 1px solid var(--r-line);
  }
  .services-grid, .stack-grid { grid-template-columns: 1fr; }
  .lap-board { grid-template-columns: 1fr; }
  .lap { border-right: 0; border-bottom: 1px solid var(--r-line-strong); }
  .lap:last-child { border-bottom: 0; }
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form .field.full, .form .submit { grid-column: span 1; }
  .form .submit { flex-direction: column-reverse; gap: 16px; align-items: stretch; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .site-footer .bottom { flex-direction: column; gap: 12px; }
  .cta .panel { padding: 32px; border-radius: 16px; }
}

/* ====================== CLICKABLE CONTACT ROWS ====================== */

a.contact-row {
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out), transform 80ms ease-out;
}
a.contact-row:hover {
  border-color: rgba(0,174,239,0.45);
  background: rgba(0,174,239,0.08);
}
a.contact-row:active { transform: scale(0.99); }
.contact-row .ic svg[fill="currentColor"] { width: 18px; height: 18px; }

/* ====================== SCROLL REVEAL (progressive enhancement) ====================== */

.reveal-on :is(
  .section-head, .svc, .stack-card, .lap, .dashboard,
  .quote-inner, .about-row, .swdev-stats, .hero-stats .stat,
  .finish
) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-on .is-visible {
  opacity: 1 !important;
  transform: none !important;
}
/* subtle stagger inside card grids / lap board */
.reveal-on .services-grid .svc:nth-child(2),
.reveal-on .stack-grid .stack-card:nth-child(2),
.reveal-on .lap-board .lap:nth-child(2),
.reveal-on .hero-stats .stat:nth-child(2) { transition-delay: .07s; }
.reveal-on .services-grid .svc:nth-child(3),
.reveal-on .stack-grid .stack-card:nth-child(3),
.reveal-on .lap-board .lap:nth-child(3),
.reveal-on .hero-stats .stat:nth-child(3) { transition-delay: .14s; }
.reveal-on .services-grid .svc:nth-child(4),
.reveal-on .stack-grid .stack-card:nth-child(4),
.reveal-on .lap-board .lap:nth-child(4),
.reveal-on .hero-stats .stat:nth-child(4) { transition-delay: .21s; }
.reveal-on .services-grid .svc:nth-child(5),
.reveal-on .services-grid .svc:nth-child(6) { transition-delay: .28s; }
