/* Landing pública de OnBrain (onbrain.app).
 *
 * Los tokens de color, sombras y radios están COPIADOS de
 * apps/web/app/globals.css a propósito: esta página no tiene build y no puede
 * importar Tailwind ni el CSS de la app. Si cambia la marca allí, cámbiala
 * aquí también (allí hay un comentario que apunta a este fichero).
 * Tema claro único, como la app. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --brand: #6c4df6;
  --brand-dark: #5636e3;
  --brand-soft: #efecfe;
  --brand-line: #cfc4fd;
  --bg: #f6f6f9;
  --bg-elevated: #ffffff;
  --fg: #191b23;
  --fg-muted: #63687a;
  --border: #e7e8ef;
  --border-strong: #d5d7e2;
  --success: #16a34a;
  --success-soft: #e8f7ee;
  --warn: #d97706;
  --warn-soft: #fcf3e3;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --info: #2563eb;
  --info-soft: #e9f0fe;
  --shadow-card: 0 1px 2px rgb(25 27 35 / 0.04), 0 4px 16px -6px rgb(25 27 35 / 0.07);
  --shadow-pop: 0 4px 10px rgb(25 27 35 / 0.06), 0 12px 32px -8px rgb(25 27 35 / 0.14);
  --shadow-float: 0 2px 6px rgb(25 27 35 / 0.05), 0 24px 60px -18px rgb(54 36 150 / 0.28);

  /* Canales y cuentas de ejemplo de las escenas */
  --c-mail: #d8453a;
  --c-mail-soft: #fdeeec;
  --c-wa: #1c9d55;
  --c-wa-soft: #e6f6ec;
  --c-slack: #7b3f9e;
  --c-slack-soft: #f4ecf8;
  --c-cal: #2563eb;
  --c-cal-soft: #e9f0fe;
  --acc1: #d9790f;
  --acc1-soft: #fdf1e2;
  --acc2: #0c8f80;
  --acc2-soft: #e1f5f2;
  --acc3: #5636e3;
  --acc3-soft: #efecfe;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

b,
strong {
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 2px;
  border-radius: 8px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

.ico-lg {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.muted {
  color: var(--fg-muted);
}

.c-mail {
  color: var(--c-mail);
}
.c-wa {
  color: var(--c-wa);
}
.c-slack {
  color: var(--c-slack);
}
.c-cal {
  color: var(--c-cal);
}
.c-task {
  color: var(--brand);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--fg);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 24px;
  }
}

.center {
  text-align: center;
}

/* ---------- Botones y chips (réplica de .btn / .chip de la app) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms,
    border-color 150ms,
    color 150ms,
    transform 140ms,
    box-shadow 150ms;
}
a.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
}
.btn-xs {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 0.6rem;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgb(108 77 246 / 0.7);
}
a.btn-primary:hover {
  background: var(--brand-dark);
}
.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--fg);
}
a.btn-secondary:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}
.btn-light {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 30px -10px rgb(20 10 70 / 0.45);
}
a.btn-light:hover {
  background: var(--brand-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  background: #eef0f4;
  color: var(--fg-muted);
}
.chip-brand {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.chip-info {
  background: var(--info-soft);
  color: var(--info);
}
.chip-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.chip-ok,
.chip-draft {
  background: var(--success-soft);
  color: var(--success);
}
.chip-soft {
  background: var(--brand-soft);
  color: var(--brand);
}
.chip-c2 {
  background: var(--acc2-soft);
  color: var(--acc2);
}
.chip-c3 {
  background: var(--acc3-soft);
  color: var(--acc3);
}
.chip-soon {
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  vertical-align: 0.1em;
}

/* ---------- Logo ---------- */

.brand {
  text-decoration: none;
  color: var(--fg);
}

/* LogoLetter de apps/web/app/(dash)/_components/logo.tsx: el anillo hace de
 * "o". Las cuatro medidas en em salieron de medir Manrope 800 en vivo allí;
 * se copian tal cual. */
