/* ===========================================================
   AGABIT — hoja de estilos
   Paleta tomada del logotipo: azul, azul marino, cian y verde lima
   =========================================================== */
:root {
  --navy-950: #061029;
  --navy-900: #071433;
  --navy-800: #0b1d4a;
  --navy-700: #0f2a6b;
  --blue: #1855aa;
  --cyan: #22c0dd;
  --lime: #8dc63f;
  --ink: #0c1a3a;
  --ink-soft: #4a5876;
  --paper: #f3f6fb;
  --white: #ffffff;
  --line: rgba(12, 26, 58, .12);
  --line-dark: rgba(255, 255, 255, .12);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(18px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-stretch: 118%; font-weight: 800; letter-spacing: -.02em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h2 span { color: var(--blue); }
.sec--dark h2 span { color: var(--cyan); }
h3 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
}
.eyebrow i { width: 26px; height: 2px; background: currentColor; display: block; }
.eyebrow--light { color: var(--cyan); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--cyan); color: var(--navy-950); box-shadow: 0 10px 30px -10px rgba(34, 192, 221, .7); }
.btn--primary:hover { transform: translateY(-2px); background: #4fd3ea; box-shadow: 0 16px 34px -10px rgba(34, 192, 221, .85); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--dark { background: var(--navy-900); color: var(--white); }
.btn--dark:hover { background: var(--blue); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 14px 0 auto 0; z-index: 100; pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(7, 20, 51, .55);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-dark);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled .nav__bar { background: rgba(7, 20, 51, .9); box-shadow: 0 12px 40px -14px rgba(0, 0, 0, .55); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand__logo { display: grid; place-items: center; width: 50px; height: 42px; border-radius: 12px; background: var(--white); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); }
.brand__logo img { width: 36px; height: auto; }
.brand__txt { display: grid; line-height: 1.05; }
.brand__txt b { font-stretch: 122%; font-weight: 800; font-size: 1.22rem; letter-spacing: .06em; }
.brand__txt small { font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem;
  color: rgba(255, 255, 255, .78); transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav__links .nav__cta { background: var(--cyan); color: var(--navy-950); margin-left: 6px; }
.nav__links .nav__cta:hover { background: #4fd3ea; color: var(--navy-950); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1200px 700px at 80% -10%, #12358a 0%, transparent 60%),
    radial-gradient(900px 600px at 0% 100%, #0a2a72 0%, transparent 55%),
    var(--navy-950);
  padding: clamp(120px, 15vh, 170px) 0 clamp(40px, 6vw, 80px);
}
.hero::before { /* retícula técnica */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 28%), rgba(34, 192, 221, .22), transparent 65%);
  transition: background-position .2s;
}
.hero__traces { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tr path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.tr--base path { stroke: rgba(34, 192, 221, .22); stroke-width: 1.5; }
.tr--pulse path { stroke: var(--cyan); stroke-width: 2.4; stroke-dasharray: 70 930; stroke-dashoffset: 70; filter: drop-shadow(0 0 6px rgba(34, 192, 221, .9)); animation: pulse 6s linear infinite; animation-delay: var(--d, 0s); opacity: .9; }
.tr__nodes circle { fill: var(--navy-950); stroke: var(--cyan); stroke-width: 2; opacity: .7; }
@keyframes pulse { from { stroke-dashoffset: 70; } to { stroke-dashoffset: -1000; } }

.hero__inner { position: relative; }
.hero__title { font-size: clamp(2.5rem, 7.4vw, 6.4rem); line-height: .98; letter-spacing: -.035em; margin: 6px 0 clamp(26px, 4vw, 44px); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: inline-block; animation: lineUp 1s var(--ease) both; }
.ln:nth-child(1) > span { animation-delay: .1s; }
.ln:nth-child(2) > span { animation-delay: .22s; }
.ln:nth-child(3) > span { animation-delay: .34s; }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
.grad { background: linear-gradient(95deg, var(--cyan) 10%, var(--lime) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 40px; align-items: end; animation: fadeUp .9s .5s var(--ease) both; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .78); max-width: 58ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero__photo { position: relative; margin-top: clamp(40px, 6vw, 72px); animation: photoIn 1.3s .55s var(--ease) both; will-change: transform; transform: translateY(var(--py, 0px)); }
@keyframes photoIn { from { opacity: 0; clip-path: inset(0 0 100% 0 round 22px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 22px); } }
.hero__frame {
  position: relative; overflow: hidden; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .7), 0 0 0 8px rgba(255, 255, 255, .03), 0 0 80px -10px rgba(34, 192, 221, .25);
  background: var(--navy-800);
}
.hero__frame img { width: 100%; aspect-ratio: 1850 / 972; object-fit: cover; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 20, 51, .35), transparent 30%, transparent 70%, rgba(7, 20, 51, .5)); pointer-events: none; }
.hero__scan { position: absolute; top: 0; bottom: 0; width: 22%; left: -25%; background: linear-gradient(90deg, transparent, rgba(34, 192, 221, .28), transparent); border-right: 1px solid rgba(34, 192, 221, .6); animation: scan 7s 2s ease-in-out infinite; z-index: 1; pointer-events: none; }
@keyframes scan { 0% { left: -25%; } 55%, 100% { left: 105%; } }
.hero__tag { position: absolute; left: 18px; top: 16px; z-index: 2; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; padding: 7px 12px; border-radius: 999px; background: rgba(7, 20, 51, .7); border: 1px solid rgba(34, 192, 221, .4); color: var(--cyan); }

