/* ==========================================================================
   MGH Ingeniería Global — Hoja de estilos principal
   Diseño sobrio y profesional. Azul oscuro / gris. Responsive.
   ========================================================================== */

/* --- Variables --- */
:root {
  --navy-900: #0d1f38;
  --navy-800: #12294a;
  --navy-700: #17335c;
  --blue-600: #1e5cc6;
  --blue-500: #2f6fe0;
  --blue-400: #5b8ee8;
  --gray-900: #1b2430;
  --gray-700: #38414d;
  --gray-600: #4a5462;
  --gray-500: #5c6672;
  --gray-300: #c7cdd6;
  --gray-200: #e2e6ec;
  --gray-100: #f1f4f8;
  --gray-50:  #f8fafc;
  --white: #ffffff;
  --text: #2a3340;
  --text-soft: #4a5462;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(13, 31, 56, 0.08), 0 1px 2px rgba(13, 31, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 31, 56, 0.10);
  --shadow-lg: 0 20px 50px rgba(13, 31, 56, 0.16);
  --max: 1140px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--blue-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-500); }

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--text-soft); }

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

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--gray-50); }
.section--navy { background: var(--navy-900); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--gray-600); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--blue-600); color: var(--white); }
.btn--primary:hover { background: var(--blue-500); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { background: rgba(255,255,255,0.10); color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--outline { background: transparent; color: var(--blue-600); border-color: var(--gray-200); }
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-500); background: var(--gray-50); }

/* --- Header / Nav --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy-900);
}
.brand:hover { color: var(--navy-900); }
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-size: 19px; letter-spacing: -0.01em; }
.brand__text span { font-size: 16px; font-weight: 600; color: var(--gray-500); }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: 8px;
}
.nav__links a:hover { color: var(--navy-900); background: var(--gray-100); }
.nav__cta { margin-left: 12px; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__toggle span + span { margin-top: 6px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, var(--navy-700), transparent),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 400px at 75% 20%, #000, transparent);
  -webkit-mask-image: radial-gradient(700px 400px at 75% 20%, #000, transparent);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 104px 0 112px;
  max-width: 760px;
}
.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-400);
  background: rgba(91,142,232,0.12);
  border: 1px solid rgba(91,142,232,0.28);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--blue-400), #8fb4f2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--gray-300);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 32px 0 64px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 8px;
}
.hero__stats .stat b {
  display: block;
  font-size: 32px;
  color: var(--white);
  letter-spacing: -0.02em;
}
.hero__stats .stat span { font-size: 16px; color: var(--gray-300); }

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gray-300); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--blue-600);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 16px; }

/* --- Proceso --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 16px; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 58px;
  right: -12px;
  height: 2px;
  background: linear-gradient(90deg, var(--gray-300), transparent);
}

/* --- Sobre nosotros --- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 20px; }
.about p { font-size: 18px; margin-bottom: 18px; }
.about .values { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.about .values li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: var(--text); }
.about .values svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--blue-600); margin-top: 2px; }
.about__panel {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.about__panel h3 { color: var(--white); font-size: 22px; margin-bottom: 22px; }
.about__panel dl { display: grid; gap: 18px; }
.about__panel dt { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-400); font-weight: 700; }
.about__panel dd { font-size: 17px; color: var(--gray-200); margin-top: 2px; }

/* --- Contacto --- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact h2 { color: var(--white); font-size: clamp(28px, 4vw, 38px); margin-bottom: 18px; }
.contact p { color: var(--gray-300); font-size: 18px; margin-bottom: 28px; }
.contact__list { list-style: none; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list .ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: var(--blue-400);
  flex: 0 0 auto;
}
.contact__list b { display: block; color: var(--white); font-size: 17px; }
.contact__list a, .contact__list span { color: var(--gray-300); font-size: 16px; }
.contact__list a:hover { color: var(--white); }

.form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form .field { margin-bottom: 20px; }
.form label { display: block; font-size: 16px; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; }
.form input, .form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  color: var(--text);
  padding: 13px 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(47,111,224,0.12);
}
.form textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; }
.form__note { font-size: 15px; color: var(--gray-500); margin-top: 14px; text-align: center; }

/* --- Footer --- */
.footer { background: var(--navy-900); color: var(--gray-300); padding: 64px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.footer .brand__text b { color: var(--white); }
.footer .brand__text span { color: var(--gray-300); }
.footer__about { margin-top: 18px; font-size: 16px; color: var(--gray-300); max-width: 340px; }
.footer h4 { color: var(--white); font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer ul a { color: var(--gray-300); font-size: 16px; }
.footer ul a:hover { color: var(--white); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
  padding-top: 24px;
}
.footer__bottom p { color: var(--gray-500); font-size: 15px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.footer__legal a { color: var(--gray-300); font-size: 15px; }

/* --- Páginas legales --- */
.legal { padding: 64px 0 88px; }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.legal .updated { font-size: 16px; color: var(--gray-500); margin-bottom: 40px; }
.legal h2 { font-size: 23px; margin: 40px 0 14px; }
.legal h3 { font-size: 19px; margin: 26px 0 10px; }
.legal p, .legal li { font-size: 17px; color: var(--text-soft); }
.legal p { margin-bottom: 16px; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; }
.legal .backlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 32px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--gray-200); font-size: 16px; }
.legal th { background: var(--gray-100); color: var(--navy-900); }

/* --- Utilidades --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::before { display: none; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav__links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform 0.32s var(--ease);
    visibility: hidden;
  }
  .nav__links.is-open { transform: translateY(0); visibility: visible; }
  .nav__links a { padding: 14px 12px; font-size: 17px; }
  .nav__cta { margin-left: 0; margin-top: 8px; }
  .nav__toggle { display: block; }
  .hero__inner { padding: 72px 0 80px; }
  .hero__stats { gap: 28px 40px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero__stats .stat b { font-size: 27px; }
  .brand__text span { display: none; }
}

/* ==========================================================================
   v2 — Componentes de refuerzo (software / datos / procesos)
   ========================================================================== */

/* --- Hero a dos columnas --- */
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 92px 0 40px;
}
.hero__content { max-width: 600px; }
.hero__content h1 { margin-bottom: 20px; }
.hero__visual { position: relative; }

