/* radarius — hoja única. Tokens → base → piezas → tramos → movimiento. */

@font-face {
  font-family: 'Funnel Display';
  src: url('/assets/fonts/funnel-display.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Funnel Sans';
  src: url('/assets/fonts/funnel-sans.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fff;
  --mist: #f4f6fb;
  --ink: #0b1430;
  --ink-2: #36415f;
  --muted: #5d6885;
  --line: #dfe5f0;
  --line-2: #c6d0e2;
  --field: #7c88a8;
  --sweep: #1f4bff;
  --sweep-ink: #1238d6;
  --sweep-soft: #e9eeff;
  --blip: #ff5a1f;
  --ok: #08704a;
  --ok-soft: #e4f5ec;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;
  --shadow-1: 0 1px 2px rgba(11, 20, 48, 0.06), 0 6px 16px -6px rgba(11, 20, 48, 0.12);
  --shadow-2: 0 1px 2px rgba(11, 20, 48, 0.05), 0 18px 40px -14px rgba(11, 20, 48, 0.2), 0 46px 90px -34px rgba(31, 75, 255, 0.32);
  --display: 'Funnel Display', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --text: 'Funnel Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --top: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(2.5rem, 1.2rem + 6vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1;
}
h2 {
  font-size: clamp(1.9rem, 1rem + 3.6vw, 3.2rem);
}
h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
a {
  color: var(--sweep-ink);
  text-underline-offset: 3px;
}
img,
svg {
  max-width: 100%;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
a,
button,
input,
textarea,
label,
summary {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--sweep);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}
.lead {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0;
  text-wrap: balance;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-s);
}
.skip:focus {
  top: 12px;
}
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ───────── Botones ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font: 600 1.0625rem/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--sweep);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(31, 75, 255, 0.75);
}
.btn-primary:hover {
  background: var(--sweep-ink);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-light {
  background: #fff;
  color: var(--sweep-ink);
}
.btn-light:hover {
  background: var(--sweep-soft);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
  border-radius: 12px;
  box-shadow: none;
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn.is-loading {
  background: var(--line);
  border-color: var(--line);
  color: var(--ink-2);
  box-shadow: none;
  cursor: not-allowed;
}
.btn.is-loading {
  cursor: progress;
}
.btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 519px) {
  .cta-row .btn {
    flex: 1 1 100%;
  }
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  font: 600 0.97rem var(--text);
  color: var(--sweep-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--ink);
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ───────── Cabecera y pie ───────── */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--top);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.4rem/1 var(--display);
  letter-spacing: -0.035em;
}
.logo-glyph {
  flex: none;
}
.top-nav {
  display: none;
  gap: 28px;
  margin-left: auto;
}
.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.97rem;
  text-decoration: none;
}
.top-nav a:hover,
.top-nav a[aria-current] {
  color: var(--ink);
}
.top-in > .btn,
.top-exit {
  margin-left: auto;
}
.top-exit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
}
@media (max-width: 359px) {
  .top-in {
    gap: 10px;
  }
  .logo {
    font-size: 1.2rem;
    gap: 7px;
  }
  .top-in > .btn-sm {
    padding: 0 11px;
    font-size: 0.85rem;
  }
}
@media (min-width: 860px) {
  .top-nav {
    display: flex;
  }
  .top-in > .btn {
    margin-left: 0;
  }
}

.foot {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
}
.foot-in {
  display: grid;
  gap: 24px;
}
.foot-brand p {
  margin: 6px 0 0;
  color: var(--ink-2);
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.foot-nav a:hover {
  text-decoration: underline;
}
.foot-legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (min-width: 860px) {
  .foot-in {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .foot-legal {
    grid-column: 1 / -1;
  }
}

/* ───────── Piezas de mockup ───────── */
.win {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: left;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#fcfdff, #f5f7fb);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.win-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3dae8;
}
.win-bar span {
  margin-left: 8px;
}
.win-body {
  padding: 16px;
}
.win small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}
.win b {
  font-weight: 600;
}
.win-foot {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.mock-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}
.pill-btn {
  flex: none;
  margin-left: auto;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--sweep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}
.tag svg {
  width: 12px;
  height: 12px;
  flex: none;
}
.tag.ok {
  color: var(--ok);
  background: var(--ok-soft);
}
.tag.warn {
  color: #94420a;
  background: #fff1dc;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 600 1.15rem/1 var(--display);
  letter-spacing: -0.02em;
  object-fit: cover;
}
.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
}
.avatar-lg {
  width: 84px;
  height: 84px;
  font-size: 1.7rem;
}
.avatar-xl {
  width: 132px;
  height: 132px;
  border-radius: 36px;
  font-size: 2.8rem;
}

