/* =========================================================
   SAARGO — Home 2026
   Estructura HTML / CSS / JS
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../assets/Inter.woff2") format("woff2-variations"),
       url("../assets/Inter.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #FBFBFD;
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --surface-border: transparent;
  --nav-bg: #FFFFFF;
  --ink: #16161D;
  --ink-strong: #16161D;
  --text-mute: #585874;
  --primary: #1A29E2;
  --primary-deep: #334195;
  --chip-bg: #F5F5F5;
  --chip-active-bg: #FFFFFF;
  --chip-fill: #E6EAFF;
  --border: #ECECF3;
  --border-soft: #EFEFF5;
  --section-line: #E6E6F3;
  --footer: #020887;

  --container: 1240px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Floating drop-shadow — spec: X=0, Y=4, Blur=25, Spread=0, #19358F @ 15% */
  --shadow-float: 0 4px 25px rgba(25, 53, 143, 0.15);
  --shadow-card: 0 4px 25px rgba(25, 53, 143, 0.08);
  --shadow-floating: 0 4px 25px rgba(25, 53, 143, 0.15);
}

/* ---------- Dark mode tokens ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0B1A;
  --surface: transparent;
  --surface-border: rgba(180, 195, 255, 0.18);
  --nav-bg: #0B0B1A;
  --ink: #F2F3FB;
  --ink-strong: #FFFFFF;
  --text-mute: #A6AAC9;
  --primary: #6B7BFF;          /* azul más claro para mejor contraste */
  --primary-deep: #A5B0E3;     /* eyebrows en dark */
  --chip-bg: rgba(255, 255, 255, 0.06);
  --chip-active-bg: rgba(107, 123, 255, 0.18);
  --chip-fill: rgba(107, 123, 255, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --section-line: rgba(180, 195, 255, 0.12);
  --footer: #020447;
  --shadow-float: 0 4px 25px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 25px rgba(0, 0, 0, 0.3);
  --shadow-floating: 0 4px 25px rgba(0, 0, 0, 0.45);
}

html { transition: background-color .3s ease; }
body { transition: background-color .3s ease, color .3s ease; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   NAV
   ========================================================= */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav-wrap.is-scrolled {
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.nav-logo img { height: 28px; }

.nav-pill {
  display: flex;
  align-items: center;
  background: var(--chip-bg);
  border-radius: var(--r-pill);
  padding: 6px;
  gap: 2px;
  margin-left: 8px;
}
.nav-pill .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.nav-pill .nav-item:hover { background: var(--chip-fill); color: var(--primary); }
.nav-pill .nav-item.is-active {
  background: var(--chip-active-bg);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(22, 22, 29, .06);
}
.nav-item .caret {
  width: 10px; height: 10px;
  display: inline-block;
  transition: transform .18s ease;
}

.nav-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* contenedores tipo pill (accesibilidad / idioma) */
.nav-tools .pill {
  background: var(--chip-bg);
  border-radius: var(--r-pill);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.nav-tool {
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.nav-tool:hover { background: var(--chip-fill); color: var(--primary); }
.nav-tool.is-active { background: var(--chip-fill); color: var(--primary); }
.nav-lang {
  gap: 6px;
}
.nav-tool svg { display: block; }

/* =========================================================
   Mobile nav — hamburguesa + drawer
   ========================================================= */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-burger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 29, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 70;
}
.nav-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(380px, 92vw);
  background: var(--white);
  z-index: 80;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.5, .1, .2, 1);
  box-shadow: -10px 0 40px rgba(25, 53, 143, .15);
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer-head img { height: 24px; }
.nav-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.nav-drawer-list {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1;
}
.d-item {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mute);
  border-radius: var(--r-md);
  transition: background .15s ease, color .15s ease;
}
.d-item:hover { background: var(--chip-fill); color: var(--primary); }
.d-item.is-active { background: var(--chip-fill); color: var(--primary); font-weight: 600; }

.d-group {
  border-radius: var(--r-md);
  overflow: hidden;
}
.d-group summary {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mute);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--r-md);
}
.d-group summary::-webkit-details-marker { display: none; }
.d-group summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.d-group[open] summary { color: var(--primary); background: var(--chip-fill); }
.d-group[open] summary::after { transform: rotate(-135deg); }
.d-sub {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 8px 16px;
}
.d-sub-col { display: flex; flex-direction: column; }
.d-sub-col h5,
.d-sub-col .d-sub-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 12px 16px 6px;
}
.d-sub-link {
  padding: 8px 18px 8px 26px;
  font-size: 14px;
  color: var(--text-mute);
  border-radius: var(--r-sm);
  position: relative;
}
.d-sub-link::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
.d-sub-link:hover { color: var(--primary); }
.d-sub-link.is-active { color: var(--primary); font-weight: 600; }

.nav-drawer-foot {
  display: flex;
  gap: 8px;
  padding: 18px 22px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -8px);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(22, 22, 29, .14), 0 2px 6px rgba(22, 22, 29, .06);
  padding: 24px 32px;
  display: none;
  grid-template-columns: 220px 1px 220px;
  gap: 28px;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: var(--white);
  border-radius: 2px;
}
.nav-item.is-open .nav-dropdown {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-item.is-open .caret { transform: rotate(180deg); }
.nav-dropdown .col-divider {
  background: var(--border);
  width: 1px;
}
.nav-dropdown h4,
.nav-dropdown p.dd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}
.nav-dropdown h4 .ic,
.nav-dropdown p.dd-head .ic {
  width: 22px; height: 22px;
  color: var(--ink);
}
.nav-dropdown ul li {
  padding: 8px 14px;
  margin: 0 -8px;
  border-radius: 8px;
  font-size: 14px;
  color: #9A9AB0;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav-dropdown ul li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.nav-dropdown ul li:hover,
.nav-dropdown ul li.is-active {
  color: var(--primary);
  font-weight: 600;
  background: var(--chip-fill);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: 56px 0 120px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
  align-items: center;
  min-height: 460px;
}
.hero-copy { max-width: 920px; }
.hero-eyebrow {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .01em;
  margin: 0 0 28px;
}
.hero-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 28px;
}
.hero-title,
.hero-desc {
  transition: opacity .45s ease, transform .45s ease;
}
.hero-title.is-out,
.hero-desc.is-out {
  opacity: 0;
  transform: translateY(8px);
}

