/* ============================================================
   EGANTIC — Sistema visual del sitio corporativo
   Azul profundo + verde de marca · Inter · Minimalismo técnico
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Paleta muestreada del logo oficial E-GAN:
     azul #144163 · verde #3A9F57 */
  --navy-950: #051c2c;
  --navy-900: #0a2c43;
  --navy-800: #144163;
  --navy-700: #1c5478;
  --green: #3a9f57;
  --green-600: #2f8649;
  --green-700: #266c3b;
  --green-100: #d9f0e1;
  --green-50: #f0f8f3;

  --ink: #0b1b2b;
  --body: #46586a;
  --muted: #6b7c8d;
  --line: #e3e9ef;
  --line-strong: #cfd9e3;
  --paper: #f7f9fb;
  --white: #ffffff;
  --soft: #eef3f7;

  --max: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(6, 42, 69, 0.06);
  --shadow-md: 0 24px 50px -32px rgba(6, 42, 69, 0.35);
  --shadow-lg: 0 40px 90px -48px rgba(4, 27, 45, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--green);
  color: var(--navy-950);
}

:focus-visible {
  outline: 3px solid rgba(58, 159, 87, 0.65);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--navy-950);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 48px, 820px);
  margin-inline: auto;
}

/* ---------- Tipografía ---------- */

h1,
h2,
h3,
h4 {
  color: var(--navy-950);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h4 {
  font-size: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.eyebrow.on-dark {
  color: #7ee2a8;
}

.lead {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--body);
  line-height: 1.7;
  text-wrap: pretty;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8125rem;
  line-height: 1.55;
}

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- Layout ---------- */

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 14px 0 16px;
}

.section-head p {
  max-width: 640px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center p {
  margin-inline: auto;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.section-head-row .section-head {
  margin-bottom: 0;
}

.bg-white {
  background: var(--white);
}

.bg-soft {
  background: var(--soft);
}

.bg-navy {
  background: var(--navy-950);
  color: #dbe6ef;
}

.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
  color: #fff;
}

.bg-navy .lead {
  color: #a9bccd;
}

.bg-navy .eyebrow {
  color: #7ee2a8;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 10px 24px -16px rgba(0, 56, 93, 0.9);
}

.btn-primary:hover {
  background: var(--navy-950);
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green);
  color: var(--navy-950);
  font-weight: 750;
}

.btn-green:hover {
  background: var(--green-600);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--navy-900);
}

.btn-ghost:hover {
  border-color: var(--navy-800);
  background: var(--soft);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-sm {
  padding: 10px 15px;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 15px 24px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy-800);
  font-size: 0.875rem;
  font-weight: 750;
  cursor: pointer;
}

.btn-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.btn-link:hover svg {
  transform: translateX(4px);
}

.btn-link.on-dark {
  color: #8ee9b4;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 251, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -28px rgba(6, 42, 69, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  color: var(--navy-950);
}

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

.brand-mark img,
.brand-mark svg {
  width: 40px;
  height: auto;
  max-height: 30px;
  object-fit: contain;
}

.brand .tic {
  color: var(--green-600);
}

.brand-tag {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--body);
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover {
  color: var(--navy-900);
  background: var(--soft);
}

.nav-links a[aria-current="page"] {
  color: var(--navy-950);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy-900);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  margin: auto;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 12px 0 22px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav nav {
  display: grid;
  gap: 2px;
}

.mobile-nav a {
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--body);
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--navy-950);
}

.mobile-nav .btn {
  margin-top: 12px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 84px;
  background:
    radial-gradient(900px 520px at 88% 4%, rgba(58, 159, 87, 0.11), transparent 62%),
    radial-gradient(800px 480px at 8% 0%, rgba(0, 56, 93, 0.08), transparent 62%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(6, 42, 69, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 42, 69, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
  pointer-events: none;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 18px 0 22px;
}

.hero h1 .accent {
  color: var(--green-600);
}

.hero .lead {
  max-width: 570px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  display: block;
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-note .dot {
  display: inline-block;
  vertical-align: middle;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(58, 159, 87, 0.14);
}

.hero-panel {
  position: relative;
}

.topology {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #083250 0%, #041b2d 58%, #031522 100%);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.topology-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 12px;
}

.topology-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.topology-bar .dot:first-child {
  background: var(--green);
}

.topology-bar .label {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.topology svg {
  width: 100%;
  height: auto;
}

.topology-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 4px 2px;
}

.topology-legend span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  font-size: 0.72rem;
  color: var(--body);
}

.hero-chip strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--navy-950);
}

.hero-chip .pulse {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--green-50);
  color: var(--green-700);
}

.hero-chip .pulse::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 159, 87, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(58, 159, 87, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(58, 159, 87, 0);
  }
}

/* SVG topology animation */
.topo-line {
  stroke-dasharray: 4 7;
  animation: dash 14s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -110;
  }
}

.topo-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathe 5s ease-in-out infinite;
}

.topo-node:nth-of-type(2) {
  animation-delay: 0.8s;
}

.topo-node:nth-of-type(3) {
  animation-delay: 1.6s;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: clamp(1.65rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy-950);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Sectores ---------- */

.sector-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.sector-row .label {
  margin-right: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--body);
}

.chip svg {
  width: 13px;
  height: 13px;
  color: var(--green-600);
}

.chip.on-dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #c4d4e2;
}

/* ---------- Tarjetas de servicio ---------- */

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-num {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--line-strong);
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--body);
}

.service-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 22px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--soft);
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--body);
}

.service-card .btn-link {
  margin-top: auto;
}

/* ---------- Banda de productos ---------- */