/* Teléfono */
.phone {
  position: relative;
  width: 252px;
  max-width: 100%;
  aspect-ratio: 9 / 18.6;
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(150deg, #27314f, #0b1430 55%);
  box-shadow: inset 0 0 0 1.5px #3a4567, var(--shadow-2);
  text-align: left;
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 33px;
  background: #f5f7fc;
  overflow: hidden;
}
.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 3;
  width: 76px;
  height: 22px;
  margin-left: -38px;
  border-radius: 999px;
  background: #0b1430;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 42px 12px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sweep);
  color: #fff;
  font: 700 0.68rem var(--display);
}
.chat-head b {
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
}
.chat-head small {
  font-size: 0.7rem;
  color: var(--ok);
  font-weight: 500;
}
.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 10px;
}
.msg {
  max-width: 86%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  line-height: 1.38;
}
.msg.in {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.msg.out {
  align-self: flex-end;
  background: var(--sweep);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.chat-note {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 4px 0 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.7rem;
  font-weight: 600;
}
.chat-note svg {
  width: 12px;
  height: 12px;
}
.chat-channels {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 9px 6px 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.chat-channels span {
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.68rem;
  font-weight: 600;
}

/* Pantalla de bloqueo */
.lock .phone-screen {
  padding: 50px 11px 14px;
  background: linear-gradient(165deg, #1f4bff 0%, #4f72ff 42%, #aebfff 100%);
  color: #fff;
}
.lock-date {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
}
.lock-time {
  margin: 0 0 18px;
  text-align: center;
  font: 600 3.5rem/1 var(--display);
  letter-spacing: -0.04em;
}
.notifs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.notifs li {
  display: flex;
  gap: 9px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 22px -12px rgba(11, 20, 48, 0.5);
}
.notif-ic {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: radial-gradient(circle at 68% 32%, var(--blip) 0 3.5px, transparent 4px), var(--ink);
}
.notifs b {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
}
.notifs small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ink-2);
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(32px, 6vw, 84px) clamp(64px, 9vw, 128px);
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -420px;
  top: -300px;
  width: 1180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle closest-side, transparent 0 calc(12.5% - 1px), rgba(31, 75, 255, 0.1) calc(12.5% - 1px) 12.5%);
  -webkit-mask: radial-gradient(circle closest-side, #000 25%, transparent 100%);
  mask: radial-gradient(circle closest-side, #000 25%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 979px) {
  /* En celular los anillos quedan arriba a la derecha, lejos del texto. */
  .hero::before {
    right: -330px;
    top: -330px;
    width: 660px;
  }
}
.hero-in {
  display: grid;
  gap: 44px;
}
.hero-copy h1 {
  max-width: 11.5em;
}
.hero-copy .lead {
  max-width: 30em;
  margin: 20px 0 28px;
}
.hero-host {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
}
.hero-host span {
  text-wrap: balance;
}
.hero-host b {
  color: var(--ink);
  font-weight: 600;
}
.hero-host:hover b {
  text-decoration: underline;
}
.hero-art {
  position: relative;
  min-width: 0;
}
.console {
  overflow: visible;
}
.console .win-bar {
  border-radius: var(--r-m) var(--r-m) 0 0;
}
.console-body {
  display: grid;
  padding: 16px;
}
.agents-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.agents-total b {
  color: var(--sweep);
  font: 600 1.9rem/1 var(--display);
  letter-spacing: -0.03em;
}
.agents-total small {
  font-size: 0.78rem;
  color: var(--ink-2);
}
.agents {
  display: none;
}
.agents ul {
  display: grid;
  gap: 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.agents li {
  display: flex;
  gap: 10px;
}
.agents b {
  display: block;
  font-size: 0.8rem;
}
.ag-dot {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--ok);
}
.ag-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--ok);
  opacity: 0;
}
.scope-col {
  min-width: 0;
}
.scope {
  position: relative;
  width: min(100%, 290px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    linear-gradient(var(--line-2), var(--line-2)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat,
    repeating-radial-gradient(circle closest-side, transparent 0 calc(33.33% - 1px), var(--line-2) calc(33.33% - 1px) 33.33%),
    radial-gradient(circle closest-side, #fff 0, #eef2ff 100%);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.scope-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(31, 75, 255, 0) 0deg 235deg, rgba(31, 75, 255, 0.06) 285deg, rgba(31, 75, 255, 0.42) 359.5deg, rgba(31, 75, 255, 0) 360deg);
  transform: rotate(48deg);
}
.scope-sweep::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 50%;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(var(--sweep), rgba(31, 75, 255, 0.3));
}
.scope-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px #fff;
}
.blip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translate(-6px, -6px);
}
.blip i {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blip);
  box-shadow: 0 0 0 2px #fff;
}
.blip i::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--blip);
  opacity: 0;
}
.blip b {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-1);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
/* Seis áreas, tres por lado y cada etiqueta en su propia franja para que no se pisen a 240 px. */
.b1 {
  left: 80%;
  top: 31%;
}
.b2 {
  left: 14%;
  top: 41%;
}
.b3 {
  left: 64%;
  top: 83%;
}
.b4 {
  left: 20%;
  top: 70%;
}
.b5 {
  left: 28%;
  top: 19%;
}
.b6 {
  left: 90%;
  top: 55%;
}
.b1,
.b3,
.b6 {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 6px), -6px);
}
.feed {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.feed li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #fff;
}
.feed-ic {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--sweep);
}
.feed-ic.is-blip {
  background: var(--blip);
}
.feed b {
  display: block;
  font-size: 0.82rem;
}
.motion-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}
.motion-toggle::before {
  content: '';
  position: absolute;
  inset: -9px;
}
.motion-toggle[hidden] {
  display: none;
}
@media (max-width: 599px) {
  /* En celular lo concreto va primero: las tres detecciones y debajo el radar, más chico. */
  .scope-col {
    display: flex;
    flex-direction: column;
  }
  .feed {
    order: -1;
    margin: 0 0 16px;
  }
  .scope {
    width: min(100%, 240px);
  }
}
@media (min-width: 600px) {
  .console-body {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
  }
  .agents {
    display: block;
    padding-right: 16px;
    border-right: 1px solid var(--line);
  }
}
@media (min-width: 980px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    align-items: center;
    gap: 56px;
  }
}
@media (min-width: 980px) and (max-width: 1179px) {
  .console-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .agents {
    display: none;
  }
}
@media (min-width: 1180px) {
  /* En pantallas anchas lo detectado sale del marco: una tarjeta anclada a su punto en el radar. */
  .hero-art {
    padding-right: 100px;
  }
  .scope-col {
    position: relative;
  }
  .scope {
    width: 250px;
  }
  .feed .f1 {
    position: absolute;
    z-index: 3;
    left: calc(50% + 10px);
    top: 150px;
    width: 226px;
    padding: 12px 14px;
    border-color: transparent;
    box-shadow: var(--shadow-2);
  }
  .b3 {
    left: 47%;
    top: 69%;
  }
  .b3 b {
    display: none;
  }
  .b4 {
    left: 15%;
    top: 62%;
  }
  .b6 {
    top: 45%;
  }
}

