/* =========================================================
   BRAND FONT — Xspace (Anturi wordmark)
   ========================================================= */
@font-face {
  font-family: 'Xspace';
  src: url('../fonts/XspaceRegular.ttf') format('truetype'),
    url('../fonts/Xspace.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   TOKENS v2 — Anturi industrial-tech
   ========================================================= */
:root {
  --brand-primary: #1F506C;
  --brand-primary-700: #173E55;
  --brand-primary-900: #0F2B3D;
  --brand-primary-50: #E8EEF2;
  --brand-accent: #3A2772;
  --brand-accent-600: #2E1F5C;
  --brand-accent-300: #6E58A8;
  --brand-accent-50: #ECE9F4;
  --signal: #4FB8E6;
  --signal-strong: #2E9CD0;
  --signal-glow: rgba(79, 184, 230, .35);

  --bg: #F7F8FA;
  --bg-alt: #EEF1F4;
  --surface: #fff;
  --surface-2: #F2F4F7;
  --ink: #0F2B3D;
  --ink-2: #355068;
  --ink-3: #6A8095;
  --ink-on-dark: #E8EEF2;
  --ink-on-dark-2: #9FB3C4;
  --line: #D8DEE4;
  --line-strong: #B9C2CB;
  --line-dark: rgba(255, 255, 255, .10);
  --ink-bg: #0F2B3D;
  --ink-bg-2: #163A52;
  --ink-bg-3: #1F506C;

  --ok: #2BA36A;
  --warn: #D99F3C;
  --err: #D9594F;

  --ff-display: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ff-brand: "Xspace", "IBM Plex Sans", system-ui, sans-serif;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(15, 43, 61, .05), 0 1px 1px rgba(15, 43, 61, .04);
  --sh-2: 0 6px 18px rgba(15, 43, 61, .08), 0 2px 4px rgba(15, 43, 61, .04);
  --sh-3: 0 18px 40px rgba(15, 43, 61, .12), 0 4px 10px rgba(15, 43, 61, .06);

  --g-brand: linear-gradient(135deg, #1F506C 0%, #2E3B6E 55%, #3A2772 100%);
  --g-signal: linear-gradient(135deg, #1F506C 0%, #4FB8E6 100%);
  --g-dark: linear-gradient(180deg, #0F2B3D 0%, #163A52 100%);
  --g-edge: linear-gradient(90deg, transparent, var(--signal), transparent);

  --container: 1200px;
  --container-wide: 1320px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 4vw, 40px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 520ms;
  --dur-4: 820ms;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit
}

strong {
  font-weight: 700
}

/* TYPE */
h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  margin: 0;
  color: var(--ink);
  text-wrap: balance
}

h1 {
  font-weight: 600;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  letter-spacing: -.022em;
  line-height: 1.04
}

h2 {
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -.018em;
  line-height: 1.1
}

h3 {
  font-weight: 600;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -.012em;
  line-height: 1.22
}

h4 {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -.006em
}

p {
  margin: 0;
  text-wrap: pretty
}

.lead {
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch
}

.small {
  font-size: .875rem;
  color: var(--ink-3)
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: .82rem;
  letter-spacing: .005em;
  text-transform: none;
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  display: block
}

.eyebrow.on-dark {
  color: var(--signal)
}

.eyebrow.on-dark::before {
  background: var(--signal)
}

.mono-tag {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--ink-3)
}

/* LAYOUT */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter)
}

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

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

.section {
  padding: clamp(72px, 9vw, 128px) 0;
  position: relative
}

.section-tight {
  padding: clamp(48px, 6vw, 72px) 0
}

.section-dark {
  background: var(--ink-bg);
  color: var(--ink-on-dark)
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--ink-on-dark)
}

.section-dark .lead,
.section-dark p {
  color: var(--ink-on-dark-2)
}

.section-alt {
  background: var(--bg-alt)
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px)
}

.section-head .lead {
  margin-top: 18px
}

.section-head .eyebrow {
  margin-bottom: 18px
}

/* DOT GRID */
.dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(15, 43, 61, .07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

.section-dark .dot-grid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
}

.section .dot-grid {
  background-image: radial-gradient(circle, rgba(15, 43, 61, .09) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 40%, transparent 90%);
}

/* =========================================================
   HERO TECH BACKGROUND
   Blueprint grid + signal glow + corner crosshairs + circuit trace
   ========================================================= */
.hero {
  background: var(--bg)
}

.hero .dot-grid {
  background-image: radial-gradient(circle, rgba(15, 43, 61, .09) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 40%, transparent 90%);
}

.hero .container-wide {
  position: relative;
  z-index: 1
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  transition: all var(--dur-2) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-2) var(--ease)
}

.btn:hover svg.arrow {
  transform: translateX(4px)
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, var(--sh-1)
}

.btn-primary:hover {
  background: var(--brand-primary-700);
  transform: translateY(-1px);
  box-shadow: var(--sh-2)
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong)
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-50)
}

.btn-ghost {
  padding: 8px 0;
  color: var(--brand-primary);
  border-radius: 0
}

.btn-ghost:hover {
  color: var(--brand-accent)
}

.btn-sm {
  padding: 9px 16px;
  font-size: .85rem
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem
}

.section-dark .btn-outline {
  color: var(--ink-on-dark);
  border-color: rgba(255, 255, 255, .18)
}

.section-dark .btn-outline:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(79, 184, 230, .06)
}

.section-dark .btn-ghost {
  color: var(--signal)
}

.section-dark .btn-ghost:hover {
  color: #fff
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  border-bottom: 1px solid transparent
}

.nav.scrolled {
  background: rgba(247, 248, 250, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line)
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--ff-brand);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  font-size: 1.1rem
}

.nav-brand .mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center
}

.nav-brand .mark img {
  width: 34px;
  height: 34px;
  object-fit: contain
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px
}

.nav-links a {
  padding: 8px 14px;
  font-size: .92rem;
  color: var(--ink-2);
  font-weight: 500;
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--dur-1) var(--ease)
}

.nav-links a:hover {
  color: var(--ink)
}

.nav-links a.active {
  color: var(--brand-primary)
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--signal);
  transform-origin: left;
  animation: underline .35s var(--ease-out)
}

@keyframes underline {
  from {
    transform: scaleX(0)
  }

  to {
    transform: scaleX(1)
  }
}

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

.lang-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .08em
}

.lang-toggle button {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  color: var(--ink-3);
  font-weight: 500
}

.lang-toggle button.on {
  background: var(--brand-primary);
  color: #fff
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .7)
}

.nav-burger svg {
  width: 18px;
  height: 18px
}

/* =========================================================
   MOBILE DRAWER v2 — redesigned
   ========================================================= */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: linear-gradient(180deg, rgba(247, 248, 250, .985) 0%, rgba(232, 238, 242, .985) 100%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform var(--dur-3) var(--ease-out);
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain
}

.drawer.open {
  transform: translateY(0);
  pointer-events: auto
}

/* header bar inside drawer */
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--ff-brand);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  font-size: 1.1rem
}

.drawer-brand .mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center
}

.drawer-brand .mark img {
  width: 34px;
  height: 34px;
  object-fit: contain
}

.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}

.drawer-close:hover,
.drawer-close:active {
  background: var(--ink-bg);
  color: #fff;
  border-color: transparent;
}

.drawer-close svg {
  width: 18px;
  height: 18px
}

/* nav list */
.drawer-nav {
  flex: 1;
  padding: 18px 20px 8px;
  display: flex;
  flex-direction: column
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 6px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  border-bottom: 1px solid rgba(216, 222, 228, .65);
  position: relative;
  transition: padding-left var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.drawer-link .n {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--brand-primary);
  font-weight: 500;
  min-width: 24px;
}

.drawer-link .t {
  flex: 1
}

