/* =====================================================================
   AI Industrial S.A.S. — Sistema de diseño
   Paleta corporativa: navy #0E1032 · azul #206095 · cian #29B6D8
   Autor: rediseño corporativo 2026
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca */
  --navy: #0e1032;
  --navy-2: #161a44;
  --navy-3: #1f2557;
  --blue: #206095;
  --blue-600: #1b5480;
  --blue-700: #144264;
  --cyan: #29b6d8;
  --cyan-400: #46c6e4;
  --cyan-100: #e4f6fb;

  /* Neutros */
  --ink: #14161d;
  --body: #3a4150;
  --muted: #667085;
  --line: #e5e9f0;
  --line-2: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-soft-2: #eef3f9;
  --white: #ffffff;

  /* Funcionales */
  --wa: #25d366;
  --ok: #1f9d6b;
  --err: #d84a4a;

  /* Gradientes */
  --grad-brand: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  --grad-navy: linear-gradient(160deg, #0e1032 0%, #141a44 55%, #1c2a5c 100%);

  /* Tipografía */
  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;

  /* Radios / sombras — geometría precisa, "engineered" */
  --r-sm: 5px;
  --r: 9px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-btn: 8px;
  --shadow-sm: 0 1px 2px rgba(14, 16, 50, .05), 0 1px 3px rgba(14, 16, 50, .04);
  --shadow: 0 14px 34px -18px rgba(14, 16, 50, .22);
  --shadow-lg: 0 30px 70px -28px rgba(14, 16, 50, .32);

  /* Hairlines / superficies técnicas */
  --hair: rgba(14, 16, 50, .10);
  --hair-navy: rgba(255, 255, 255, .12);
  --grid-navy: #222a63;

  /* Layout */
  --container: 1220px;
  --gutter: clamp(1.15rem, 4vw, 2.25rem);
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cyan); color: #04121a; }

/* Etiqueta técnica monoespaciada reutilizable */
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; }
.tag-index { font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .1em; color: var(--cyan); }
.section--navy .tag-index { color: var(--cyan-400); }

/* Corchetes de registro (motivo de marca) */
.brackets { position: relative; }
.brackets::before, .brackets::after { content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none; }
.brackets::before { top: 10px; left: 10px; border-left: 2px solid var(--cyan); border-top: 2px solid var(--cyan); }
.brackets::after { bottom: 10px; right: 10px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }

/* Grilla blueprint reutilizable (fondo técnico) */
.blueprint { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-navy) 1px, transparent 1px), linear-gradient(90deg, var(--grid-navy) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .5;
  -webkit-mask-image: radial-gradient(120% 100% at 30% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 30% 0%, #000 35%, transparent 78%); }

/* ---------- 3. Utilidades de layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1360px; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--grad-navy); color: #cdd4ea; position: relative; overflow: hidden; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.15rem;
}
.section--navy .eyebrow { color: var(--cyan-400); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); border-radius: 0; flex: none; }
.eyebrow::after { content: ""; width: 6px; height: 6px; border: 1.5px solid currentColor; opacity: .45; flex: none; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.h-xl { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
.h-lg { font-size: clamp(1.8rem, 4vw, 2.75rem); }
.h-md { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--body); }
.section--navy .lead { color: #b9c1de; }
.text-grad {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 4. Botones ---------- */
.btn {
  --btn-bg: var(--blue);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .92rem 1.5rem; border-radius: var(--r-btn); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background .2s, color .2s, border-color .2s;
  white-space: nowrap; text-align: center; line-height: 1.1;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .25s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 22px -12px rgba(32, 96, 149, .8), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.btn--primary:hover { box-shadow: 0 18px 34px -14px rgba(41, 182, 216, .65), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); background: var(--bg-soft); }
.section--navy .btn--outline,
.hero .btn--outline,
.page-hero .btn--outline,
.cta-inner .btn--outline { border-color: rgba(255, 255, 255, .32); color: #fff; }
.section--navy .btn--outline:hover,
.hero .btn--outline:hover,
.page-hero .btn--outline:hover,
.cta-inner .btn--outline:hover { border-color: var(--cyan); color: var(--cyan-400); background: rgba(255, 255, 255, .04); }
.btn--ghost { background: transparent; color: var(--ink); padding-inline: .4rem; }
.btn--ghost:hover { color: var(--blue); transform: none; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1fb457; box-shadow: 0 14px 26px -10px rgba(37, 211, 102, .6); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head);
  font-weight: 600; color: var(--blue); font-size: .95rem;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s;
}
/* Nota: no usar transform/filter/backdrop-filter en el header:
   crearían un bloque contenedor y atraparían el menú móvil (position:fixed). */
.site-header.is-stuck { box-shadow: 0 6px 24px -14px rgba(14, 16, 50, .3); border-color: var(--line-2); }
.nav {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand img { height: 52px; width: auto; }
.brand .brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy); letter-spacing: -.02em; }
.brand .brand-sub { display: none; } /* subtítulo oculto: solo se muestra "AI Industrial" */

.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-menu > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .85rem; border-radius: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--blue); background: var(--bg-soft); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .25s; }
.has-sub:hover .chev { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--ease); z-index: 20;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: .6rem .75rem; border-radius: 8px; font-size: .92rem; color: var(--ink); }
.sub-menu a:hover { background: var(--bg-soft); color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: .7rem; flex: none; }
.nav-phone { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); }
.nav-phone svg { width: 18px; height: 18px; color: var(--blue); }