.logo-letter {
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 27px;
  line-height: 1;
  white-space: nowrap;
}
.logo-o {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.206em;
  margin: 0 -0.129em 0 -0.136em;
  fill: none;
  stroke: var(--brand);
  stroke-width: 6;
  stroke-linecap: round;
}
.logo-o circle {
  fill: var(--brand);
  stroke: none;
}

/* ---------- Barra superior ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 246 249 / 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 200ms,
    box-shadow 200ms;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 6px 20px -16px rgb(25 27 35 / 0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.nav-links {
  display: none;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 150ms;
}
.nav-links a:hover {
  color: var(--fg);
}
@media (min-width: 880px) {
  .nav-links {
    display: flex;
  }
}

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

.hero {
  position: relative;
  padding: 40px 0 72px;
  background:
    radial-gradient(60% 55% at 85% 20%, rgb(124 92 252 / 0.16), transparent 70%),
    radial-gradient(45% 45% at 5% 90%, rgb(78 141 247 / 0.1), transparent 70%);
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
@media (min-width: 980px) {
  .hero {
    padding: 72px 0 104px;
  }
  .hero-grid {
    grid-template-columns: 1.02fr 1fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(2.5rem, 7vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.h1-main {
  display: block;
  margin-top: 20px;
}
.hl {
  color: var(--brand);
  background: linear-gradient(transparent 68%, #e2dafe 68%, #e2dafe 92%, transparent 92%);
}
.lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--fg-muted);
  line-height: 1.6;
}
.lead strong,
.lead b {
  color: var(--fg);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 480px) {
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
}
.hero-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
}
.hero-channels li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Principio ---------- */

.principle {
  background: var(--fg);
  color: #eceaf6;
}
.principle-grid {
  display: grid;
  gap: 18px;
  padding-block: 26px;
}
@media (min-width: 860px) {
  .principle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-block: 30px;
  }
}
.principle-grid li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #c9c6d9;
}
.pr-ico {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(124 92 252 / 0.2);
  color: #c4b6ff;
  font-size: 20px;
}
.principle strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1rem;
  color: #fff;
}
.principle a {
  color: #c4b6ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.principle a:hover {
  color: #fff;
}

/* ---------- Be human: el manifiesto y su hilo ---------- */