.drawer-link .ar {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  transition: transform var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  flex-shrink: 0
}

.drawer-link::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: var(--signal);
  transition: transform var(--dur-1) var(--ease);
  transform-origin: center;
}

.drawer-link:hover,
.drawer-link:active {
  color: var(--brand-primary);
  padding-left: 14px
}

.drawer-link:hover .ar,
.drawer-link:active .ar {
  color: var(--brand-primary);
  transform: translateX(4px)
}

.drawer-link.active {
  color: var(--brand-primary);
  padding-left: 14px
}

.drawer-link.active::before {
  transform: translateY(-50%) scaleY(1)
}

.drawer-link.active .n {
  color: var(--signal)
}

/* foot: CTA + contact info */
.drawer-foot {
  padding: 24px 20px 32px;
  background: linear-gradient(180deg, transparent, rgba(31, 80, 108, .04));
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 18px 22px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  line-height: 1;
  color: #fff;
  background: var(--brand-primary);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 28px rgba(31, 80, 108, .24), 0 1px 0 rgba(255, 255, 255, .12) inset;
  transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.drawer-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-1) var(--ease)
}

.drawer-cta:hover {
  background: var(--brand-primary-700);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(31, 80, 108, .30), 0 1px 0 rgba(255, 255, 255, .12) inset
}

.drawer-cta:hover svg {
  transform: translateX(4px)
}

.drawer-cta:active {
  transform: scale(.98)
}

.drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px
}

.drawer-contact .dc-row,
.drawer-contact .dc-addr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink-2);
}

.drawer-contact .dc-row {
  transition: color var(--dur-1) var(--ease)
}

.drawer-contact .dc-row:hover {
  color: var(--brand-primary)
}

.drawer-contact .dc-addr {
  color: var(--ink-3);
  font-size: .74rem
}

.drawer-contact svg {
  width: 14px;
  height: 14px;
  color: var(--brand-primary);
  flex-shrink: 0
}

.drawer-contact .dc-addr svg {
  color: var(--ink-3)
}

/* mobile CTA polish — applies to all primary CTAs on phones */
@media (max-width: 720px) {
  .btn-primary {
    box-shadow: 0 8px 22px rgba(31, 80, 108, .22), 0 1px 0 rgba(255, 255, 255, .18) inset;
  }

  .btn-primary:active {
    transform: scale(.98)
  }

  .btn-outline:active {
    transform: scale(.98)
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 130px 0 90px;
  position: relative;
  overflow: hidden
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  box-shadow: var(--sh-1)
}

.hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(43, 163, 106, .18)
}

.hero h1 {
  margin-top: 24px
}

.hero h1 .accent {
  color: var(--brand-primary);
  display: inline
}

/* underline removed — clashed with descenders. Color alone carries the accent. */
.hero .lead {
  margin-top: 22px;
  max-width: 54ch
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 520px
}

.hero-stats .s {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 20px
}

.hero-stats .s+.s {
  border-left: 1px solid var(--line);
  padding-left: 24px
}

.hero-stats .v {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink)
}

.hero-stats .l {
  font-family: var(--ff-body);
  font-size: .8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3)
}

/* hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 5/6;
  max-height: 680px
}

.hero-visual .frame {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  overflow: hidden
}

.hero-visual .frame::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--g-edge);
  z-index: 2
}

.hv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2)
}

.hv-head .left {
  display: flex;
  gap: 6px;
  align-items: center
}

.hv-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong)
}

.hv-head .dot.live {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(43, 163, 106, .18);
  animation: pulse-soft 2s var(--ease) infinite
}

.hv-head .id {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3)
}

@keyframes pulse-soft {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .55
  }
}

.hv-body {
  padding: 22px
}

.hv-readout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px
}

.hv-readout .label {
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3)
}

.hv-readout .big {
  font-family: var(--ff-display);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
  margin-top: 6px
}

.hv-readout .unit {
  font-family: var(--ff-mono);
  font-size: .85rem;
  color: var(--ink-3);
  margin-left: 6px
}

.hv-readout .trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(43, 163, 106, .1);
  color: var(--ok);
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .08em
}

.hv-chart {
  margin-top: 24px;
  height: 160px;
  position: relative
}

.hv-chart svg {
  width: 100%;
  height: 100%;
  display: block
}

.hv-chart .grid-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 4
}

.hv-chart .axis {
  font-family: var(--ff-mono);
  font-size: 9px;
  fill: var(--ink-3);
  letter-spacing: .12em
}

.hv-chart .line {
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.8s var(--ease-out) .4s forwards
}

.hv-chart .fill {
  fill: url(#chartFill);
  opacity: 0;
  animation: fadein .6s var(--ease) 1.8s forwards
}

@keyframes draw {
  to {
    stroke-dashoffset: 0
  }
}

@keyframes fadein {
  to {
    opacity: 1
  }
}

.hv-chart .point {
  r: 4;
  fill: var(--signal);
  stroke: #fff;
  stroke-width: 2;
  opacity: 0;
  animation: fadein .35s var(--ease) 2.2s forwards
}

.hv-chart .point-pulse {
  r: 6;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  animation: ping 2s var(--ease) 2.4s infinite
}

@keyframes ping {
  0% {
    opacity: .6;
    r: 6
  }

  100% {
    opacity: 0;
    r: 16
  }
}

.hv-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px
}

.hv-meta .chip {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-3);
  background: var(--surface)
}

.hv-meta .chip strong {
  color: var(--ink);
  font-weight: 600
}

.hv-iot {
  margin: 22px;
  padding: 18px;
  border-top: 1px dashed var(--line);
  position: relative
}

.hv-iot .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px
}

.hv-iot .title .l {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3)
}

.hv-iot .nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px
}

.hv-iot .node {
  padding: 12px 10px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden
}

.hv-iot .node .ico {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--brand-primary);
  margin-bottom: 8px
}

.hv-iot .node .n {
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block
}

.hv-iot .node .v {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 2px
}

.hv-iot .node.signal {
  background: var(--ink-bg);
  border-color: transparent;
  color: #fff
}

.hv-iot .node.signal .n {
  color: var(--ink-on-dark-2)
}

.hv-iot .node.signal .v {
  color: #fff
}

.hv-iot .node.signal .ico {
  color: var(--signal)
}

/* telemetry pill (overlay on hero) */
.telemetry-pill {
  position: absolute;
  left: -16px;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: rgba(15, 43, 61, .92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 184, 230, .4);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  box-shadow: var(--sh-2)
}

.telemetry-pill .dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  position: relative
}

.telemetry-pill .dot-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--signal);
  animation: pulse-ring 1.8s var(--ease) infinite
}

@keyframes pulse-ring {
  0% {
    transform: scale(.8);
    opacity: 1
  }

  100% {
    transform: scale(2);
    opacity: 0
  }
}

.telemetry-pill .value {
  color: var(--signal);
  font-weight: 500
}

.telemetry-pill .sep {
  color: var(--ink-on-dark-2)
}

/* =========================================================
   WHAT WE DO — quick-reference strip
   ========================================================= */
.wwd {
  padding: 36px 0;
  background: var(--surface);
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wwd::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 184, 230, .5) 50%, transparent);
}

.wwd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.wwd-cell {
  padding: 24px 22px;
  position: relative;
  background: var(--surface);
  border-right: 1px dashed var(--line);
  transition: background var(--dur-2) var(--ease);
}

.wwd-cell:last-child {
  border-right: 0
}

.wwd-cell:hover {
  background: var(--surface-2)
}

.wwd-cell::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--signal);
  transition: width var(--dur-2) var(--ease);
}

.wwd-cell:hover::before {
  width: 100%
}

.wwd-num {
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--brand-primary);
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
}

.wwd-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--brand-primary-50);
  color: var(--brand-primary);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}