/* Barra de confianza bajo el hero */
.hero__trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
  padding: 22px 0 64px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 8px;
}
.hero__trust .lbl { font-size: 15px; color: var(--gray-300); letter-spacing: 0.04em; text-transform: uppercase; }
.hero__trust ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__trust li { display: flex; align-items: center; gap: 9px; font-size: 16px; color: #dfe6f2; font-weight: 500; }
.hero__trust svg { width: 19px; height: 19px; color: var(--blue-400); flex: 0 0 auto; }

/* --- Ventana de aplicación (mockup) --- */
.window {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(3, 12, 28, 0.5);
  overflow: hidden;
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: #0f2038;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.window__bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #33436b; }
.window__bar .dot:nth-child(1) { background: #e0603f; }
.window__bar .dot:nth-child(2) { background: #e0a83f; }
.window__bar .dot:nth-child(3) { background: #4fae67; }
.window__bar .title { margin-left: 10px; font-size: 14px; color: #aab6cc; font-weight: 600; letter-spacing: 0.02em; }

.app { display: grid; grid-template-columns: 58px 1fr; min-height: 340px; }
.app__side {
  background: #14263f;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.app__side .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #6f83a6; }
.app__side .ico svg { width: 19px; height: 19px; }
.app__side .ico.is-active { background: var(--blue-600); color: #fff; }
.app__main { padding: 20px 20px 24px; background: #f6f8fc; }
.app__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app__head b { font-size: 16px; color: var(--navy-900); }
.app__head .pill { font-size: 13px; font-weight: 600; color: #2f7d4e; background: #e2f3e8; padding: 4px 11px; border-radius: 999px; }

/* KPIs dentro del mockup */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid #e6ebf3; border-radius: 11px; padding: 12px 12px 13px; }
.kpi .k-label { font-size: 12.5px; color: #5c6672; font-weight: 600; }
.kpi .k-val { font-size: 21px; font-weight: 800; color: var(--navy-900); letter-spacing: -0.01em; margin-top: 3px; }
.kpi .k-trend { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; margin-top: 4px; }
.kpi .k-trend.up { color: #2f9e56; }
.kpi .k-trend.down { color: #d0693f; }

/* Gráfica de barras (mockup) */
.panel { background: #fff; border: 1px solid #e6ebf3; border-radius: 11px; padding: 14px 15px 12px; }
.panel .p-title { font-size: 13px; color: #5c6672; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 92px; }
.bars .bar { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #4f86e0, #1e5cc6); position: relative; }
.bars .bar.mut { background: linear-gradient(180deg, #c3d3ee, #a9bfe4); }
.bars .bar::after { content: attr(data-m); position: absolute; bottom: -19px; left: 0; right: 0; text-align: center; font-size: 11px; color: #97a1b0; }

/* --- Chips flotantes alrededor del mockup --- */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(3, 12, 28, 0.35);
  z-index: 2;
}
.chip svg { width: 17px; height: 17px; }
.chip .ok { color: #2f9e56; }
.chip .bl { color: var(--blue-600); }
.chip--tl { top: -18px; left: -26px; }
.chip--br { bottom: -16px; right: -22px; }
.chip--ml { bottom: 74px; left: -40px; }

/* --- Sección: flujo de automatización --- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: stretch;
  margin-top: 8px;
}
.flow__step {
  position: relative;
  text-align: center;
  padding: 0 14px;
}
.flow__step .fico {
  width: 66px; height: 66px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}
.flow__step .fico svg { width: 30px; height: 30px; }
.flow__step h3 { font-size: 17px; margin-bottom: 6px; }
.flow__step p { font-size: 15.5px; }
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 33px;
  right: -0px;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-400) 0 8px, transparent 8px 16px);
  transform: translateX(50%);
  z-index: 0;
  opacity: 0.6;
}
.flow--dark .flow__step .fico { background: #16304f; border-color: rgba(255,255,255,0.12); color: var(--blue-400); }
.flow--dark .flow__step h3 { color: #fff; }
.flow--dark .flow__step p { color: var(--gray-300); }

/* --- Banda de datos / gráfica lineal --- */
.datarow { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.linechart { width: 100%; height: auto; display: block; }
.datarow .metrics { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 28px; }
.datarow .metrics b { display: block; font-size: 30px; color: var(--navy-900); letter-spacing: -0.02em; }
.datarow .metrics span { font-size: 16px; color: var(--gray-600); }

/* --- Tarjeta de servicio con detalle (procesos) --- */
.card .card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.card .card__tags span {
  font-size: 13.5px; font-weight: 600; color: var(--blue-600);
  background: #eef3fc; border-radius: 7px; padding: 4px 9px;
}

/* --- Responsive v2 --- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; padding-top: 72px; }
  .hero__content { max-width: 640px; }
  .chip--ml { display: none; }
  .datarow { grid-template-columns: 1fr; gap: 36px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 34px 10px; }
  .flow__step:not(:last-child)::after { display: none; }
}
@media (max-width: 720px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .chip--tl { top: -14px; left: 0; }
  .chip--br { bottom: -12px; right: 0; }
  .flow { grid-template-columns: 1fr; }
  .datarow .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .app { grid-template-columns: 46px 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .kpi { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .kpi .k-val { margin-top: 0; }
}