.hero-dots {
  display: inline-flex;
  gap: 8px;
  margin-top: 24px;
}
.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: var(--r-pill);
  background: #DCDCE6;
  cursor: pointer;
  transition: background .2s ease, width .25s ease;
  padding: 0;
}
.hero-dot.is-active {
  background: var(--primary);
  width: 44px;
}
.hero-title .accent {
  color: var(--primary);
  font-style: italic;
  font-weight: 900;
}
.hero-desc {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-mute);
  margin: 0 0 36px;
  max-width: 480px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  transition: background .18s ease, color .18s ease;
}
.hero-cta:hover {
  background: transparent;
  color: var(--primary);
}
.hero-cta i { font-size: 16px; line-height: 1; }
.btn-link i { font-size: 15px; line-height: 1; }
.hero-cta svg, .btn-link svg { flex: 0 0 auto; }

.hero-art {
  position: relative;
  height: 100%;
  min-height: 460px;
}

/* Aurora animada — reemplaza la caja flotante, mismo lenguaje de color que el CTA */
.hero-aurora {
  position: absolute;
  inset: -8% -4% -8% 4%;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .85;
  will-change: transform;
}
.aurora-blob.b1 {
  width: 62%; height: 62%;
  left: 6%; top: 8%;
  background: radial-gradient(circle at 30% 30%, #1A29E2, rgba(26,41,226,0) 70%);
  animation: aurora-1 13s ease-in-out infinite;
}
.aurora-blob.b2 {
  width: 58%; height: 58%;
  right: 4%; top: 22%;
  background: radial-gradient(circle at 50% 50%, #68ABFF, rgba(104,171,255,0) 70%);
  animation: aurora-2 16s ease-in-out infinite;
}
.aurora-blob.b3 {
  width: 54%; height: 54%;
  left: 24%; bottom: 4%;
  background: radial-gradient(circle at 50% 50%, #B7A6FF, rgba(183,166,255,0) 70%);
  animation: aurora-3 19s ease-in-out infinite;
}
.aurora-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 46%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(26, 41, 226, .18);
  box-shadow: inset 0 0 0 14px rgba(255,255,255,.04);
  animation: aurora-ring 22s linear infinite;
}
@keyframes aurora-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(14%, 10%) scale(1.12); }
  66%      { transform: translate(-8%, 6%) scale(.94); }
}
@keyframes aurora-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(-12%, 12%) scale(1.1); }
  70%      { transform: translate(6%, -8%) scale(.92); }
}
@keyframes aurora-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(10%, -12%) scale(1.14); }
}
@keyframes aurora-ring {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-blob, .aurora-ring { animation: none; }
}

/* =========================================================
   HERO — banner flotante (caja)
   ========================================================= */
.hero-banner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hero-banner-card {
  position: relative;
  width: min(450px, 88%);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 34px 70px rgba(20, 30, 90, .26);
  transform: rotate(-2.5deg);
  animation: hero-float 7s ease-in-out infinite;
}
.hbc-bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  background: linear-gradient(180deg, #F4F6FD, #E9ECF8);
  border-bottom: 1px solid rgba(20, 30, 90, .06);
}
.hbc-dot { width: 9px; height: 9px; border-radius: 50%; background: #C6CDE6; }
.hbc-dot:nth-child(1) { background: #F4A8B0; }
.hbc-dot:nth-child(2) { background: #F6D38A; }
.hbc-dot:nth-child(3) { background: #9FD7B0; }
.hero-banner-card img { display: block; width: 100%; height: auto; }
.hero-chip {
  position: absolute;
  right: 2%;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(20, 30, 90, .22);
  animation: hero-float 8s ease-in-out infinite .6s;
}
.hero-chip-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--primary-deep);
  line-height: 1;
}
.hero-chip-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mute);
}
@keyframes hero-float {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50%      { transform: rotate(-2.5deg) translateY(-12px); }
}
.hero-chip { /* override rotation for upright chip float */ }
@keyframes hero-chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-chip { animation-name: hero-chip-float; }
@media (prefers-reduced-motion: reduce) {
  .hero-banner-card { animation: none; }
  .hero-chip { animation: none; }
}

/* =========================================================
   REVEAL ON SCROLL — aparición sutil
   (activado por JS sólo si el usuario permite movimiento)
   ========================================================= */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.reveal-on .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Section base
   ========================================================= */
.section { padding: 96px 0; }
.section--white { background: var(--surface, var(--white)); }
.section--bg { background: var(--bg); }

/* Línea separadora entre cambios de fondo (white ↔ #FBFBFD) */
.section--white + .section--bg,
.section--bg + .section--white,
.section--white + .cta,
.section--bg + .cta,
.cta + .footer,
.section--white + .footer,
.section--bg + .footer,
.hero + .section--bg,
.hero + .section--white {
  border-top: 1px solid #E6E6F3;
}

/* Eyebrow unificado en TODAS las secciones — alta especificidad para evitar overrides */
.eyebrow,
.cta-eyebrow,
.prod-tag,
.part-block h5,
.part-block .part-title,
.section .eyebrow,
.nos-intro p.eyebrow,
.cta p.cta-eyebrow,
.prod-info p.prod-tag {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--primary-deep) !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
  max-width: none !important;
}
.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.section-lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-mute);
  margin: 0 0 48px;
  line-height: 1.5;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--primary);
  transition: background .18s ease, color .18s ease;
}
.btn-link:hover {
  background: transparent;
  color: var(--primary);
}

.row-end { display: flex; justify-content: flex-end; margin-top: 32px; }

/* =========================================================
   Lo que hacemos
   ========================================================= */
.lqh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lqh-card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-float);
}
.lqh-card:hover {
  box-shadow: var(--shadow-float);
}
.lqh-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  align-self: flex-start;
}
.lqh-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.lqh-card p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0 0 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip-fill);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
}

/* =========================================================
   Nos destacamos por
   ========================================================= */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dest-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.dest-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.dest-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dest-card h4,
.dest-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  text-transform: none;
  margin: 28px 28px 0;
}
.dest-card p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 12px 28px 30px;
}
.dest-card p b { color: var(--ink); font-weight: 700; }

/* =========================================================
   Servicios — tabs verticales (izq) + escenario (der)
   ========================================================= */