.wwd-ico svg {
  width: 22px;
  height: 22px
}

.wwd-cell:hover .wwd-ico {
  background: var(--brand-primary);
  color: #fff
}

.wwd-cell h4 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 6px;
  color: var(--ink)
}

.wwd-cell p {
  font-size: .86rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface)
}

.trust-row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  justify-content: space-between;
  flex-wrap: wrap
}

.trust-lbl {
  font-family: var(--ff-body);
  font-size: .8rem;
  letter-spacing: 0;
  font-weight: 600;
  text-transform: none;
  color: var(--ink-3);
  padding-right: 32px;
  border-right: 1px solid var(--line)
}

.trust-items {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  flex: 1
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: .88rem;
  letter-spacing: 0;
  color: var(--ink-2)
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-primary)
}

/* =========================================================
   PILARES
   ========================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden
}

.pillar {
  padding: 36px 28px;
  background: var(--surface);
  position: relative;
  transition: background var(--dur-2) var(--ease)
}

.pillar:hover {
  background: var(--surface-2)
}

.pillar .num {
  font-family: var(--ff-mono);
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--brand-primary);
  font-weight: 500
}

.pillar h3 {
  margin-top: 24px;
  margin-bottom: 12px
}

.pillar p {
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.6
}

.pillar .icon {
  position: absolute;
  top: 32px;
  right: 28px;
  width: 28px;
  height: 28px;
  color: var(--brand-primary);
  opacity: .6
}

/* =========================================================
   SOLUCIONES
   ========================================================= */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.sol-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  display: flex;
  flex-direction: column
}

.sol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: transparent
}

.sol-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--g-edge);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease)
}

.sol-card:hover::before {
  opacity: 1
}

.sol-media {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  position: relative;
  overflow: hidden
}

.sol-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line)
}

.sol-media .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1F506C 0%, #2E3B6E 60%, #3A2772 100%);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase
}

.sol-media .placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 16px);
  pointer-events: none
}

.sol-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1
}

.sol-body .eyebrow {
  margin-bottom: 4px
}

.sol-body h3 {
  margin: 0
}

.sol-body .desc {
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.55
}

.sol-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px
}

.sol-chips .c {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  background: var(--surface-2)
}

.sol-card .cta {
  padding: 14px 26px 24px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--brand-primary);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .92rem;
  transition: background var(--dur-1) var(--ease)
}

.sol-card .cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-1) var(--ease)
}

.sol-card:hover .cta svg {
  transform: translateX(4px)
}

.sol-card:hover .cta {
  background: var(--brand-primary-50)
}

/* product mockups */
.mockup-pgstat {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #2a4d68 0%, #0F2B3D 70%)
}

.mockup-pgstat .box {
  width: 62%;
  aspect-ratio: 1.4;
  background: linear-gradient(180deg, #22384a, #0F2B3D);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
  position: relative;
  overflow: hidden
}

.mockup-pgstat .box::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 18%;
  bottom: 55%;
  background: linear-gradient(180deg, #0a1d2b, #0F2B3D);
  border-radius: 6px;
  border: 1px solid rgba(79, 184, 230, .25)
}

.mockup-pgstat .box::after {
  content: "ANTURI ORION";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  text-align: center;
  font-family: var(--ff-mono);
  letter-spacing: .4em;
  font-size: 11px;
  color: var(--signal)
}

.mockup-pgstat .ports {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 8%;
  height: 8px;
  background: repeating-linear-gradient(90deg, #0a1d2b 0 6px, transparent 6px 12px);
  border-radius: 2px
}

.mockup-pgstat .led {
  position: absolute;
  top: 22%;
  right: 14%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse-soft 1.8s var(--ease) infinite
}

.mockup-quark {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1F506C 0%, #3A2772 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px
}

.mockup-quark .device {
  width: 34%;
  aspect-ratio: .55;
  background: #0F2B3D;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.mockup-quark .device .screen {
  flex: 1;
  background: #0a1d2b;
  border-radius: 4px;
  border: 1px solid rgba(79, 184, 230, .2);
  position: relative;
  overflow: hidden
}

.mockup-quark .device .screen::before {
  content: "Cu  0.082";
  position: absolute;
  left: 8px;
  top: 8px;
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--signal);
  letter-spacing: .1em
}

.mockup-quark .device .screen::after {
  content: "mg/L";
  position: absolute;
  left: 8px;
  top: 20px;
  font-family: var(--ff-mono);
  font-size: 7px;
  color: var(--ink-on-dark-2);
  letter-spacing: .15em
}

.mockup-quark .device .btn-row {
  display: flex;
  gap: 4px
}

.mockup-quark .device .btn-row span {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, .1);
  border-radius: 2px
}

.mockup-quark .phone {
  width: 30%;
  aspect-ratio: .48;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3)
}

.mockup-quark .phone .ph-screen {
  height: 100%;
  background: linear-gradient(180deg, #fff, #E8EEF2);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px
}

.mockup-quark .phone .bar {
  height: 4px;
  background: var(--brand-primary);
  border-radius: 2px;
  width: 60%
}

.mockup-quark .phone .bar.b2 {
  width: 40%;
  background: var(--signal)
}

.mockup-quark .phone .bar.b3 {
  width: 80%;
  background: var(--brand-accent-300)
}

.mockup-quark .phone .gph {
  flex: 1;
  background: repeating-linear-gradient(180deg, rgba(31, 80, 108, .08) 0 1px, transparent 1px 14px);
  border-radius: 4px;
  position: relative;
  margin-top: 4px
}

.mockup-quark .phone .gph::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 60%;
  height: 1.5px;
  background: var(--brand-primary);
  border-radius: 2px;
  clip-path: polygon(0 50%, 15% 30%, 30% 80%, 45% 40%, 60% 70%, 75% 20%, 90% 50%, 100% 30%, 100% 100%, 0 100%)
}

.mockup-iot {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #163A52 0%, #0F2B3D 100%);
  overflow: hidden
}

.mockup-iot svg {
  width: 100%;
  height: 100%
}

/* CUSTOM BANNER */
.custom-banner {
  margin-top: 32px;
  padding: 36px clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: var(--g-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff
}

.custom-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(79, 184, 230, .18), transparent 60%);
  pointer-events: none
}

.custom-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--g-edge);
  pointer-events: none
}

.custom-banner .text {
  position: relative;
  max-width: 60ch
}

.custom-banner h3 {
  color: #fff;
  margin-bottom: 8px
}

.custom-banner p {
  color: var(--ink-on-dark-2)
}

.custom-banner .btn-primary {
  background: #fff;
  color: var(--brand-primary);
  position: relative;
  z-index: 2
}

.custom-banner .btn-primary:hover {
  background: var(--signal);
  color: #fff
}

/* =========================================================
   CASOS
   ========================================================= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.case-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-bg);
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease)
}

.case-card:hover {
  transform: translateY(-4px)
}

.case-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 43, 61, .2) 0%, rgba(15, 43, 61, .85) 60%, rgba(15, 43, 61, .97) 100%);
  z-index: 1
}

.case-pattern {
  position: absolute;
  inset: 0;
  opacity: .3;
  z-index: 0
}

.case-card.c01 .case-pattern {
  background:
    radial-gradient(circle at 30% 40%, rgba(79, 184, 230, .5), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(58, 39, 114, .6), transparent 50%),
    linear-gradient(135deg, #0F2B3D, #1F506C)
}

.case-card.c02 .case-pattern {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 12px),
    linear-gradient(135deg, #173E55, #3A2772)
}

.case-card.c03 .case-pattern {
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 184, 230, .25), transparent 60%),
    linear-gradient(135deg, #1F506C, #0F2B3D)
}

.case-meta {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 10px
}

.case-meta .tag {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-sm);
  color: #fff;
  backdrop-filter: blur(6px)
}

.case-meta .num {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--signal);
  padding-top: 8px
}

.case-body {
  position: relative;
  z-index: 2;
  padding: 28px
}

.case-body .sector {
  font-family: var(--ff-body);
  font-size: .82rem;
  letter-spacing: .01em;
  font-weight: 600;
  color: var(--signal);
  margin-bottom: 10px;
  display: block
}

.case-body h3 {
  color: #fff;
  margin-bottom: 10px
}

.case-body p {
  color: var(--ink-on-dark-2);
  font-size: .93rem;
  line-height: 1.5
}

.case-body .read {
  margin-top: 18px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.case-body .read svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-1) var(--ease)
}

.case-card:hover .read svg {
  transform: translateX(4px)
}

/* live overlay on case */
.case-card .live {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(15, 43, 61, .7);
  border: 1px solid rgba(79, 184, 230, .4);
  backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  color: #fff
}