/* ───────── Propuesta de valor: frase + mockup ───────── */
.value {
  padding-bottom: clamp(24px, 4vw, 56px);
}
.split {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-block: clamp(36px, 5vw, 64px);
}
.split-copy h2 {
  max-width: 14em;
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 1rem + 2.6vw, 2.9rem);
}
.mock {
  min-width: 0;
  padding: clamp(16px, 3.4vw, 40px);
  border-radius: var(--r-l);
  background: var(--mist);
  container-type: inline-size;
}
.mock-center {
  display: grid;
  place-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 72px;
  }
  .split-flip .split-copy {
    order: 2;
  }
  .split-flip {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  }
}

.swap {
  display: grid;
  gap: 16px;
  align-items: center;
}
.subs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.subs li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #fff;
  font-size: 0.82rem;
  line-height: 1.3;
  opacity: 0.6;
}
.subs li::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--blip);
  transform-origin: left center;
}
.subs li.keep {
  opacity: 1;
  border-color: var(--line-2);
}
.subs li.keep::after {
  content: none;
}
.subs li.keep em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-color: transparent;
  background: var(--ok-soft);
  color: var(--ok);
}
.subs li.keep em svg {
  width: 12px;
  height: 12px;
}
.sub-ic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.s1 {
  background: #ffd7c6;
}
.s2 {
  background: #d3ddff;
}
.s3 {
  background: #cfeede;
}
.s4 {
  background: #f3d9ee;
}
.s5 {
  background: #ffe7b0;
}
.subs b {
  display: block;
  font-weight: 600;
}
.subs small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}
.subs em {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}
.own {
  display: grid;
  gap: 12px;
}
.own-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 600;
}
.own-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.own-grid span {
  padding: 15px 4px;
  border-radius: 10px;
  background: var(--sweep-soft);
  color: var(--sweep-ink);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}
.own-foot {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.8rem;
}
@container (min-width: 500px) {
  .swap {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 20px;
  }
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.kpis div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
}
.kpis b {
  font: 600 1.15rem/1.25 var(--display);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@media (max-width: 359px) {
  .kpis b {
    font-size: 1rem;
  }
}
.chart {
  position: relative;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 190;
  overflow: visible;
}
.chart-grid path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}
.chart-zone {
  fill: rgba(255, 90, 31, 0.12);
}
.chart-area {
  fill: rgba(31, 75, 255, 0.07);
}
.chart-line {
  fill: none;
  stroke: var(--sweep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.chart-dot {
  fill: var(--blip);
  stroke: #fff;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
}
@media (max-width: 519px) {
  .chart-line {
    stroke-width: 5;
  }
  .chart-dot {
    transform: scale(1.5);
  }
}
.callout {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blip);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.callout b {
  display: block;
  font-size: 0.8rem;
}
.callout small {
  color: var(--ink-2);
}
.advice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--r-s);
  background: var(--sweep-soft);
}
.advice b {
  display: block;
  font-size: 0.8rem;
}
.advice small {
  color: var(--ink-2);
}
@media (min-width: 520px) {
  .callout {
    position: absolute;
    left: 3%;
    top: 0;
    max-width: 45%;
    margin: 0;
  }
}

