/* ==========================================================================
   Dondelab — Location Intelligence Platform
   Hoja de estilos global
   ========================================================================== */

:root {
  /* Color */
  --ink:        #0A0F1C;
  --ink-2:      #1E2637;
  --muted:      #5C6679;
  --muted-2:    #8A93A5;
  --line:       #E6E9F0;
  --line-2:     #F0F2F7;
  --bg:         #FFFFFF;
  --surface:    #F7F8FB;
  --surface-2:  #F1F4F9;
  --accent:     #1F5EFF;
  --accent-ink: #1447D6;
  --accent-soft:#EDF2FF;
  --signal:     #10B981;
  --warm:       #FF7A45;

  /* Tipografía */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1140px;
  --gutter: 24px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(10, 15, 28, .04), 0 1px 3px rgba(10, 15, 28, .06);
  --shadow-md: 0 4px 12px rgba(10, 15, 28, .05), 0 12px 32px rgba(10, 15, 28, .06);
  --shadow-lg: 0 8px 24px rgba(10, 15, 28, .06), 0 32px 64px rgba(10, 15, 28, .09);
}

/* --------------------------------------------------------------- Reset --- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: -0.038em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.032em; }
h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }

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

/* ------------------------------------------------------------- Layout --- */

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

.container--narrow { max-width: 820px; }

section { position: relative; }

.section { padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--surface { background: var(--surface); }
.section--bordered { border-top: 1px solid var(--line); }

.stack > * + * { margin-top: 18px; }

/* ------------------------------------------------------- Tipos de texto --- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.eyebrow--plain::before { display: none; }
.eyebrow--muted { color: var(--muted-2); }

.lead {
  font-size: clamp(1.06rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.muted { color: var(--muted); }
.small { font-size: .93rem; }

/* -------------------------------------------------------------- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s ease, background .18s ease;
}

.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease;
}

.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top: 5px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------- Perfil/menú --- */

.profile { position: relative; }

.profile__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.profile__btn:hover { border-color: #D3D9E4; box-shadow: var(--shadow-sm); }

.profile__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #123FB8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.profile__avatar--lg { width: 40px; height: 40px; font-size: .88rem; }

.profile__caret { transition: transform .2s ease; color: var(--muted-2); flex-shrink: 0; }
.profile__btn[aria-expanded="true"] .profile__caret { transform: rotate(180deg); }

.profile__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 268px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 80;
}

.profile__menu.is-open { opacity: 1; visibility: visible; transform: none; }

.profile__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 14px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 6px;
}

.profile__head strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 600; }
.profile__head span { display: block; font-size: .82rem; color: var(--muted-2); }

.profile__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .92rem;
  color: var(--ink-2);
  transition: background .16s ease;
}

.profile__menu a:hover { background: var(--surface); }
.profile__menu a svg { color: var(--muted-2); flex-shrink: 0; }

.profile__badge {
  margin-left: auto;
  background: rgba(239, 68, 68, .12);
  color: #DC2626;
  font-size: .74rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
}

.profile__sep { height: 1px; background: var(--line-2); margin: 6px 8px; }

/* Selector de sitios dentro del menú */

.profile__label {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--muted-2);
  padding: 6px 12px 5px;
}

.profile__menu a.profile__site { align-items: flex-start; padding: 8px 12px; }

.profile__site-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--surface-2);
  color: var(--muted-2);
}