.servicios {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: stretch;
}
.serv-tablist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.serv-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 18px 22px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.serv-tab .t-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -.01em;
  flex: 0 0 auto;
  transition: color .2s ease;
}
.serv-tab .t-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}
/* Hover unificado (igual al nav pill) */
.serv-tab:hover {
  background: var(--chip-fill);
  border-color: transparent;
  color: var(--primary);
}
.serv-tab:hover .t-num { color: var(--primary); }
.serv-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-float);
}
.serv-tab.is-active .t-num { color: var(--white); }

.serv-stage {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  min-height: 340px;
}
.serv-view-img {
  flex: 1 1 50%;
  min-width: 0;
  background: #E9EBF2 center / cover no-repeat;
  position: relative;
  transition: opacity .4s ease;
}
.serv-view-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26, 41, 226, .25), rgba(22, 22, 29, .25));
  mix-blend-mode: multiply;
}
/* Variante para mockups de producto: imagen contenida, sin recorte ni velo */
.serv-stage--prod .serv-view-img { flex: 1 1 54%; }
.serv-stage--prod .serv-view-text { flex: 1 1 46%; }
.serv-view-img--contain {
  background: #F4F4FA;
  display: grid;
  place-items: center;
  padding: 24px;
}
.serv-view-img--contain::after { display: none; }
.serv-view-img--contain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.serv-view-text {
  flex: 1 1 50%;
  min-width: 0;
  padding: 44px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity .4s ease, transform .4s ease;
}
.serv-stage.is-switching .serv-view-img,
.serv-stage.is-switching .serv-view-text {
  opacity: 0;
}
.serv-stage.is-switching .serv-view-text { transform: translateY(8px); }
.serv-view-text .e-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -.02em;
  margin: 0 0 12px;
  line-height: 1;
}
.serv-view-text h3 {
  font-size: 25px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}
.serv-view-text p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0;
  max-width: 420px;
}

/* =========================================================
   Productos
   ========================================================= */
/* =========================================================
   Productos — tabs como chips independientes
   ========================================================= */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 0;
  background: transparent;
}
.tab {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-float);
  transition: background .18s ease, color .18s ease, transform .15s ease;
  white-space: nowrap;
}
.tab:hover {
  background: var(--chip-fill);
  color: var(--primary);
}
.tab.is-active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-float);
}

.prod-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.prod-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}
.prod-card p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0;
}
.prod-img {
  background: #F4F4FA;
  border-radius: var(--r-lg);
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.prod-img img { width: 100%; height: 100%; object-fit: contain; }

/* =========================================================
   Nosotros
   ========================================================= */
.nos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.nos-grid > * { height: 100%; }
.nos-intro p {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0 0 28px;
}
.nos-card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-float);
}
.nos-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nos-head img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.nos-head .name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.nos-head .role {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 2px;
}
.nos-card p {
  font-size: 15px;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0;
}
.nos-card .ln {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--chip-fill);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-top: auto;
}

/* =========================================================
   Clientes — marquee infinito (2 filas)
   ========================================================= */
.clients-marquee {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  /* fade en los bordes para que entren/salgan suavemente */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients-row {
  overflow: hidden;
  width: 100%;
  padding: 18px 0;          /* más aire vertical para que la sombra no se recorte */
}
.clients-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-left 60s linear infinite;
}
.clients-row.is-reverse .clients-track {
  animation-name: marquee-right;
  animation-duration: 68s;
}
@keyframes marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.client-cell {
  flex: 0 0 auto;
  width: 240px;
  height: 156px;
  background: var(--white);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: var(--shadow-float);
  transition: box-shadow .2s ease;
}
.client-cell:hover {
  box-shadow: 0 6px 28px rgba(25, 53, 143, 0.22);
}
.client-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

/* =========================================================
   Partnerships
   ========================================================= */
.part-block {
  display: flex;
  flex-direction: column;
}
.part-block h5,
.part-block .part-title { margin-bottom: 24px !important; }
.part-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.part-cell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 40px;
  box-shadow: var(--shadow-float);
  transition: box-shadow .2s ease, transform .2s ease;
}
.part-cell:hover {
  box-shadow: 0 6px 28px rgba(25, 53, 143, 0.18);
}
.part-cell img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* =========================================================
   CTA + Footer
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #B7C0FF 0%, #DCD5FF 50%, #EFE6FF 100%);
  text-align: center;
  padding: 100px 0;
}
.cta::before, .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}
.cta::before {
  background: rgba(26, 41, 226, .35);
  width: 380px; height: 380px;
  left: -120px; top: -120px;
}
.cta::after {
  background: rgba(104, 171, 255, .5);
  width: 420px; height: 420px;
  right: -120px; bottom: -120px;
}
.cta-eyebrow {
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-deep);
  margin: 0 0 14px;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}