.manifesto {
  padding: 88px 0 80px;
  background:
    radial-gradient(50% 60% at 50% 0%, rgb(124 92 252 / 0.1), transparent 70%),
    #fff;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
@media (min-width: 940px) {
  .manifesto {
    padding: 120px 0 112px;
  }
}
.manifesto-inner {
  max-width: 900px;
}
.manifesto .kicker {
  justify-content: center;
}
.be-human {
  margin-top: 10px;
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.be-human span {
  color: var(--brand);
}
.manifesto .lead {
  max-width: 700px;
  margin: 26px auto 0;
}
.pairs {
  display: grid;
  gap: 12px;
  margin-top: 44px;
  text-align: left;
}
@media (min-width: 820px) {
  .pairs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
.pairs li {
  min-width: 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.less {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: line-through;
  text-decoration-color: var(--brand-line);
  text-decoration-thickness: 2px;
}
.more {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.manifesto-close {
  margin-top: 40px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.manifesto-close span {
  color: var(--brand);
}

/* La nota que cierra las secciones que tratan de relaciones: la misma pieza
   siempre, para que se lea como un hilo y no como frases sueltas. */
.human-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
}
.feature .feature-copy > .human-note {
  margin-top: 26px;
  font-size: 1.05rem;
  color: var(--fg);
}
.hn-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.final-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.3);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.final-tag + h2 {
  margin-top: 12px;
}

/* ---------- Secciones de funciones ---------- */

.anchor {
  height: 0;
}
.feature {
  padding: 72px 0;
}
.feature.alt {
  background: #fff;
  border-block: 1px solid var(--border);
}
.feature.spotlight {
  background:
    radial-gradient(50% 60% at 80% 40%, rgb(124 92 252 / 0.14), transparent 70%),
    linear-gradient(180deg, #f3f0ff, var(--bg));
}
.feature-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.feature-grid > * {
  min-width: 0;
}
@media (min-width: 940px) {
  .feature {
    padding: 112px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr 1.08fr;
    gap: 72px;
  }
  .feature-grid.reverse > .feature-copy {
    order: 2;
  }
}
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.kicker .num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-soft);
  font-size: 0.75rem;
  letter-spacing: 0;
}
.kicker .chip-soon {
  text-transform: none;
  letter-spacing: 0;
}
h2 {
  margin-top: 14px;
  font-size: clamp(1.85rem, 4.2vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  overflow-wrap: break-word;
}
.feature-copy > p:not(.kicker) {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--fg-muted);
}
.feature-copy b {
  color: var(--fg);
}
.ticks {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
  color: var(--fg-muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c4df6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* ---------- Motor de escenas ---------- */

.scene {
  position: relative;
}
.js .scene [data-at]:not(.on) {
  display: none;
}
.js .scene [data-at].on {
  animation: fx-in 0.5s var(--ease) both;
}
html:not(.js) .scene [data-until] {
  display: none;
}
@keyframes fx-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--brand);
  animation: caret 0.8s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

.fx-press {
  transition:
    transform 160ms,
    box-shadow 250ms,
    background-color 250ms;
}
.js .scene .fx-press.fx-on,
html:not(.js) .fx-press {
  animation: press 0.55s var(--ease);
  box-shadow: 0 0 0 5px rgb(108 77 246 / 0.18);
}
.btn-primary.fx-press.fx-on {
  background: var(--brand-dark);
}
.btn-secondary.fx-press.fx-on {
  border-color: var(--brand-line);
  color: var(--brand);
}
@keyframes press {
  30% {
    transform: scale(0.92);
  }
  70% {
    transform: scale(1.03);
  }
}

/* ---------- Maqueta común ---------- */

.mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  padding: 16px;
}
@media (min-width: 640px) {
  .mock {
    padding: 20px;
  }
}
.mock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
}
.mock-title {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  margin-right: auto;
  min-width: 0;
}
.mock-title small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
}
.dot-brand {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
}
.dot-brand svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
}
.pulse {
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.av-lg {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}
.av-a {
  background: #e7e1ff;
  color: var(--brand-dark);
}
.av-b {
  background: #dff3ee;
  color: #0b7a6d;
}
.av-c {
  background: #fde9d6;
  color: #b45f0c;
}
.av-d {
  background: #e3ecfd;
  color: #1d4ed8;
}

.ch {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 15px;
}
.ch.c-mail {
  background: var(--c-mail-soft);
}
.ch.c-wa {
  background: var(--c-wa-soft);
}
.ch.c-slack {
  background: var(--c-slack-soft);
}

/* ---------- Escena del hero: bandeja → colas ---------- */

.hero-scene .mock {
  display: flex;
  flex-direction: column;
  min-height: 548px;
}
.hero-scene .queues {
  margin-top: auto;
}
.js .scene .inrow.on:nth-child(2) {
  animation-delay: 0.12s;
}
.js .scene .inrow.on:nth-child(3) {
  animation-delay: 0.24s;
}
.js .scene .inrow.on:nth-child(4) {
  animation-delay: 0.36s;
}
.inbox-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 230px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.inbox-done b {
  font-size: 0.95rem;
  color: var(--fg);
}
.done-ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 22px;
}
.inbox {
  display: grid;
  gap: 8px;
  min-height: 250px;
  align-content: start;
}
.inrow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.inrow-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.inrow-txt b {
  font-size: 0.83rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inrow-txt span {
  font-size: 0.78rem;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.queue {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
}
@media (max-width: 480px) {
  .queues {
    grid-template-columns: minmax(0, 1fr);
  }
}
.q-answer {
  grid-column: 1 / -1;
  background: #f6f4ff;
  border-color: #e4ddfe;
}
.q-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.q-answer .q-name {
  color: var(--brand-dark);
}
.q-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  letter-spacing: 0;
  color: var(--fg);
}
.qrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  box-shadow: var(--shadow-card);
}
.qrow .ch {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 12px;
}
.qrow .chip {
  margin-left: auto;
}
.q-ignore .qrow {
  color: var(--fg-muted);
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
}

/* ---------- Escena 1: triaje y borrador ---------- */