.products-band {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: #dce8f2;
}

.products-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(58, 159, 87, 0.14), transparent 60%),
    radial-gradient(600px 380px at 8% 100%, rgba(11, 75, 118, 0.55), transparent 65%);
  pointer-events: none;
}

.products-band .container {
  position: relative;
  z-index: 1;
}

.products-band h2 {
  color: #fff;
}

.products-band .lead {
  color: #a9bccd;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(58, 159, 87, 0.45);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.product-card .product-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #79dfa2;
}

.product-card .product-kicker span:last-child {
  color: rgba(255, 255, 255, 0.35);
}

.product-card h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  color: #fff;
}

.product-card .product-tagline {
  min-height: 48px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: #a9bccd;
  line-height: 1.55;
}

.product-card ul {
  display: grid;
  gap: 9px;
  margin-bottom: 24px;
}

.product-card li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #d5e2ec;
}

.product-card li svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: none;
  color: var(--green);
}

.product-card .btn-link {
  margin-top: auto;
}

.product-card .mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}

.product-card .mini-tags span {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #a9bccd;
}

/* Selector rápido */
.selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.selector > * {
  display: block;
  padding: 20px;
  background: rgba(5, 28, 44, 0.72);
  transition: background 0.22s var(--ease);
}

a.selector-item:hover {
  background: rgba(20, 65, 99, 0.9);
}

a.selector-item:hover strong::after {
  transform: translateX(4px);
}

.selector .q {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fdcb4;
}

.selector p {
  font-size: 0.82rem;
  color: #d5e2ec;
  line-height: 1.5;
}

.selector strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #fff;
}

.selector strong::after {
  content: "→";
  transition: transform 0.22s var(--ease);
}

/* ---------- Proyectos ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.project-cat {
  display: block;
  margin-bottom: 8px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
}

.project-sector {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--soft);
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--muted);
}

.project-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.project-card p {
  font-size: 0.84rem;
  color: var(--body);
  line-height: 1.6;
}

.project-card .project-result {
  display: flex;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--green-50);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--green-700);
  font-weight: 600;
}

.project-card .project-result svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
}

.project-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.project-card .tag {
  font-size: 0.62rem;
  padding: 3px 7px;
}

/* Tarjeta de sistema: idea de negocio y características */
.project-scope {
  display: grid;
  gap: 10px;
  margin: 12px 0 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.project-scope p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.project-scope strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-800);
}

/* Filtros */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn .filter-count {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.filter-btn.is-active .filter-count {
  color: rgba(255, 255, 255, 0.7);
}

.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--navy-950);
}

.filter-btn.is-active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}

.project-card[hidden] {
  display: none;
}

/* Estado del filtro y numeración de sistemas */
.filter-status {
  margin: 0 0 28px;
  font-size: 0.78rem;
  color: var(--muted);
}

.filter-status strong {
  color: var(--navy-900);
  font-weight: 700;
}

.project-index {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Portafolio: productos propios ---------- */
.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.flagship-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.flagship-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-800), var(--green));
}

.flagship-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.flagship-kicker {
  margin-bottom: 10px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
}

.flagship-card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.flagship-card > p {
  font-size: 0.85rem;
  color: var(--body);
  line-height: 1.6;
}

.flagship-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.flagship-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--body);
}

.flagship-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--green);
}

.flagship-card .project-result {
  margin: 18px 0 14px;
}

.flagship-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
}

.flagship-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
}

.flagship-note span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Galería de capturas ---------- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.shot--wide {
  grid-column: 1 / -1;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.shot:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.shot-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(5, 28, 44, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 650;
  backdrop-filter: blur(6px);
}

.shot-note {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--muted);
}

.shot-dialog {
  position: relative;
  max-width: min(1180px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--navy-950);
  color: #d5e2ec;
  overflow: auto;
}

.shot-dialog::backdrop {
  background: rgba(5, 28, 44, 0.78);
  backdrop-filter: blur(4px);
}

.shot-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-dialog-cap {
  padding: 12px 18px;
  font-size: 0.8rem;
}

.shot-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(5, 28, 44, 0.7);
  color: #fff;
  cursor: pointer;
}

.shot-dialog-close:hover {
  background: rgba(20, 65, 99, 0.9);
}

@media (max-width: 980px) {
  .flagship-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Método ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 30px 24px 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step + .step {
  padding-left: 24px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy-800);
  background: var(--white);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.step p {
  font-size: 0.82rem;
  color: var(--body);
  line-height: 1.6;
}

.step .step-out {
  display: block;
  margin-top: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
}

/* ---------- Seguridad ---------- */

.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.security-list {
  display: grid;
  gap: 14px;
}

.security-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.security-item .icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  background: rgba(58, 159, 87, 0.14);
  color: #7ee2a8;
}

.security-item .icon svg {
  width: 19px;
  height: 19px;
}

.security-item h3 {
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #fff;
}

.security-item p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #a9bccd;
}

.security-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 2px solid var(--green);
  background: rgba(58, 159, 87, 0.07);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #c4d4e2;
}

/* ---------- Stack ---------- */

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--body);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--navy-950);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--navy-800);
  transform: translate(-50%, -50%);
  transition: transform 0.22s var(--ease);
}

.faq summary .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq details[open] summary .plus::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq details[open] summary {
  color: var(--navy-800);
}

.faq .faq-body {
  padding: 0 20px 20px;
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--body);
}

.faq .faq-body p + p {
  margin-top: 10px;
}

