/* ============================================================
   IntelinCloud — sistema visual
   Negro profundo + acentos brillantes. Diseño de tema único.
   ============================================================ */

:root {
  /* Grounds: negros con sesgo azul, elegidos (no grises neutros) */
  --void: #05060b;
  --deep: #090b13;
  --surface: #0d101b;
  --surface-2: #131726;
  --line: rgba(146, 163, 214, 0.14);
  --line-strong: rgba(146, 163, 214, 0.28);

  /* Tinta */
  --ink: #eef1f8;
  --ink-soft: #b6bed4;
  --ink-dim: #7d879f;

  /* Marca */
  --b1: #3b82f6;
  --b2: #7c3aed;
  --brand: linear-gradient(135deg, #3b82f6, #7c3aed);

  /* Acento por sección (se sobreescribe con data-accent) */
  --a1: #3b82f6;
  --a2: #7c3aed;
  --glow: rgba(59, 130, 246, 0.35);

  /* Semánticos */
  --ok: #34d399;
  --warn: #fbbf24;

  /* Tipografía */
  --display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Métrica */
  --shell: 1220px;
  --gut: clamp(20px, 5vw, 56px);
  --r-s: 6px;
  --r-m: 14px;
  --r-l: 22px;
}

/* Acentos por modelo de negocio */
[data-accent='portales']    { --a1: #22d3ee; --a2: #3b82f6; --glow: rgba(34, 211, 238, 0.32); }
[data-accent='multimedios'] { --a1: #fb7185; --a2: #f59e0b; --glow: rgba(251, 113, 133, 0.32); }
[data-accent='movil']       { --a1: #38bdf8; --a2: #818cf8; --glow: rgba(56, 189, 248, 0.32); }
[data-accent='software']    { --a1: #a3e635; --a2: #14b8a6; --glow: rgba(163, 230, 53, 0.30); }
[data-accent='seguridad']   { --a1: #f472b6; --a2: #7c3aed; --glow: rgba(244, 114, 182, 0.32); }
[data-accent='ia']          { --a1: #2dd4bf; --a2: #a855f7; --glow: rgba(45, 212, 191, 0.32); }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

img, svg, canvas { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }

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

::selection { background: rgba(124, 58, 237, 0.45); color: #fff; }

/* ---------- Marca ---------- */

.brand-text {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-text .cloud {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Estructura ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { position: relative; }

.band { padding-block: clamp(72px, 9vw, 132px); }
.band--tight { padding-block: clamp(52px, 6vw, 84px); }
.band--hair { border-top: 1px solid var(--line); }

/* ---------- Tipografía ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}

.t-hero { font-size: clamp(2.6rem, 7.2vw, 5.1rem); }
.t-xl   { font-size: clamp(2rem, 4.6vw, 3.35rem); }
.t-l    { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.t-m    { font-size: clamp(1.12rem, 1.8vw, 1.32rem); letter-spacing: -0.02em; }

p { margin: 0; }

.lede {
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 62ch;
}

.copy { color: var(--ink-soft); max-width: 66ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a1);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--a1), transparent);
}

.grad {
  background: linear-gradient(120deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Cabecera ---------- */

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: rgba(5, 6, 11, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.logo { font-size: 1.32rem; line-height: 1; display: inline-block; padding-block: 4px; }

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

.nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  padding: 9px 12px;
  border-radius: var(--r-s);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover { color: var(--ink); background: rgba(146, 163, 214, 0.08); }
.nav a[aria-current='page'] { color: var(--ink); }
.nav a[aria-current='page']::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
}

.nav__cta {
  color: var(--ink) !important;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(124, 58, 237, 0.18));
}

.burger {
  margin-left: auto;
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  color: var(--ink);
  width: 42px;
  height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

@media (max-width: 940px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: calc(68px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gut) 22px;
    background: rgba(7, 9, 16, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    padding-block: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav.is-open { max-height: 72vh; padding-block: 14px 22px; overflow-y: auto; }
  .nav a { padding: 13px 10px; font-size: 0.92rem; }
  .nav a[aria-current='page']::after { width: 40px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }

#neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(90% 65% at 78% 22%, rgba(124, 58, 237, 0.22), transparent 62%),
    radial-gradient(70% 55% at 8% 78%, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(5, 6, 11, 0.55) 0%, rgba(5, 6, 11, 0.15) 38%, rgba(5, 6, 11, 0.92) 100%);
}

.hero__in {
  position: relative;
  z-index: 2;
  padding-block: clamp(74px, 12vw, 148px) clamp(64px, 9vw, 112px);
}

.hero h1 { margin-block: 20px 22px; }
.hero h1 .brand-text { font-size: inherit; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}

@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; align-items: start; } }

.hero__aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(18px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 14px 22px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--solid {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #06070d;
  font-weight: 600;
  box-shadow: 0 10px 34px -14px var(--glow);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 42px -14px var(--glow); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(146, 163, 214, 0.05); }
.btn--ghost:hover { border-color: var(--a1); color: #fff; transform: translateY(-2px); }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Índice de modelos de negocio (portada) ---------- */

.models { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.model {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.15fr) auto;
  gap: clamp(16px, 2.6vw, 38px);
  align-items: start;
  padding-block: clamp(26px, 3.2vw, 40px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.25s ease;
}

.model::before {
  content: '';
  position: absolute;
  left: calc(var(--gut) * -1);
  right: calc(var(--gut) * -1);
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--glow), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.model:hover::before { opacity: 0.11; }

.model__mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(146, 163, 214, 0.1), transparent);
  color: var(--a1);
}
.model__mark svg { width: 22px; height: 22px; }

.model__head { display: flex; flex-direction: column; gap: 8px; }
.model__head h3 { font-size: clamp(1.3rem, 2.2vw, 1.72rem); }
.model__route {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.model__route b { color: var(--a1); font-weight: 500; }

.model__body { display: flex; flex-direction: column; gap: 14px; }
.model__body p { color: var(--ink-soft); font-size: 0.97rem; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}

.model__go {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: all 0.22s ease;
  flex-shrink: 0;
}
.model:hover .model__go {
  border-color: var(--a1);
  color: #06070d;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  transform: translateX(4px);
}

@media (max-width: 880px) {
  .model { grid-template-columns: 44px minmax(0, 1fr); }
  .model__go { display: none; }
  .model__body { grid-column: 1 / -1; }
}

/* ---------- Grillas genéricas ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}

.cell {
  background: var(--deep);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cell h4 { font-size: 1.05rem; }
.cell p { color: var(--ink-dim); font-size: 0.93rem; }
.cell__n {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--a1);
  text-transform: uppercase;
}

/* ---------- Lista de servicios (páginas internas) ---------- */

.svc-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.svc {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px 24px;
  background: linear-gradient(170deg, var(--surface), var(--deep));
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  transition: border-color 0.24s ease, transform 0.24s ease;
}
.svc::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--a1), transparent);
  opacity: 0.55;
}
.svc:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.svc h3 { font-size: 1.06rem; letter-spacing: -0.02em; }
.svc p { color: var(--ink-dim); font-size: 0.93rem; }

/* Producto destacado (AlbaSoft / LionGuard) */
.suite {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  padding: clamp(26px, 3.4vw, 44px);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--glow), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--deep));
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.suite__tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.suite__items { display: grid; gap: 12px; }
.suite__item {
  display: grid;
  grid-template-columns: minmax(0, 215px) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.suite__item b { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.suite__item > div { display: flex; flex-direction: column; gap: 10px; }
.suite__item span { color: var(--ink-dim); font-size: 0.92rem; }
@media (max-width: 620px) { .suite__item { grid-template-columns: 1fr; gap: 6px; } }

/* Prestaciones de cada producto */
.feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feats li {
  list-style: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: rgba(146, 163, 214, 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 9px 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feats li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--a1);
  flex: none;
}
.feats { margin: 0; padding: 0; }

/* Nota destacada (condiciones de contratación, aclaraciones) */
.nota {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--a1);
  border-radius: var(--r-m);
  padding: clamp(20px, 2.4vw, 28px);
  background: linear-gradient(100deg, var(--surface-2), var(--deep) 65%);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.nota h3 {
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nota h3::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  flex: none;
}
.nota p { color: var(--ink-soft); font-size: 0.95rem; max-width: 78ch; }

/* ---------- Proceso ---------- */

.steps { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step {
  padding: 24px 22px 24px 0;
  border-top: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step:first-child { border-top-color: var(--a1); }
.step b { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--a1); }
.step h4 { font-size: 1.02rem; }
.step p { color: var(--ink-dim); font-size: 0.9rem; }

/* ---------- Franja de stack ---------- */

.rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.rail span { display: inline-flex; align-items: center; gap: 8px; }
.rail span::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, var(--a1), var(--a2));
}

/* ---------- Contacto ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 4.5vw, 70px);
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact__meta { display: flex; flex-direction: column; gap: 22px; }
.meta-item { display: flex; flex-direction: column; gap: 3px; }
.meta-item b { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.meta-item a, .meta-item p { font-size: 1.02rem; color: var(--ink); }
.meta-item a:hover { color: var(--a1); }

.form {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(165deg, var(--surface), var(--deep));
  display: grid;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.field label .req { color: var(--a1); }

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--ink);
  background: rgba(5, 6, 11, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%), linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field select option { background: #0d101b; color: var(--ink); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--a1);
  box-shadow: 0 0 0 3px var(--glow);
}

.field--bad input, .field--bad textarea, .field--bad select { border-color: #f87171; }
.field__err { font-size: 0.8rem; color: #fca5a5; display: none; }
.field--bad .field__err { display: block; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-m);
  padding: 16px;
  background: rgba(5, 6, 11, 0.45);
}
.captcha__q {
  font-family: var(--mono);
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}
.captcha__q em { font-style: normal; color: var(--a1); font-size: 1.15rem; }
.captcha__reload {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  border-radius: var(--r-s);
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.captcha__reload:hover { color: var(--ink); border-color: var(--a1); }
.captcha .field { gap: 6px; }
@media (max-width: 460px) { .captcha { grid-template-columns: 1fr; } }

.form__note { font-size: 0.82rem; color: var(--ink-dim); }
.form__note a { color: var(--a1); }

.form__status {
  display: none;
  border-radius: var(--r-s);
  padding: 13px 15px;
  font-size: 0.92rem;
  border: 1px solid;
}
.form__status.is-on { display: block; }
.form__status--ok { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.09); color: #a7f3d0; }
.form__status--err { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.09); color: #fecaca; }

/* ---------- CTA franja ---------- */

.strip {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(100% 160% at 100% 0%, var(--glow), transparent 58%),
    linear-gradient(140deg, var(--surface-2), var(--deep));
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.strip h2 { max-width: 20ch; }

/* ---------- Pie ---------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--deep);
  padding-block: clamp(46px, 6vw, 72px) 30px;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
}
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

.foot__brand { display: flex; flex-direction: column; gap: 14px; }
.foot__brand p { color: var(--ink-dim); font-size: 0.92rem; max-width: 40ch; }
.foot h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 12px;
  font-weight: 500;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot ul a { color: var(--ink-soft); font-size: 0.93rem; }
.foot ul a:hover { color: var(--a1); }
.foot__bar {
  margin-top: clamp(34px, 4vw, 54px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

/* ---------- Encabezado de página interna ---------- */

.phead {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(75% 120% at 82% 0%, var(--glow), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--void));
}
.phead::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(5, 6, 11, 0.94) 0%, rgba(5, 6, 11, 0.86) 26%, rgba(5, 6, 11, 0.34) 52%, rgba(5, 6, 11, 0) 72%),
    linear-gradient(180deg, rgba(5, 6, 11, 0.5) 0%, transparent 34%, rgba(5, 6, 11, 0.86) 100%);
}
.phead .escena {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0.92;
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
}
.phead__mesh {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 80% at 70% 10%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(70% 80% at 70% 10%, #000 0%, transparent 72%);
}
.phead__in { position: relative; z-index: 1; padding-block: clamp(62px, 8vw, 108px) clamp(86px, 7vw, 92px); display: flex; flex-direction: column; gap: 20px; }
.phead__in > * { max-width: 760px; }
@media (max-width: 900px) { .phead__in { padding-bottom: 124px; } }
.crumb { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-dim); }
.crumb a:hover { color: var(--a1); }

.anchor { scroll-margin-top: 92px; }

/* ---------- Botones flotantes ---------- */

.dock {
  position: fixed;
  right: clamp(14px, 2.4vw, 26px);
  bottom: calc(clamp(14px, 2.4vw, 26px) + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.dock__btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.24s ease, opacity 0.24s ease, visibility 0.24s;
  -webkit-tap-highlight-color: transparent;
}
.dock__btn:hover { transform: translateY(-3px); }
.dock__btn svg { width: 25px; height: 25px; display: block; }

/* WhatsApp */
.dock__wa {
  background: #1fa855;
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(31, 168, 85, 0.8);
}
.dock__wa:hover { background: #25d366; box-shadow: 0 18px 40px -12px rgba(37, 211, 102, 0.85); }

/* Pulso discreto: una sola señal, no una animación permanente ruidosa */
.dock__wa::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.75);
  animation: ping 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}
@keyframes ping {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .dock__wa::after { display: none; } }

/* Volver arriba */
.dock__top {
  background: rgba(13, 16, 27, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.dock__top.is-on { opacity: 1; visibility: visible; transform: none; }
.dock__top:hover {
  color: #06070d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 14px 34px -14px var(--glow);
}

/* Etiqueta al pasar el cursor */
.dock__btn span {
  position: absolute;
  right: calc(100% + 11px);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(9, 11, 19, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 7px 11px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.dock__btn:hover span, .dock__btn:focus-visible span { opacity: 1; transform: none; }
@media (max-width: 620px) { .dock__btn span { display: none; } }

/* Revelado suave desde estado visible */
.rise { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rise { from { opacity: 0.001; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.nota__cta {
  align-self: flex-start;
  margin-top: 6px;
  background: linear-gradient(135deg, #1fa855, #25d366);
  color: #04120a;
  font-weight: 600;
  box-shadow: 0 12px 30px -14px rgba(37, 211, 102, 0.9);
}
.nota__cta svg { flex: none; }

/* ---------- Nosotros: línea de tiempo ---------- */

.hitos { display: flex; flex-direction: column; }

.hito {
  display: grid;
  grid-template-columns: minmax(0, 190px) 34px minmax(0, 1fr);
  gap: clamp(10px, 2vw, 28px);
  padding-block: clamp(26px, 3.2vw, 40px);
  align-items: start;
}

.hito__anio { display: flex; flex-direction: column; gap: 4px; }
.hito__anio b {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #3b82f6, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hito__anio span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* El riel es la cronología: la línea une los hitos en orden */
.hito__riel { position: relative; justify-self: center; width: 34px; align-self: stretch; min-height: 60px; }
.hito__riel::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: calc(-1 * clamp(26px, 3.2vw, 40px) * 2);
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--line-strong), var(--line));
}
.hito:last-child .hito__riel::before { bottom: auto; height: 12px; }
.hito__riel::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #05060b;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.hito:last-child .hito__riel::after {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.2);
}

.hito__cuerpo { display: flex; flex-direction: column; gap: 9px; padding-bottom: 4px; }
.hito__cuerpo h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.hito__cuerpo p { color: var(--ink-soft); font-size: 0.97rem; max-width: 66ch; }

@media (max-width: 760px) {
  .hito { grid-template-columns: 26px minmax(0, 1fr); gap: 14px; }
  .hito__riel { width: 26px; grid-row: 1 / span 2; }
  .hito__anio { grid-column: 2; flex-direction: row; align-items: baseline; gap: 12px; }
  .hito__anio b { font-size: 1.9rem; }
  .hito__cuerpo { grid-column: 2; }
}

/* ---------- Nosotros: ficha del fundador ---------- */

.persona {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(110% 130% at 0% 0%, rgba(59, 130, 246, 0.14), transparent 58%),
    linear-gradient(160deg, var(--surface-2), var(--deep));
}
.persona__sigla {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: #06070d;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
}
.persona__datos { display: flex; flex-direction: column; gap: 8px; }
.persona__datos h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.persona__rol {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.persona__datos p { color: var(--ink-soft); font-size: 0.96rem; max-width: 62ch; }
.persona__link {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  padding: 9px 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.persona__link:hover { border-color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
@media (max-width: 560px) { .persona { grid-template-columns: 1fr; } }