.cta p {
  font-size: 17px;
  color: var(--text-mute);
  margin: 0 auto 32px;
  max-width: 520px;
  position: relative;
  z-index: 1;
}
.cta-action {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.cta-action .hero-cta {
  padding: 16px 32px;
  font-size: 16px;
}
.cta-form {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.cta-form input {
  flex: 1;
  border: 1px solid #DCDCEA;
  outline: 0;
  font: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  height: 52px;
}
.cta-form input::placeholder { color: #9A9AB0; }
.cta-form input:focus { border-color: var(--primary); }
.cta-form button {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-pill);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  height: 52px;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.cta-form button:hover {
  background: transparent;
  color: var(--primary);
}

footer.footer {
  background: var(--footer);
  color: rgba(255, 255, 255, .72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-brand img { height: 22px; margin-bottom: 18px; }
.footer-brand p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .15s ease;
}
.footer-social a:hover { background: var(--primary); }
.footer h6,
.footer .footer-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.footer li { font-size: 14px; padding: 5px 0; cursor: pointer; transition: color .15s; }
.footer li:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.footer-providers {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-providers img {
  height: 52px;
  width: auto;
  opacity: .9;
}
/* Sello de certificación ISO 9001 + UKAS (NQA) — tarjeta blanca en columna de marca */
.footer-iso {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
  transition: box-shadow .15s ease;
}
.footer-iso:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.footer-iso img {
  height: 118px;
  width: auto;
  opacity: 1;
  display: block;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav-pill { display: none; }
  .nav-tools { display: none; }
  .nav-burger { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { min-height: 320px; }
  .hero-title { font-size: 48px; }
  .lqh-grid { grid-template-columns: 1fr 1fr; }
  .dest-grid { grid-template-columns: 1fr 1fr; }

  .nos-grid { grid-template-columns: 1fr; }
  .part-grid { grid-template-columns: 1fr; }
  .prod-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .hero { padding: 32px 0 56px; }
  .hero-title { font-size: 36px; }
  .hero-art { display: none; }              /* esconde caja +125 en móvil */
  .hero-floating { display: none; }
  .hero-chat { display: none; }
  .section-title, .cta h2 { font-size: 32px; }
  .lqh-grid, .dest-grid { grid-template-columns: 1fr; }
  .client-cell { width: 160px; height: 100px; padding: 16px; }
  .part-cells { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .servicios { grid-template-columns: 1fr; }
  .serv-stage { flex-direction: column; min-height: 0; }
  .serv-view-img { flex: 0 0 200px; min-height: 200px; }
  .serv-view-text { padding: 28px 24px; }
  .serv-view-text .e-num { font-size: 32px; }
  .serv-view-text h3 { font-size: 22px; }
  .cta-form { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-form input,
  .cta-form button { width: 100%; }
}

/* =========================================================
   DARK MODE — overrides
   ========================================================= */
[data-theme="dark"] .nav-wrap {
  background: var(--nav-bg);
}
[data-theme="dark"] .nav-wrap.is-scrolled {
  border-bottom-color: var(--border);
}
[data-theme="dark"] .nav-logo img { filter: brightness(0) invert(1); }

/* NAV pills */
[data-theme="dark"] .nav-pill { background: var(--chip-bg); }
[data-theme="dark"] .nav-pill .nav-item.is-active {
  background: var(--chip-active-bg);
  color: var(--primary);
  box-shadow: none;
}
[data-theme="dark"] .nav-tools .pill { background: var(--chip-bg); }
[data-theme="dark"] .nav-tool { color: var(--ink); }
[data-theme="dark"] .nav-tool:hover,
[data-theme="dark"] .nav-tool.is-active {
  background: var(--chip-active-bg);
  color: var(--primary);
}
[data-theme="dark"] .nav-burger { background: var(--chip-bg); }
[data-theme="dark"] .nav-burger span { background: var(--ink); }

[data-theme="dark"] .nav-dropdown {
  background: #14142A;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
[data-theme="dark"] .nav-dropdown::before { background: #14142A; }
[data-theme="dark"] .nav-dropdown .col-divider { background: var(--border); }
[data-theme="dark"] .nav-dropdown h4,
[data-theme="dark"] .nav-dropdown p.dd-head { color: var(--ink-strong); }
[data-theme="dark"] .nav-dropdown ul li { color: var(--text-mute); }

/* Mobile drawer */
[data-theme="dark"] .nav-drawer { background: #0E0E22; }
[data-theme="dark"] .nav-drawer-head { border-bottom-color: var(--border); }
[data-theme="dark"] .nav-drawer-foot { border-top-color: var(--border); }
[data-theme="dark"] .nav-drawer-close { background: var(--chip-bg); color: var(--ink); }
[data-theme="dark"] .nav-drawer-list img { filter: brightness(0) invert(1); }

/* HERO */
[data-theme="dark"] .hero { background: var(--bg); }
[data-theme="dark"] .hero-bg { opacity: .15; }
[data-theme="dark"] .hero-title .accent,
[data-theme="dark"] .nav-pill .nav-item:hover { color: var(--primary); }

/* Aurora — un poco más tenue sobre fondo oscuro */
[data-theme="dark"] .aurora-blob { opacity: .55; }
[data-theme="dark"] .aurora-ring { border-color: rgba(107, 123, 255, .22); }

/* Cards \u2014 fondo transparente + contorno */
[data-theme="dark"] .lqh-card,
[data-theme="dark"] .nos-card,
[data-theme="dark"] .prod-card,
[data-theme="dark"] .dest-card,
[data-theme="dark"] .client-cell,
[data-theme="dark"] .serv-tab,
[data-theme="dark"] .serv-stage,
[data-theme="dark"] .tab,
[data-theme="dark"] .cta-form input {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: none;
}
[data-theme="dark"] .tab:hover {
  background: var(--chip-fill);
  color: var(--primary);
}
[data-theme="dark"] .tab.is-active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
[data-theme="dark"] .tab.is-active:hover {
  background: var(--primary);
  color: var(--bg);
}

[data-theme="dark"] .lqh-card h3,
[data-theme="dark"] .nos-card .name,
[data-theme="dark"] .prod-card h3,
[data-theme="dark"] .dest-card h4,
[data-theme="dark"] .dest-card h3,
[data-theme="dark"] .serv-view-text h3,
[data-theme="dark"] .nos-intro .section-title,
[data-theme="dark"] .section-title { color: var(--ink-strong); }

[data-theme="dark"] .lqh-card p,
[data-theme="dark"] .nos-card p,
[data-theme="dark"] .prod-card p,
[data-theme="dark"] .nos-intro p,
[data-theme="dark"] .nos-head .role,
[data-theme="dark"] .serv-view-text p,
[data-theme="dark"] .section-lead { color: var(--text-mute); }

[data-theme="dark"] .lqh-card p b,
[data-theme="dark"] .dest-card p b { color: var(--ink-strong); }

/* Chips & números */
[data-theme="dark"] .chip { background: var(--chip-fill); color: var(--primary); }

/* Servicios — tabs */
[data-theme="dark"] .serv-tab .t-num { color: var(--primary); }
[data-theme="dark"] .serv-tab:hover {
  background: var(--chip-fill);
  border-color: transparent;
  color: var(--primary);
}
[data-theme="dark"] .serv-tab:hover .t-num { color: var(--primary); }
[data-theme="dark"] .serv-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}
[data-theme="dark"] .serv-tab.is-active .t-num { color: var(--bg); }

/* Productos */
[data-theme="dark"] .tab { color: var(--ink); }
[data-theme="dark"] .prod-img { background: var(--chip-bg); }

/* Clientes \u2014 logos invertidos para verse claros en oscuro */
[data-theme="dark"] .client-cell img { filter: invert(1) hue-rotate(180deg) brightness(1.15); }

/* Nosotros */
[data-theme="dark"] .nos-card .ln {
  background: var(--chip-fill);
  color: var(--primary);
}

/* CTA */
[data-theme="dark"] .cta {
  background: linear-gradient(135deg, #1A1B3A 0%, #2A2F66 50%, #1E1F47 100%);
}
[data-theme="dark"] .cta::before { background: rgba(107, 123, 255, .35); }
[data-theme="dark"] .cta::after  { background: rgba(60, 95, 200, .45); }
[data-theme="dark"] .cta h2 { color: #FFFFFF; }
[data-theme="dark"] .cta p { color: var(--text-mute); }
[data-theme="dark"] .cta-eyebrow { color: var(--primary-deep); }
[data-theme="dark"] .cta-form input { color: var(--ink); border-color: var(--surface-border); }
[data-theme="dark"] .cta-form input::placeholder { color: var(--text-mute); }

/* Botones azules en dark: contorno azul claro */
[data-theme="dark"] .hero-cta,
[data-theme="dark"] .btn-link,
[data-theme="dark"] .cta-form button {
  background: var(--primary);
  color: #0B0B1A;
  border-color: var(--primary);
}
[data-theme="dark"] .hero-cta:hover,
[data-theme="dark"] .btn-link:hover,
[data-theme="dark"] .cta-form button:hover {
  background: transparent;
  color: var(--primary);
}

/* Footer en dark */
[data-theme="dark"] .footer { background: var(--footer); }

/* Partners — tarjetas claras para que los logos se lean en cualquier modo */
[data-theme="dark"] .part-cell {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
}

/* Hero \u2014 title accent visible */
[data-theme="dark"] .hero-title { color: var(--ink-strong); }
[data-theme="dark"] .hero-desc { color: var(--text-mute); }
[data-theme="dark"] .hero-eyebrow { color: var(--ink-strong); }

/* Lo que hacemos \u2014 n\u00famero subrayado en dark */
[data-theme="dark"] .lqh-num { color: var(--primary); }

/* Eyebrows en dark con un poco m\u00e1s de contraste */
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .cta-eyebrow,
[data-theme="dark"] .prod-tag,
[data-theme="dark"] .part-block h5,
[data-theme="dark"] .part-block .part-title,
[data-theme="dark"] .section .eyebrow {
  color: var(--primary-deep) !important;
}
[data-theme="dark"] .dest-card h4,
[data-theme="dark"] .dest-card h3 { color: var(--primary-deep); }

[data-theme="dark"] .section--white {
  background: rgba(255, 255, 255, 0.015);
}

/* Section divider line in dark */
[data-theme="dark"] .section--white + .section--bg,
[data-theme="dark"] .section--bg + .section--white,
[data-theme="dark"] .section--white + .cta,
[data-theme="dark"] .section--bg + .cta,
[data-theme="dark"] .cta + .footer,
[data-theme="dark"] .section--white + .footer,
[data-theme="dark"] .section--bg + .footer,
[data-theme="dark"] .hero + .section--bg,
[data-theme="dark"] .hero + .section--white {
  border-top-color: var(--section-line);
}

/* =========================================================
   NAV — dropdown "Lo que hacemos" (single column)
   ========================================================= */
.nav-dropdown--single {
  grid-template-columns: minmax(240px, max-content);
  padding: 22px 26px;
}
.gear-code { display: block; }
.nav-dropdown li a {
  color: inherit;
  text-decoration: none;
  text-align: left;
  flex: 1;
  display: block;
  margin: -8px -14px;
  padding: 8px 14px;
}
.nav-dropdown h4 a,
.nav-dropdown p.dd-head a { color: inherit; text-decoration: none; }

/* Header del dropdown = enlace a la página (affordance clara) */
.nav-dropdown--single h4,
.nav-dropdown h4.dd-head,
.nav-dropdown p.dd-head {
  margin: -4px -12px 8px;
  padding: 0;
}
.dd-head-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.dd-head-link .gear-code { transition: color .16s ease; }
.dd-head-link .dd-head-text { flex: 1; }
.dd-head-link .go {
  font-size: 12px;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .16s ease, transform .16s ease;
}
.dd-head-link:hover,
.dd-head-link:focus-visible {
  background: var(--chip-fill);
  color: var(--primary);
}
.dd-head-link:hover .gear-code,
.dd-head-link:focus-visible .gear-code { color: var(--primary); }
.dd-head-link:hover .go,
.dd-head-link:focus-visible .go { opacity: 1; transform: none; }
[data-theme="dark"] .dd-head-link { color: var(--ink-strong); }
[data-theme="dark"] .dd-head-link:hover,
[data-theme="dark"] .dd-head-link:focus-visible { color: var(--primary); }

/* =========================================================
   SUBPAGE HERO (banda superior)
   ========================================================= */
.subhero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: 40px 0 84px;
  isolation: isolate;
}
.subhero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.subhero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.subhero .container { position: relative; z-index: 1; }
.subhero .eyebrow { margin-top: 0; }
.subhero-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 18px;
}
.subhero-lead {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-mute);
  margin: 0;
  max-width: 640px;
  line-height: 1.5;
}
/* child variant — smaller title + breadcrumb */
.subhero--child { padding: 28px 0 56px; }
.subhero--child .subhero-title { font-size: 40px; margin: 0; }

/* Breadcrumb */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mute);
  margin: 0 0 28px;
}
.crumbs a { color: var(--primary-deep); font-weight: 600; transition: color .15s ease; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep {
  color: #B9BAD0;
  display: inline-flex;
}
.crumbs .current { color: var(--ink); }

/* Chat orb (decorativo) */
.chat-fab {
  position: absolute;
  top: 36px;
  right: 24px;
  z-index: 2;
  width: 76px;
  height: 76px;
  filter: drop-shadow(var(--shadow-float));
}
.chat-bubble {
  position: absolute;
  inset: 0;
  background: var(--white);
  border-radius: 50% 50% 50% 8px;
  display: grid;
  place-items: center;
}
.chat-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #9FD0FF 0%, rgba(159,208,255,0) 42%),
    radial-gradient(circle at 70% 72%, #1A29E2 0%, rgba(26,41,226,0) 55%),
    radial-gradient(circle at 50% 50%, #4C63FF, #0B1366 80%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), inset -6px -6px 14px rgba(0,0,0,.35);
}

/* =========================================================
   LANDING — Lo que hacemos (3 enfoque cards)
   ========================================================= */
.enfoque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.enfoque-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transition: box-shadow .25s ease;
}
.enfoque-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.enfoque-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.enfoque-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px 30px 32px;
}
.enfoque-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.enfoque-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 14px;
}
.enfoque-body p {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0 0 26px;
  white-space: pre-line;
}
.enfoque-cta {
  margin-top: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 15px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid var(--primary);
  transition: background .18s ease, color .18s ease;
}
.enfoque-cta i { font-size: 14px; }
.enfoque-cta:hover { background: transparent; color: var(--primary); }

/* =========================================================
   CHILD — Intro card
   ========================================================= */
.intro-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.intro-text {
  padding: 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.intro-text h2 {
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 20px;
  line-height: 1.25;
}
.intro-text p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.62;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.intro-text p:last-child { margin-bottom: 0; }
.intro-media {
  position: relative;
  min-height: 360px;
}
.intro-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   CHILD — Proceso (pasos numerados)
   ========================================================= */
.steps-head {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 40px;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}
.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.step-num {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: var(--r-lg);
  background: var(--chip-fill);
  color: var(--primary-deep);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.step-body h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 8px;
}
.step-body p {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0;
}

/* =========================================================
   CHILD — Ventajas (cards image-top)
   ========================================================= */
.ventajas-head {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 36px;
}
/* plain enfoque card variant: no number / no cta */
.enfoque-card--plain .enfoque-body { padding: 30px 30px 32px; }
.enfoque-card--plain .enfoque-body p { margin-bottom: 0; }

/* =========================================================
   CHILD — Certificaciones
   ========================================================= */
.cert-lead {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0 0 44px;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 880px;
}
.cert-slot {
  aspect-ratio: 16 / 11;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-mute, #EEF0F8);
  display: grid;
  place-items: center;
}
.cert-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-theme="dark"] .ventajas-head { color: var(--ink-strong); }
[data-theme="dark"] .cert-lead { color: var(--text-mute); }
[data-theme="dark"] .cert-slot { background: var(--surface); border: 1px solid var(--surface-border); }
@media (max-width: 1100px) {
  .cert-grid { grid-template-columns: 1fr; max-width: 520px; }
}

/* =========================================================
   CHILD — Casos (proyectos destacados)
   ========================================================= */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transition: box-shadow .25s ease;
}
.case-media {
  background: linear-gradient(180deg, #E9EBF2, #DDE0EC);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* laptop mockup */
.laptop { width: 100%; max-width: 360px; }
.laptop-screen {
  border: 7px solid #1c1c24;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center top;
}
.laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #2a2a34, #16161d);
  border-radius: 0 0 12px 12px;
  margin: 0 -10px;
  position: relative;
}
.laptop-base::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 60px; height: 5px;
  background: #0c0c12;
  border-radius: 0 0 6px 6px;
}
.case-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 30px 30px;
}
.case-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.case-body > p {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.case-tag {
  background: var(--chip-fill);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
}
.case-cta {
  align-self: flex-end;
  margin-top: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--primary);
  transition: background .18s ease, color .18s ease;
}
.case-cta i { font-size: 14px; }
.case-cta:hover { background: transparent; color: var(--primary); }

/* Subpage responsive */
@media (max-width: 1100px) {
  .enfoque-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .intro-card { grid-template-columns: 1fr; }
  .intro-media { min-height: 280px; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .cases-grid { grid-template-columns: 1fr; }
  .subhero-title { font-size: 56px; }
}
@media (max-width: 720px) {
  .subhero-title { font-size: 40px; }
  .subhero--child .subhero-title { font-size: 34px; }
  .subhero-lead { font-size: 18px; }
  .intro-text { padding: 32px 26px; }
  .chat-fab { width: 60px; height: 60px; top: 20px; }
  .chat-orb { width: 34px; height: 34px; }
  .step-num { width: 62px; height: 62px; font-size: 24px; }
}

/* =========================================================
   SUBPAGE — dark mode
   ========================================================= */
[data-theme="dark"] .subhero { background: var(--bg); }
[data-theme="dark"] .subhero-bg { opacity: .15; }
[data-theme="dark"] .subhero-title { color: var(--ink-strong); }
[data-theme="dark"] .subhero-lead,
[data-theme="dark"] .crumbs { color: var(--text-mute); }
[data-theme="dark"] .crumbs .current { color: var(--ink-strong); }
[data-theme="dark"] .chat-bubble { background: #14142A; }

[data-theme="dark"] .enfoque-card,
[data-theme="dark"] .intro-card,
[data-theme="dark"] .case-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: none;
}
[data-theme="dark"] .enfoque-body h3,
[data-theme="dark"] .intro-text h2,
[data-theme="dark"] .steps-head,
[data-theme="dark"] .step-body h4,
[data-theme="dark"] .case-body h3 { color: var(--ink-strong); }
[data-theme="dark"] .enfoque-body p,
[data-theme="dark"] .intro-text p,
[data-theme="dark"] .step-body p,
[data-theme="dark"] .case-body > p { color: var(--text-mute); }
[data-theme="dark"] .enfoque-num,
[data-theme="dark"] .step-num { color: var(--primary); }
[data-theme="dark"] .step-num { background: var(--chip-fill); }
[data-theme="dark"] .case-tag,
[data-theme="dark"] .chip { background: var(--chip-fill); color: var(--primary); }
[data-theme="dark"] .case-media { background: linear-gradient(180deg, #1a1b30, #14142a); }

[data-theme="dark"] .enfoque-cta,
[data-theme="dark"] .case-cta {
  background: var(--primary);
  color: #0B0B1A;
  border-color: var(--primary);
}
[data-theme="dark"] .enfoque-cta:hover,
[data-theme="dark"] .case-cta:hover { background: transparent; color: var(--primary); }

/* =========================================================
   SERVICIOS — listado de tarjetas horizontales (página)
   ========================================================= */
.serv-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.serv-row {
  display: grid;
  grid-template-columns: 395px 1fr auto;
  align-items: center;
  gap: 36px;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transition: box-shadow .25s ease;
}
.serv-row:hover { box-shadow: 0 12px 36px rgba(25, 53, 143, 0.18); }
.serv-row-media {
  align-self: stretch;
  min-height: 250px;
  overflow: hidden;
}
.serv-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.serv-row-body {
  padding: 32px 8px;
  min-width: 0;
}
.serv-row-body h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 16px;
}
.serv-row-body p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.58;
  color: var(--text-mute);
  margin: 0;
  max-width: 400px;
}
.serv-row-cta {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 40px;
  padding: 16px 26px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid var(--primary);
  transition: background .18s ease, color .18s ease;
}
.serv-row-cta i { font-size: 14px; }
.serv-row-cta:hover { background: transparent; color: var(--primary); }

[data-theme="dark"] .serv-row {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: none;
}
[data-theme="dark"] .serv-row-body h3 { color: var(--ink-strong); }
[data-theme="dark"] .serv-row-body p { color: var(--text-mute); }
[data-theme="dark"] .serv-row-cta {
  background: var(--primary);
  color: #0B0B1A;
  border-color: var(--primary);
}
[data-theme="dark"] .serv-row-cta:hover { background: transparent; color: var(--primary); }

@media (max-width: 980px) {
  .serv-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .serv-row-media { min-height: 220px; }
  .serv-row-body { padding: 30px 30px 8px; }
  .serv-row-body p { max-width: none; }
  .serv-row-cta {
    margin: 0 30px 30px;
    justify-content: center;
  }
}

/* =========================================================
   SERVICIO (detalle) — Stats + descripción
   ========================================================= */
.stat-split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  align-items: stretch;
}
.stat-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.stat-card .stat-num {
  font-size: 46px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0 0 16px;
}
.stat-card p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0;
}
.stat-card p b { color: var(--ink); font-weight: 700; }
.stat-card .stat-cite {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-style: italic;
  color: #9A9AB0;
}
.desc-card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.desc-card .lead {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 22px;
}
.desc-card p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mute);
  line-height: 1.62;
  margin: 0 0 18px;
}
.desc-card p:last-child { margin-bottom: 0; }
.desc-card p b,
.desc-card .lead b { color: var(--ink); font-weight: 700; }

/* Clientes que utilizan este producto */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.client-card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.client-logo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  background: var(--white);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 26px;
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.client-logo--empty {
  color: #C2C4D6;
}
.client-logo--empty svg {
  width: 38%;
  height: 38%;
}
.client-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.client-card p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-mute);
  margin: 0;
}