.case-card .live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse-soft 1.5s var(--ease) infinite
}

/* mini chart inside case — decorative only, positioned above body content */
.case-mini {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 30%;
  z-index: 2;
  opacity: .35;
  pointer-events: none
}

.case-mini svg {
  width: 100%;
  height: 50px
}

@media (max-width: 720px) {
  .case-mini {
    display: none
  }
}

/* =========================================================
   COMO FUNCIONA — Instrumentation panels (v2 redesign)
   ========================================================= */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  position: relative
}

.flow-step {
  padding: 36px 30px 32px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}

.flow-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .08);
  transition: background var(--dur-2) var(--ease);
}

.flow-step:hover {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .14)
}

.flow-step:hover::before {
  background: var(--signal)
}

.flow-step.center {
  background: rgba(79, 184, 230, .04);
  border-color: rgba(79, 184, 230, .22);
}

.flow-step.center::before {
  background: var(--signal)
}

.flow-step.center::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at top right, rgba(79, 184, 230, .18), transparent 60%);
  pointer-events: none;
}

.flow-step h3 {
  color: #fff;
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -.018em
}

.flow-step p {
  color: var(--ink-on-dark-2);
  font-size: .93rem;
  line-height: 1.55
}

.flow-num {
  font-family: var(--ff-mono);
  font-size: .74rem;
  letter-spacing: .03em;
  color: var(--ink-on-dark-2);
  display: block;
}

.flow-step.center .flow-num {
  color: var(--signal)
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
  padding-top: 80px;
  position: relative;
}

.flow-arrow::before,
.flow-arrow::after {
  content: "";
  position: absolute;
  top: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 184, 230, .4) 30%, rgba(79, 184, 230, .4) 70%, transparent);
  left: -12px;
  right: -12px;
}

.flow-arrow svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
  background: var(--ink-bg);
  padding: 0 6px;
  box-sizing: content-box
}

/* =========================================================
   STACK
   ========================================================= */
.stack-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.stack-item {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--dur-2) var(--ease)
}

.stack-item:hover {
  transform: translateX(4px);
  border-color: var(--brand-primary);
  box-shadow: var(--sh-1)
}

.stack-item .ix {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--brand-primary-50);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0
}

.stack-item .ix svg {
  width: 20px;
  height: 20px
}

.stack-item .meta {
  flex: 1
}

.stack-item h4 {
  margin: 0 0 4px
}

.stack-item .sub {
  font-family: var(--ff-mono);
  font-size: .74rem;
  letter-spacing: .01em;
  color: var(--ink-3)
}

.stack-pills {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.stack-pills .p {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  padding: 7px 12px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  border: 1px solid var(--line)
}

.stack-visual {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  width: 100%
}

/* Stack rack — server-rack metaphor with data flow */
.stack-rack {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  position: relative;
  padding: 18px;
}

.stack-rack::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--g-edge);
  z-index: 1
}

.stack-rack::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(31, 80, 108, .04) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 0;
}

.rack-head,
.rack-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 12px;
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  z-index: 1;
}

.rack-foot {
  padding: 12px 14px 4px;
  border-top: 1px dashed var(--line);
  margin-top: 12px
}

.rack-head .rh-status,
.rack-head .rh-lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.rack-head .rh-status {
  color: var(--ok)
}

.rack-head .rh-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(43, 163, 106, .18);
  animation: pulse-soft 2s var(--ease) infinite
}

.rack-foot .rf-tick {
  color: var(--brand-primary);
  font-weight: 500
}

.rack-layer {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  z-index: 1;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}

.rack-layer:hover {
  transform: translateX(4px);
  border-color: var(--brand-primary);
  background: var(--surface)
}

.rack-layer .rl-num {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--ink-3);
  font-weight: 500;
  padding: 4px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-align: center;
}

.rack-layer .rl-label {
  font-family: var(--ff-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-primary);
  font-weight: 500;
}

.rack-layer .rl-content {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: -.01em;
  color: var(--ink);
  justify-self: end;
  text-align: right;
}

.rack-layer .rl-tag {
  font-family: var(--ff-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--signal);
  padding: 3px 7px;
  background: rgba(79, 184, 230, .08);
  border: 1px solid rgba(79, 184, 230, .22);
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.rack-layer.dark {
  background: var(--ink-bg);
  border-color: transparent
}

.rack-layer.dark .rl-num {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: var(--ink-on-dark-2)
}

.rack-layer.dark .rl-label {
  color: var(--signal)
}

.rack-layer.dark .rl-content {
  color: #fff
}

.rack-layer.dark .rl-tag {
  color: var(--signal);
  background: rgba(79, 184, 230, .12);
  border-color: rgba(79, 184, 230, .3)
}

.rack-conn {
  height: 14px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rack-conn::before {
  content: "";
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--signal), transparent);
}

.rack-conn::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: flow-down 2.4s linear infinite;
}

@keyframes flow-down {
  0% {
    transform: translateY(-7px);
    opacity: 0
  }

  20% {
    opacity: 1
  }

  80% {
    opacity: 1
  }

  100% {
    transform: translateY(7px);
    opacity: 0
  }
}

/* =========================================================
   EQUIPO
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.team-shot {
  margin: 0;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: var(--ink-bg)
}

.team-shot .duotone {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F2B3D 0%, #1F506C 60%, #3A2772 100%)
}

.team-shot .pattern {
  position: absolute;
  inset: 0;
  opacity: .4
}

.team-shot.t1 .pattern {
  background:
    radial-gradient(ellipse at 30% 80%, rgba(79, 184, 230, .4), transparent 50%),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 18px)
}

.team-shot.t2 .pattern {
  background:
    radial-gradient(circle at 70% 30%, rgba(79, 184, 230, .35), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 22px)
}

.team-shot.t3 .pattern {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(110, 88, 168, .35), transparent 60%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 14px)
}

.team-shot .placeholder-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  opacity: .85;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.team-shot .placeholder-label .ix {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  display: grid;
  place-items: center
}

.team-shot .placeholder-label .ix svg {
  width: 12px;
  height: 12px
}

.team-foot {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.team-foot .note {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.final-cta {
  position: relative;
  overflow: hidden
}

.final-cta .inner {
  position: relative;
  padding: clamp(56px, 8vw, 96px) clamp(28px, 5vw, 72px);
  border-radius: var(--r-xl);
  background: var(--g-dark);
  color: #fff;
  overflow: hidden
}

.final-cta .inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 100%, rgba(58, 39, 114, .5), transparent 50%),
    radial-gradient(circle at 10% 20%, rgba(79, 184, 230, .15), transparent 50%)
}

.final-cta .inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--g-edge)
}

.final-cta .content {
  position: relative;
  max-width: 780px
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-top: 18px;
  letter-spacing: -.035em
}

.final-cta .lead {
  margin-top: 22px;
  color: var(--ink-on-dark-2);
  font-size: 1.1rem
}

.final-cta .ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.final-cta .ctas .btn-primary {
  background: #fff;
  color: var(--brand-primary)
}

.final-cta .ctas .btn-primary:hover {
  background: var(--signal);
  color: #fff
}

.final-cta .ctas .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .25)
}

.final-cta .ctas .btn-outline:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(79, 184, 230, .06)
}

.final-cta .bg-grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px
}

/* =========================================================
   FOOTER — instrumentation panel feel
   ========================================================= */