/* ───────── Casos de uso ───────── */
.cases {
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--mist);
}
.cases-title {
  max-width: 15em;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.cases-grid {
  display: grid;
  gap: 20px;
}
.cases-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-tab {
  min-height: 46px;
  padding: 10px 15px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.case-tab:active {
  transform: scale(0.97);
}
.case-tab b {
  font-weight: 600;
}
.case-tab span {
  display: none;
}
.case-tab:hover {
  border-color: var(--ink);
}
.case-tab[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.cases-stage {
  min-width: 0;
}
.case-panel h3 {
  margin-top: 8px;
  font-size: 1.5rem;
}
.case-panel > p {
  margin: 8px 0 0;
  color: var(--ink-2);
}
.case-mock {
  display: grid;
  place-items: center;
  margin-top: 20px;
}
.case-mock .win {
  width: 100%;
  max-width: 580px;
}
.stage-phone {
  display: grid;
  place-items: center;
  padding-block: 4px 12px;
}
@media (min-width: 900px) {
  .cases-grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }
  .cases-list {
    display: grid;
    gap: 4px;
  }
  .case-tab {
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: var(--r-m);
    background: transparent;
  }
  .case-tab b {
    font: 600 1.2rem/1.2 var(--display);
    letter-spacing: -0.02em;
  }
  .case-tab:hover {
    border-color: var(--line-2);
  }
  .case-tab[aria-selected='true'] {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
    box-shadow: var(--shadow-1);
  }
  .case-tab[aria-selected='true'] span {
    display: block;
    margin-top: 6px;
    color: var(--ink-2);
    font-size: 0.97rem;
    line-height: 1.4;
  }
  .case-panel h3,
  .case-panel > p {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .case-mock {
    min-height: 470px;
    margin-top: 0;
  }
}

.ask {
  margin: 0 0 10px;
  padding: 11px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.answer {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: var(--sweep-soft);
  color: var(--ink-2);
  font-size: 0.83rem;
  line-height: 1.45;
}
.answer b {
  color: var(--ink);
}
.bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  height: 140px;
}
.bars div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.bars span {
  width: 100%;
  max-width: 52px;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: #c5d1ff;
  transform-origin: bottom;
}
.bars .is-top {
  background: var(--sweep);
}
.bars small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goals {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.8rem;
}
.goals th {
  padding: 0 8px 8px 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  text-align: left;
}
.goals th:nth-child(1) {
  width: 30%;
}
.goals th:nth-child(2) {
  width: 36%;
}
.goals td {
  padding: 10px 8px 10px 0;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.goals td:nth-child(2) {
  white-space: nowrap;
}
.meter {
  display: inline-block;
  width: calc(100% - 48px);
  height: 8px;
  margin-right: 8px;
  border-radius: 99px;
  background: var(--mist);
  vertical-align: middle;
  overflow: hidden;
}
.meter i {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: 99px;
  background: var(--sweep);
}
.flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.flow li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #fff;
}
.flow li::before {
  counter-increment: paso;
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--sweep);
  color: #fff;
  font: 700 0.72rem var(--display);
}
.flow b {
  display: block;
  font-size: 0.8rem;
  line-height: 1.3;
}
.counter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 16px;
}
.counter b {
  color: var(--sweep);
  font: 600 2.2rem/1 var(--display);
  letter-spacing: -0.03em;
}
.counter small {
  font-size: 0.8rem;
  color: var(--ink-2);
}
.route {
  position: relative;
}
.route-line {
  position: absolute;
  left: 7px;
  right: calc(25% - 7px);
  top: 5px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
}
.route-line i {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: 99px;
  background: var(--sweep);
}
.route ul {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.route li {
  position: relative;
  padding: 24px 6px 0 0;
}
.route li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border: 3px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
}
.route li.done::before {
  border-color: var(--sweep);
  background: var(--sweep);
}
.route b {
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
}
.docs {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.docs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.docs svg {
  flex: none;
  color: var(--ok);
}
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.post span {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 8px;
  border-radius: var(--r-s);
}
.p1 span {
  background: linear-gradient(135deg, #1f4bff, #86a0ff);
}
.p2 span {
  background: linear-gradient(135deg, #0b1430, #44558a);
}
.p3 span {
  background: linear-gradient(135deg, #ff5a1f, #ffb79c);
}
.post b {
  font-size: 0.82rem;
}
.approve {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
}
.approve b {
  display: block;
  font-size: 0.8rem;
}
.approve small {
  color: var(--ink-2);
}

/* ───────── Alcance, inicio del asistente, preguntas, cierre ───────── */
.start {
  padding-block: clamp(64px, 9vw, 120px);
}
.start-in {
  display: grid;
  gap: 28px;
  align-items: center;
}
.start-copy h2 {
  max-width: 15em;
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 1rem + 2.6vw, 2.9rem);
}
.start-card {
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: #fff;
  box-shadow: var(--shadow-2);
}
.start-q {
  margin: 0 0 16px;
  font: 600 clamp(1.25rem, 1.1rem + 0.8vw, 1.55rem)/1.15 var(--display);
  letter-spacing: -0.02em;
}
.start-q span,
.step-n {
  display: block;
  margin-bottom: 8px;
  color: var(--sweep-ink);
  font: 600 0.88rem/1.2 var(--text);
  letter-spacing: 0;
}
.start-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.opt-link,
.opt span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-s);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.opt-link svg {
  flex: none;
  color: var(--sweep);
}
@media (max-width: 399px) {
  .opt-link svg {
    display: none;
  }
}
.opt-link:hover,
.opt:hover span {
  border-color: var(--sweep);
  background: var(--sweep-soft);
}
.opt-link:active,
.opt:active span {
  transform: scale(0.98);
}
@media (min-width: 900px) {
  .start-in {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
  }
}

.close {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--sweep);
  color: #fff;
}
.close::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -260px;
  top: 50%;
  width: 900px;
  aspect-ratio: 1;
  margin-top: -450px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle closest-side, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, 0.16) calc(12.5% - 1px) 12.5%);
  -webkit-mask: radial-gradient(circle closest-side, #000 20%, transparent 100%);
  mask: radial-gradient(circle closest-side, #000 20%, transparent 100%);
}
@media (max-width: 899px) {
  /* En celular los anillos del cierre quedan abajo a la derecha, fuera del texto. */
  .close::before {
    right: -400px;
    top: auto;
    bottom: -420px;
    width: 760px;
    margin-top: 0;
  }
}
.close-in {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.close h2 {
  margin-bottom: 14px;
}
.close .lead {
  max-width: 30em;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
}
.close :focus-visible {
  outline-color: #fff;
}
.host-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--r-m);
  background: #3a62ff;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s;
}
.host-card:hover {
  background: #4d72ff;
}
.host-card .avatar {
  background: #fff;
  color: var(--sweep-ink);
}
.host-card b {
  display: block;
  font: 600 1.15rem/1.2 var(--display);
}
.host-card small {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}
.host-card em {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 900px) {
  .close-in {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
    gap: 64px;
  }
}