/* Dark mode */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .desc-card,
[data-theme="dark"] .client-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: none;
}
[data-theme="dark"] .stat-card .stat-num { color: var(--primary); }
[data-theme="dark"] .stat-card p,
[data-theme="dark"] .desc-card p,
[data-theme="dark"] .client-card p { color: var(--text-mute); }
[data-theme="dark"] .stat-card p b,
[data-theme="dark"] .desc-card p b,
[data-theme="dark"] .desc-card .lead b,
[data-theme="dark"] .desc-card .lead,
[data-theme="dark"] .client-card h4 { color: var(--ink-strong); }
[data-theme="dark"] .stat-card .stat-cite { color: var(--text-mute); border-top-color: var(--border); }
[data-theme="dark"] .client-logo { background: #FFFFFF; }

@media (max-width: 980px) {
  .stat-split { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .client-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .desc-card { padding: 32px 28px; }
  .stat-card { padding: 28px 26px; }
}

/* =========================================================
   Diseño UX/UI — tabs, descripción y capacidades
   ========================================================= */
.uxui-panel.is-hidden { display: none; }

.uxui-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.uxui-tab {
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--r-pill);
  background: #ffffff;
  box-shadow: var(--shadow-float);
  cursor: pointer;
}
.uxui-tab:hover {
  background: var(--chip-fill);
  color: var(--primary);
}
.uxui-tab.is-active {
  background: var(--primary);
  color: #ffffff;
}
[data-theme="dark"] .uxui-tab { background: var(--surface); color: var(--ink); }
[data-theme="dark"] .uxui-tab.is-active { background: var(--primary); color: var(--bg); }

.desc-card .desc-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}