/* ---------- CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--navy-800);
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 88% 20%, rgba(58, 159, 87, 0.25), transparent 60%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.03), transparent 60%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  max-width: 680px;
  color: #fff;
}

.cta-band p {
  max-width: 620px;
  margin-top: 10px;
  color: #c4d8e7;
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 28px;
  background: var(--navy-950);
  color: #9fb3c5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand .tic {
  color: #6ee7a0;
}

.site-footer .brand-tag {
  color: #7f95a8;
}

.footer-about p {
  max-width: 300px;
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #93a9bc;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6ee7a0;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  font-size: 0.8rem;
  color: #b6c7d5;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact {
  display: grid;
  gap: 9px;
  font-size: 0.8rem;
}

.footer-contact a {
  color: #b6c7d5;
  word-break: break-word;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  font-size: 0.7rem;
  color: #7f95a8;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 16px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Página interior / hero compacto ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(58, 159, 87, 0.09), transparent 62%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  font-size: 0.72rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--body);
}

.breadcrumb a:hover {
  color: var(--navy-800);
}

.breadcrumb svg {
  width: 12px;
  height: 12px;
  opacity: 0.55;
}

.page-hero h1 {
  max-width: 900px;
  margin: 14px 0 18px;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
}

.page-hero .lead {
  max-width: 720px;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.page-hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.summary-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.summary-card h2 {
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.summary-list {
  display: grid;
  gap: 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.summary-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.summary-list dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-list dd {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.5;
}

.summary-card .btn {
  margin-top: 18px;
}

/* ---------- Bloques de producto ---------- */

.product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.product-nav a {
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--body);
}

.product-nav a:hover {
  background: var(--soft);
}

.product-nav a[aria-current="page"] {
  background: var(--navy-800);
  color: #fff;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.problem-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.problem-card .icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  border-radius: 9px;
  background: #fff1f2;
  color: #be123c;
}

.problem-card .icon svg {
  width: 19px;
  height: 19px;
}

.problem-card h3 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.problem-card p {
  font-size: 0.82rem;
  color: var(--body);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--green-50);
  color: var(--green-700);
}

.feature .icon svg {
  width: 18px;
  height: 18px;
}

.feature h3 {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.feature p {
  font-size: 0.8rem;
  color: var(--body);
  line-height: 1.6;
}

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

.benefit {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.benefit .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--navy-800);
  color: #fff;
}

.benefit .ico svg {
  width: 19px;
  height: 19px;
}

.benefit h3 {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.benefit p {
  font-size: 0.82rem;
  color: var(--body);
  line-height: 1.6;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.scope-card h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.check-list {
  display: grid;
  gap: 9px;
}

.check-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--body);
}

.check-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--green-600);
}

.check-list.cross svg {
  color: #94a3b8;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line-strong);
  margin-left: 8px;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline-item h3 {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.timeline-item .phase {
  display: block;
  margin-bottom: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
}

.timeline-item p {
  font-size: 0.82rem;
  color: var(--body);
  line-height: 1.6;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.biz-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.biz-card .badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--green-50);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
}

.biz-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.biz-card p {
  font-size: 0.82rem;
  color: var(--body);
  line-height: 1.6;
}

.biz-card ul {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.biz-card li {
  font-size: 0.76rem;
  color: var(--body);
  line-height: 1.45;
  padding-left: 13px;
  position: relative;
}

.biz-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-600);
}

.audience-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audience-row span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--body);
}

.cross-sell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cross-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.cross-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.cross-card h3 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.cross-card p {
  font-size: 0.78rem;
  color: var(--muted);
}

.cross-card--wide {
  grid-column: 1 / -1;
}

.cross-card svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--navy-800);
}

/* ---------- Nosotros ---------- */

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

.value {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.value .n {
  display: block;
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green-700);
}

.value h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.value p {
  font-size: 0.84rem;
  color: var(--body);
  line-height: 1.62;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.table-scroll .capability-table {
  border: 0;
  border-radius: 0;
  min-width: 860px;
}

.capability-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  font-size: 0.82rem;
}

.capability-table th,
.capability-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.capability-table th {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
}

.capability-table tr:last-child td {
  border-bottom: 0;
}

.capability-table td:first-child {
  font-weight: 700;
  color: var(--navy-950);
  width: 30%;
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 21%;
  background: var(--soft);
  font-weight: 750;
  color: var(--navy-950);
}

.compare-table th:not(:first-child) {
  color: var(--navy-800);
  font-size: 10.5px;
}

.compare-table td {
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.contact-card .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-700);
}

.contact-card .icon svg {
  width: 19px;
  height: 19px;
}

.contact-card .label {
  display: block;
  margin-bottom: 2px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-950);
  word-break: break-word;
}

.contact-card small {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--muted);
}

.message-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.message-card h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.message-card > p {
  margin-bottom: 20px;
  font-size: 0.86rem;
  color: var(--body);
}

.message-card .check-list {
  margin-bottom: 24px;
}

.message-card .btn + .btn {
  margin-top: 9px;
}

.hours-note {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.hours-note svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--green-600);
}

/* ---------- Legal ---------- */

.legal-body {
  max-width: 800px;
  padding: 56px 0 72px;
}

.legal-body h2 {
  margin: 32px 0 10px;
  font-size: 1.25rem;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--body);
  line-height: 1.7;
}

.legal-body ul {
  padding-left: 20px;
  list-style: disc;
}

.legal-body li::marker {
  color: var(--green-600);
}

.legal-body a {
  color: var(--navy-800);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--soft);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 72px 0;
  text-align: center;
}

.error-code {
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--navy-800);
}