/* ───────── Asistente (prediagnóstico) ───────── */
.is-flow main {
  min-height: calc(100svh - var(--top));
  background: var(--mist);
}
.wizard-in {
  max-width: 700px;
  padding-block: 16px 72px;
}
.wizard-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-bottom: clamp(20px, 5vw, 44px);
}
.wizard-back[hidden] {
  display: none;
}
.progress {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--line-2);
  overflow: hidden;
}
.progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 99px;
  background: var(--sweep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.step legend {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
}
.step-q {
  display: block;
  font: 600 clamp(1.75rem, 1.1rem + 3vw, 2.6rem)/1.06 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.step-hint {
  margin: -10px 0 16px;
  color: var(--ink-2);
}
.opts {
  display: grid;
  gap: 10px;
}
.opt {
  position: relative;
  display: block;
}
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt span {
  min-height: 60px;
  padding: 14px 16px;
  font-size: 1.05rem;
}
.opt input:checked + span {
  border-color: var(--sweep);
  background: var(--sweep-soft);
  box-shadow: inset 0 0 0 1px var(--sweep);
}
.opt input:focus-visible + span {
  outline: 3px solid var(--sweep);
  outline-offset: 3px;
}
.opt input:disabled + span {
  border-color: var(--line);
  background: var(--mist);
  color: var(--muted);
  cursor: not-allowed;
}
.opt input[type='checkbox'] + span::after {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: auto;
  border: 1.5px solid var(--field);
  border-radius: 6px;
  background: #fff;
}
.opt input[type='checkbox']:checked + span::after {
  border-color: var(--sweep);
  background: var(--sweep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.step-next {
  width: 100%;
  margin-top: 18px;
}
@media (min-width: 560px) {
  .opts-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.scanning {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 56px 0;
  text-align: center;
}
.scanning[hidden] {
  display: none;
}
.scanning p {
  margin: 0;
  font: 600 1.25rem var(--display);
}
.scan-scope {
  position: relative;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle closest-side, transparent 0 calc(33.33% - 1px), var(--line-2) calc(33.33% - 1px) 33.33%),
    #fff;
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1);
}
.form-error {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: #fff0e8;
  color: #8a2c06;
  font-weight: 500;
}
.form-error[hidden] {
  display: none;
}

.result-wrap:focus {
  outline: none;
}
.result-title {
  margin-bottom: 12px;
  color: var(--sweep-ink);
  font: 600 1rem/1.2 var(--text);
  letter-spacing: 0;
}
.result-sum {
  margin: 0;
  font: 600 clamp(1.6rem, 1.05rem + 2.6vw, 2.35rem)/1.1 var(--display);
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.result-note {
  margin: 14px 0 0;
  color: var(--ink-2);
}
.result-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 22px 0 0;
}
.result-cta span {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.opps {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.opp {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
}
.opp:first-child {
  border-color: var(--sweep);
  box-shadow: inset 0 0 0 1px var(--sweep);
}
.opp-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 600 0.95rem var(--display);
}
.opp:first-child .opp-n {
  background: var(--sweep);
}
.opp h3 {
  margin: 3px 0 8px;
  font-size: 1.25rem;
}
.opp p {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.opp .opp-why {
  color: var(--ink);
  font-weight: 500;
}
.opp .opp-step {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
.opp-step b {
  color: var(--ink);
}
.result-booking[hidden] {
  display: none;
}
.result-next {
  margin: 44px 0 18px;
  font-size: clamp(1.5rem, 1rem + 2vw, 2rem);
}

/* ───────── Agenda ───────── */
.agenda-in {
  max-width: 760px;
  padding-block: 24px 72px;
}
.agenda-alt {
  margin: 22px 0 0;
  color: var(--ink-2);
  text-align: center;
}
.booking {
  padding: clamp(18px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: #fff;
  box-shadow: var(--shadow-2);
}
.booking-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.booking-head :is(h1, h2, h3) {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 1.8rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  list-style: none;
}
.booking-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.booking-step[hidden] {
  display: none;
}
.booking-step > :is(h2, h3, h4) {
  margin-bottom: 4px;
  font-size: 1.2rem;
}
.booking-tz {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  min-height: 160px;
}
.day {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 68px;
  padding: 9px 2px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-s);
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.day:active,
.time:active {
  transform: scale(0.96);
}
.day small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}
.day b {
  font: 600 1.25rem/1.1 var(--display);
}
.day:hover {
  border-color: var(--ink);
}
.day[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.day[aria-pressed='true'] small {
  color: rgba(255, 255, 255, 0.85);
}
.times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  min-height: 166px;
  margin-top: 16px;
}
.time {
  min-height: 50px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-s);
  background: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.time:hover {
  border-color: var(--sweep);
  background: var(--sweep-soft);
}
.booking-empty {
  margin: 12px 0 0;
  padding: 16px;
  border-radius: var(--r-s);
  background: var(--mist);
  color: var(--ink-2);
}
.booking-empty[hidden] {
  display: none;
}
@media (min-width: 560px) {
  .times {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 108px;
  }
}
.chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: var(--r-s);
  background: var(--sweep-soft);
}
.chosen small {
  display: block;
  color: var(--ink-2);
  font-size: 0.85rem;
}
.chosen b {
  font: 600 1.08rem/1.25 var(--display);
}
.fields {
  display: grid;
  gap: 16px;
  margin-block: 14px 18px;
}
.field {
  min-width: 0;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}
.field label span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
}
.field input:not([type='checkbox']),
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--field);
  border-radius: var(--r-s);
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
  scroll-margin-top: calc(var(--top) + 56px);
}
.field textarea {
  resize: vertical;
}
.field ::placeholder {
  color: #677290;
  opacity: 1;
}
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--sweep);
  outline: 3px solid var(--sweep);
  outline-offset: 2px;
}
.field [aria-invalid='true'] {
  border-color: #b33a0a;
}
.field-error {
  margin: 6px 0 0;
  color: #b33a0a;
  font-size: 0.9rem;
  font-weight: 500;
}
.field-error[hidden] {
  display: none;
}
.field .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.field .check span {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--sweep);
}
@media (min-width: 620px) {
  .fields {
    grid-template-columns: 1fr 1fr;
  }
  .field-wide {
    grid-column: 1 / -1;
  }
}
.booking-done {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-block: 8px;
  text-align: center;
}
.booking-done:focus {
  outline: none;
}
.booking-done p {
  max-width: 34em;
  margin: 0;
  color: var(--ink-2);
}
.booking-done .done-when {
  margin-block: 4px 8px;
  color: var(--ink);
  font: 600 clamp(1.2rem, 1rem + 1vw, 1.5rem)/1.25 var(--display);
  letter-spacing: -0.02em;
}
.done-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
}
.done-mark svg {
  width: 28px;
  height: 28px;
}
.booking-done .cta-row {
  justify-content: center;
  margin-top: 18px;
}