footer {
  background: var(--ink-bg);
  color: var(--ink-on-dark);
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden
}

footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 184, 230, .4), transparent)
}

footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent, #000 30%);
  pointer-events: none;
}

footer .container-wide {
  position: relative;
  z-index: 1
}

.foot-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 48px
}

.foot-brand .mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center
}

.foot-brand .mark img {
  width: 40px;
  height: 40px;
  object-fit: contain
}

.foot-brand .word {
  font-family: var(--ff-brand);
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: .04em
}

.foot-brand p {
  margin-top: 16px;
  font-size: .92rem;
  color: var(--ink-on-dark-2);
  max-width: 36ch;
  line-height: 1.55
}

.foot-brand .tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--ff-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--signal);
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid rgba(79, 184, 230, .25);
  border-radius: var(--r-pill);
}

.foot-brand .tagline::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(79, 184, 230, .18)
}

.foot-col h5 {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 18px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.foot-col h5::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--signal)
}

.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.foot-col a {
  font-size: .92rem;
  color: var(--ink-on-dark-2);
  transition: color var(--dur-1) var(--ease), padding-left var(--dur-1) var(--ease);
  display: inline-block
}

.foot-col a:hover {
  color: #fff;
  padding-left: 6px
}

.foot-col .addr {
  font-size: .88rem;
  color: var(--ink-on-dark-2);
  line-height: 1.5
}

.foot-bot {
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--ink-on-dark-2)
}

.foot-bot a {
  color: var(--ink-on-dark-2);
  transition: color var(--dur-1) var(--ease)
}

.foot-bot a:hover {
  color: #fff
}

/* =========================================================
   REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out)
}

.reveal.in {
  opacity: 1;
  transform: translateY(0)
}

.stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out)
}

.stagger.in>* {
  opacity: 1;
  transform: translateY(0)
}

.stagger.in>*:nth-child(1) {
  transition-delay: 0ms
}

.stagger.in>*:nth-child(2) {
  transition-delay: 80ms
}

.stagger.in>*:nth-child(3) {
  transition-delay: 160ms
}

.stagger.in>*:nth-child(4) {
  transition-delay: 240ms
}

.stagger.in>*:nth-child(5) {
  transition-delay: 320ms
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }

  .reveal,
  .stagger>* {
    opacity: 1;
    transform: none
  }
}

/* =========================================================
   INNER PAGE — Hero variant
   ========================================================= */
.hero-inner {
  padding: 140px 0 60px;
  position: relative
}

.hero-inner .crumbs {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  display: inline-flex;
  gap: 10px
}

.hero-inner .crumbs a {
  color: var(--ink-3)
}

.hero-inner .crumbs a:hover {
  color: var(--brand-primary)
}

.hero-inner .crumbs .sep {
  color: var(--line-strong)
}

.hero-inner h1 {
  max-width: 18ch
}

.hero-inner .lead {
  margin-top: 22px;
  max-width: 60ch
}

.hero-inner-meta {
  margin-top: 36px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line)
}

.hero-inner-meta .m {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.hero-inner-meta .l {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3)
}

.hero-inner-meta .v {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink)
}

/* =========================================================
   STICKY TAB NAV (soluciones)
   ========================================================= */
.tab-nav {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(247, 248, 250, .86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.tab-nav .row {
  display: flex;
  gap: 4px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none
}

.tab-nav .row::-webkit-scrollbar {
  display: none
}

.tab-nav a {
  padding: 9px 16px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: all var(--dur-1) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.tab-nav a:hover {
  color: var(--brand-primary);
  background: var(--brand-primary-50)
}

.tab-nav a.on {
  background: var(--ink-bg);
  color: #fff
}

.tab-nav a .num {
  font-family: var(--ff-mono);
  font-size: .68rem;
  opacity: .6;
  letter-spacing: .1em
}

/* =========================================================
   PRODUCT DETAIL block
   ========================================================= */
.product {
  padding: clamp(64px, 8vw, 108px) 0;
  position: relative
}

.product+.product {
  border-top: 1px solid var(--line)
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center
}

.product-grid.flip {
  grid-template-columns: 1fr 1fr
}

.product-grid.flip .product-media {
  order: 2
}

.product-media {
  aspect-ratio: 1.15;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2)
}

.product-media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--g-edge);
  z-index: 2
}

.product-copy h2 {
  margin-top: 14px
}

.product-copy .lead {
  margin-top: 18px
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line)
}

.product-specs .s {
  padding: 18px 22px 18px 0;
  border-bottom: 1px solid var(--line)
}

.product-specs .s:nth-child(2n) {
  padding-left: 22px;
  padding-right: 0;
  border-left: 1px solid var(--line)
}

.product-specs .l {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 6px
}

.product-specs .v {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em
}

.product-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px
}

.product-tags .t {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  background: var(--surface)
}

.product-bullet {
  margin-top: 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.product-bullet li {
  font-size: .95rem;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5
}

.product-bullet li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  margin-top: 9px;
  flex-shrink: 0
}

/* phone mockups in product media */
.product-media.dark {
  background: var(--ink-bg)
}

.phone-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(160deg, #1F506C 0%, #3A2772 100%)
}

.phone {
  width: 160px;
  aspect-ratio: .48;
  background: #0F2B3D;
  border-radius: 22px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4)
}

.phone .ph-screen {
  height: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.phone .ph-head {
  padding: 18px 16px 12px;
  background: #fff
}

.phone .ph-head .ph-eyebrow {
  font-family: var(--ff-mono);
  font-size: .55rem;
  letter-spacing: .16em;
  color: var(--ink-3);
  text-transform: uppercase
}

.phone .ph-head .ph-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 4px;
  color: var(--ink)
}

.phone .ph-body {
  flex: 1;
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.phone .ph-readout {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2)
}

.phone .ph-readout .vlabel {
  font-family: var(--ff-mono);
  font-size: .5rem;
  letter-spacing: .2em;
  color: var(--ink-3);
  text-transform: uppercase
}

.phone .ph-readout .vbig {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: -.02em;
  line-height: 1
}

.phone .ph-readout .vunit {
  font-family: var(--ff-mono);
  font-size: .55rem;
  color: var(--ink-3);
  margin-left: 4px
}

.phone .ph-mini-chart {
  height: 50px;
  background: repeating-linear-gradient(0deg, rgba(31, 80, 108, .06) 0 1px, transparent 1px 12px);
  border-radius: 4px;
  position: relative
}

.phone .ph-mini-chart::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 55%;
  height: 1.5px;
  background: var(--brand-primary);
  clip-path: polygon(0 50%, 15% 30%, 30% 80%, 45% 40%, 60% 70%, 75% 20%, 90% 50%, 100% 30%, 100% 100%, 0 100%)
}

.phone .ph-row {
  display: flex;
  gap: 4px
}

.phone .ph-row span {
  flex: 1;
  height: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: .5rem;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  letter-spacing: .1em
}

.phone .ph-row span.on {
  background: var(--brand-primary);
  color: #fff;
  border-color: transparent
}

/* PGSTAT mockup detail */
.pgstat-detail {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #2a4d68, #0F2B3D 70%)
}