.caps-head {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 34px;
}
.caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 64px;
}
.cap-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.cap-check {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--chip-fill);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 14px;
}
.cap-check svg { width: 17px; height: 17px; }
@media (max-width: 760px) {
  .caps-grid { grid-template-columns: 1fr; gap: 20px; }
}

[data-theme="dark"] .desc-card .desc-title,
[data-theme="dark"] .caps-head,
[data-theme="dark"] .cap-item { color: var(--ink-strong); }
[data-theme="dark"] .cap-check { background: var(--chip-fill); color: var(--primary); }

/* =========================================================
   PÁGINA PRODUCTOS — detalle por chip + panel visual
   ========================================================= */
.prodx-tabs { margin-bottom: 28px; }

.prodx-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.prodx-detail {
  background: var(--white);
  padding: 48px 52px 52px;
}
.prodx-tag {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 0 0 14px;
}
.prodx-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink-strong);
  margin: 0 0 18px;
}
.prodx-desc {
  margin: 0 0 36px;
  max-width: 52ch;
}
.prodx-desc p {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0 0 16px;
}
.prodx-desc p:last-child { margin-bottom: 0; }
.prodx-sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 22px;
}
.benefit-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
}
.benefit-check {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--chip-fill);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.benefit-check svg { width: 18px; height: 18px; }
.prodx-how-paras p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-mute);
  margin: 0 0 14px;
}
.prodx-how-paras p:last-child { margin-bottom: 0; }
.prodx-how-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prodx-how-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-mute);
}
.prodx-how-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.prodx-how-list li b { color: var(--ink-strong); font-weight: 700; }
.prodx-divider {
  height: 1px;
  background: var(--section-line);
  border: 0;
  margin: 38px 0;
}
.prodx-clients-head {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 22px;
}
.prodx-clients {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.prodx-visual {
  background: #ECECF4;
  display: grid;
  place-items: center;
  padding: 36px;
  min-height: 520px;
}
.prodx-visual img {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1000px) {
  .prodx-layout { grid-template-columns: 1fr; }
  .prodx-detail { padding: 36px 28px 40px; order: 2; }
  .prodx-title { font-size: 32px; }
  .prodx-visual { min-height: 320px; order: 1; }
  .prodx-clients { grid-template-columns: 1fr; max-width: 360px; }
}

[data-theme="dark"] .prodx-layout {
  background: var(--surface);
  border-color: var(--surface-border);
  box-shadow: none;
}
[data-theme="dark"] .prodx-detail { background: var(--surface); }
[data-theme="dark"] .prodx-title,
[data-theme="dark"] .prodx-sub,
[data-theme="dark"] .prodx-clients-head,
[data-theme="dark"] .benefit-item { color: var(--ink-strong); }
[data-theme="dark"] .prodx-visual { background: rgba(255,255,255,0.04); }

/* =========================================================
   SOBRE NOSOTROS — Nuestra historia (timeline)
   ========================================================= */
.timeline { width: 100%; }
.tl-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 6px;
  margin: 0 0 36px;
}
.tl-track::before {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right,
    var(--primary) 0%,
    var(--primary) var(--tlp, 0%),
    var(--section-line) var(--tlp, 0%),
    var(--section-line) 100%);
  z-index: 0;
}
.tl-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.tl-pill {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-mute);
  background: var(--chip-bg);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.tl-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #C4C6DA;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.tl-node:hover .tl-pill { color: var(--primary); }