.phone {
  max-width: 440px;
  margin-inline: auto;
  min-height: 520px;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.bubble.in {
  align-self: flex-start;
  background: #f1f2f6;
  border-bottom-left-radius: 5px;
}
.bubble.out {
  align-self: flex-end;
  background: #dcf6e5;
  border-bottom-right-radius: 5px;
}
.sent {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--success);
}
.triage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.why {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.agenda-peek {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--info-soft);
  color: #1e40af;
  font-size: 0.8rem;
  line-height: 1.45;
}
.agenda-peek .ico {
  margin-top: 0.15em;
}
.draft {
  padding: 12px;
  border: 1.5px dashed var(--brand-line);
  border-radius: 14px;
  background: #faf9ff;
}
.draft-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.02em;
}
.draft-body {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.55;
  min-height: 4.65em;
}
.draft-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.draft-actions {
  position: relative;
}
.split {
  display: inline-flex;
}
.split-main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.split-arrow {
  padding-inline: 0.45rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid rgb(255 255 255 / 0.35);
}
.sched-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 2;
  min-width: 210px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
}
.sched-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.sched-opt .ico {
  color: var(--fg-muted);
}
.fx-pick.fx-on,
html:not(.js) .fx-pick {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.fx-pick.fx-on .ico,
html:not(.js) .fx-pick .ico {
  color: var(--brand);
}
.sent.sched {
  color: var(--brand-dark);
}

/* ---------- Escena 2: tareas que se apuntan solas ---------- */

.tasks-scene {
  display: grid;
  gap: 10px;
  min-height: 560px;
  align-content: start;
}
.incoming {
  display: grid;
  gap: 6px;
  align-content: start;
  /* Hueco reservado para los tres mensajes: si no, la lista de tareas baja
     de golpe cada vez que llega uno. */
  min-height: 174px;
}
@media (max-width: 480px) {
  .incoming {
    min-height: 246px;
  }
}
.inc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.inc .ch {
  width: 28px;
  height: 28px;
}
.inc-txt {
  display: flex;
  flex: 1 1 12rem;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.inc-txt b {
  font-size: 0.8rem;
}
.inc-txt span {
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.v-ok {
  background: var(--success-soft);
  color: var(--success);
}
.v-skip {
  background: #eef0f4;
  color: var(--fg-muted);
}
.v-dup {
  background: var(--info-soft);
  color: var(--info);
}
.task-board .mock-head {
  margin-bottom: 4px;
}
.task-board .tasks {
  margin-top: 0;
  min-height: 0;
}
.task-board .t-group {
  margin: 8px 0 4px;
}
.task-board .t-group:first-child {
  margin-top: 2px;
}
.task-board .task {
  margin-bottom: 4px;
  padding: 7px 10px;
  transition: opacity 0.4s;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fchip {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fg-muted);
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.fchip.all,
.task-board.fx-on .fchip.lumen {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.task-board.fx-on .fchip.all {
  background: #fff;
  border-color: var(--border);
  color: var(--fg-muted);
}
.task-board.fx-on .task:not(.t-lumen) {
  opacity: 0.28;
}
.chip-c1 {
  background: var(--acc1-soft);
  color: #9a5208;
}
.chip-person {
  background: var(--bg);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
/* Dos animaciones sobre el mismo elemento: en UNA sola declaración, o la
   segunda pisa a la primera. */
.js .scene .task.fresh.on {
  animation:
    fx-in 0.5s var(--ease) both,
    glow 1.6s ease-out 0.3s;
}
.js .scene .fx-bump.fx-on {
  animation: glow 1.4s ease-out;
}

/* Completar retira la fila, como en la app, y con ella su grupo si se queda
   vacío. El max-height de partida tiene margen sobre la altura real
   (título + fila, unos 74px). */
.t-sect {
  overflow: hidden;
}
.js .scene .t-sect.fx-leave.fx-on {
  animation: sect-out 0.75s var(--ease) forwards;
}
@keyframes sect-out {
  0% {
    opacity: 1;
    max-height: 96px;
  }
  45% {
    opacity: 0;
    transform: translateX(18px);
    max-height: 96px;
  }
  100% {
    opacity: 0;
    transform: translateX(18px);
    max-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .scene .t-sect.fx-leave.fx-on {
    display: none;
  }
}

/* ---------- Escena 3: agenda y notas de reunión ---------- */

.notes-card {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #faf9ff;
  border: 1.5px dashed var(--brand-line);
}
.nc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.85rem;
  font-weight: 800;
}
.nc-head .chip {
  margin-left: auto;
}
.nc-body {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fg-muted);
}
.nc-task {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);
}

/* ---------- Calendario por capas y lista de tareas (escenas 2 y 3) ---------- */

.acc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fg-muted);
}
.acc,
.layer-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.acc i,
.layer-label i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}
i.c1 {
  background: var(--acc1);
}
i.c2 {
  background: var(--acc2);
}
i.c3 {
  background: var(--acc3);
}
.cal-stack {
  position: relative;
  height: 250px;
  margin-top: 46px;
}
.cal-layer {
  position: absolute;
  inset: 0;
  padding: 26px 8px 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px -10px rgb(25 27 35 / 0.25);
  transition:
    transform 0.9s var(--ease),
    background-color 0.6s,
    border-color 0.6s,
    box-shadow 0.6s;
}
.cal-layer.l3 {
  z-index: 1;
  transform: translateY(-46px) scale(0.9);
}
.cal-layer.l2 {
  z-index: 2;
  transform: translateY(-23px) scale(0.95);
}
.cal-layer.l1 {
  z-index: 3;
}
.layer-label {
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--fg-muted);
  transition: opacity 0.4s;
}
.fx-merge.fx-on .cal-layer,
html:not(.js) .fx-merge .cal-layer {
  transform: none;
}
.fx-merge.fx-on .cal-layer.l1,
.fx-merge.fx-on .cal-layer.l2,
html:not(.js) .fx-merge .cal-layer.l1,
html:not(.js) .fx-merge .cal-layer.l2 {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.fx-merge.fx-on .layer-label,
html:not(.js) .fx-merge .layer-label {
  opacity: 0;
}
.week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: 18px repeat(8, minmax(0, 1fr));
  gap: 3px 4px;
  height: 100%;
}
.day-h {
  grid-row: 1;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--fg-muted);
}
.ev {
  min-width: 0;
  overflow: hidden;
  padding: 2px 5px;
  border-radius: 6px;
  border-left: 3px solid;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.25;
}
@media (max-width: 480px) {
  .ev {
    padding: 2px 3px;
    font-size: 0.58rem;
  }
}
.e1 {
  background: var(--acc1-soft);
  border-color: var(--acc1);
  color: #9a5208;
}
.e2 {
  background: var(--acc2-soft);
  border-color: var(--acc2);
  color: #0a6c61;
}
.e3 {
  background: var(--acc3-soft);
  border-color: var(--acc3);
  color: var(--acc3);
}
.d1 {
  grid-column: 1;
}
.d2 {
  grid-column: 2;
}
.d3 {
  grid-column: 3;
}
.d4 {
  grid-column: 4;
}
.d5 {
  grid-column: 5;
}
.r1 {
  grid-row-start: 2;
}
.r2 {
  grid-row-start: 3;
}
.r4 {
  grid-row-start: 5;
}
.r5 {
  grid-row-start: 6;
}
.r7 {
  grid-row-start: 8;
}
.s2 {
  grid-row-end: span 2;
}
.s3 {
  grid-row-end: span 3;
}