.profile__site.is-active .profile__site-ico { background: var(--accent); color: #fff; }

.profile__site-txt { display: block; min-width: 0; }
.profile__site-txt strong { display: block; font-size: .89rem; font-weight: 550; color: var(--ink); }

.profile__site-txt em {
  display: block;
  font-style: normal;
  font-size: .74rem;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile__site.is-active .profile__site-txt strong { color: var(--accent-ink); font-weight: 600; }

.profile__add { color: var(--accent) !important; font-weight: 550; }
.profile__add svg { color: var(--accent); }

@media (max-width: 760px) {
  .profile__name, .profile__caret { display: none; }
  .profile__btn { padding: 4px; border-color: transparent; }
}

/* --------------------------------------------------------------- Botón --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 550;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .18s ease,
              border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #16203a; box-shadow: var(--shadow-md); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: #D3D9E4; background: var(--surface); }

.btn--quiet { padding-inline: 4px; color: var(--accent); }
.btn--quiet:hover { color: var(--accent-ink); }

.btn--lg { padding: 14px 26px; font-size: 1rem; border-radius: 11px; }

.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 112px) clamp(56px, 8vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(48% 60% at 72% 22%, rgba(31, 94, 255, .10), transparent 70%),
    radial-gradient(38% 48% at 18% 8%, rgba(16, 185, 129, .07), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__copy { max-width: 620px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }

.hero__note {
  margin-top: 26px;
  font-size: .9rem;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 9px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .5);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ------------------------------------------------- Visual radar / mapa --- */

.radar {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, #fff 0%, var(--surface) 78%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.radar__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 15, 28, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 15, 28, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 76%);
}

.radar__rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.radar__ring {
  position: absolute;
  border: 1px solid rgba(31, 94, 255, .28);
  border-radius: 50%;
  width: 22%;
  height: 22%;
  opacity: 0;
  animation: ring-out 4s cubic-bezier(.22, .61, .36, 1) infinite;
}

.radar__ring:nth-child(2) { animation-delay: 1.33s; }
.radar__ring:nth-child(3) { animation-delay: 2.66s; }

@keyframes ring-out {
  0%   { transform: scale(.35); opacity: 0; }
  12%  { opacity: .9; }
  100% { transform: scale(3.6); opacity: 0; }
}

.radar__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(10, 15, 28, .22);
  z-index: 2;
}

.radar__label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--muted-2);
  text-transform: uppercase;
  z-index: 3;
}

.radar__tag {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  backdrop-filter: blur(6px);
}

.tracker {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, .12);
  animation: float-tracker 6s ease-in-out infinite;
}

.tracker--a { top: 26%; left: 30%; animation-delay: 0s; }
.tracker--b { top: 66%; left: 24%; animation-delay: .8s; background: var(--signal); box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); }
.tracker--c { top: 34%; left: 74%; animation-delay: 1.6s; }
.tracker--d { top: 72%; left: 68%; animation-delay: 2.4s; background: var(--warm); box-shadow: 0 0 0 4px rgba(255, 122, 69, .14); }
.tracker--e { top: 50%; left: 16%; animation-delay: 3.2s; }
.tracker--f { top: 18%; left: 56%; animation-delay: 4s; }

@keyframes float-tracker {
  0%, 100% { transform: translate(0, 0); opacity: .95; }
  50%      { transform: translate(6px, -8px); opacity: .55; }
}

/* --------------------------------------------------------------- Cards --- */

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}

.card--hover:hover {
  border-color: #D8DEEA;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card__icon svg { width: 20px; height: 20px; }

.card__num {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: .92rem;
  font-weight: 550;
  color: var(--accent);
}

.card__link svg { transition: transform .2s ease; }
.card--hover:hover .card__link svg { transform: translateX(3px); }

/* Lista con checks / bullets */

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(31, 94, 255, .28);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(.52em + 4px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.ticks--green li::before { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .32); }
.ticks--green li::after { background: var(--signal); }

/* Preguntas (el problema) */

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

.q-grid__item {
  background: #fff;
  padding: 26px 24px;
  transition: background .2s ease;
}

.q-grid__item:hover { background: var(--surface); }

.q-grid__item span {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted-2);
  display: block;
  margin-bottom: 10px;
}