/* puntos de interés */
.hs { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; background: none; border: 0; cursor: pointer; z-index: 3; }
.hs__dot { position: absolute; inset: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(7, 20, 51, .55), 0 0 18px 2px rgba(34, 192, 221, .9); }
.hs__dot::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid var(--cyan); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hs__tip {
  position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%) translateX(-6px);
  width: max-content; max-width: 220px; padding: 10px 14px; border-radius: 12px;
  background: rgba(6, 16, 41, .92); border: 1px solid rgba(34, 192, 221, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .82rem; line-height: 1.35; color: rgba(255, 255, 255, .8); text-align: left;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.hs__tip b { display: block; color: var(--white); font-size: .9rem; margin-bottom: 2px; }
.hs--left .hs__tip { left: auto; right: calc(100% + 8px); transform: translateY(-50%) translateX(6px); }
.hs--up .hs__tip { left: 50%; top: auto; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(6px); }
.hs--down .hs__tip { left: 50%; top: calc(100% + 8px); transform: translateX(-50%) translateY(-6px); }
.hs.is-active .hs__tip, .hs:hover .hs__tip, .hs:focus-visible .hs__tip { opacity: 1; transform: translateY(-50%); }
.hs--left.is-active .hs__tip, .hs--left:hover .hs__tip, .hs--left:focus-visible .hs__tip { transform: translateY(-50%); }
.hs--up.is-active .hs__tip, .hs--up:hover .hs__tip, .hs--up:focus-visible .hs__tip, .hs--down.is-active .hs__tip, .hs--down:hover .hs__tip, .hs--down:focus-visible .hs__tip { transform: translateX(-50%); }
.hs.is-active, .hs:hover { z-index: 5; }
.hero__caption { display: none; }

/* ---------- Marquesina ---------- */
.marquee { background: var(--navy-900); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 26px 0 30px; overflow: hidden; }
.marquee__label { text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 16px; padding-inline: var(--gutter); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee__group span { font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .5); white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee__group span:hover { color: var(--white); -webkit-text-stroke-color: var(--white); }
.marquee__group i { width: 9px; height: 9px; background: var(--cyan); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sec--light { background: var(--paper); }
.sec--dark { background: var(--navy-900); color: var(--white); }
.sec__head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__lead { margin-top: 22px; font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.sec--dark .sec__lead { color: rgba(255, 255, 255, .7); }

/* reveal: el contenido es visible salvo que JS esté activo y aún no lo haya mostrado */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(12, 26, 58, .04), 0 20px 40px -28px rgba(12, 26, 58, .3);
  transform-style: preserve-3d;
}
.js .card.reveal.in { transition: opacity .8s var(--ease), transform .25s var(--ease), box-shadow .3s; }
.card:hover { box-shadow: 0 30px 60px -26px rgba(24, 85, 170, .45); }
.card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 20, 51, .35)); }
.card__img--code { background: linear-gradient(140deg, var(--navy-800), var(--navy-950)); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: var(--cyan); }
.card__img--code pre { margin: 0; font-family: var(--mono); font-size: .78rem; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.card__img--code b { color: var(--lime); font-weight: 500; }
.card__img--code em { color: var(--cyan); font-style: normal; }
.card__img--code svg { width: 100%; height: 42px; opacity: .8; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__num { font-family: var(--mono); font-size: .8rem; color: var(--blue); letter-spacing: .1em; margin-bottom: 10px; }
.card__body h3 { margin-bottom: 12px; }
.card__body p { font-size: .96rem; color: var(--ink-soft); line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; }
.tags li { font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #e9eff9; color: var(--blue); }
.card__link { margin-top: auto; font-weight: 700; font-size: .95rem; color: var(--navy-900); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.card__link span { transition: transform .25s var(--ease); color: var(--cyan); }
.card__link:hover span { transform: translateX(5px); }

/* ---------- Galería ---------- */
.gallery { columns: 3; column-gap: 18px; }
.shot { break-inside: avoid; margin-bottom: 18px; }
.shot__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--navy-800); }
.shot__btn img { width: 100%; height: auto; transition: transform .9s var(--ease), filter .5s; filter: saturate(.92); }
.shot__btn:hover img, .shot__btn:focus-visible img { transform: scale(1.05); filter: saturate(1.1); }
.shot__btn::after { content: ""; position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; text-align: left;
  font-size: .85rem; line-height: 1.35; color: rgba(255, 255, 255, .78);
  background: linear-gradient(180deg, transparent, rgba(6, 16, 41, .92));
  transform: translateY(40%); opacity: 0; transition: transform .45s var(--ease), opacity .45s;
}
.shot figcaption b { display: block; color: var(--white); font-size: 1rem; }
.shot__btn:hover figcaption, .shot__btn:focus-visible figcaption { transform: none; opacity: 1; }
@media (hover: none) { .shot figcaption { transform: none; opacity: 1; } }

/* ---------- Proceso ---------- */
.proceso { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.proceso__head { position: sticky; top: 120px; margin-bottom: 0; }
.proceso__head .btn { margin-top: 30px; }
.steps { position: relative; padding-left: 54px; display: grid; gap: 26px; }
.steps__line { position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.steps__fill { display: block; width: 100%; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, var(--blue), var(--cyan)); border-radius: 2px; }
.step { position: relative; padding: 28px 30px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step__dot { position: absolute; left: -49px; top: 34px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); transition: background .4s, border-color .4s, box-shadow .4s; }
.step.on .step__dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 6px rgba(34, 192, 221, .2); }
.step__n { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.step h3 { margin: 8px 0 10px; font-size: 1.5rem; }
.step p { color: var(--ink-soft); }

/* ---------- Software ---------- */
.sec--software::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 500px at 85% 40%, rgba(24, 85, 170, .45), transparent 70%); }
.software { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks { margin-top: 28px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: rgba(255, 255, 255, .86); }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%; background: rgba(34, 192, 221, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2322c0dd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.protos { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.protos li { font-family: var(--mono); font-size: .78rem; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line-dark); color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .04); }

.dash { border-radius: 20px; background: linear-gradient(180deg, #0c2058, #081a47); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 60px -20px rgba(34, 192, 221, .3); overflow: hidden; }
.dash__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); }
.dash__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.dash__bar em { font-family: var(--mono); font-style: normal; font-size: .76rem; color: rgba(255, 255, 255, .6); margin-left: 8px; flex: 1; }
.dash__live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.dash__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 18px 0; }
.kpi { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); }
.kpi small { display: block; font-size: .74rem; color: rgba(255, 255, 255, .55); }
.kpi strong { display: flex; align-items: baseline; gap: 5px; font-stretch: 112%; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi u { text-decoration: none; font-size: .78rem; font-weight: 500; color: var(--cyan); }
.dash__chart { padding: 18px; }
.dash__chart-h { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(255, 255, 255, .55); margin-bottom: 8px; }
.dash__chart svg { width: 100%; height: 170px; display: block; }
.dash__grid line { stroke: rgba(255, 255, 255, .08); stroke-dasharray: 3 5; }
.dash__log { padding: 4px 18px 8px; }
.dash__log li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-dark); font-size: .86rem; color: rgba(255, 255, 255, .8); }
.dash__log time { font-family: var(--mono); font-size: .74rem; color: rgba(255, 255, 255, .45); }
.pill { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.pill--ok { background: rgba(141, 198, 63, .18); color: var(--lime); }
.pill--warn { background: rgba(255, 184, 77, .18); color: #ffb84d; }
.dash__note { padding: 0 18px 16px; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: rgba(255, 255, 255, .4); }

/* ---------- Por qué ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__item { padding: 34px 30px 36px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.why__item:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(24, 85, 170, .5); }
.why__item svg { width: 54px; height: 54px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.why__item svg circle { fill: #e6f7fb; stroke: var(--cyan); }
.why__item h3 { margin-bottom: 12px; font-size: 1.4rem; }
.why__item p { color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.sec--contact { background: radial-gradient(900px 500px at 10% 0%, #0f2a6b 0%, transparent 70%), var(--navy-950); overflow: hidden; }
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.contact h2 span { display: block; }
.software h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
.contact__mail { display: inline-block; margin-top: 34px; font-stretch: 112%; font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.6rem); text-decoration: none; color: var(--cyan); border-bottom: 2px solid rgba(34, 192, 221, .4); padding-bottom: 4px; transition: border-color .25s, color .25s; word-break: break-all; }
.contact__mail:hover { color: var(--white); border-color: var(--white); }
.form { background: var(--white); color: var(--ink); border-radius: 24px; padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 18px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: .84rem; font-weight: 700; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border-radius: 12px; border: 1.5px solid #d5dcea; background: #f8fafd;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); background: var(--white); box-shadow: 0 0 0 4px rgba(34, 192, 221, .18); }
.form .is-invalid { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.form__status { min-height: 1.4em; font-size: .9rem; color: var(--ink-soft); }
.form__status.is-ok { color: #2d7a12; }
.form__status.is-err { color: #c92a2f; }

/* ---------- Footer ---------- */
.foot { background: var(--navy-950); color: rgba(255, 255, 255, .72); border-top: 1px solid var(--line-dark); padding: 56px 0 26px; }
.foot__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot__brand { display: flex; gap: 22px; align-items: center; max-width: 500px; }
.foot__logo { flex: none; display: grid; place-items: center; padding: 12px 14px; border-radius: 16px; background: var(--white); }
.foot__logo img { width: 78px; height: auto; }
.foot__slogan { display: block; font-stretch: 118%; font-weight: 800; font-size: 1.25rem; color: var(--white); margin-bottom: 6px; letter-spacing: -.01em; }
.foot__brand p { font-size: .95rem; }
.foot__nav { display: flex; gap: 8px 26px; flex-wrap: wrap; }
.foot__nav a { text-decoration: none; font-weight: 600; transition: color .2s; }
.foot__nav a:hover { color: var(--cyan); }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .84rem; color: rgba(255, 255, 255, .5); }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { color: var(--cyan); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 20px; background: rgba(4, 10, 28, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s both; }
.lb[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb__fig { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lb__fig img { max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb__fig figcaption { color: rgba(255, 255, 255, .8); font-size: .95rem; text-align: center; max-width: 70ch; }
.lb button { border: 0; cursor: pointer; background: rgba(255, 255, 255, .1); color: var(--white); border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; line-height: 1; transition: background .2s; }
.lb button:hover { background: var(--cyan); color: var(--navy-950); }
.lb__close { position: absolute; top: 18px; right: 18px; font-size: 1.1rem !important; z-index: 2; }
.lb__nav { justify-self: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__img { aspect-ratio: 16 / 10; }
}
@media (max-width: 980px) {
  .proceso, .software, .contact { grid-template-columns: 1fr; }
  .proceso__head { position: static; }
  .why { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .hero__row { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__bar { flex-wrap: wrap; border-radius: 26px; padding: 8px 8px 8px 18px; }
  .nav__links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 10px; order: 3; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav__links .nav__cta { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .card__img { aspect-ratio: 16 / 11; }
  .gallery { columns: 1; }
  .form__row { grid-template-columns: 1fr; }
  .dash__kpis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 14px 14px 0; }
  .kpi { padding: 10px 11px; }
  .kpi strong { font-size: 1.15rem; }
  .steps { padding-left: 40px; }
  .step { padding: 22px 20px; }
  .step__dot { left: -35px; top: 28px; }
  .steps__line { left: 8px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .foot__brand { flex-direction: column; align-items: flex-start; }
  .lb { grid-template-columns: 1fr; padding: 12px; }
  .lb__nav { position: absolute; bottom: 14px; z-index: 2; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
  .lb__fig img { max-height: calc(100vh - 190px); }
  /* hero móvil: la foto conserva su proporción (los puntos van sobre ella) y la leyenda va debajo */
  .hero__tag { font-size: .58rem; left: 10px; top: 10px; }
  .hs { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .hs__dot { inset: 7px; }
  .hs .hs__tip { display: none; }
  .hero__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); font-size: .84rem; color: rgba(255, 255, 255, .72); }
  .hero__caption i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); align-self: center; }
  .hero__caption b { color: var(--white); }
}