.pgstat-detail .device {
  width: 72%;
  aspect-ratio: 1.5;
  position: relative;
  background: linear-gradient(180deg, #22384a, #0F2B3D);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08)
}

.pgstat-detail .screen {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 14%;
  bottom: 48%;
  background: #0a1d2b;
  border-radius: 6px;
  border: 1px solid rgba(79, 184, 230, .3);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.pgstat-detail .screen .row {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 8px;
  color: var(--ink-on-dark-2);
  letter-spacing: .15em
}

.pgstat-detail .screen .chart-mini {
  flex: 1;
  background: repeating-linear-gradient(0deg, rgba(79, 184, 230, .06) 0 1px, transparent 1px 8px);
  position: relative;
  border-radius: 2px
}

.pgstat-detail .screen .chart-mini::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent)
}

.pgstat-detail .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30%;
  text-align: center;
  font-family: var(--ff-mono);
  letter-spacing: .4em;
  font-size: 14px;
  color: var(--signal);
  font-weight: 500
}

.pgstat-detail .ports {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 14%;
  height: 10px;
  background: repeating-linear-gradient(90deg, #0a1d2b 0 8px, transparent 8px 16px);
  border-radius: 2px
}

.pgstat-detail .led {
  position: absolute;
  top: 20%;
  right: 14%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse-soft 1.8s var(--ease) infinite
}

/* IoT diagram large */
.iot-diagram {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #163A52 0%, #0F2B3D 100%)
}

.iot-diagram svg {
  width: 100%;
  height: 100%
}

/* =========================================================
   VERTICAL GRID (aplicaciones)
   ========================================================= */
.vert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.vert-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1.05;
  background: var(--ink-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease)
}

.vert-card:hover {
  transform: translateY(-4px)
}

.vert-card .vbg {
  position: absolute;
  inset: 0;
  opacity: .85
}

.vert-card .vshade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 43, 61, .2) 0%, rgba(15, 43, 61, .9) 75%);
  z-index: 1
}

.vert-card .vcontent {
  position: relative;
  z-index: 2
}

.vert-card .vico {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  color: var(--signal);
  backdrop-filter: blur(6px)
}

.vert-card .vico svg {
  width: 20px;
  height: 20px
}

.vert-card .vnum {
  position: absolute;
  top: 32px;
  right: 24px;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--ink-on-dark-2)
}

.vert-card h3 {
  color: #fff;
  margin-bottom: 8px
}

.vert-card p {
  color: var(--ink-on-dark-2);
  font-size: .92rem;
  line-height: 1.5;
  margin-bottom: 14px
}

.vert-card .vread {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.vert-card .vread svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-1) var(--ease)
}

.vert-card:hover .vread svg {
  transform: translateX(4px)
}

.vert-card .vtech {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--ink-on-dark-2);
  padding: 5px 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sm);
  backdrop-filter: blur(6px)
}

.v1 .vbg {
  background: linear-gradient(135deg, #0F2B3D 0%, #1F506C 50%, #3A2772 100%)
}

.v2 .vbg {
  background: linear-gradient(160deg, #1F506C 0%, #4FB8E6 100%)
}

.v3 .vbg {
  background: linear-gradient(135deg, #3A2772 0%, #1F506C 60%, #0F2B3D 100%)
}

.v4 .vbg {
  background: linear-gradient(160deg, #163A52 0%, #3A2772 100%)
}

.v5 .vbg {
  background: linear-gradient(135deg, #1F506C 0%, #173E55 100%)
}

.v6 .vbg {
  background: linear-gradient(160deg, #0F2B3D 0%, #1F506C 50%, #4FB8E6 100%)
}

.vert-card .vpattern {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 18px 18px
}

.vert-card.has-photo .vbg {
  opacity: 0.15;
  mix-blend-mode: overlay;
  transition: opacity var(--dur-2) var(--ease);
}

.vert-card.has-photo:hover .vbg {
  opacity: 0.25;
}

.vert-card.has-photo .photo {
  transition: transform var(--dur-3) var(--ease);
}

.vert-card.has-photo:hover .photo {
  transform: scale(1.05);
}


/* =========================================================
   INTEGRATION columns
   ========================================================= */
.integ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px
}

.integ-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative
}

.integ-card .ix {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--brand-primary-50);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px
}

.integ-card h4 {
  margin-bottom: 8px
}

.integ-card p {
  color: var(--ink-2);
  font-size: .93rem;
  line-height: 1.55
}

/* =========================================================
   CASES DETAIL (casos.html)
   ========================================================= */
.case-block {
  padding: clamp(64px, 8vw, 108px) 0;
  position: relative
}

.case-block+.case-block {
  border-top: 1px solid var(--line)
}

.case-block .case-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: flex-end;
  margin-bottom: 48px
}

.case-block .case-cover {
  aspect-ratio: 1.1;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2)
}

.case-block .case-cover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--g-edge);
  z-index: 2
}

.case-block .case-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px
}

.case-block .case-meta-row .ch {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  background: var(--surface)
}

.case-block h2 {
  margin-top: 6px
}

.case-block .case-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 18px
}

.case-block .cell h4 {
  margin-bottom: 10px;
  color: var(--brand-primary)
}

.case-block .cell p {
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.55
}

.case-block .kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface)
}

.case-block .kpis .k {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.case-block .kpis .v {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: -.025em;
  line-height: 1
}

.case-block .kpis .l {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px
}

.case-block .kpis .d {
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 4px
}

/* case covers (illustrative) */
.cover-1 {
  background:
    radial-gradient(circle at 30% 40%, rgba(79, 184, 230, .5), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(58, 39, 114, .6), transparent 50%),
    linear-gradient(135deg, #0F2B3D, #1F506C)
}

.cover-2 {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 12px),
    linear-gradient(135deg, #173E55, #3A2772)
}

.cover-3 {
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 184, 230, .25), transparent 60%),
    linear-gradient(135deg, #1F506C, #0F2B3D)
}

.cover-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end
}

.cover-label .sector {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--signal);
  text-transform: uppercase
}

.cover-label .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(15, 43, 61, .7);
  border: 1px solid rgba(79, 184, 230, .4);
  backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  color: #fff
}

.cover-label .live-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse-soft 1.5s var(--ease) infinite
}

/* =========================================================
   FORM (contacto)
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: flex-start
}

.contact-form {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1)
}

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px
}

.field label {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3)
}

.field input,
.field select,
.field textarea {
  font-family: var(--ff-body);
  font-size: .98rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: all var(--dur-1) var(--ease);
  outline: none
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-50)
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--ff-body)
}

.field .hint {
  font-size: .78rem;
  color: var(--ink-3)
}

.contact-form .submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap
}

.contact-form .req {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--ink-3)
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.contact-info .ci {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  gap: 16px;
  align-items: flex-start
}

.contact-info .ci .ix {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--brand-primary-50);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0
}

.contact-info .ci .ix svg {
  width: 20px;
  height: 20px
}

.contact-info .ci .l {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
  display: block
}

.contact-info .ci .v {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -.01em
}

.contact-info .ci .d {
  font-size: .88rem;
  color: var(--ink-2);
  margin-top: 2px;
  line-height: 1.5
}

/* =========================================================
   TEAM PAGE
   ========================================================= */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.cap-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative
}

.cap-card .num {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--brand-primary);
  font-weight: 500;
  display: block;
  margin-bottom: 14px
}

.cap-card h4 {
  margin-bottom: 8px
}

.cap-card p {
  color: var(--ink-2);
  font-size: .94rem;
  line-height: 1.55
}

.cap-card .tag {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.cap-card .tag .t {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  padding: 5px 10px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  border: 1px solid var(--line)
}

.events-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.event {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  gap: 16px;
  align-items: flex-start
}

.event .date {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--brand-primary);
  text-transform: uppercase
}

.event h4 {
  margin: 6px 0 4px
}