.tasks {
  margin-top: 16px;
  min-height: 250px;
}
.t-group {
  margin: 12px 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.task {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.task.over {
  border-left: 3px solid var(--danger);
}
.t-title {
  flex: 1 1 8rem;
  min-width: 0;
  transition: color 0.4s;
}
.t-from {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-basis: 100%;
  padding-left: 30px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg-muted);
}
.tick {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.tick svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}
.spk {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0;
}
.spk.s1 {
  --dx: -18px;
  --dy: -14px;
}
.spk.s2 {
  --dx: 0px;
  --dy: -22px;
  background: #4e8df7;
}
.spk.s3 {
  --dx: 18px;
  --dy: -14px;
}
.spk.s4 {
  --dx: 20px;
  --dy: 10px;
  background: #f59e0b;
}
.spk.s5 {
  --dx: -20px;
  --dy: 10px;
  background: #4e8df7;
}
.spk.s6 {
  --dx: 0px;
  --dy: 20px;
  background: #f59e0b;
}
.fx-done.fx-on .tick,
html:not(.js) .fx-done .tick {
  background: var(--brand);
  border-color: var(--brand);
}
.fx-done.fx-on .tick {
  animation: tick-pop 0.5s var(--ease);
}
.fx-done.fx-on .tick svg,
html:not(.js) .fx-done .tick svg {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.4s 0.1s ease-out;
}
.fx-done.fx-on .spk {
  animation: spark 0.9s var(--ease) 0.08s both;
}
.fx-done.fx-on .t-title,
html:not(.js) .fx-done .t-title {
  color: var(--fg-muted);
  text-decoration: line-through;
}
.js .scene .fx-done.fx-on {
  animation: glow 1.2s ease-out;
}
.js .scene .pulse.on {
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes tick-pop {
  40% {
    transform: scale(1.3);
  }
}
@keyframes spark {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  15% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1);
  }
}
@keyframes glow {
  30% {
    box-shadow: 0 0 0 4px rgb(108 77 246 / 0.16);
    border-color: var(--brand-line);
  }
}