.tl-node.is-active .tl-pill { background: var(--primary); color: var(--white); }
.tl-node.is-active .tl-dot { background: var(--primary); border-color: var(--primary); transform: scale(1.05); }

.tl-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  padding: 24px 28px;
}
.tl-check {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--chip-fill);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.tl-check svg { width: 20px; height: 20px; }
.tl-card-body { flex: 1; }
.tl-card-year {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px;
}
.tl-card-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong);
  margin: 0;
  line-height: 1.4;
}
.tl-nav { display: flex; gap: 12px; flex: 0 0 auto; }
.tl-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--chip-fill);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}
.tl-arrow--next { background: var(--primary); color: var(--white); }
.tl-arrow:hover { filter: brightness(0.96); }
.tl-arrow:disabled { opacity: .4; cursor: default; }
.tl-arrow svg { width: 18px; height: 18px; }

/* Reconocimientos */
.recog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.recog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 28px;
}
.recog-card img { max-width: 100%; max-height: 110px; object-fit: contain; }
.recog-card--empty { color: #C4C6DA; }
.recog-card--empty svg { width: 40px; height: 40px; }

.about-cta { margin-top: 26px; align-self: flex-start; white-space: nowrap; }

@media (max-width: 760px) {
  .tl-track { padding: 0; overflow-x: auto; gap: 28px; justify-content: flex-start; }
  .tl-card { flex-wrap: wrap; }
  .tl-nav { margin-left: auto; }
  .recog-grid { grid-template-columns: 1fr; max-width: 360px; }
}

[data-theme="dark"] .tl-card,
[data-theme="dark"] .recog-card {
  background: var(--surface);
  border-color: var(--surface-border);
  box-shadow: none;
}
[data-theme="dark"] .tl-card-text { color: var(--ink-strong); }
[data-theme="dark"] .tl-pill { background: var(--chip-bg); color: var(--text-mute); }

/* =========================================================
   NAV — Mega dropdown (Casos de éxito: Servicios/Productos/Industria)
   ========================================================= */
.nav-dropdown--mega {
  left: 0;
  right: auto;
  transform: translate(0, -8px);
  grid-template-columns: none;
  padding: 0;
  gap: 0;
  width: max-content;
  max-width: none;
  background: transparent;
  box-shadow: none;
  align-items: flex-start;
}
.nav-item.is-open .nav-dropdown--mega {
  display: flex;
  transform: translate(0, 0);
}
.nav-dropdown--mega::before { display: none; }

.mega-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-sunken, #F3F4FA);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(22, 22, 29, .14), 0 2px 6px rgba(22, 22, 29, .06);
  padding: 12px;
  min-width: 248px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.mega-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.mega-cat .ic { width: 22px; height: 22px; color: var(--ink); flex: 0 0 auto; }
.mega-cat .mega-chev { margin-left: auto; width: 8px; height: 12px; color: inherit; opacity: .6; }
.mega-cat:hover { background: rgba(26, 41, 226, .06); color: var(--primary); }
.mega-cat:hover .ic { color: var(--primary); }
.mega-cat.is-active { background: var(--chip-fill); color: var(--primary); }
.mega-cat.is-active .ic { color: var(--primary); }

.mega-panes {
  flex: 0 0 auto;
  padding: 18px 26px 18px 44px;
  width: 286px;
  margin-left: -24px;
  position: relative;
  z-index: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(22, 22, 29, .14), 0 2px 6px rgba(22, 22, 29, .06);
  visibility: hidden;
  opacity: 0;
  transition: opacity .16s ease;
}
.nav-dropdown--mega.is-expanded .mega-panes { visibility: visible; opacity: 1; }
.mega-pane { display: none; list-style: none; margin: 0; padding: 0; }
.mega-pane.is-active { display: block; }
.mega-pane li { padding: 7px 0; }
.mega-pane li a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 500;
  color: #9A9AB0;
  transition: color .15s ease;
}
.mega-pane li a:hover { color: var(--primary); }

[data-theme="dark"] .mega-rail { background: rgba(255,255,255,.05); }
[data-theme="dark"] .mega-panes { background: #14142A; }
[data-theme="dark"] .mega-cat { color: var(--ink-strong); }
[data-theme="dark"] .mega-cat .ic { color: var(--ink-strong); }

/* =========================================================
   CASOS DE ÉXITO — grid + paginador
   ========================================================= */
.casos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.casos-empty {
  text-align: center;
  color: var(--text-mute);
  font-size: 17px;
  font-weight: 500;
  padding: 40px 0 8px;
}
.casos-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}
.pager-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-mute);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease, color .15s ease;
}
.pager-btn:hover:not(:disabled) { background: var(--chip-fill); color: var(--primary); }
.pager-btn.is-active { background: var(--primary); color: var(--white); }
.pager-btn:disabled { opacity: .4; cursor: default; }
.pager-ellipsis { color: var(--text-mute); padding: 0 2px; }

@media (max-width: 980px) {
  .casos-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 1100px) {
  .nav-dropdown--mega { max-width: none; }
}
