/* Bitácora Viva — design tokens (identidad clara / app) */
:root {
  --bg: #F7F9FC;
  --bg-alt: #EEF3FA;
  --surface: #FFFFFF;
  --text: #152033;
  --text-muted: #4A5B73;
  --text-dim: #54657C; /* ~5.6:1 sobre --bg; AA para texto pequeño */
  --line: #D7E0EC;
  --cyan: #1CB8D4;
  --blue: #2F6FED;
  --violet: #7A4DFF;
  --magenta: #E11D7A;
  --orange: #F08A2A;
  --lime: #9CCC3D;
  --green: #2FAE6A;
  --grad-brand: linear-gradient(105deg, var(--cyan) 0%, var(--blue) 20%, var(--violet) 42%, var(--magenta) 62%, var(--orange) 80%, var(--green) 100%);
  --grad-cta: linear-gradient(105deg, var(--cyan) 0%, var(--blue) 28%, var(--violet) 58%, var(--magenta) 100%);
  --grad-soft: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(28, 184, 212, 0.18), rgba(47, 111, 237, 0.08) 45%, transparent 70%);
  --font-display: "Outfit", "Source Sans 3", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --maxw: 1120px;
  --gutter: clamp(18px, 5vw, 48px);
  --radius: 18px;
  --header-h: 76px;
  --shadow-soft: 0 18px 40px -28px rgba(21, 32, 51, 0.35);
  --shadow-card: 0 14px 32px -24px rgba(21, 32, 51, 0.4);
  --motion-fast: 160ms;
  --motion-base: 280ms;
  --motion-slow: 420ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    filter var(--motion-fast) var(--ease-standard),
    background var(--motion-base) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 0.88rem; }
.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 10px 28px -12px rgba(47, 111, 237, 0.65);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(8px);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px -12px rgba(122, 77, 255, 0.5);
    filter: saturate(1.08);
  }
  .btn-ghost:hover { background: var(--surface); border-color: #C5D2E4; }
}

.btn-primary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 12px var(--gutter);
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--motion-base) var(--ease-standard),
    background var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    min-height var(--motion-base) var(--ease-standard),
    padding var(--motion-base) var(--ease-standard);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 249, 252, 0.96);
  box-shadow: 0 10px 28px -22px rgba(21, 32, 51, 0.55);
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand-by {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transition:
    transform var(--motion-fast) var(--ease-emphasized),
    opacity var(--motion-fast) var(--ease-standard);
}
.nav-toggle-bars span:nth-child(1) { top: 1px; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 11px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-panel {
  display: none;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(var(--header-h) + 4px);
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  flex-direction: column;
  gap: 14px;
}
.nav-panel.is-open { display: flex; }

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--text); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { position: relative; }
  .nav-panel {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-links {
    flex-direction: row;
    gap: 8px;
  }
  .nav-links a { padding: 8px 12px; }
  .nav-end {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .brand-name { font-size: 1.2rem; }
  .brand-mark { width: 42px; height: 42px; }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(12px, 2.4vw, 28px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    var(--grad-soft),
    linear-gradient(180deg, #F7F9FC 0%, #EAF2FF 42%, #F7F9FC 100%);
  pointer-events: none;
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero-bg::before {
  inset: -8% 18% auto auto;
  width: 42%;
  height: 55%;
  background: radial-gradient(circle at 40% 40%, rgba(122, 77, 255, 0.12), transparent 62%);
  filter: blur(12px);
  animation: hero-drift 22s var(--ease-standard) infinite alternate;
}
.hero-bg::after {
  inset: auto -10% -20% 40%;
  height: 55%;
  background:
    radial-gradient(circle at 30% 40%, rgba(225, 29, 122, 0.12), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(156, 204, 61, 0.14), transparent 50%);
  filter: blur(8px);
  animation: hero-breathe 16s ease-in-out infinite alternate;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero .eyebrow { margin-bottom: 14px; }
.hero-brand {
  display: block;
  font-size: clamp(2.15rem, 7.2vw, 4.4rem);
  line-height: 1.05;
  color: var(--blue);
  margin-bottom: 10px;
}
.hero-brand::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--grad-brand);
}
.hero-promise {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.25rem);
  color: var(--text);
  font-weight: 600;
}
.hero-sub {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--text-muted);
  max-width: 52ch;
}
.hero-ctas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 5px 12px 5px 8px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(47, 174, 106, 0.28);
  background: rgba(47, 174, 106, 0.1);
  color: #215C40;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: default;
  pointer-events: none;
  user-select: none;
  box-shadow: none;
}
.status-chip-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--green);
}