/* ───────── Páginas de contenido ───────── */
.page-head {
  padding-block: clamp(40px, 7vw, 96px) clamp(28px, 4vw, 48px);
}
.page-head h1 {
  margin-bottom: 18px;
}
.page-head .lead {
  max-width: 34em;
}
.lost .cta-row {
  margin-top: 28px;
}
.lost {
  padding-bottom: clamp(64px, 9vw, 120px);
}
.creed {
  padding-bottom: clamp(48px, 7vw, 88px);
}
.creed-in {
  display: grid;
  gap: 14px;
}
.creed-in > div {
  padding: 24px;
  border-radius: var(--r-m);
  background: var(--mist);
}
.creed h2 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  line-height: 1.12;
}
.creed p {
  margin: 0;
  color: var(--ink-2);
}
@media (min-width: 860px) {
  .creed-in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}
.team {
  padding-bottom: clamp(56px, 8vw, 104px);
}
.team h2 {
  margin-bottom: 22px;
}
.team-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.member {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.member:hover {
  border-color: var(--sweep);
  box-shadow: var(--shadow-1);
}
.member b {
  display: block;
  font: 600 1.35rem/1.15 var(--display);
  letter-spacing: -0.02em;
}
.member small {
  display: block;
  margin-top: 2px;
  color: var(--sweep-ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.member em {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.4;
}
.member i {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.team-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
@media (min-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.profile {
  padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 104px);
}
.profile-in {
  display: grid;
  gap: 32px;
}
.profile-side {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.profile-side h1 {
  margin-top: 10px;
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 2.8rem);
}
.profile-role {
  margin: 0 0 10px;
  color: var(--sweep-ink);
  font-weight: 600;
}
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}
.profile-main {
  max-width: 40em;
}
.profile-main p {
  color: var(--ink-2);
}
.profile-main .profile-tagline {
  margin: 0 0 22px;
  color: var(--ink);
  font: 500 clamp(1.45rem, 1.05rem + 1.8vw, 2rem)/1.15 var(--display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.profile-main h2 {
  margin: 40px 0 6px;
  font-size: 1.55rem;
}
.track {
  margin: 0;
  padding: 0;
  list-style: none;
}
.track li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.track b {
  font: 600 1.12rem/1.25 var(--display);
  letter-spacing: -0.015em;
}
.track span {
  color: var(--ink-2);
}
.plain {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 1.1em;
  color: var(--ink-2);
}
.profile-back {
  margin: 36px 0 0;
}
@media (min-width: 900px) {
  .profile-in {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
  }
  .profile-side {
    position: sticky;
    top: calc(var(--top) + 32px);
  }
}
.legal-in {
  max-width: 38em;
  padding-block: clamp(32px, 6vw, 72px);
}
.legal h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.8rem);
}
.legal h2 {
  margin: 34px 0 8px;
  font-size: 1.3rem;
}
.legal p {
  color: var(--ink-2);
}
.legal .legal-date {
  color: var(--muted);
}

/* ───────── Panel ───────── */
.is-admin {
  background: var(--mist);
}
.admin {
  padding-block: 28px 80px;
}
.admin h1 {
  font-size: 2rem;
}
.admin h2 {
  margin: 40px 0 12px;
  font-size: 1.4rem;
}
.admin-tag {
  margin-left: auto;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-login {
  max-width: 380px;
  margin: 8vh auto 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: #fff;
  display: grid;
  gap: 18px;
}
.admin-warn,
.admin-ok {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: #fff1dc;
  color: #6f3206;
  font-size: 0.95rem;
}
.admin-ok {
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 600;
}
.admin-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.admin-tiles div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
}
.admin-tiles b {
  display: block;
  font: 600 2rem/1 var(--display);
}
.admin-tiles small {
  color: var(--ink-2);
  font-size: 0.86rem;
}
.admin-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
}
.admin-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-table small {
  color: var(--ink-2);
}
.admin-table input[type='time'] {
  width: 7.4em;
  padding: 8px;
  border: 1.5px solid var(--field);
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
}
.admin-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-m);
  color: var(--ink-2);
}
.admin-more {
  margin-top: 16px;
}
.admin-more summary {
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}
.admin-avail p {
  color: var(--ink-2);
}
.admin-avail .fields {
  max-width: 640px;
}