/* ---------- Escena 3: personas ---------- */

.people-scene {
  min-height: 560px;
}
.ids {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  transition:
    transform 0.6s var(--ease),
    opacity 0.6s;
}
.ids.fx-on {
  transform: translateY(36px) scale(0.7);
  opacity: 0;
}
.id-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 0.8rem;
  font-weight: 700;
}
.person {
  display: grid;
  gap: 14px;
}
.person-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.person-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.person-id b {
  font-size: 1.05rem;
}
.person-id small {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-weight: 600;
}
.id-icons {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  font-size: 14px;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 600;
}
.stats b {
  color: var(--fg);
}
.st-open,
.st-open b {
  color: var(--brand);
}
.timeline {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.timeline li {
  display: grid;
  grid-template-columns: 46px 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 0.82rem;
  line-height: 1.4;
}
.timeline .ico {
  margin-top: 0.15em;
}
.tl-date {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--fg-muted);
  padding-top: 0.1em;
}
.person > .btn {
  justify-self: start;
}
.suggest {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--brand-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}
.suggest .quote {
  margin-top: 6px;
  color: var(--brand-dark);
  font-weight: 700;
}

/* ---------- Escena 4: voz ---------- */

.voice {
  min-height: 400px;
}
.mic-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mic {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 24px;
  animation: ring 1.8s ease-out infinite;
}
@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 rgb(108 77 246 / 0.35);
  }
  100% {
    box-shadow: 0 0 0 16px rgb(108 77 246 / 0);
  }
}
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  min-width: 0;
  overflow: hidden;
}
.wave i {
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: var(--brand);
  opacity: 0.75;
  transform: scaleY(0.25);
  animation: wave 1.1s ease-in-out infinite;
}
.wave i:nth-child(2n) {
  animation-delay: -0.3s;
}
.wave i:nth-child(3n) {
  animation-delay: -0.6s;
  background: #8b73fa;
}
.wave i:nth-child(4n) {
  animation-delay: -0.85s;
}
.wave i:nth-child(5n) {
  animation-delay: -0.15s;
}
@keyframes wave {
  50% {
    transform: scaleY(1);
  }
}
.vslide {
  margin-top: 18px;
}
.said {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  min-height: 2.9em;
}
.proposal {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.proposal.answer {
  background: var(--brand-soft);
  border-color: #e0d8fe;
}
.p-kind {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--fg-muted);
}
.proposal.answer .p-kind {
  color: var(--brand);
}
.p-body {
  margin-top: 6px;
  font-size: 0.87rem;
  line-height: 1.55;
}
.p-body .chip {
  vertical-align: 0.05em;
}
.p-actions {
  margin-top: 10px;
}