.hero .eyebrow,
.hero-brand,
.hero-promise,
.hero-sub,
.hero-ctas,
.status-chip {
  animation: hero-in var(--motion-slow) var(--ease-standard) both;
}
.hero .eyebrow { animation-delay: 0ms; }
.hero-brand { animation-delay: 70ms; }
.hero-promise { animation-delay: 150ms; }
.hero-sub { animation-delay: 230ms; }
.hero-ctas { animation-delay: 310ms; }
.status-chip { animation-delay: 400ms; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-breathe {
  from { opacity: 0.72; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 1; transform: translate3d(-1.5%, 2.5%, 0) scale(1.05); }
}
@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-4%, 6%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes grad-shift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-brand {
    background-image: var(--grad-brand);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation:
      hero-in var(--motion-slow) var(--ease-standard) 70ms both,
      grad-shift 18s ease-in-out 420ms infinite alternate;
  }
}

/* Sections */
.section {
  padding: clamp(56px, 9vw, 104px) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section-alt {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(122, 77, 255, 0.06), transparent 58%),
    var(--bg-alt);
}
#como-funciona {
  background:
    radial-gradient(ellipse 55% 58% at 92% 46%, rgba(122, 77, 255, 0.12), transparent 62%),
    radial-gradient(ellipse 42% 48% at 6% 88%, rgba(28, 184, 212, 0.1), transparent 58%),
    var(--bg-alt);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 5vw, 44px);
}
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
}
.section-head p {
  margin-top: 12px;
  color: var(--text-muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    border-color: #C9D7EA;
    box-shadow: var(--shadow-card);
  }
}