.event p {
  color: var(--ink-2);
  font-size: .9rem;
  line-height: 1.5
}

/* =========================================================
   RESPONSIVE — inner pages
   ========================================================= */
@media (max-width: 980px) {

  .product-grid,
  .product-grid.flip {
    grid-template-columns: 1fr;
    gap: 36px
  }

  .product-grid.flip .product-media {
    order: 0
  }

  .product-specs {
    grid-template-columns: 1fr
  }

  .product-specs .s:nth-child(2n) {
    border-left: 0;
    padding-left: 0;
    padding-right: 0
  }

  .vert-grid {
    grid-template-columns: 1fr 1fr
  }

  .case-block .case-head {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .case-block .case-body {
    grid-template-columns: 1fr
  }

  .case-block .kpis {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  .cap-grid {
    grid-template-columns: 1fr
  }

  .events-row {
    grid-template-columns: 1fr
  }

  .integ-grid {
    grid-template-columns: 1fr
  }

  .tab-nav {
    top: 56px
  }
}

@media (max-width: 640px) {
  .vert-grid {
    grid-template-columns: 1fr
  }

  .contact-form {
    padding: 24px
  }

  .contact-form .row {
    grid-template-columns: 1fr
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero {
    padding: 110px 0 64px
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px
  }

  .hero-visual {
    max-height: 560px
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr)
  }

  .sol-grid {
    grid-template-columns: 1fr
  }

  .cases-grid {
    grid-template-columns: 1fr
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 0
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 8px;
    justify-self: center
  }

  .stack-wrap {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
  }

  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px
  }

  .nav-links {
    display: none
  }

  .nav-actions .btn-primary {
    display: none
  }

  .nav-burger {
    display: inline-flex
  }
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0
  }

  .hero-stats .s {
    padding-right: 10px
  }

  .hero-stats .s+.s {
    padding-left: 12px
  }

  .hero-stats .v {
    font-size: 1.4rem
  }

  .team-grid {
    grid-template-columns: 1fr 1fr
  }

  .team-shot:nth-child(3) {
    display: none
  }

  .foot-top {
    grid-template-columns: 1fr
  }

  .trust-lbl {
    border-right: 0;
    padding-right: 0
  }
}

/* =========================================================
   REAL PHOTO INTEGRATION
   Drop-in <img class="photo"> + brand duotone overlay
   ========================================================= */
.team-shot .photo,
.sol-media .photo,
.product-media .photo,
.case-card .photo,
.case-cover .photo,
.vert-card .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

.case-cover.has-photo .photo {
  filter: contrast(1.04)
}

.case-cover.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 43, 61, .05) 0%, rgba(15, 43, 61, .2) 60%, rgba(15, 43, 61, .75) 100%);
  z-index: 1;
  pointer-events: none;
}

.team-shot.has-photo .photo {
  filter: contrast(1.04) saturate(1.05) brightness(1.02)
}

.team-shot.has-photo .duotone {
  background: linear-gradient(180deg, rgba(15, 43, 61, .05) 0%, rgba(15, 43, 61, .15) 55%, rgba(15, 43, 61, .72) 100%);
  z-index: 1;
}

.team-shot.has-photo .pattern {
  display: none
}

.team-shot.has-photo .placeholder-label {
  z-index: 3
}

.team-shot.has-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--g-edge);
  z-index: 4;
  opacity: .7;
}

.team-shot.has-photo .placeholder-label {
  padding: 10px 14px;
  background: rgba(15, 43, 61, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sm);
  bottom: 14px;
  left: 14px;
  right: 14px;
}

.sol-media.has-photo {
  background: var(--ink-bg)
}

.sol-media.has-photo .photo {
  filter: contrast(1.04) brightness(.96)
}

.sol-media.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 43, 61, .05) 0%, rgba(15, 43, 61, .35) 100%);
  z-index: 1;
  pointer-events: none;
}

.sol-media.has-photo .tag {
  z-index: 2
}

.product-media.has-photo {
  background: var(--ink-bg)
}

.product-media.has-photo .photo {
  filter: contrast(1.04)
}

.product-media.has-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(15, 43, 61, .45));
  z-index: 1;
  pointer-events: none;
}

/* phone screenshots inside product-media for Quark */
.phone-shots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 36px;
  background: linear-gradient(160deg, #1F506C 0%, #3A2772 100%)
}

.phone-shots .phone-real {
  width: 160px;
  aspect-ratio: .48;
  background: #0F2B3D;
  border-radius: 22px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
  overflow: hidden
}

.phone-shots .phone-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block
}

.phone-shots .phone-real.tilt {
  transform: rotate(-3deg)
}

/* event card photo */
.event-photo {
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  background: var(--ink-bg)
}

.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.03)
}

.event-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 43, 61, .35))
}

/* accessibility: skip-to-content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  border-radius: var(--r-sm);
  text-transform: uppercase
}

.skip-link:focus {
  left: 16px
}

/* respect contrast / no-motion for the dot-grid on dark sections */
@media (prefers-reduced-motion: reduce) {

  .telemetry-pill .dot-pulse::after,
  .hv-head .dot.live,
  .case-card .live .dot,
  .hv-chart .point-pulse {
    animation: none !important
  }
}

/* =========================================================
   MOBILE — comprehensive responsive fixes (added v2.1)
   ========================================================= */

/* prevent horizontal scroll from absolute decorative layers */
html,
body {
  overflow-x: hidden;
  max-width: 100%
}

@media (max-width: 980px) {

  /* Inner-page hero meta stacks instead of crowding */
  .hero-inner {
    padding: 110px 0 48px
  }

  .hero-inner-meta {
    gap: 18px
  }

  /* KPI grids in aplicacion sub-pages (override inline styles) */
  .kpis[style] {
    grid-template-columns: repeat(3, 1fr) !important
  }

  /* Phone shots: reduce phone size + padding */
  .phone-shots {
    padding: 28px;
    gap: 18px
  }

  .phone-shots .phone-real {
    width: 140px
  }

  /* Custom banner stacks text + button */
  .custom-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px
  }

  /* Section head with inline flex (soluciones, etc.) — let it stack cleanly */
  .section-head[style*="display:flex"] {
    display: block !important
  }

  .section-head[style*="display:flex"] .lead {
    margin-top: 18px;
    max-width: none !important
  }

  /* Case-block head — override inline grid-template-columns from caso-02 */
  .case-block .case-head[style] {
    grid-template-columns: 1fr !important;
    gap: 32px
  }

  /* Tab nav slightly tighter */
  .tab-nav a {
    padding: 8px 14px;
    font-size: .88rem
  }
}