.error-page h1 {
  margin: 16px 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.error-page p {
  max-width: 520px;
  margin-inline: auto;
  color: var(--body);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  font-size: 0.8rem;
}

.error-links a {
  color: var(--navy-800);
  font-weight: 650;
}

.error-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Utilidades ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
    filter 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

.reveal-delay-1 {
  transition-delay: 0.07s;
}

.reveal-delay-2 {
  transition-delay: 0.14s;
}

.reveal-delay-3 {
  transition-delay: 0.21s;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--body);
}

.callout svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--green-700);
}

.callout strong {
  color: var(--navy-950);
}

.factor-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Bloques de servicio (servicios.html) ---------- */

.service-facts {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.callout--result {
  border-left-color: var(--navy-800);
  background: var(--soft);
}

.callout--result svg {
  color: var(--navy-800);
}

.callout--result strong {
  color: var(--navy-950);
}

.mt-xs {
  margin-top: 8px;
}

.mt-sm {
  margin-top: 14px;
}

.mt-md {
  margin-top: 24px;
}

.mb-sm {
  margin-bottom: 14px;
}

.mb-md {
  margin-bottom: 24px;
}

/* ---------- Responsive ---------- */

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-panel {
    max-width: 640px;
  }

  .hero-chip {
    left: auto;
    right: 18px;
    bottom: 18px;
  }

  .product-grid,
  .project-grid,
  .feature-grid,
  .biz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card:last-child,
  .project-card:last-child {
    grid-column: span 1;
  }

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact-col {
    grid-column: span 3;
  }

  .page-hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .summary-card {
    max-width: 560px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .split > * {
    min-width: 0;
  }
}

@media (max-width: 880px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    height: 68px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .step {
    padding: 26px 20px 26px 0;
    border-bottom: 1px solid var(--line);
  }

  .step:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .step:nth-child(3),
  .step:nth-child(4) {
    border-bottom: 0;
    padding-top: 26px;
  }

  .step:nth-child(3) {
    padding-left: 0;
  }

  .step:nth-child(4) {
    padding-left: 20px;
  }

  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

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

  .grid-3,
  .grid-4,
  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selector {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .container,
  .container-narrow {
    width: min(100% - 36px, var(--max));
  }

  .hero {
    padding: 52px 0 62px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-chip {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .product-grid,
  .project-grid,
  .feature-grid,
  .biz-grid,
  .problem-grid,
  .benefit-grid,
  .scope-grid,
  .values-grid,
  .cross-sell {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .stat strong {
    font-size: 1.55rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .steps {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .step {
    padding: 22px 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .product-card,
  .project-card,
  .service-card {
    padding: 22px;
  }

  .message-card {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-about {
    grid-column: span 2;
  }

  .footer-contact-col {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .summary-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ============================================================
   Demos de producto — EGAN Design System v1.1
   Azul #2563EB · neutros slate · Inter 14 px · radios 8/12/16
   ============================================================ */

.brand-mark--dark {
  width: 40px;
}

.demo-page {
  --ds-primary: #2563eb;
  --ds-primary-700: #1d4ed8;
  --ds-primary-50: #eff6ff;
  --ds-bg: #f8fafc;
  --ds-card: #ffffff;
  --ds-soft: #f1f5f9;
  --ds-line: #e2e8f0;
  --ds-line-strong: #cbd5e1;
  --ds-ink: #0f172a;
  --ds-body: #475569;
  --ds-muted: #64748b;
  --ds-faint: #64748b;
  --ds-success: #059669;
  --ds-warning: #d97706;
  --ds-danger: #dc2626;
  --ds-cyan: #0891b2;
  --ds-radius: 12px;
  --ds-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.demo-hero {
  padding: 48px 0 40px;
  background: var(--ds-bg, #f8fafc);
  background-image: none;
}

.demo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: center;
}

.demo-hero h1 {
  max-width: 780px;
}

.demo-hero .lead {
  max-width: 680px;
}

.demo-hero .eyebrow,
.demo-section .eyebrow {
  color: var(--ds-primary-700, #1d4ed8);
}

.demo-hero .eyebrow::before,
.demo-section .eyebrow::before {
  background: var(--ds-primary, #2563eb);
}

.demo-hero-panel {
  padding: 16px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px -46px rgba(15, 23, 42, 0.5);
}

.demo-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ds-soft, #f1f5f9);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ds-muted, #64748b);
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ds-primary-700, #1d4ed8);
  letter-spacing: 0.08em;
}

.demo-live > span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a9f57;
}

.demo-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ds-soft, #f1f5f9);
  color: inherit;
}

.demo-mini-row:hover .demo-mini-copy strong {
  color: var(--ds-primary-700, #1d4ed8);
}

.demo-mini-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
}

.demo-mini-icon svg {
  width: 17px;
  height: 17px;
}

.demo-mini-blue {
  background: #eff6ff;
  color: #2563eb;
}

.demo-mini-cyan {
  background: #ecfeff;
  color: #0891b2;
}

.demo-mini-amber {
  background: #fffbeb;
  color: #b45309;
}

.demo-mini-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.demo-mini-copy strong {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ds-ink, #0f172a);
  transition: color 0.18s;
}

.demo-mini-copy small {
  font-size: 10px;
  color: var(--ds-muted, #64748b);
}

.demo-mini-value {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ds-ink, #0f172a);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demo-panel-note {
  margin-top: 10px;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--ds-faint, #94a3b8);
}

.demo-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 14px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-left: 3px solid var(--ds-primary, #2563eb);
  border-radius: 8px;
  background: #fff;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ds-body, #475569);
}

.demo-disclaimer svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  color: var(--ds-primary, #2563eb);
}

.demo-disclaimer strong {
  color: var(--ds-ink, #0f172a);
}

.demo-jump {
  border-bottom: 1px solid var(--ds-line, #e2e8f0);
  background: #fff;
}

.demo-jump .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.demo-jump-label {
  margin-right: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ds-faint, #94a3b8);
}

.demo-jump a {
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ds-body, #475569);
}

.demo-jump a:hover {
  background: var(--ds-soft, #f1f5f9);
  color: var(--ds-ink, #0f172a);
}

.demo-jump .demo-jump-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--ds-primary-700, #1d4ed8);
}

.demo-jump .demo-jump-cta svg {
  width: 14px;
  height: 14px;
}

.demo-section {
  background: #fff;
}

.demo-section-alt {
  border-top: 1px solid var(--ds-line, #e2e8f0);
  border-bottom: 1px solid var(--ds-line, #e2e8f0);
  background: var(--ds-bg, #f8fafc);
}

.demo-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 30px;
}

.demo-product-id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-product-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
}

.demo-product-mark svg {
  width: 24px;
  height: 24px;
}

.demo-mark-blue {
  background: #eff6ff;
  color: #2563eb;
}

.demo-mark-cyan {
  background: #ecfeff;
  color: #0891b2;
}

.demo-mark-amber {
  background: #fffbeb;
  color: #b45309;
}

.demo-product-id h2 {
  margin-top: 3px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.demo-section-head .lead {
  font-size: 0.95rem;
  line-height: 1.68;
}

.demo-section-head .tag-row {
  margin-top: 15px;
}

.demo-section-head .tag {
  background: var(--ds-soft, #f1f5f9);
  color: var(--ds-body, #475569);
}

/* ---------- Ventana de aplicación ---------- */

.app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ds-line-strong, #cbd5e1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 80px -52px rgba(15, 23, 42, 0.55);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ds-body, #475569);
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--ds-line, #e2e8f0);
  background: var(--ds-soft, #f1f5f9);
}

.app-dots {
  display: inline-flex;
  gap: 5px;
  flex: none;
}

.app-dots > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.app-dots > span:first-child {
  background: #fda4af;
}

.app-dots > span:nth-child(2) {
  background: #fcd34d;
}

.app-dots > span:last-child {
  background: #86efac;
}

.app-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 3px 9px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 6px;
  background: #fff;
  color: var(--ds-muted, #64748b);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-demo-tag {
  flex: none;
  padding: 3px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-body {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-width: 0;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 16px 12px;
  border-right: 1px solid var(--ds-line, #e2e8f0);
  background: #fff;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 6px 14px;
  border-bottom: 1px solid var(--ds-soft, #f1f5f9);
}

.app-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  flex: none;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 7px;
  background: #fff;
}

.app-logo img {
  width: 26px;
  height: auto;
}

.app-brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.app-brand-text strong {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ds-ink, #0f172a);
  letter-spacing: -0.01em;
}

.app-brand-text small {
  overflow: hidden;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ds-faint, #94a3b8);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav {
  display: grid;
  gap: 2px;
}

.app-nav-label {
  margin: 5px 7px 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ds-faint, #94a3b8);
}

.app-nav-item {
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ds-muted, #64748b);
}

.app-nav-item.is-active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 750;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--ds-soft, #f1f5f9);
}

.app-user > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.app-user strong {
  font-size: 10.5px;
  color: var(--ds-body, #475569);
  line-height: 1.2;
}

.app-user small {
  font-size: 9px;
  color: var(--ds-faint, #94a3b8);
}

.app-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app-main {
  min-width: 0;
  padding: 20px 22px 24px;
  background: var(--ds-bg, #f8fafc);
}

.app-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.app-kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-muted, #64748b);
}

.app-topbar h3 {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ds-ink, #0f172a);
}

.app-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.app-date {
  padding: 5px 8px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 7px;
  background: #fff;
  color: var(--ds-muted, #64748b);
  font-size: 10px;
  white-space: nowrap;
}

.app-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.app-kpi {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--ds-shadow, 0 1px 2px rgba(15, 23, 42, 0.05));
}

.app-kpi-label {
  display: block;
  overflow: hidden;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ds-muted, #64748b);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-kpi strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ds-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.app-trend {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ds-muted, #64748b);
  white-space: nowrap;
}

.app-trend.is-good {
  color: var(--ds-success, #059669);
}

.app-trend.is-warn {
  color: #b45309;
}

.app-trend.is-bad {
  color: #b91c1c;
}

.app-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 12px;
  margin-bottom: 12px;
}

.app-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--ds-shadow, 0 1px 2px rgba(15, 23, 42, 0.05));
}

.app-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.app-card-head h4 {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ds-ink, #0f172a);
}

.app-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-size: 9.5px;
  color: var(--ds-muted, #64748b);
  white-space: nowrap;
}

.app-legend > span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ds-primary, #2563eb);
}

.app-legend > span.is-cyan {
  background: var(--ds-cyan, #0891b2);
}

.app-chart {
  width: 100%;
  height: auto;
  margin-top: 2px;
}

.app-card-link {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ds-primary-700, #1d4ed8);
  white-space: nowrap;
}

.app-priority-list {
  display: grid;
  gap: 10px;
}

.app-priority-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px 76px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--ds-muted, #64748b);
}

.app-priority-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.app-priority-row strong {
  font-size: 11.5px;
  color: var(--ds-ink, #0f172a);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.app-priority-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ds-soft, #f1f5f9);
}

.app-priority-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.app-priority-bar > .is-primary {
  background: var(--ds-primary, #2563eb);
}

.app-priority-bar > .is-warning {
  background: var(--ds-warning, #d97706);
}

.app-priority-bar > .is-danger {
  background: var(--ds-danger, #dc2626);
}

.app-priority-bar > .is-muted {
  background: #94a3b8;
}

.app-callout {
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-left: 3px solid var(--ds-primary, #2563eb);
  border-radius: 7px;
  background: var(--ds-bg, #f8fafc);
}

.app-callout strong {
  display: block;
  font-size: 10.5px;
  color: var(--ds-ink, #0f172a);
}

.app-callout span {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ds-muted, #64748b);
}

.app-callout.is-cyan {
  border-left-color: var(--ds-cyan, #0891b2);
}

.app-callout.is-amber {
  border-left-color: var(--ds-warning, #d97706);
}

.app-table-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
}

.app-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 11px;
}

.app-table-hint {
  display: none;
  margin-top: 7px;
  font-size: 9px;
  color: var(--ds-faint, #94a3b8);
}

.app-table th {
  padding: 7px 9px;
  border-bottom: 1px solid var(--ds-line, #e2e8f0);
  background: var(--ds-bg, #f8fafc);
  color: var(--ds-muted, #64748b);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-table td {
  padding: 9px;
  border-bottom: 1px solid var(--ds-soft, #f1f5f9);
  color: var(--ds-body, #475569);
  vertical-align: middle;
}

.app-table tbody tr:last-child td {
  border-bottom: 0;
}

.app-table tbody tr:hover td {
  background: #fcfdff;
}

.app-mono {
  color: #334155;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
}

.pill.is-success {
  background: #ecfdf5;
  color: #047857;
}

.pill.is-warning {
  background: #fffbeb;
  color: #b45309;
}

.pill.is-critical {
  background: #fef2f2;
  color: #b91c1c;
}

.pill.is-high {
  background: #fff7ed;
  color: #c2410c;
}

.pill.is-medium {
  background: #eff6ff;
  color: #1d4ed8;
}

.pill.is-low {
  background: #f1f5f9;
  color: #475569;
}

.app-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.app-dot.is-primary {
  background: var(--ds-primary, #2563eb);
}

.app-dot.is-warning {
  background: var(--ds-warning, #d97706);
}

.app-dot.is-danger {
  background: var(--ds-danger, #dc2626);
}

.app-dot.is-muted {
  background: #94a3b8;
}

.app-bar-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.app-bar-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  font-size: 10.5px;
  color: var(--ds-muted, #64748b);
}

.app-bar-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ds-soft, #f1f5f9);
}

.app-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ds-primary, #2563eb);
}

.app-bar-row strong {
  color: var(--ds-ink, #0f172a);
  font-size: 10.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.w-8 {
  width: 8%;
}

.w-12 {
  width: 12%;
}

.w-18 {
  width: 18%;
}

.w-28 {
  width: 28%;
}

.w-33 {
  width: 33%;
}

.w-46 {
  width: 46%;
}

.app-alert-list {
  display: grid;
  gap: 2px;
}

.app-alert {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--ds-soft, #f1f5f9);
  font-size: 10px;
  color: var(--ds-body, #475569);
}

.app-alert:last-child {
  border-bottom: 0;
}

.app-alert-date {
  display: grid;
  gap: 1px;
}

.app-alert-date strong {
  font-size: 10.5px;
  color: var(--ds-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.app-alert-date small {
  font-size: 8.5px;
  color: var(--ds-faint, #94a3b8);
}

.app-donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0;
}

.app-donut {
  width: 150px;
  height: 150px;
  flex: none;
}

.app-donut-legend {
  display: grid;
  gap: 10px;
  min-width: 0;
  font-size: 10.5px;
  color: var(--ds-muted, #64748b);
}

.app-donut-legend > span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.app-donut-legend strong {
  margin-left: auto;
  padding-left: 10px;
  color: var(--ds-ink, #0f172a);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.app-stock-list {
  display: grid;
  gap: 0;
}

.app-stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--ds-soft, #f1f5f9);
}

.app-stock-row:last-child {
  border-bottom: 0;
}

.app-stock-row > span:first-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.app-stock-row strong {
  overflow: hidden;
  font-size: 10.5px;
  color: var(--ds-ink, #0f172a);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-stock-row small {
  font-size: 8.5px;
  color: var(--ds-faint, #94a3b8);
}

.app-stock-value {
  font-size: 9.5px;
  font-weight: 650;
  color: var(--ds-muted, #64748b);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demo-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 10px;
  background: #fff;
}

.demo-note-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
}

.demo-note-icon svg {
  width: 12px;
  height: 12px;
}

.demo-note strong {
  display: block;
  font-size: 10.5px;
  color: var(--ds-ink, #0f172a);
}

.demo-note span:last-child {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--ds-muted, #64748b);
}

.demo-promo {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: #dbe6ef;
}

.demo-promo h2 {
  color: #fff;
}

.demo-promo .lead {
  max-width: 700px;
  color: #a9bccd;
}

.demo-promo .eyebrow {
  color: #7ee2a8;
}

.demo-promo .eyebrow::before {
  background: var(--green);
}

.demo-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.demo-promo-inner h2 {
  margin: 12px 0 10px;
}

.demo-promo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  flex: none;
}

.demo-promo-actions span {
  font-size: 0.7rem;
  color: #8fa9bd;
}

@media (max-width: 880px) {
  .demo-promo-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 1100px) {
  .demo-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .demo-hero-panel {
    max-width: 560px;
  }

  .demo-section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .app-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-body {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--ds-line, #e2e8f0);
  }

  .app-brand {
    padding: 0;
    border-bottom: 0;
  }

  .app-nav,
  .app-user {
    display: none;
  }

  .app-main {
    padding: 16px;
  }

  .app-topbar h3 {
    font-size: 17px;
  }
}

@media (max-width: 700px) {
  .demo-hero {
    padding: 38px 0 34px;
  }

  .demo-disclaimer {
    margin-top: 22px;
  }

  .demo-jump .container {
    gap: 4px;
  }

  .demo-jump-label {
    width: 100%;
    margin: 0 0 2px;
  }

  .demo-jump .demo-jump-cta {
    width: 100%;
    margin-top: 4px;
    margin-left: 0;
    padding-left: 9px;
  }

  .demo-notes {
    grid-template-columns: 1fr;
  }

  .app-chrome {
    gap: 8px;
    padding: 8px 10px;
  }

  .app-url {
    padding: 3px 6px;
    font-size: 9px;
  }

  .app-main {
    padding: 12px;
  }

  .app-kpis {
    gap: 8px;
  }

  .app-kpi {
    padding: 10px 11px;
  }

  .app-kpi-label {
    min-height: 2.7em;
    white-space: normal;
  }

  .app-kpi strong {
    font-size: 18px;
  }

  .app-card {
    padding: 12px;
  }

  .app-date {
    display: none;
  }

  .app-priority-row {
    grid-template-columns: minmax(0, 1fr) 22px 58px;
  }

  .app-bar-row {
    grid-template-columns: 84px minmax(0, 1fr) 32px;
    font-size: 9.5px;
  }

  .app-donut-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .app-donut {
    width: 132px;
    height: 132px;
  }

  .app-donut-legend {
    width: 100%;
  }

  .app-alert {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .app-alert .pill {
    grid-column: 2;
    justify-self: start;
  }

  .app-stock-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .app-stock-row .pill {
    grid-column: 2;
    justify-self: end;
  }

  .app-table {
    min-width: 600px;
  }

  .app-table-hint {
    display: block;
  }

  .demo-product-id {
    align-items: flex-start;
    gap: 12px;
  }

  .demo-product-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .demo-product-mark svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 430px) {
  .app-demo-tag {
    padding: 3px 6px;
    font-size: 8px;
  }

  .app-top-actions .app-avatar {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }

  .app-kpi-label {
    font-size: 8px;
  }

  .app-priority-row {
    grid-template-columns: minmax(0, 1fr) 20px;
  }

  .app-priority-bar {
    display: none;
  }

  .app-bar-row {
    grid-template-columns: 76px minmax(0, 1fr) 30px;
  }

  .demo-mini-row {
    gap: 8px;
  }

  .demo-mini-value {
    font-size: 11.5px;
  }
}

/* ============================================================
   CAPA DE INTERACCIÓN — transiciones, hover, sombras y énfasis
   Refina lo existente sin saturar: cada efecto aparece solo
   cuando hay una intención (pasar el cursor, enfocar, abrir).
   Todo lo que se mueve respeta prefers-reduced-motion (bloque
   inmediatamente siguiente).
   ============================================================ */

/* ---------- 1 · Base de movimiento ---------- */

.tag,
.chip,
.audience-row span,
.mini-tags span,
.btn-link,
.btn-link svg,
.cross-card svg,
.service-icon,
.service-num,
.capability-table td,
.compare-table td,
.faq details,
.faq summary,
.faq summary .plus::before,
.faq summary .plus::after,
.legal-body a,
.filter-btn,
.footer-col a,
.footer-contact a,
.footer-bottom a,
.scope-card,
.biz-card,
.problem-card,
.value,
.security-item,
.contact-card {
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

/* ---------- 2 · Botones: presión, halo y sombra ---------- */

.btn-primary:hover {
  box-shadow: 0 18px 34px -18px rgba(6, 42, 69, 0.9);
}

.btn-green:hover {
  box-shadow: 0 18px 34px -16px rgba(47, 134, 73, 0.8);
}

.btn-ghost:hover {
  box-shadow: var(--shadow-sm);
}

.btn-on-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.95);
}

.btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.09s;
}

.btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(58, 159, 87, 0.3);
}

.btn-link {
  transition: color 0.2s var(--ease);
}

.btn-link:hover {
  color: var(--green-700);
}

.btn-link.on-dark:hover {
  color: #b6f3d0;
}

/* ---------- 3 · Cinta de énfasis en tarjetas ---------- */

.service-card,
.project-card,
.cross-card {
  position: relative;
}

.service-card::after,
.project-card::after,
.cross-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(90deg, var(--navy-800), var(--green));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}

.cross-card::after {
  border-radius: 11px 11px 0 0;
}

.service-card:hover::after,
.project-card:hover::after,
.cross-card:hover::after {
  transform: scaleX(1);
}

/* ---------- 4 · Elevación con tinte de marca ---------- */

.service-card:hover,
.project-card:hover {
  border-color: rgba(58, 159, 87, 0.4);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(58, 159, 87, 0.14);
}

.flagship-card:hover,
.contact-card:hover {
  border-color: rgba(58, 159, 87, 0.4);
}

.cross-card:hover {
  border-color: rgba(58, 159, 87, 0.4);
  box-shadow: var(--shadow-sm);
}

.scope-card:hover,
.biz-card:hover,
.problem-card:hover,
.value:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

/* Bloques sobre fondo oscuro: mismo lenguaje, tinta clara */
.security-item:hover {
  border-color: rgba(58, 159, 87, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

/* ---------- 5 · Micro-movimientos internos ---------- */

.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.06);
  background: var(--green-100);
  box-shadow: 0 12px 20px -14px rgba(58, 159, 87, 0.95);
}

.service-card:hover .service-num {
  color: var(--navy-700);
}

.service-card:hover .tag,
.project-card:hover .tag {
  background: var(--green-50);
  color: var(--green-700);
}

.product-card:hover .mini-tags span {
  border-color: rgba(127, 223, 162, 0.45);
  color: #9fdcb4;
}

.cross-card:hover h3 {
  color: var(--navy-800);
}

.cross-card:hover svg {
  transform: translateX(5px);
  color: var(--green-600);
}

.contact-card:hover .icon {
  transform: translateY(-2px);
  background: var(--green-100);
}

/* ---------- 6 · FAQ: abre con intención ---------- */

.faq details:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq summary:hover {
  color: var(--navy-800);
}

.faq summary:hover .plus::before,
.faq summary:hover .plus::after {
  background: var(--green-600);
}

.faq details[open] {
  border-color: rgba(58, 159, 87, 0.4);
  box-shadow: var(--shadow-sm);
}

/* ---------- 7 · Tablas: fila bajo el cursor ---------- */

.capability-table tbody tr,
.compare-table tbody tr {
  transition: background-color 0.2s var(--ease);
}

.capability-table tbody tr:hover td,
.compare-table tbody tr:hover td {
  background: var(--green-50);
}

.capability-table tbody tr:hover td:first-child,
.compare-table tbody tr:hover td:first-child {
  background: var(--green-100);
}

/* ---------- 8 · Filtros y píldoras ---------- */

.filter-btn:hover {
  border-color: var(--navy-800);
  background: var(--soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.filter-btn.is-active:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  box-shadow: 0 12px 22px -14px rgba(6, 42, 69, 0.95);
}

.filter-btn:active {
  transform: translateY(0) scale(0.97);
}

.chip:hover,
.audience-row span:hover {
  border-color: rgba(58, 159, 87, 0.4);
  background: var(--green-50);
  color: var(--green-700);
}

.chip.on-dark:hover {
  border-color: rgba(159, 220, 180, 0.55);
  background: rgba(58, 159, 87, 0.2);
  color: #d6f7e4;
}

/* ---------- 9 · Enlaces: guiño de marca ---------- */

.footer-col a {
  display: inline-block;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-contact a:hover,
.footer-bottom a:hover {
  color: #8ee9b4;
}

.legal-body a:hover {
  color: var(--green-700);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* ---------- 10 · Llegada a un ancla: foco en la sección ---------- */

section:target,
article:target {
  animation: target-focus 1.4s var(--ease) 1;
}

@keyframes target-focus {
  0% {
    box-shadow: 0 0 0 4px rgba(58, 159, 87, 0.3);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(58, 159, 87, 0);
  }
}

/* ---------- 11 · Barras de desplazamiento ---------- */

html {
  scrollbar-color: var(--line-strong) var(--paper);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--paper);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.table-scroll::-webkit-scrollbar-track {
  background: var(--soft);
}

/* ---------- CATÁLOGO: paleta pastel por sector ---------- */
/*  Tonos derivados de la paleta base (navy #144163 · verde #3A9F57),
    aclarados para convivir con .bg-white y .bg-soft sin saturar. */

.product-nav--sticky {
  position: sticky;
  top: 76px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px -24px rgba(6, 42, 69, 0.5);
}

.product-nav--sticky .catalog-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.product-nav--sticky .catalog-count {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--green-700);
}

.product-nav--sticky a[aria-current="true"] {
  background: var(--navy-800);
  color: #fff;
}

.product-nav--sticky a[aria-current="true"] .catalog-count {
  color: #b6f3d0;
}

/* Semántica de sector: chip teñido + borde de acento en la tarjeta */
.pastel-educacion {
  --tint: #fdf1dd;
  --tint-line: #e7cf9c;
  --tint-ink: #7a5a13;
}

.pastel-salud {
  --tint: #e8f1fb;
  --tint-line: #b6d2ee;
  --tint-ink: #235780;
}

.pastel-publico {
  --tint: #eaf0f8;
  --tint-line: #c2d3e7;
  --tint-ink: #2c4a6b;
}

.pastel-operacion {
  --tint: #efeaf9;
  --tint-line: #cec0ea;
  --tint-ink: #4d3f7a;
}

.pastel-redes {
  --tint: #e4f3ec;
  --tint-line: #a9d8c1;
  --tint-ink: #1f6b45;
}

.pastel-infraestructura {
  --tint: #edf2f6;
  --tint-line: #c4d2de;
  --tint-ink: #3a566e;
}

.pastel-web {
  --tint: #fdeaf0;
  --tint-line: #f2bfce;
  --tint-ink: #8a3355;
}

.pastel-automatizacion {
  --tint: #e6f4f1;
  --tint-line: #a3d5cb;
  --tint-ink: #1c6558;
}

.project-card[data-sector] {
  border-top: 3px solid var(--tint-line);
}

.project-card[data-sector] .project-sector {
  background: var(--tint);
  color: var(--tint-ink);
}

.project-card[data-sector] .project-index {
  color: var(--tint-ink);
}

/* ---------- CATÁLOGO: píldoras de sector teñidas ---------- */

.sector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}

.sector-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--tint-line, var(--line));
  border-radius: 999px;
  background: var(--tint, var(--white));
  color: var(--tint-ink, var(--navy-900));
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.sector-pill .sector-num {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.72;
}

.sector-pill:hover {
  transform: translateY(-2px);
  border-color: var(--tint-line);
  box-shadow: var(--shadow-sm);
}

.sector-pill:focus-visible {
  outline: 2px solid var(--navy-800);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