/* Selector de idioma (estilo Amazon) */
.lang-switch { position: relative; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: 1px solid var(--line);
  border-radius: 10px; padding: .5rem .7rem; cursor: pointer; font-family: var(--font-head); font-weight: 600;
  font-size: .9rem; color: var(--navy); transition: border-color .2s, background .2s; }
.lang-btn:hover { border-color: var(--blue); background: var(--bg-soft); }
.lang-btn .globe { width: 18px; height: 18px; color: var(--blue); flex: none; }
.lang-btn .caret { width: 12px; height: 12px; transition: transform .25s; opacity: .7; }
.lang-switch.open .lang-btn .caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--ease); z-index: 120; }
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .7rem;
  border-radius: 8px; font-size: .92rem; color: var(--ink); font-family: var(--font-body); }
.lang-menu button:hover { background: var(--bg-soft); color: var(--blue); }
.lang-menu button[aria-current="true"] { color: var(--blue); font-weight: 600; }
.lang-menu button .tick { width: 16px; height: 16px; color: var(--cyan); opacity: 0; }
.lang-menu button[aria-current="true"] .tick { opacity: 1; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  position: relative; transition: .25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; background: var(--grad-navy); color: #cdd4ea; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; opacity: .45;
  -webkit-mask-image: radial-gradient(130% 100% at 22% 6%, #000 30%, transparent 76%);
  mask-image: radial-gradient(130% 100% at 22% 6%, #000 30%, transparent 76%); }
.hero-glow {
  position: absolute; z-index: -1; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 182, 216, .26), transparent 62%);
  top: -180px; right: -140px; filter: blur(10px);
}
/* Ticks de registro en las esquinas */
.hero::before, .hero::after { content: ""; position: absolute; width: 20px; height: 20px; z-index: 0; pointer-events: none; opacity: .6; }
.hero::before { top: calc(var(--header-h) + 22px); left: 22px; border-left: 2px solid var(--cyan); border-top: 2px solid var(--cyan); }
.hero::after { bottom: 22px; right: 22px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem); }

.hero-idx { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-mono); font-weight: 600;
  font-size: .72rem; letter-spacing: .22em; color: #6f7cb6; margin-bottom: 1.1rem; }
.hero-idx b { color: var(--cyan-400); font-weight: 600; }

.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.15rem); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; }
.hero h1 .text-grad {
  display: inline; -webkit-text-fill-color: currentColor; color: var(--cyan-400); background: none;
  position: relative; padding-bottom: .04em;
  box-shadow: inset 0 -.09em 0 rgba(41, 182, 216, .35);
}
.hero p.lead { margin-top: 1.5rem; max-width: 44ch; color: #c3cbe6; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }

.hero-trust { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 2.8rem; padding-top: 1.9rem;
  border-top: 1px solid var(--hair-navy); width: fit-content; }
.hero-trust .t { padding: 0 1.7rem; border-left: 1px solid var(--hair-navy); }
.hero-trust .t:first-child { padding-left: 0; border-left: 0; }
.hero-trust .t b { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 1.7rem; color: #fff; letter-spacing: -.02em; }
.hero-trust .t span { font-size: .8rem; color: #8b95c4; line-height: 1.3; display: block; margin-top: .3rem; max-width: 15ch; }

.pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .9rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--hair-navy);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .05em; color: #cfd6ee; font-weight: 500; margin-bottom: 1.4rem;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ce08a; box-shadow: 0 0 0 3px rgba(44, 224, 138, .2); animation: dot-pulse 2.2s infinite; }
@keyframes dot-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(44,224,138,.22); } 50% { box-shadow: 0 0 0 6px rgba(44,224,138,0); } }
@media (prefers-reduced-motion: reduce) { .pill .dot { animation: none; } }