@media (max-width: 720px) {

  /* Hero h1 break tags become spaces on narrow screens */
  .hero h1 br,
  .hero-inner h1 br,
  .final-cta h2 br,
  .section-head h2 br {
    display: none
  }

  /* Hero visual scales down */
  .hero-visual {
    aspect-ratio: 5/6.6;
    max-height: 540px
  }

  /* hv-iot 4 nodes → 2x2 on narrow */
  .hv-iot .nodes {
    grid-template-columns: repeat(2, 1fr)
  }

  /* Hero stats: smaller fonts */
  .hero-stats .v {
    font-size: 1.4rem
  }

  /* Case cards: shorter aspect on phones */
  .case-card {
    aspect-ratio: auto;
    min-height: 420px
  }

  /* Pillars: 1 col on small */
  .pillars {
    grid-template-columns: 1fr
  }

  /* Section padding compresses */
  .section {
    padding: 56px 0
  }

  .product {
    padding: 48px 0
  }

  /* KPIs in aplicacion sub-pages → 1 col */
  .kpis[style] {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
    gap: 14px !important
  }

  /* Phone shots even smaller */
  .phone-shots {
    padding: 20px;
    gap: 12px
  }

  .phone-shots .phone-real {
    width: 120px
  }

  .phone-shots .phone-real.tilt {
    transform: rotate(-2deg)
  }

  /* hero-inner-meta: stack as cards with separators */
  .hero-inner-meta {
    flex-direction: column;
    gap: 14px;
    align-items: stretch
  }

  .hero-inner-meta .m {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line)
  }

  .hero-inner-meta .m:last-child {
    padding-bottom: 0;
    border-bottom: 0
  }

  /* Final CTA inner */
  .final-cta .inner {
    padding: 56px 28px
  }

  /* Drawer items */
  .drawer {
    padding: 84px 24px 28px
  }

  .drawer a {
    font-size: 1.4rem
  }

  /* Trust strip */
  .trust {
    padding: 28px 0
  }

  .trust-items {
    gap: 14px
  }

  .trust-lbl {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 8px
  }

  /* Section head margins */
  .section-head {
    margin-bottom: 36px
  }

  /* Team grid: 1 col on phones */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .team-shot {
    aspect-ratio: 5/4
  }

  .team-shot:nth-child(3) {
    display: block
  }

  /* Footer cleanup */
  footer {
    padding: 56px 0 24px
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px
  }

  .foot-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: .68rem
  }

  /* Contact form */
  .contact-form {
    padding: 24px
  }

  /* Soluciones tab nav scrolls horizontally */
  .tab-nav .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  /* Crumbs: smaller and wrap */
  .hero-inner .crumbs,
  .crumbs {
    font-size: .65rem;
    flex-wrap: wrap;
    gap: 6px
  }
}

@media (max-width: 480px) {

  /* Body base size slight reduction */
  body {
    font-size: 15px
  }

  /* Hero padding */
  .hero {
    padding: 96px 0 56px
  }

  /* Container gutter tighter */
  :root {
    --gutter: 18px
  }

  /* Hero pill smaller */
  .hero-pill {
    font-size: .62rem;
    padding: 6px 12px
  }

  /* CTAs full-width stack on tiny */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px
  }

  .hero-cta .btn {
    justify-content: center
  }

  .final-cta .ctas {
    flex-direction: column;
    align-items: stretch
  }

  .final-cta .ctas .btn {
    justify-content: center
  }

  .product-cta {
    flex-direction: column;
    align-items: stretch
  }

  .product-cta .btn {
    justify-content: center
  }

  /* Hero stats: 2x2 layout (third spans full width) */
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px
  }

  .hero-stats .s {
    padding-right: 14px
  }

  .hero-stats .s+.s {
    padding-left: 14px
  }

  .hero-stats .s:nth-child(3) {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-right: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--line)
  }

  /* Hero visual: keep more reasonable */
  .hero-visual {
    aspect-ratio: auto;
    max-height: none
  }

  .hv-readout .big {
    font-size: 2rem
  }

  .hv-chart {
    height: 140px
  }

  /* Buttons slightly smaller */
  .btn-lg {
    padding: 14px 22px;
    font-size: .95rem
  }

  /* Section head smaller h2 */
  .section-head h2 br {
    display: none
  }

  /* Pillars padding */
  .pillar {
    padding: 28px 22px
  }

  /* Sol-card cta */
  .sol-card .cta {
    padding: 14px 22px 22px
  }

  .sol-body {
    padding: 22px 22px 24px
  }

  /* Stack item */
  .stack-item {
    padding: 14px 16px;
    gap: 14px
  }

  .stack-item .ix {
    width: 36px;
    height: 36px
  }

  /* Hero stats top margin */
  .hero-stats {
    margin-top: 40px;
    padding-top: 24px
  }

  /* Telemetry pill smaller */
  .telemetry-pill {
    font-size: .65rem;
    padding: 7px 12px;
    left: 8px;
    bottom: 12px
  }

  /* Final CTA copy */
  .final-cta h2 {
    font-size: 1.8rem
  }

  /* Tab nav buttons tighter */
  .tab-nav a {
    font-size: .82rem;
    padding: 7px 12px
  }

  .tab-nav a .num {
    display: none
  }

  /* Custom banner padding */
  .custom-banner {
    padding: 24px 20px
  }

  .custom-banner h3 {
    font-size: 1.15rem
  }

  /* Sub-page integ cards padding */
  .integ-card {
    padding: 24px 20px
  }
}

/* Safe-area inset support (iOS notch) */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* =========================================================
   MOBILE — new component overrides (flow, stack-rack, footer)
   ========================================================= */
@media (max-width: 980px) {

  /* Flow: stack vertical with center line */
  .flow {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .flow-arrow {
    padding-top: 0;
    transform: rotate(90deg);
    justify-self: center
  }

  .flow-arrow::before,
  .flow-arrow::after {
    display: none
  }

  .flow-step {
    padding: 28px 24px
  }

  /* Stack rack: cleaner spacing */
  .rack-layer {
    grid-template-columns: 32px 1fr auto;
    padding: 14px
  }

  .rack-layer .rl-content {
    font-size: .85rem;
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    padding-top: 6px
  }

  .rack-layer .rl-tag {
    position: absolute;
    top: 14px;
    right: 14px
  }

  .rack-layer .rl-label {
    justify-self: start
  }
}

@media (max-width: 720px) {

  /* Footer mobile redesign */
  .foot-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px
  }

  .foot-brand {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-dark);
    text-align: left;
  }

  .foot-brand p {
    max-width: none;
    font-size: .9rem
  }

  .foot-col h5 {
    margin-bottom: 14px
  }

  .foot-col ul {
    gap: 12px
  }

  .foot-col a {
    font-size: 1rem;
    padding: 4px 0;
    display: block
  }

  .foot-col .addr {
    font-size: .92rem
  }

  .foot-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: .66rem;
    padding-top: 20px
  }

  footer {
    padding: 48px 0 24px
  }

  /* Stack rack header/foot smaller */
  .rack-head,
  .rack-foot {
    padding: 6px 12px 10px;
    font-size: .6rem
  }

  .rack-layer .rl-content {
    font-size: .82rem
  }

  /* Flow arrow visible center */
  .flow-arrow {
    padding: 4px 0
  }

  /* Team photos: foto se vea bien */
  .team-shot.has-photo .duotone {
    background: linear-gradient(180deg, rgba(15, 43, 61, .04) 0%, rgba(15, 43, 61, .18) 50%, rgba(15, 43, 61, .78) 100%);
  }
}

@media (max-width: 980px) {
  .wwd-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .wwd-cell {
    border-bottom: 1px dashed var(--line)
  }

  .wwd-cell:nth-child(2) {
    border-right: 0
  }

  .wwd-cell:nth-child(3),
  .wwd-cell:nth-child(4) {
    border-bottom: 0
  }
}

@media (max-width: 480px) {
  .rack-layer {
    padding: 12px
  }

  .rack-layer .rl-num {
    font-size: .62rem;
    padding: 3px 6px
  }

  .rack-layer .rl-label {
    font-size: .6rem
  }

  .rack-layer .rl-content {
    font-size: .78rem
  }

  .rack-layer .rl-tag {
    font-size: .55rem
  }

  .stack-rack {
    padding: 14px
  }

  .stack-pills {
    gap: 6px
  }

  .stack-pills .p {
    font-size: .66rem;
    padding: 5px 10px
  }

  /* Footer compact on tiny */
  .foot-brand .word {
    font-size: 1.05rem
  }

  .foot-brand p {
    font-size: .86rem
  }

  /* What we do: 1 col on tiny */
  .wwd-grid {
    grid-template-columns: 1fr
  }

  .wwd-cell {
    border-right: 0 !important;
    border-bottom: 1px dashed var(--line) !important
  }

  .wwd-cell:last-child {
    border-bottom: 0 !important
  }

  .wwd {
    padding: 24px 0
  }
}