/* ---------- Escena 5: rutinas y reglas ---------- */

.routines li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.r-ico {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 16px;
}
.r-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.r-txt b {
  font-size: 0.87rem;
}
.r-txt small {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 600;
}
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background-color 0.25s;
}
.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease);
}
.fx-switch.fx-on,
html:not(.js) .fx-switch {
  background: var(--brand);
}
.fx-switch.fx-on .switch-thumb,
html:not(.js) .fx-switch .switch-thumb {
  transform: translateX(18px);
}
.run {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  min-height: 118px;
}
.run-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}
.run-head .muted {
  font-size: 0.75rem;
  font-weight: 600;
}
.ok-ico {
  color: var(--success);
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--brand-line);
  border-top-color: var(--brand);
  animation: spin 0.7s linear infinite;
}
.js .scene .spinner.on {
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.run-body {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fg-muted);
}
.run-body b {
  color: var(--fg);
}
.rule {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1.5px dashed var(--brand-line);
  border-radius: 14px;
  background: #faf9ff;
}
.rule-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.rule-text {
  margin: 4px 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  min-height: 2.9em;
}

/* ---------- Escena 6: cumpleaños ---------- */

.bday {
  display: grid;
  gap: 12px;
  max-width: 460px;
  margin-inline: auto;
  min-height: 560px;
  align-content: start;
}
.notif {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
}
.n-ico {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
}
.n-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 4.5;
  stroke-linecap: round;
}
.n-txt {
  display: flex;
  flex-direction: column;
  font-size: 0.84rem;
  line-height: 1.35;
  min-width: 0;
}
.n-time {
  align-self: start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fg-muted);
}
.ctx {
  display: grid;
  gap: 8px;
}
.ctx-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.83rem;
  line-height: 1.45;
}
.ctx-item > .ico {
  margin-top: 0.2em;
  color: var(--brand);
}
.ctx-item > .ico.c-wa {
  color: var(--c-wa);
}
.ctx-item b {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.bday-draft .draft-body {
  min-height: 6.2em;
}
.bday-draft .draft-actions {
  margin-top: 10px;
}
.sent-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--success);
}

/* ---------- Escena: memoria ---------- */

/* Una sola tarjeta: las fuentes en una fila de chips que se sincronizan a la
   vez, y «Sobre ti» desde el primer segundo, que es lo que se viene a ver. */
.memory-scene {
  display: grid;
  gap: 8px;
  min-height: 440px;
  align-content: start;
}
.src-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}
.src-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.73rem;
  font-weight: 700;
}
.src-ico {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
}
.s-mail {
  background: var(--c-mail-soft);
  color: var(--c-mail);
}
.s-drive {
  background: var(--acc1-soft);
  color: var(--acc1);
}
.s-code {
  background: #eef0f4;
  color: var(--fg);
}
.s-file {
  background: var(--brand-soft);
  color: var(--brand);
}
.src-chip .spinner {
  width: 12px;
  height: 12px;
}
.src-ok {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--success);
  white-space: nowrap;
}
.about {
  display: grid;
  gap: 10px;
}
.about-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.about-head .chip {
  margin-left: auto;
}
.about-ico {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
}
.about-item {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.about-k {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.about-v {
  margin-top: 3px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.about-src {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-muted);
}
.mem-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-dark);
}

/* ---------- Escena: eventos (reencontrar a quien conociste) ---------- */