.use-grid {
  display: grid;
  gap: 16px;
}
.use-grid article h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.use-grid article p { color: var(--text-muted); font-size: 0.98rem; }
.use-icon,
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.use-icon svg,
.trust-icon svg {
  width: 22px;
  height: 22px;
}
.use-class { border-top: 3px solid var(--cyan); }
.use-meet { border-top: 3px solid var(--blue); }
.use-interview { border-top: 3px solid var(--violet); }
.use-field { border-top: 3px solid var(--orange); }
.use-class .use-icon { background: rgba(28, 184, 212, 0.14); color: #0E7A8C; }
.use-meet .use-icon { background: rgba(47, 111, 237, 0.12); color: #2154C4; }
.use-interview .use-icon { background: rgba(122, 77, 255, 0.12); color: #5B35D6; }
.use-field .use-icon { background: rgba(240, 138, 42, 0.16); color: #B35F12; }

.flow-list {
  list-style: none;
  display: grid;
  gap: 22px;
  counter-reset: step;
}
.flow-list li {
  position: relative;
  padding-left: 56px;
  counter-increment: step;
}
.flow-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
}
.flow-list h3 { font-size: 1.15rem; margin-bottom: 6px; }
.flow-list p { color: var(--text-muted); max-width: 54ch; }
.flow-layout {
  display: grid;
  gap: 28px;
}
.product-story {
  padding: 20px 20px 18px;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(28, 184, 212, 0.1), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.product-story-kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}
.story-stage + .story-stage { margin-top: 14px; }
.story-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.story-wave {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(28, 184, 212, 0.08);
}
.story-wave span {
  display: block;
  width: 6px;
  border-radius: 999px;
  background: var(--grad-brand);
  transform-origin: bottom center;
  height: 38%;
}
.story-wave span:nth-child(2) { height: 62%; }
.story-wave span:nth-child(3) { height: 86%; }
.story-wave span:nth-child(4) { height: 54%; }
.story-wave span:nth-child(5) { height: 94%; }
.story-wave span:nth-child(6) { height: 48%; }
.story-wave span:nth-child(7) { height: 72%; }
.story-wave span:nth-child(8) { height: 40%; }
.story-lines {
  display: grid;
  gap: 8px;
}
.story-lines span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.22);
  transform-origin: left center;
}
.story-lines span:nth-child(1) { width: 94%; }
.story-lines span:nth-child(2) { width: 78%; background: rgba(28, 184, 212, 0.28); }
.story-lines span:nth-child(3) { width: 62%; background: rgba(122, 77, 255, 0.22); }
.story-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.story-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.story-qa { display: grid; gap: 8px; }
.story-q,
.story-a {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.4;
}
.story-q {
  justify-self: end;
  max-width: 92%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
}
.story-a {
  max-width: 94%;
  background: linear-gradient(160deg, rgba(28, 184, 212, 0.12), rgba(122, 77, 255, 0.08));
  border: 1px solid rgba(47, 111, 237, 0.2);
  border-radius: 14px 14px 14px 4px;
}
html.js .flow-layout:not(.is-playing):not(.is-played) .story-wave span {
  transform: scaleY(0.22);
  opacity: 0.45;
}
html.js .flow-layout:not(.is-playing):not(.is-played) .story-lines span {
  transform: scaleX(0.18);
  opacity: 0.4;
}
html.js .flow-layout:not(.is-playing):not(.is-played) .story-chips span,
html.js .flow-layout:not(.is-playing):not(.is-played) .story-qa {
  opacity: 0.35;
  transform: translateY(6px);
}
.flow-layout.is-playing .flow-list li:nth-child(1)::before,
.flow-layout.is-playing .flow-list li:nth-child(2)::before,
.flow-layout.is-playing .flow-list li:nth-child(3)::before,
.flow-layout.is-playing .flow-list li:nth-child(4)::before {
  animation: step-pop var(--motion-slow) var(--ease-emphasized) both;
}
.flow-layout.is-playing .flow-list li:nth-child(2)::before { animation-delay: 280ms; }
.flow-layout.is-playing .flow-list li:nth-child(3)::before { animation-delay: 560ms; }
.flow-layout.is-playing .flow-list li:nth-child(4)::before { animation-delay: 840ms; }
.flow-layout.is-playing .story-wave span {
  animation: story-bar var(--motion-slow) var(--ease-emphasized) both;
}
.flow-layout.is-playing .story-wave span:nth-child(2) { animation-delay: 40ms; }
.flow-layout.is-playing .story-wave span:nth-child(3) { animation-delay: 80ms; }
.flow-layout.is-playing .story-wave span:nth-child(4) { animation-delay: 120ms; }
.flow-layout.is-playing .story-wave span:nth-child(5) { animation-delay: 160ms; }
.flow-layout.is-playing .story-wave span:nth-child(6) { animation-delay: 200ms; }
.flow-layout.is-playing .story-wave span:nth-child(7) { animation-delay: 240ms; }
.flow-layout.is-playing .story-wave span:nth-child(8) { animation-delay: 280ms; }
.flow-layout.is-playing .story-lines span {
  animation: story-line var(--motion-slow) var(--ease-standard) 280ms both;
}
.flow-layout.is-playing .story-lines span:nth-child(2) { animation-delay: 360ms; }
.flow-layout.is-playing .story-lines span:nth-child(3) { animation-delay: 440ms; }
.flow-layout.is-playing .story-chips span {
  animation: rise var(--motion-slow) var(--ease-standard) 560ms both;
}
.flow-layout.is-playing .story-chips span:nth-child(2) { animation-delay: 630ms; }
.flow-layout.is-playing .story-chips span:nth-child(3) { animation-delay: 700ms; }
.flow-layout.is-playing .story-qa {
  animation: rise var(--motion-slow) var(--ease-standard) 840ms both;
}
@keyframes story-bar {
  from { transform: scaleY(0.2); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes story-line {
  from { transform: scaleX(0.12); opacity: 0.35; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes step-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.cap-list {
  list-style: none;
  display: grid;
  gap: 16px;
}
.cap-list h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cap-list p { color: var(--text-muted); font-size: 0.95rem; }

.ejemplo-panel {
  max-width: 720px;
  padding: clamp(20px, 4vw, 28px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.ejemplo-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(122, 77, 255, 0.1);
}
.ejemplo-turn { margin-top: 4px; }
.ejemplo-who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ejemplo-avatar {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.ejemplo-bubble {
  padding: 12px 14px;
  max-width: min(36rem, 92%);
}
.ejemplo-q {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ejemplo-q .ejemplo-bubble {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px;
  color: var(--text);
}
.ejemplo-a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
}
.ejemplo-a .ejemplo-bubble {
  background: linear-gradient(160deg, rgba(28, 184, 212, 0.1), rgba(122, 77, 255, 0.08));
  border: 1px solid rgba(47, 111, 237, 0.22);
  border-radius: 16px 16px 16px 4px;
}
.ejemplo-q p,
.ejemplo-a p { font-size: 0.98rem; }
.ejemplo-source {
  margin-top: 10px !important;
  font-size: 0.82rem !important;
  color: var(--text-dim) !important;
  border-left: 2px solid var(--cyan);
  padding-left: 10px;
}
.ejemplo-processing {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  margin: 8px 0 4px;
  padding-left: 2px;
  opacity: 0;
}
.ejemplo-processing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.35;
}
.ejemplo-panel.is-playing .ejemplo-q {
  animation: rise var(--motion-slow) var(--ease-standard) both;
}
.ejemplo-panel.is-playing .ejemplo-processing {
  animation: process-in 420ms 280ms var(--ease-standard) both;
}
.ejemplo-panel.is-playing .ejemplo-processing span {
  animation: pulse-dot 720ms ease-in-out 280ms 2;
}
.ejemplo-panel.is-playing .ejemplo-processing span:nth-child(2) { animation-delay: 360ms; }
.ejemplo-panel.is-playing .ejemplo-processing span:nth-child(3) { animation-delay: 440ms; }
.ejemplo-panel.is-playing .ejemplo-a {
  animation: rise var(--motion-slow) var(--ease-standard) 720ms both;
}
html.js .ejemplo-panel:not(.is-playing):not(.is-played) .ejemplo-q,
html.js .ejemplo-panel:not(.is-playing):not(.is-played) .ejemplo-processing,
html.js .ejemplo-panel:not(.is-playing):not(.is-played) .ejemplo-a {
  opacity: 0;
}

@keyframes process-in {
  0% { opacity: 0; }
  25%, 70% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.audience-split {
  display: grid;
  gap: 16px;
}
.audience-split h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.audience-split > article > p {
  color: var(--text-muted);
  margin-bottom: 14px;
}
.audience-split ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.audience-split li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
}
.audience-split li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.trust-grid {
  display: grid;
  gap: 16px;
}
.trust-grid h3 { font-size: 1.1rem; margin-bottom: 8px; }
.trust-grid p { color: var(--text-muted); font-size: 0.96rem; }
.trust-audio .trust-icon { background: rgba(47, 174, 106, 0.12); color: #1B7A4A; }
.trust-review .trust-icon { background: rgba(47, 111, 237, 0.12); color: #2154C4; }
.trust-control .trust-icon { background: rgba(122, 77, 255, 0.12); color: #5B35D6; }

.faq-layout {
  display: grid;
  gap: 22px;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-aside {
  padding: 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(28, 184, 212, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.faq-aside-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin-bottom: 12px;
}
.faq-aside-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}
.faq-aside > p:not(.faq-aside-title) { color: var(--text-muted); font-size: 0.95rem; }
.faq-aside .btn { margin-top: 16px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--text-dim), var(--text-dim)) center / 100% 2px no-repeat,
    linear-gradient(var(--text-dim), var(--text-dim)) center / 2px 100% no-repeat;
  transition: transform var(--motion-base) var(--ease-standard);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] .faq-a {
  animation: rise var(--motion-base) var(--ease-standard);
}
.faq-a {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 62ch;
}

.cta-section { padding-bottom: clamp(64px, 10vw, 110px); }
.cta-final {
  text-align: center;
  padding: clamp(32px, 6vw, 56px) clamp(18px, 4vw, 40px);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(28, 184, 212, 0.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.cta-final .eyebrow { display: inline-block; }
.cta-final h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
.cta-final > p {
  margin: 12px auto 0;
  max-width: 48ch;
  color: var(--text-muted);
}

.waitlist-form {
  margin-top: 24px;
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.waitlist-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.waitlist-form input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}
.waitlist-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.18);
}
.waitlist-feedback {
  margin-top: 12px;
  min-height: 1.4em;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.waitlist-feedback.is-ok { color: #1F7A4C; }
.waitlist-feedback.is-error { color: #B42318; }
.waitlist-note {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: #F3F6FB;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.footer-brand p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 34ch;
}
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-col ul {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.footer-col a,
.footer-col span {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--text); }

html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--motion-slow) var(--ease-standard),
    transform var(--motion-slow) var(--ease-standard);
}
html.js .reveal-stagger:not(.in) > * {
  opacity: 0;
  transform: translateY(10px);
}
html.js .reveal-stagger.in > * {
  animation: rise var(--motion-slow) var(--ease-standard) both;
}
html.js .reveal-stagger.in > *:nth-child(2) { animation-delay: 70ms; }
html.js .reveal-stagger.in > *:nth-child(3) { animation-delay: 140ms; }
html.js .reveal-stagger.in > *:nth-child(4) { animation-delay: 210ms; }
html.js .reveal-stagger.in > *:nth-child(5) { animation-delay: 280ms; }
html.js .reveal-stagger.in > *:nth-child(6) { animation-delay: 350ms; }

/* Legal / privacidad */
.legal-page {
  padding: calc(var(--header-h) + 32px) 0 64px;
}
.legal-head {
  margin-bottom: 28px;
  max-width: 68ch;
}
.legal-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin-top: 8px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 8px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}
.legal-toc a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
}
.legal-toc a:hover { color: var(--text); background: var(--surface); }
.legal-prose { max-width: 720px; }
.legal-prose section {
  margin-top: 40px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--text);
}
.legal-prose h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
  color: var(--text);
}
.legal-prose p {
  margin: 0 0 14px;
  line-height: 1.75;
}
.legal-prose p,
.legal-prose li { color: var(--text-muted); }
.legal-prose ul,
.legal-prose ol {
  margin: 10px 0 16px 1.2rem;
  display: grid;
  gap: 10px;
}
.legal-prose li { line-height: 1.7; }
.legal-prose a { color: var(--blue); text-decoration: underline; }
.legal-prose .legal-toc a {
  color: var(--text-muted);
  text-decoration: none;
}
.legal-prose code {
  font-size: 0.88em;
  background: var(--bg-alt);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  word-break: break-word;
}
.legal-facts {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.legal-facts div {
  display: grid;
  grid-template-columns: minmax(8.5rem, 32%) 1fr;
  gap: 8px 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.legal-facts div:first-child { border-top: 0; }
.legal-facts dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.legal-facts dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 14px 0 18px;
  -webkit-overflow-scrolling: touch;
}
.legal-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.92rem;
  table-layout: fixed;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legal-table th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 600;
}
.legal-back {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.92rem;
  padding: 10px 16px;
}
.trust-policy-link { margin-top: 22px; }
.trust-policy-link a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

/* Narrow phones */
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn,
  .waitlist-row .btn { width: 100%; }
  .ejemplo-bubble { max-width: 100%; }
}

@media (max-width: 430px) {
  :root { --gutter: 16px; --header-h: 68px; }
  .hero-ctas .btn { width: 100%; }
  .waitlist-row .btn { width: 100%; }
  .section { padding: 48px 0; }
  .flow-list li { padding-left: 52px; }
  .legal-facts div { grid-template-columns: 1fr; gap: 4px; }
  .legal-table { font-size: 0.86rem; }
  .legal-table th,
  .legal-table td { padding: 8px 10px; }
  .legal-back { padding: 8px 12px; font-size: 0.84rem; }
  .legal-toc a { font-size: 0.75rem; padding: 5px 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { padding-top: 12px; }
}

@media (max-width: 360px) {
  .brand-by { display: none; }
}

@media (max-width: 320px) {
  body { font-size: 16px; }
  .hero-brand { font-size: 2rem; }
  .btn { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 768px) {
  .use-grid { grid-template-columns: 1fr 1fr; }
  .audience-split { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .hero-sub { max-width: 56ch; }
  .product-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    align-items: start;
  }
  .product-story-kicker { grid-column: 1 / -1; }
  .story-stage + .story-stage { margin-top: 0; }
}

@media (min-width: 900px) {
  .brand-name { font-size: 1.2rem; }
  .brand-mark { width: 42px; height: 42px; }
}

@media (min-width: 1024px) {
  .cap-list { grid-template-columns: 1fr 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .hero { padding: 18px 0 56px; }
  .hero-sub { max-width: 58ch; }
  .flow-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
    gap: 28px 48px;
    align-items: start;
  }
  .product-story {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
  .story-stage + .story-stage { margin-top: 14px; }
  .faq-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.7fr);
    gap: 36px;
    align-items: start;
  }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 16px); }
}

@media (min-width: 1440px) {
  :root { --maxw: 1180px; }
  .section-head { margin-bottom: 52px; }
}

@media (max-width: 767px) {
  :root {
    --motion-slow: 360ms;
  }
  @keyframes hero-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal,
  html.js .reveal.in,
  html.js .reveal-stagger:not(.in) > *,
  html.js .reveal-stagger.in > *,
  html.js .ejemplo-panel:not(.is-playing):not(.is-played) .ejemplo-q,
  html.js .ejemplo-panel:not(.is-playing):not(.is-played) .ejemplo-processing,
  html.js .ejemplo-panel:not(.is-playing):not(.is-played) .ejemplo-a,
  html.js .flow-layout:not(.is-playing):not(.is-played) .story-wave span,
  html.js .flow-layout:not(.is-playing):not(.is-played) .story-lines span,
  html.js .flow-layout:not(.is-playing):not(.is-played) .story-chips span,
  html.js .flow-layout:not(.is-playing):not(.is-played) .story-qa,
  .hero .eyebrow,
  .hero-brand,
  .hero-promise,
  .hero-sub,
  .hero-ctas,
  .status-chip {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-bg::before,
  .hero-bg::after { animation: none !important; }
  .ejemplo-processing { display: none; }
  .btn:active { transform: none; }
}

/* Safe areas (notches) */
@supports (padding: max(0px)) {
  .nav {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .wrap {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}
