/* =========================================================
   Algoritmos S.R.L. — Landing
   Paleta: azul profundo + acentos del logo (azul, rojo, amarillo)
   ========================================================= */

:root {
  --ink: #0B1324;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --navy: #0A1A33;
  --navy-2: #102A4C;

  --blue: #1D4ED8;
  --blue-600: #1E40AF;
  --blue-50: #EEF3FF;
  --red: #E0393E;
  --red-50: #FDEEEE;
  --yellow: #F2B705;
  --yellow-50: #FEF7DC;
  --green: #16A34A;
  --wa: #25D366;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 60px -20px rgba(10, 26, 51, .35);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font);
  --container: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

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

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 78, 216, .6); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #CBD5E1; }
.btn--wa { background: var(--wa); color: #06361A; margin-top: 28px; }
.btn--wa:hover { background: #2EE372; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow--light { color: #93B4FF; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.dots i:nth-child(2) { background: var(--red); }
.dots i:nth-child(3) { background: var(--yellow); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink-2); position: relative; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue); border-radius: 2px; transform: scaleX(0); transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(29, 78, 216, .12), transparent 70%),
    radial-gradient(500px 300px at 10% 0%, rgba(242, 183, 5, .10), transparent 70%),
    linear-gradient(var(--bg), var(--bg-alt));
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
.hl {
  color: var(--blue); white-space: nowrap;
  background: linear-gradient(transparent 68%, var(--yellow-50) 68% 90%, transparent 90%);
}
.lead { font-size: 1.15rem; color: var(--ink-2); margin-top: 22px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Mockup */
.hero__visual { position: relative; }
.window {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}
.window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFD; }
.window__bar span { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.window__bar span:nth-child(1) { background: #FF6159; }
.window__bar span:nth-child(2) { background: #FFBD2E; }
.window__bar span:nth-child(3) { background: #28C941; }
.window__bar p { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.window__body { padding: 20px; display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.kpi small { font-size: 11px; color: var(--muted); }
.kpi strong { font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.kpi em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.kpi em.up { color: var(--green); }
.chart { height: 120px; display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-radius: 12px; background: linear-gradient(var(--blue-50), #fff); }
.chart i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(#3B6CF0, var(--blue)); opacity: .9; transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.chart i:nth-child(odd) { opacity: .55; }
.chart i:nth-child(n) { animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rows { display: grid; gap: 10px; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ph { width: 28px; height: 28px; border-radius: 8px; background: var(--bg-alt); flex: none; }
.line { height: 8px; border-radius: 4px; background: #E9EEF5; }
.w45 { width: 45%; } .w60 { width: 60%; } .w70 { width: 70%; }
.chip { margin-left: auto; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.chip--ok { background: #DCFCE7; color: #15803D; }
.chip--warn { background: var(--yellow-50); color: #A16207; }
.chip--info { background: var(--blue-50); color: var(--blue); }

.float-card {
  position: absolute; left: -28px; bottom: -24px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow);
  color: var(--green);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14px; color: var(--ink); }
.float-card small { font-size: 12px; color: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Stats */
.stats {
  margin: 80px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stats > div { padding: 24px 28px; display: flex; flex-direction: column-reverse; gap: 2px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 14px; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- Secciones ---------- */
.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.section__head > p:last-child { margin-top: 16px; font-size: 1.075rem; color: var(--muted); }

/* Cards servicios */
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBD5E1; }
.card h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.card p { font-size: 15px; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.icon--blue { background: var(--blue-50); color: var(--blue); }
.icon--red { background: var(--red-50); color: var(--red); }
.icon--yellow { background: var(--yellow-50); color: #B88A00; }

/* Productos */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product--featured { padding: 40px; }
.product--featured::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 60%, var(--red) 60% 80%, var(--yellow) 80%);
}
.product__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.badge { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
.product h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.product--featured h3 { font-size: 1.9rem; }
.product > p { margin-top: 12px; color: var(--muted); }
.checks { margin-top: 24px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Producto ancho (JUDIS SUITE, S.E.C.) */
.product--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.product--wide .product__head { margin-bottom: 14px; }
.product__sub { margin-top: 6px; font-weight: 600; color: var(--ink-2); }
.product--wide .product__main > p:not(.product__sub) { margin-top: 16px; color: var(--muted); }
.product__quote {
  margin: 24px 0 0; padding: 14px 18px; border-left: 3px solid var(--yellow);
  background: var(--yellow-50); border-radius: 0 10px 10px 0;
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
}
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.features li { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); font-size: 14.5px; color: var(--muted); }
.features b { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.features li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.product--compact { align-items: center; padding: 28px 32px; }
.product--compact > p { color: var(--muted); }
.product--compact .product__head { margin-bottom: 8px; }

/* Clientes (sección oscura) */
.section--dark {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(29, 78, 216, .35), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(224, 57, 62, .12), transparent 70%),
    var(--navy);
  color: #C7D2E3;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__head { max-width: 820px; }
.section--dark .section__head > p:last-child { color: #A9B8CF; }

.client-group {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px;
  padding: 40px 0; border-top: 1px solid rgba(255, 255, 255, .1);
}
.client-group__info h3 { font-size: 1.25rem; letter-spacing: .02em; }
.client-group__info p { margin-top: 10px; font-size: 15px; color: #A9B8CF; }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.client {
  position: relative; min-height: 88px; padding: 16px;
  display: grid; place-items: center; text-align: center;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.client:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.client span { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #E8EEF8; line-height: 1.3; }
/* Si hay logo: se muestra sobre una placa blanca y se oculta el texto */
.client:has(img) { background: #fff; border-color: #fff; }
.client:has(img) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.client img { max-height: 48px; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .8; mix-blend-mode: multiply; transition: filter .25s, opacity .25s; }
.client:hover img { filter: none; opacity: 1; }
/* Cliente histórico */
.client--past::after {
  content: "Histórico"; position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: #A9B8CF; background: rgba(255, 255, 255, .08); padding: 2px 8px; border-radius: 999px;
}
.client--past:has(img)::after { color: var(--muted); background: var(--bg-alt); }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.about__copy p:not(.eyebrow) { margin-top: 20px; font-size: 1.075rem; }
.about__copy strong { color: var(--ink); }
.values { display: grid; gap: 16px; }
.values li { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.values__n { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--blue); background: var(--blue-50); border-radius: 10px; width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.values li:nth-child(2) .values__n { color: var(--red); background: var(--red-50); }
.values li:nth-child(3) .values__n { color: #B88A00; background: var(--yellow-50); }
.values h3 { font-size: 1.1rem; }
.values p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Contacto */
.cta {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 24px; color: #C7D2E3;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(29, 78, 216, .45), transparent 70%),
    var(--navy);
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; }
.cta__copy > p:not(.eyebrow) { margin-top: 14px; font-size: 1.075rem; color: #A9B8CF; }
.contact-list { display: grid; gap: 12px; }
.contact-list li {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
}
.ci { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .08); color: #fff; }
.ci svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 12px; color: #8EA0BC; }
.contact-list a, .contact-list span:not(.ci) { color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.footer__brand img { height: 44px; width: auto; }
.footer__brand p { margin-top: 14px; max-width: 26em; font-size: 14px; color: var(--muted); }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; font-size: 14px; font-weight: 500; justify-content: start; }
.footer__nav a:hover { color: var(--blue); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: color .2s, border-color .2s, background-color .2s; }
.footer__social a:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-50); }
.footer__social svg { width: 18px; height: 18px; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__legal a:hover { color: var(--ink); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, .55);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Enlaces dentro de tarjetas */
.card__link, .product__cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 14px; font-weight: 600; color: var(--blue);
}
.product__cta { margin-top: 28px; }
.card__link span, .product__cta span { transition: transform .2s ease; }
.card__link:hover span, .product__cta:hover span { transform: translateX(3px); }

/* Cómo trabajamos */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; counter-reset: none; }
.step {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.step::after {
  content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--line), #CBD5E1);
}
.step:last-child::after { display: none; }
.step__n {
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; background: var(--blue);
}
.step:nth-child(2) .step__n { background: var(--navy-2); }
.step:nth-child(3) .step__n { background: var(--red); }
.step:nth-child(4) .step__n { background: #B88A00; }
.step:nth-child(5) .step__n { background: var(--green); }
.step h3 { font-size: 1.05rem; margin-top: 6px; }
.step p { font-size: 14.5px; color: var(--muted); flex: 1; }
.step small { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding-top: 12px; border-top: 1px dashed var(--line); }

/* Help Desk */
.hd-intro { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 48px; }
.hd-intro .section__head { margin-bottom: 0; max-width: 760px; }
.hd-intro__cta { display: grid; gap: 12px; justify-items: start; }
.hd-intro__cta p { font-size: 14px; color: var(--muted); }
.hd-intro__cta strong { color: var(--ink); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tier h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.tier p { font-size: 15px; color: var(--muted); }
.tier__lvl {
  display: inline-grid; place-items: center; height: 32px; padding: 0 12px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: .04em;
  color: var(--blue); background: var(--blue-50);
}
.tier__lvl--2 { color: var(--red); background: var(--red-50); }
.tier__lvl--3 { color: #A16207; background: var(--yellow-50); }

.hd-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 20px; }
.sla, .hd-side > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.hd-side { display: grid; gap: 20px; }
.sla h3, .hd-side h3 { font-size: 1.1rem; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
.sla table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sla th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); }
.sla td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.sla td:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.sla tr:last-child td { border-bottom: 0; }
.prio { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.prio--crit { background: var(--red-50); color: #B91C1C; }
.prio--high { background: #FFEDD5; color: #C2410C; }
.prio--mid { background: var(--yellow-50); color: #A16207; }
.prio--low { background: var(--blue-50); color: var(--blue); }
.sla__note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

.flow { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow li { counter-increment: flow; display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.flow li::before {
  content: counter(flow); flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--navy-2);
  transform: translateY(5px);
}
.flow b { color: var(--ink); }
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.channels li { font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); }
.hd-cover { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Equipo */
.team { margin-top: 96px; }
.team__head { max-width: 640px; margin-bottom: 32px; }
.team__head h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; }
.team__head p { margin-top: 10px; color: var(--muted); }

/* Seguridad */
.assurances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.assurances li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 28px 28px; }
.assurances li::before {
  content: ""; display: block; width: 40px; height: 40px; border-radius: 10px; margin-bottom: 18px;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.assurances h3 { font-size: 1.05rem; }
.assurances p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq .section__head { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 20px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font); font-weight: 500; font-size: 18px; color: var(--blue); background: var(--blue-50);
  transition: transform .2s ease;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: var(--blue); }
.faq__list details p { padding: 0 44px 22px 0; color: var(--muted); }

/* Página 404 */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 .footer { padding-top: 0; border-top: 0; }
.page-404 .footer__legal { margin-top: 0; }
.nf { position: relative; flex: 1; overflow: hidden; padding: 96px 0 80px; isolation: isolate; }
.nf__inner { max-width: 860px; }
.nf h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
.nf__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 56px; }
.nf__links a {
  display: grid; gap: 2px; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nf__links a:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.nf__links b { font-family: var(--font-head); color: var(--ink); }
.nf__links span { font-size: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 24px; }
}

@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .assurances { grid-template-columns: repeat(2, 1fr); }
  .hd-grid { grid-template-columns: 1fr; }
  .client-group { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; justify-content: center; height: 48px; }

  .hero { padding: 48px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .window { transform: none; }
  .float-card { left: 12px; bottom: -20px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 72px; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section { padding: 80px 0; }
  .products { grid-template-columns: 1fr; }
  .product--wide { grid-template-columns: 1fr; gap: 28px; }
  .product--compact { gap: 12px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .hd-intro { grid-template-columns: 1fr; gap: 24px; }
  .tiers { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .team { margin-top: 72px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .hl { white-space: normal; }
  .cards--4 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis .kpi:last-child { display: none; }
  .stats > div { padding: 18px 20px; }
  .stats dd { font-size: 1.6rem; }
  .product, .product--featured { padding: 28px 22px; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client { min-height: 76px; padding: 12px; }
  .client span { font-size: 14px; }
  .cta { padding: 32px 20px; border-radius: 20px; }
  .footer__legal { flex-direction: column; }
  .steps, .assurances, .features, .nf__links { grid-template-columns: 1fr; }
  .nf { padding: 64px 0 56px; }
  .sla, .hd-side > div, .tier { padding: 22px; }
  .sla td:nth-child(2), .sla th:nth-child(2) { display: none; }
  .faq__list details p { padding-right: 0; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