.q-grid__item p {
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.stat__value {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}

.stat__label { font-size: .95rem; color: var(--muted); }

/* Bloque de capas / arquitectura */

.layers { display: grid; gap: 14px; }

.layer {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color .2s ease, box-shadow .25s ease;
}

.layer:hover { border-color: #D8DEEA; box-shadow: var(--shadow-sm); }

.layer__index {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 600;
}

.layer--accent .layer__index { background: var(--ink); color: #fff; }

.layer h3 { margin-bottom: 8px; }
.layer p { color: var(--muted); font-size: .99rem; }

/* Bloque split (texto + panel) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.split--reverse .split__media { order: -1; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.panel__bar em {
  font-style: normal;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted-2);
  letter-spacing: .04em;
}

.panel__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}

.panel__body { padding: 22px; }

/* Barras de datos */

.bars { display: grid; gap: 14px; }

.bar__meta {
  display: flex;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--muted);
  margin-bottom: 7px;
}

.bar__meta strong { color: var(--ink); font-weight: 550; }

.bar__track {
  height: 8px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  width: 0;
  transition: width 1.1s cubic-bezier(.22, .61, .36, 1);
}

.bar__fill--green { background: var(--signal); }
.bar__fill--warm  { background: var(--warm); }
.bar__fill--soft  { background: #A9BFFF; }

/* Heatmap decorativo */

.heat {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}

.heat i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--surface-2);
  display: block;
}

/* Código / evento */

.code {
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow-x: auto;
  margin: 0;
  white-space: pre;
}

.code .k { color: var(--accent); }
.code .s { color: #0E8A62; }
.code .n { color: var(--warm); }
.code .c { color: var(--muted-2); }

/* -------------------------------------------------------- Casos de uso --- */

.usecase {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
  align-items: start;
}

.usecase:first-of-type { border-top: 0; padding-top: 0; }

.usecase__aside { position: sticky; top: 96px; }

.usecase__tag {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.usecase h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.usecase__aside p { color: var(--muted); font-size: .99rem; }

/* --------------------------------------------------------- Roadmap/fases --- */

.timeline { display: grid; gap: 0; }

.phase {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding-block: 34px;
  border-top: 1px solid var(--line);
}

.phase:last-child { border-bottom: 1px solid var(--line); }

.phase__label {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.phase__label h3 { font-size: 1.1rem; }

.phase__state {
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--muted-2);
  white-space: nowrap;
}

.phase__state--now {
  color: var(--signal);
  border-color: rgba(16, 185, 129, .35);
  background: rgba(16, 185, 129, .08);
}

.phase__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.phase__items li {
  color: var(--muted);
  font-size: .98rem;
  padding-left: 18px;
  position: relative;
}

.phase__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C3CBDA;
}

/* ------------------------------------------------------------- Formulario --- */

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }

.field label {
  font-size: .88rem;
  font-weight: 550;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 94, 255, .12);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form__note { font-size: .86rem; color: var(--muted-2); }

.form-status {
  display: none;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: .93rem;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .3);
  color: #08795A;
}

.form-status.is-visible { display: block; }

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

.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 72px);
  color: #fff;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(31, 94, 255, .35), transparent 70%),
    radial-gradient(40% 60% at 88% 100%, rgba(16, 185, 129, .22), transparent 70%);
}

.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { color: rgba(255, 255, 255, .68); max-width: 54ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 30px; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.cta .btn--primary { background: #fff; color: var(--ink); }
.cta .btn--primary:hover { background: #EDF1F8; }

/* --------------------------------------------------------------- Footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 64px 40px;
  background: var(--surface);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand p {
  color: var(--muted);
  font-size: .95rem;
  max-width: 34ch;
  margin-top: 16px;
}

.footer__col h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { color: var(--muted); font-size: .95rem; transition: color .18s ease; }
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted-2);
}

/* ------------------------------------------------------------ Animación --- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

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

/* ----------------------------------------------------------- Responsive --- */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .radar { max-width: 400px; margin-top: 12px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .usecase { grid-template-columns: 1fr; }
  .usecase__aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav__toggle { display: inline-flex; }

  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 10px; font-size: 1rem; }

  .nav__actions .btn { display: none; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 18px; }
  .layer { grid-template-columns: 44px 1fr; gap: 16px; padding: 22px; }
  .layer__index { width: 44px; height: 44px; border-radius: 12px; font-size: .82rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .card { padding: 24px; }
}