/* SVG presentacionales: siempre responsive (evita cortes en móvil) */
.hero-card .scr svg,
.media-frame svg { width: 100%; height: auto; display: block; }
.hero-inner > *, .split > * { min-width: 0; }

/* Hero visual (panel de control) */
.hero-visual { position: relative; }
.hero-card {
  position: relative; background: rgba(255, 255, 255, .035); border: 1px solid var(--hair-navy);
  border-radius: var(--r-lg); padding: 1.15rem; box-shadow: var(--shadow-lg); backdrop-filter: blur(4px);
}
.hero-card::before, .hero-card::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.hero-card::before { top: -1px; left: -1px; border-left: 2px solid var(--cyan); border-top: 2px solid var(--cyan); }
.hero-card::after { bottom: -1px; right: -1px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }
.hero-live { position: absolute; top: 1.5rem; right: 1.6rem; z-index: 3; display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .18em; color: #2ce08a; }
.hero-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2ce08a; animation: dot-pulse 2.2s infinite; }
.hero-card .scr { border-radius: var(--r-sm); overflow: hidden; background: #0b0d24; border: 1px solid rgba(255,255,255,.08); }
.hero-badges { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .85rem; }
.hero-badge { display: flex; align-items: center; gap: .65rem; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--hair-navy); border-radius: var(--r-sm); padding: .7rem .8rem; transition: border-color .25s; }
.hero-badge:hover { border-color: rgba(41,182,216,.4); }
.hero-badge .ic { width: 34px; height: 34px; border-radius: var(--r-sm); background: rgba(41,182,216,.14); border: 1px solid rgba(41,182,216,.3); display: grid; place-items: center; flex: none; }
.hero-badge .ic svg { width: 18px; height: 18px; color: var(--cyan-400); }
.hero-badge b { display: block; color: #fff; font-family: var(--font-head); font-size: .9rem; }
.hero-badge span { font-size: .72rem; color: #8b95c4; }

/* ---------- 7. Logos / marquee de sectores ---------- */
.sectors { border-block: 1px solid var(--line-2); background: #fff; }
.sectors .container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; padding-block: 1.6rem; }
.sectors p { font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.sectors .tags { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.sectors .tags span { padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink); background: var(--bg-soft); }

/* ---------- 7b. Aliados y credenciales ---------- */
.partner-wall { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; align-items: center; }
.partner-logo { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  width: 146px; height: 86px; display: flex; align-items: center; justify-content: center; padding: .9rem 1.1rem;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.partner-logo:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--shadow); }
.partner-logo img { max-width: 100%; max-height: 50px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 680px) {
  .partner-logo { width: 44%; max-width: 200px; height: 78px; }
}
.cred-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.9rem; }
.cred { display: flex; align-items: center; gap: .85rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.35rem; }
.cred .cred-badge { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .82rem; flex: none; }
.cred b { display: block; color: var(--ink); font-family: var(--font-head); font-size: .95rem; }
.cred .cred-sub { font-size: .82rem; color: var(--muted); }

/* ---------- 8. Grid de servicios ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; position: relative; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic-wrap { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--cyan-100); color: var(--blue); transition: background .3s, color .3s; }
.card .ic-wrap svg { width: 26px; height: 26px; }
.card:hover .ic-wrap { background: var(--grad-brand); color: #fff; }
.card h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.card p { font-size: .95rem; color: var(--body); margin-bottom: 1rem; }
.card .link-arrow { margin-top: auto; }

/* Servicio destacado (grande) */
.service-feature {
  grid-column: span 1; background: var(--grad-navy); color: #cdd4ea; border: 1px solid rgba(255,255,255,.1);
}
.service-feature h3 { color: #fff; }
.service-feature .ic-wrap { background: rgba(255,255,255,.08); color: var(--cyan-400); }
.service-feature:hover .ic-wrap { background: var(--grad-brand); color: #fff; }
.service-feature p { color: #b9c1de; }
.service-feature .link-arrow { color: var(--cyan-400); }

/* Chip de categoría */
.chip { display: inline-block; font-size: .72rem; font-weight: 600; font-family: var(--font-head);
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--cyan-100);
  padding: .3rem .7rem; border-radius: 999px; }

/* ---------- 9. Valor / features list ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.feature-item { display: flex; gap: 1rem; }
.feature-item .fi-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--cyan-100); color: var(--blue); display: grid; place-items: center; flex: none; }
.section--navy .feature-item .fi-ic { background: rgba(255,255,255,.08); color: var(--cyan-400); }
.feature-item .fi-ic svg { width: 22px; height: 22px; }
.feature-item h4 { font-size: 1.05rem; margin-bottom: .2rem; color: var(--ink); }
.section--navy .feature-item h4 { color: #fff; }
.feature-item p { font-size: .93rem; color: var(--body); }
.section--navy .feature-item p { color: #b9c1de; }

.check-list { display: grid; gap: .8rem; margin-top: 1.5rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .97rem; }
.check-list li svg { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 1px; }

.media-frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.media-frame.dark { border-color: rgba(255,255,255,.1); }

/* ---------- 10. Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.2rem; }
.stat b { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { display: block; margin-top: .5rem; font-size: .92rem; color: #b9c1de; }
.stat .flag { display: inline-block; margin-top: .4rem; font-size: .68rem; color: #8a93bd; border: 1px dashed rgba(255,255,255,.25); border-radius: 6px; padding: .1rem .45rem; }

/* ---------- 11. Proyectos ---------- */
.project-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); height: 100%;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--grad-navy); }
.project-media svg { width: 100%; height: 100%; }
.project-media .chip { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.92); }
.project-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.project-client { font-size: .82rem; color: var(--blue); font-weight: 600; font-family: var(--font-head); margin-bottom: .7rem; }
.project-body p { font-size: .93rem; margin-bottom: 1rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.project-tags span { font-size: .74rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .25rem .55rem; }

/* Detalle de proyecto (bloques problema/solución) */
.proj-detail { display: grid; gap: 1rem; margin-top: 1.2rem; }
.proj-detail .pd { border-left: 3px solid var(--line); padding-left: 1rem; }
.proj-detail .pd.sol { border-color: var(--cyan); }
.proj-detail .pd h5 { font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .3rem; }

/* ---------- 12. Metodología ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.1rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); }
.step .n { font-family: var(--font-head); font-weight: 700; font-size: 1rem; width: 40px; height: 40px; border-radius: 11px;
  background: var(--grad-brand); color: #fff; display: grid; place-items: center; margin-bottom: 1rem; }
.step h4 { color: #fff; font-size: 1.02rem; margin-bottom: .4rem; }
.step p { font-size: .85rem; color: #a9b2d6; }
.step::after { content: ""; position: absolute; top: 2.7rem; right: -.6rem; width: 1.2rem; height: 2px; background: rgba(255,255,255,.2); }
.step:last-child::after { display: none; }

/* ---------- 13. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: var(--grad-navy); border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden;
}
.cta-inner .glow { position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41,182,216,.3), transparent 60%); right: -100px; bottom: -160px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.6rem); position: relative; }
.cta-inner p { color: #c3cbe6; margin-top: .7rem; position: relative; max-width: 46ch; }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; position: relative; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--navy); color: #a9b2d6; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(1); opacity: .96; }
.footer-brand p { font-size: .92rem; color: #8b93bb; max-width: 34ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; color: #cfd6ee; transition: .2s; }
.footer-social a:hover { background: var(--grad-brand); border-color: transparent; color: #fff; transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { font-size: .92rem; color: #9aa3ca; transition: color .2s; }
.footer-col a:hover { color: var(--cyan-400); }
.footer-contact li { display: flex; gap: .7rem; font-size: .92rem; margin-bottom: .9rem; }
.footer-contact li svg { width: 20px; height: 20px; color: var(--cyan-400); flex: none; margin-top: 2px; }
/* Certificaciones (RUC + CCS) */
.footer-certs { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.6rem; padding-top: 1.9rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.footer-certs-label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan-400); margin-bottom: .5rem; }
.footer-certs-txt p { font-size: .9rem; color: #9aa3ca; max-width: 44ch; margin: 0; }
.footer-certs-box { display: inline-flex; align-items: center; gap: 1.3rem; background: #fff; border-radius: var(--r);
  padding: .85rem 1.4rem; box-shadow: var(--shadow); flex: none; }
.footer-certs-box img { height: 46px; width: auto; display: block; }
.footer-certs-box .sep { width: 1px; height: 40px; background: var(--line); flex: none; }
@media (max-width: 560px) {
  .footer-certs-box { gap: 1rem; padding: .7rem 1.1rem; }
  .footer-certs-box img { height: 38px; }
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: #7f88b1; }
.footer-bottom a { color: #9aa3ca; }
.footer-bottom a:hover { color: var(--cyan-400); }

/* ---------- 15. WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .25s var(--ease); animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float .tip { position: absolute; right: 72px; background: var(--navy); color: #fff; font-size: .82rem;
  padding: .5rem .8rem; border-radius: 10px; white-space: nowrap; opacity: 0; transform: translateX(8px); pointer-events: none; transition: .2s; font-family: var(--font-head); }
.wa-float:hover .tip { opacity: 1; transform: translateX(0); }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* ---------- 16. Page hero (interior) ---------- */
.page-hero { background: var(--grad-navy); color: #cdd4ea; position: relative; overflow: hidden; }
.page-hero .container { position: relative; padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; }
.page-hero p { margin-top: 1rem; max-width: 52ch; color: #c3cbe6; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #98a2c9; margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--cyan-400); }
.breadcrumb span { opacity: .5; }

/* ---------- 17. Formulario ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .45rem; }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .9rem; background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s; font-size: .97rem; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(32, 96, 149, .12); outline: none; }
.field input:invalid:not(:placeholder-shown), .field.error input, .field.error select, .field.error textarea { border-color: var(--err); }
.field .msg { font-size: .8rem; color: var(--err); margin-top: .35rem; min-height: 1em; display: none; }
.field.error .msg { display: block; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--body); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.form-alert { border-radius: 12px; padding: .9rem 1.1rem; font-size: .92rem; margin-bottom: 1.2rem; display: none; }
.form-alert.ok { background: #e8f7f0; color: #14684a; border: 1px solid #b7e4cf; display: block; }
.form-alert.bad { background: #fdeaea; color: #a13030; border: 1px solid #f3c4c4; display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tarjetas de contacto directo */
.contact-methods { display: grid; gap: 1rem; }
.contact-method { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: .25s var(--ease); }
.contact-method:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.contact-method .cm-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--cyan-100); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-method .cm-ic svg { width: 22px; height: 22px; }
.contact-method h4 { font-size: 1rem; margin-bottom: .15rem; }
.contact-method a, .contact-method p { font-size: .93rem; color: var(--body); }
.contact-method a:hover { color: var(--blue); }

/* ---------- 18. FAQ / acordeón ---------- */
.accordion { display: grid; gap: .8rem; }
.acc-item { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.acc-head { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.15rem 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.acc-head .pm { width: 24px; height: 24px; flex: none; position: relative; transition: transform .3s; }
.acc-head .pm::before, .acc-head .pm::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; top: 11px; left: 4px; width: 16px; height: 2px; transition: transform .3s; }
.acc-head .pm::after { transform: rotate(90deg); }
.acc-item.open .acc-head .pm::after { transform: rotate(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-body .inner { padding: 0 1.3rem 1.25rem; color: var(--body); font-size: .95rem; }

/* ---------- 19. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 20. Helpers ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0; z-index: 200; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1320px) {
  .nav-phone { display: none; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split .split-media { order: -1; }
  .cta-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  /* Nav mobile */
  .nav-toggle { display: inline-flex; }
  .nav-phone { display: none; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 1.2rem var(--gutter) 2rem; gap: .2rem; transform: translateX(100%); transition: transform .3s var(--ease);
    overflow-y: auto; box-shadow: var(--shadow-lg); z-index: 99;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { padding: .9rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 0 .4rem; padding: 0 0 0 .8rem;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
  .has-sub.open .sub-menu { max-height: 24rem; margin-bottom: .4rem; }
  .has-sub .chev { margin-left: auto; transition: transform .3s var(--ease); }
  .has-sub.open .chev { transform: rotate(180deg); }
  .nav-cta .btn--primary { display: none; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-trust { gap: 1.2rem; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .sectors .container { flex-direction: column; gap: 1rem; }
}