/* ───────── Movimiento ───────── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root) {
    animation-duration: 0.15s;
  }
  ::view-transition-new(root) {
    animation-duration: 0.22s;
  }

  @keyframes sweep {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes ring {
    0% {
      opacity: 0.9;
      transform: scale(1);
    }
    22%,
    100% {
      opacity: 0;
      transform: scale(3.2);
    }
  }
  @keyframes pulse {
    0%,
    100% {
      transform: scale(0.85);
    }
    4% {
      transform: scale(1.3);
    }
    22% {
      transform: scale(1);
    }
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes pop {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes strike {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }
  @keyframes dim {
    from {
      opacity: 1;
    }
    to {
      opacity: 0.6;
    }
  }
  @keyframes draw {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
  @keyframes fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes grow {
    from {
      transform: scaleY(0.08);
    }
    to {
      transform: none;
    }
  }
  @keyframes step-in {
    from {
      opacity: 0;
      transform: translateX(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  /* Radar: gira lento; cada punto destella cuando el barrido pasa por él. */
  .scope-sweep {
    animation: sweep 6s linear infinite;
  }
  .blip i {
    animation: pulse 6s ease-out infinite;
  }
  .blip i::after {
    animation: ring 6s ease-out infinite;
  }
  /* Retraso = ángulo del punto desde el norte, en sentido horario ÷ 360 × 6 s. */
  .b1 i,
  .b1 i::after {
    animation-delay: 0.96s;
  }
  .b6 i,
  .b6 i::after {
    animation-delay: 1.62s;
  }
  .b3 i,
  .b3 i::after {
    animation-delay: 2.62s;
  }
  .b4 i,
  .b4 i::after {
    animation-delay: 3.94s;
  }
  .b2 i,
  .b2 i::after {
    animation-delay: 4.73s;
  }
  .b5 i,
  .b5 i::after {
    animation-delay: 5.41s;
  }
  @media (min-width: 1180px) {
    .b6 i,
    .b6 i::after {
      animation-delay: 1.38s;
    }
    .b3 i,
    .b3 i::after {
      animation-delay: 3.15s;
    }
    .b4 i,
    .b4 i::after {
      animation-delay: 4.16s;
    }
  }
  .ag-dot::after {
    animation: ring 2.8s ease-out infinite;
  }
  .agents li:nth-child(2) .ag-dot::after {
    animation-delay: 0.7s;
  }
  .agents li:nth-child(3) .ag-dot::after {
    animation-delay: 1.4s;
  }
  .agents li:nth-child(4) .ag-dot::after {
    animation-delay: 2.1s;
  }
  /* Lo detectado entra una vez, en orden. */
  .feed li {
    animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .feed .f1 {
    animation-delay: 0.5s;
  }
  .feed .f2 {
    animation-delay: 0.75s;
  }
  .feed .f3 {
    animation-delay: 1s;
  }
  @media (max-width: 599px) {
    /* En celular van en la primera pantalla: la primera ya está al pintar y el grupo se completa en medio segundo. */
    .feed .f1 {
      animation: none;
    }
    .feed .f2 {
      animation-delay: 0.05s;
    }
    .feed .f3 {
      animation-delay: 0.15s;
    }
  }
  [data-motion].is-paused *,
  [data-motion].is-paused *::after,
  [data-motion].is-off *,
  [data-motion].is-off *::after {
    animation-play-state: paused !important;
  }
  .scan-scope .scope-sweep {
    animation-duration: 1.1s;
  }

  /* Mockups: se animan una vez al entrar en pantalla (el script marca .is-in). */
  .js [data-anim]:not(.is-in) .subs li {
    opacity: 1;
  }
  .js [data-anim]:not(.is-in) .subs li::after {
    transform: scaleX(0);
  }
  .js [data-anim]:not(.is-in) :is(.own-win, .callout, .advice, .notifs li, .chart-zone, .chart-dot) {
    opacity: 0;
  }
  .js [data-anim]:not(.is-in) .chart-line {
    stroke-dashoffset: 1;
  }
  .js [data-anim].is-in .subs li:not(.keep) {
    animation: dim 0.3s both;
  }
  .js [data-anim].is-in .subs li::after {
    animation: strike 0.25s ease-out both;
  }
  .js [data-anim].is-in .subs li:nth-child(1),
  .js [data-anim].is-in .subs li:nth-child(1)::after {
    animation-delay: 0.05s;
  }
  .js [data-anim].is-in .subs li:nth-child(2),
  .js [data-anim].is-in .subs li:nth-child(2)::after {
    animation-delay: 0.2s;
  }
  .js [data-anim].is-in .subs li:nth-child(3),
  .js [data-anim].is-in .subs li:nth-child(3)::after {
    animation-delay: 0.35s;
  }
  .js [data-anim].is-in .own-win {
    animation: pop 0.4s 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .js [data-anim].is-in .chart-line {
    animation: draw 0.75s 0.05s ease-in-out both;
  }
  .js [data-anim].is-in .chart-zone {
    animation: fade 0.3s 0.5s both;
  }
  .js [data-anim].is-in .chart-dot {
    animation: pop 0.3s 0.6s both;
  }
  .js [data-anim].is-in .callout {
    animation: rise 0.3s 0.6s both;
  }
  .js [data-anim].is-in .advice {
    animation: rise 0.3s 0.7s both;
  }
  .js [data-anim].is-in .notifs li {
    animation: pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .js [data-anim].is-in .notifs .n1 {
    animation-delay: 0.05s;
  }
  .js [data-anim].is-in .notifs .n2 {
    animation-delay: 0.3s;
  }
  .js [data-anim].is-in .notifs .n3 {
    animation-delay: 0.55s;
  }
  .case-panel:not([hidden]) .case-mock {
    animation: pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .case-panel:not([hidden]) .bars span {
    animation: grow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .step:not([hidden]) {
    animation: step-in 0.24s ease-out both;
  }
  .result-wrap:not([hidden]),
  .result-booking:not([hidden]) {
    animation: rise 0.4s ease-out both;
  }
}