.reunite {
  min-height: 470px;
}
.met li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgb(108 77 246 / 0.14);
}
.met li:first-child {
  border-top: 0;
  padding-top: 4px;
}
.tm-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.tm-txt b {
  font-size: 0.86rem;
}
.tm-txt small {
  font-size: 0.74rem;
  color: var(--fg-muted);
  font-weight: 600;
}
.tm-why {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--fg);
}
.ev-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: start;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e0d8fe;
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.ev-chip.ev-meet {
  color: var(--fg-muted);
  border-color: var(--border);
}
@media (max-width: 480px) {
  .met li {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .ev-chip {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------- Privacidad ---------- */

.privacy {
  padding: 80px 0;
  background:
    radial-gradient(55% 50% at 50% 0%, rgb(124 92 252 / 0.16), transparent 70%),
    linear-gradient(180deg, #f1edff, var(--bg) 70%);
  border-top: 1px solid #e4ddfe;
}
@media (min-width: 940px) {
  .privacy {
    padding: 120px 0;
  }
}
.privacy-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.kicker.light {
  justify-content: center;
}
.iso {
  display: grid;
  gap: 16px;
  align-items: center;
  margin: 48px auto 0;
  max-width: 980px;
}
.iso > * {
  min-width: 0;
}
@media (min-width: 820px) {
  .iso {
    grid-template-columns: 1.15fr auto 1fr;
    gap: 24px;
  }
}
.inst {
  border-radius: 20px;
  padding: 20px;
}
.inst.mine {
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-float);
}
.inst-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.inst.other .inst-tag {
  background: #e7e8ef;
  color: var(--fg-muted);
}
.inst-domain {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.inst-domain .ico {
  color: var(--success);
}
.inst ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.inst li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.inst.mine li .ico {
  color: var(--brand);
}
.inst.other {
  padding: 14px 16px;
  background: rgb(255 255 255 / 0.55);
  border: 1.5px dashed var(--border-strong);
  color: var(--fg-muted);
}
.inst.other li {
  font-size: 0.82rem;
}
.others {
  display: grid;
  gap: 12px;
}
@media (min-width: 520px) and (max-width: 819px) {
  .others {
    grid-template-columns: 1fr 1fr;
  }
}
.gap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: center;
}
.gap::before,
.gap::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--border-strong);
}
@media (min-width: 820px) {
  .gap {
    flex-direction: column;
    width: 92px;
    height: 100%;
    min-height: 220px;
  }
  .gap::before,
  .gap::after {
    border-top: 0;
    border-left: 2px dashed var(--border-strong);
  }
}
.pgrid {
  display: grid;
  gap: 14px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .pgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 980px) {
  .pgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.pgrid li {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.pgrid h3 {
  margin: 12px 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.pgrid p {
  font-size: 0.93rem;
  color: var(--fg-muted);
}

/* ---------- Cómo empezamos ---------- */

.start {
  padding: 80px 0;
}
.start .lead {
  max-width: 620px;
  margin-inline: auto;
}
.steps {
  display: grid;
  gap: 14px;
  margin-top: 40px;
}
@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
.steps li {
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.steps h3 {
  margin: 14px 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
}
.steps p {
  font-size: 0.95rem;
  color: var(--fg-muted);
}

/* ---------- Preguntas ---------- */

.faq {
  padding: 24px 0 88px;
}
.faq-wrap {
  max-width: 800px;
}
.faq h2 {
  margin-bottom: 28px;
}
.faq details {
  margin-bottom: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 200ms;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details a {
  color: var(--brand);
  font-weight: 700;
  text-underline-offset: 3px;
}
.faq details p {
  padding: 0 18px 18px;
  color: var(--fg-muted);
  font-size: 0.97rem;
}

/* ---------- CTA final y pie ---------- */

.final {
  padding: 88px 0;
  background:
    radial-gradient(60% 80% at 50% 0%, rgb(255 255 255 / 0.16), transparent 70%),
    var(--brand);
  color: #fff;
  text-align: center;
}
.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-mark svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
}
.final-mark circle {
  fill: #fff;
  stroke: none;
}
.final h2 {
  margin-top: 16px;
}
.final .lead {
  max-width: 560px;
  color: rgb(255 255 255 / 0.86);
}
.final .btn {
  margin-top: 28px;
}
.final-phone {
  margin-top: 14px;
  font-weight: 700;
  color: rgb(255 255 255 / 0.8);
  letter-spacing: 0.02em;
}

.foot {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.foot-mark {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 4;
  stroke-linecap: round;
}
.foot-mark circle {
  fill: var(--brand);
  stroke: none;
}
.wordmark {
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 1.1rem;
}
.wordmark .on {
  color: var(--brand);
}

/* ---------- Movimiento reducido: estado final, sin animar ---------- */

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