/* ==========================================================================
   Constelarys — Landing
   Sistema de marca (tokens)
   ========================================================================== */

:root {
  --bg:        #05080F;
  --bg-2:      #0A0F1F;
  --card:      #0F172E;
  --violet:    #1E1B3A;
  --cream:     #F5EFE1;
  --gold:      #E8B84A;
  --gold-lt:   #F2CA6B;
  --teal:      #2BB3A3;
  --blue:      #4A6FA5;
  --orange:    #D98A3D;
  --muted:     #8E96AB;

  --sans:  Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --mono:  "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }

::selection { background: rgba(232, 184, 74, .35); }

input, select, textarea, button { font-family: var(--sans); }
select option { background: var(--bg-2); color: var(--cream); }
input::placeholder, textarea::placeholder { color: rgba(245, 239, 225, .35); }

img, svg { max-width: 100%; }

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

/* --------------------------------------------------------------------------
   Animaciones
   -------------------------------------------------------------------------- */

@keyframes bob        { from { transform: translateY(0); } to { transform: translateY(-1px); } }
@keyframes type       { from { transform: translateY(0); } to { transform: translateY(1px); } }
@keyframes blinkDot   { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .12; } }
@keyframes floaty     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes corePulse  { 0%, 100% { filter: drop-shadow(0 0 5px rgba(232,184,74,.8)); } 50% { filter: drop-shadow(0 0 18px rgba(232,184,74,1)); } }
@keyframes flow       { to { stroke-dashoffset: -120; } }
@keyframes flicker    { 0%, 100% { opacity: .9; } 50% { opacity: .5; } }
@keyframes ringPulse  { 0% { transform: scale(.8); opacity: .6; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes cursorBlink{ 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes holoPulse  { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .7; transform: scale(1.12); } }

.anim-bob        { transform-box: fill-box; transform-origin: center; animation: bob .85s steps(1, end) infinite alternate; }
.anim-type       { animation: type .32s steps(1, end) infinite alternate; }
.anim-floaty     { animation: floaty 2.6s ease-in-out infinite; }
.anim-core       { animation: corePulse 2.4s ease-in-out infinite; }
.anim-flow       { animation: flow 3.2s linear infinite; }
.anim-flicker    { animation: flicker 2.6s ease-in-out infinite; }
.anim-ring       { transform-box: fill-box; transform-origin: center; animation: ringPulse 3s ease-out infinite; }
.anim-cursor     { animation: cursorBlink 1s infinite; }
.anim-holo       { transform-box: fill-box; transform-origin: center; animation: holoPulse 3s ease-in-out infinite; }

.dot-live {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); margin-right: 5px; animation: blinkDot 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01s !important;
  }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s var(--ease-out);
}
.reveal--fast { transition: opacity .7s ease, transform .7s var(--ease-out); }
.reveal--msg  { transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal--msg2 { transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gold);
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-size: clamp(30px, 5vw, 52px);
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(245, 239, 225, .68);
  text-wrap: pretty;
}

.mono { font-family: var(--mono); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  transition: all .25s;
  white-space: nowrap;
  cursor: pointer;
}

.btn--gold {
  background: var(--gold);
  color: var(--bg-2);
  font-weight: 600;
  border: none;
  box-shadow: 0 0 30px rgba(232, 184, 74, .3);
}
.btn--gold:hover {
  background: var(--gold-lt);
  color: var(--bg-2);
  box-shadow: 0 0 44px rgba(232, 184, 74, .55);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid rgba(245, 239, 225, .25);
  color: var(--cream);
  font-weight: 500;
  background: rgba(245, 239, 225, .03);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--outline-gold {
  border: 1px solid rgba(232, 184, 74, .5);
  color: var(--gold);
  font-weight: 500;
  background: rgba(232, 184, 74, .05);
}
.btn--outline-gold:hover { background: rgba(232, 184, 74, .14); color: var(--gold); }

.btn--lg  { font-size: 16px;   padding: 16px 30px; }
.btn--ghost.btn--lg { padding: 16px 26px; }
.btn--md  { font-size: 15.5px; padding: 15px 28px; box-shadow: 0 0 26px rgba(232, 184, 74, .25); }
.btn--sm  { font-size: 15px;   padding: 13px 24px; box-shadow: 0 0 24px rgba(232, 184, 74, .28); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 15, .65);
  border-bottom: 1px solid rgba(245, 239, 225, .07);
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__cta {
  background: var(--gold);
  color: var(--bg-2);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(232, 184, 74, .25);
  transition: all .25s;
  white-space: nowrap;
}
.nav__cta:hover {
  background: var(--gold-lt);
  color: var(--bg-2);
  box-shadow: 0 0 28px rgba(232, 184, 74, .5);
}

/* --------------------------------------------------------------------------
   Barra fija móvil
   -------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 8, 15, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(232, 184, 74, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.sticky-cta[hidden] { display: none; }
.sticky-cta__copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sticky-cta__title { font-size: 13px; font-weight: 600; white-space: nowrap; }
.sticky-cta__sub {
  font-family: var(--mono); font-size: 9.5px;
  color: rgba(245, 239, 225, .5); white-space: nowrap;
}
.sticky-cta__btn {
  flex: none;
  background: var(--gold);
  color: var(--bg-2);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(232, 184, 74, .35);
}
.sticky-cta__btn:hover { background: var(--gold-lt); color: var(--bg-2); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 75% 8%,  rgba(74, 111, 165, .22), transparent 60%),
    radial-gradient(900px 600px  at 12% 90%, rgba(30, 27, 58, .9),    transparent 65%),
    radial-gradient(700px 500px  at 90% 85%, rgba(43, 179, 163, .08), transparent 60%),
    var(--bg);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 130px 22px 90px;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(42px, 8.6vw, 94px);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 34px rgba(232, 184, 74, .45);
}
.hero__sub {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  color: rgba(245, 239, 225, .72);
  max-width: 600px;
  text-wrap: pretty;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-top: 6px;
}
.hero__fineprint {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(245, 239, 225, .45);
}
.hero__proof { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 10px; }
.hero__proof-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  color: rgba(245, 239, 225, .5); text-transform: uppercase;
}
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(245, 239, 225, .75);
  border: 1px solid rgba(245, 239, 225, .14);
  border-radius: 999px;
  padding: 8px 14px;
}
.chip b { color: var(--teal); font-weight: inherit; }
.hero__scroll {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: floaty 2.6s ease-in-out infinite;
}
.hero__scroll span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .3em;
  color: rgba(245, 239, 225, .4);
}
.hero__scroll i { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }

/* --------------------------------------------------------------------------
   Secciones genéricas
   -------------------------------------------------------------------------- */

.section { padding: clamp(72px, 10vw, 130px) 24px; }
.section--bg2  { background: var(--bg-2); }
.section--deep { background: var(--bg); }
.section--fade-down { background: linear-gradient(var(--bg-2), var(--bg)); }
.section--fade-up   { background: linear-gradient(var(--bg), var(--bg-2)); }

.container { width: 100%; margin: 0 auto; }
.container--1160 { max-width: 1160px; }
.container--1100 { max-width: 1100px; }
.container--1060 { max-width: 1060px; }
.container--1000 { max-width: 1000px; }
.container--880  { max-width: 880px;  }
.container--860  { max-width: 860px;  }

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

.section-head {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 720px;
}
.section-head--center {
  text-align: center; align-items: center; max-width: none;
}
.section-head--center .lead { max-width: 60ch; }

/* --------------------------------------------------------------------------
   Manifiesto
   -------------------------------------------------------------------------- */

.manifesto {
  padding: clamp(80px, 11vw, 150px) 24px;
  text-align: center;
  background: linear-gradient(var(--bg), var(--bg-2));
}
.manifesto__inner {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.manifesto__quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 4.6vw, 46px);
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.manifesto__quote em { color: var(--gold); }
.manifesto__sign {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(245, 239, 225, .45);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   01 · El resultado
   -------------------------------------------------------------------------- */

.result__grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }

.result__hero-card {
  position: relative;
  overflow: hidden;
  flex: 2 1 460px;
  background: linear-gradient(135deg, var(--card), var(--violet));
  border: 1px solid rgba(232, 184, 74, .28);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.result__orbit {
  position: absolute; right: -46px; top: 50%;
  transform: translateY(-50%);
  width: 260px; opacity: .32; pointer-events: none;
}
.result__hero-card > *:not(.result__orbit) { position: relative; }
.result__kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .25em; color: var(--gold); }
.result__hero-title {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.14; letter-spacing: -.02em;
  max-width: 17em; text-wrap: balance;
}
.result__hero-title span { color: var(--gold); text-shadow: 0 0 26px rgba(232, 184, 74, .4); }
.result__hero-copy {
  margin: 0; font-size: 16px; line-height: 1.65;
  color: rgba(245, 239, 225, .72); max-width: 52ch; text-wrap: pretty;
}
.result__hero-card .btn { align-self: flex-start; }

.card {
  background: var(--card);
  border: 1px solid rgba(245, 239, 225, .09);
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.card--flex { flex: 1 1 250px; }
.card__title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.card__copy  { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(245, 239, 225, .65); }
.card__note  { font-family: var(--mono); font-size: 12px; color: var(--gold); }

/* --------------------------------------------------------------------------
   02 · Canales + chat
   -------------------------------------------------------------------------- */

.channels {
  width: 100%; max-width: 620px;
  display: flex; flex-direction: column; align-items: center;
}
.channels__row {
  width: 100%; display: flex;
  justify-content: space-between; align-items: flex-start;
}
.channel {
  display: flex; flex-direction: column; align-items: center;
  gap: 7px; width: 56px;
}
.channel__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(245, 239, 225, .05);
  border: 1px solid rgba(245, 239, 225, .12);
  display: grid; place-items: center;
}
.channel__label {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em;
  color: rgba(245, 239, 225, .45);
}
.channels__flow { width: 100%; display: block; margin-top: -4px; }

/* Chat mock */
.chat {
  width: min(420px, 100%);
  border-radius: 26px;
  border: 1px solid rgba(245, 239, 225, .12);
  background: var(--card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(43, 179, 163, .06);
  overflow: hidden;
}
.chat__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid rgba(245, 239, 225, .08);
}
.chat__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--violet), var(--bg-2));
  border: 1px solid rgba(232, 184, 74, .5);
  display: grid; place-items: center;
}
.chat__id { display: flex; flex-direction: column; gap: 2px; }
.chat__name { font-size: 14px; font-weight: 600; }
.chat__status { font-family: var(--mono); font-size: 10px; color: var(--teal); }
.chat__body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; background: var(--bg); min-height: 380px;
}
/* El contenedor de escenario no debe romper el flex del hilo */
.chat-scenario { display: contents; }
.chat-scenario[hidden] { display: none; }

.chat__day, .chat__footnote {
  align-self: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: rgba(245, 239, 225, .35);
}
.chat__footnote { letter-spacing: .15em; }
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 14.5px;
  line-height: 1.45;
}
.bubble--in {
  align-self: flex-start;
  background: var(--violet);
  border-radius: 14px 14px 14px 4px;
}
.bubble--out {
  align-self: flex-end;
  background: #1E3A2F;
  border-radius: 14px 14px 4px 14px;
}
.bubble time {
  display: block; text-align: right;
  font-family: var(--mono); font-size: 9px;
  color: rgba(245, 239, 225, .4); margin-top: 4px;
}
.chat__outcome {
  align-self: center;
  display: flex; align-items: center; gap: 9px;
  margin-top: 8px;
  background: rgba(43, 179, 163, .1);
  border: 1px solid rgba(43, 179, 163, .55);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 0 24px rgba(43, 179, 163, .15);
}
.chat__outcome span {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--teal);
}
.chat__composer {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-top: 1px solid rgba(245, 239, 225, .08);
}
.chat__input {
  flex: 1;
  border: 1px solid rgba(245, 239, 225, .12);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(245, 239, 225, .35);
}
.chat__send {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold);
  display: grid; place-items: center; flex: none;
}

/* Escenarios */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1000px;
}
.use-case {
  background: var(--card);
  border: 1px solid rgba(245, 239, 225, .09);
  border-radius: 18px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.use-case__kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--gold);
}
.use-case__title { margin: 0; font-size: 19px; font-weight: 600; }
.use-case__copy  { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(245, 239, 225, .65); }
.tag-teal {
  align-self: flex-start;
  font-family: var(--mono); font-size: 11px;
  color: var(--teal);
  border: 1px solid rgba(43, 179, 163, .45);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Sample data hint */
.sample {
  border-bottom: 1px dashed rgba(43, 179, 163, .6);
  cursor: help;
}
.sample--gold { border-bottom-color: rgba(232, 184, 74, .6); }

/* Panel */
.panel {
  width: 100%; max-width: 880px;
  background: var(--card);
  border: 1px solid rgba(245, 239, 225, .1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.panel__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px; padding: 14px 20px;
  border-bottom: 1px solid rgba(245, 239, 225, .08);
  background: var(--bg-2);
}
.panel__live {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  color: rgba(245, 239, 225, .6);
}
.panel__live .dot-live { width: 7px; height: 7px; margin-right: 8px; animation-duration: 1.8s; }
.panel__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; color: var(--teal);
  border: 1px solid rgba(43, 179, 163, .45);
  border-radius: 999px; padding: 6px 12px;
}
.panel__switch {
  display: inline-block; width: 26px; height: 14px; border-radius: 999px;
  background: rgba(43, 179, 163, .35); position: relative;
}
.panel__switch i {
  position: absolute; right: 2px; top: 2px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--teal);
}
.panel__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(245, 239, 225, .08);
}
.stat {
  background: var(--card); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat__label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  color: rgba(245, 239, 225, .45);
}
.stat__value { font-family: var(--mono); font-size: 24px; color: var(--cream); cursor: help; }
.stat__value--teal { color: var(--teal); }
.stat__value--gold { color: var(--gold); }
.panel__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.panel__funnel-head {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
}
.panel__funnel-head span:first-child {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: rgba(245, 239, 225, .55);
}
.panel__funnel-head span:last-child {
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: rgba(245, 239, 225, .3);
}
.panel__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.funnel { min-width: 540px; display: flex; flex-direction: column; gap: 6px; }
.funnel__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.funnel__step {
  display: flex; flex-direction: column; gap: 2px;
  border-left: 2px solid rgba(232, 184, 74, .5);
  padding-left: 8px;
}
.funnel__step:nth-child(2) { border-left-color: rgba(232, 184, 74, .4); }
.funnel__step:nth-child(3) { border-left-color: rgba(232, 184, 74, .3); }
.funnel__step:nth-child(4) { border-left-color: rgba(217, 138, 61, .5); }
.funnel__step:nth-child(5) { border-left-color: rgba(43, 179, 163, .6); }
.funnel__step-label { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: rgba(245, 239, 225, .5); }
.funnel__step-value { font-family: var(--mono); font-size: 17px; color: var(--cream); }
.funnel__step-pct   { font-family: var(--mono); font-size: 9.5px; color: rgba(245, 239, 225, .4); }
.funnel__step:nth-child(5) .funnel__step-value { color: var(--teal); }
.funnel__step:nth-child(5) .funnel__step-pct   { color: rgba(43, 179, 163, .7); }
.funnel__chart { width: 100%; height: 64px; display: block; }
.panel__caption { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(245, 239, 225, .65); }
.panel__caption span { color: var(--teal); }

/* Nota puente */
.bridge {
  width: 100%; max-width: 880px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  border: 1px dashed rgba(232, 184, 74, .4);
  border-radius: 16px;
  padding: 16px 22px;
  background: rgba(232, 184, 74, .04);
}
.bridge p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(245, 239, 225, .75); max-width: 52ch; }
.bridge strong { color: var(--cream); font-weight: 600; }
.bridge a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--gold); white-space: nowrap;
}
.bridge a:hover { color: var(--cream); }

/* --------------------------------------------------------------------------
   03 · Oficina de agentes
   -------------------------------------------------------------------------- */

.office { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; justify-content: center; }
.office__main { flex: 10 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.office__bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; padding: 0 4px;
}
.office__bar span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  color: rgba(245, 239, 225, .55);
}
.office__bar .dot-live {
  width: 7px; height: 7px; margin-right: 7px;
  animation-duration: 1.8s; box-shadow: 0 0 8px rgba(43, 179, 163, .8);
}
.office__clock { letter-spacing: .14em !important; color: rgba(245, 239, 225, .45) !important; }
.office__clock b { color: var(--gold); font-weight: inherit; cursor: help; }
.office__stage {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  border: 1px solid rgba(43, 179, 163, .22);
  background: #070C18;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), inset 0 0 60px rgba(14, 42, 71, .35);
}
.office__svg { display: block; width: 100%; min-width: 640px; image-rendering: pixelated; }
.agent-hit { cursor: pointer; }
.agent-hit:focus { outline: none; }
.agent-hit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.office__legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.legend-chip {
  font-family: var(--mono); font-size: 10px;
  color: rgba(245, 239, 225, .55);
  border: 1px solid rgba(245, 239, 225, .1);
  border-radius: 999px;
  padding: 5px 11px;
}

/* Ficha del agente */
.agent-card {
  flex: 1 1 300px;
  max-width: 420px;
  background: var(--card);
  border: 1px solid rgba(245, 239, 225, .1);
  border-radius: 18px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 340px;
}
.agent-card__empty {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 20px 10px;
}
.agent-card__empty p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(245, 239, 225, .6); max-width: 26ch; }
.agent-card__empty span { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: rgba(245, 239, 225, .35); }
.agent-card__empty svg { animation: floaty 2.8s ease-in-out infinite; }

#agent-detail { display: flex; flex-direction: column; gap: 16px; }
#agent-detail[hidden] { display: none; }

.agent-card__head { display: flex; align-items: center; gap: 14px; }
.agent-card__badge {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 500; font-size: 18px;
  color: var(--bg-2);
  background: var(--gold);
}
.agent-card__id { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.agent-card__name { font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.agent-card__role {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  color: rgba(245, 239, 225, .5); text-transform: uppercase;
}
.agent-card__close {
  background: none;
  border: 1px solid rgba(245, 239, 225, .15);
  border-radius: 8px;
  color: rgba(245, 239, 225, .6);
  width: 30px; height: 30px;
  cursor: pointer; font-size: 14px; line-height: 1;
  transition: all .2s;
}
.agent-card__close:hover { border-color: var(--gold); color: var(--gold); }
.agent-card__live {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; color: var(--teal);
  background: rgba(43, 179, 163, .08);
  border: 1px solid rgba(43, 179, 163, .4);
  border-radius: 999px;
  padding: 5px 12px;
}
.agent-card__live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: blinkDot 1.6s infinite;
}
.agent-card__block {
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid rgba(245, 239, 225, .08);
  padding-top: 16px;
}
.field { display: flex; flex-direction: column; gap: 3px; }
.field__label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em;
  color: rgba(245, 239, 225, .4);
}
.field__value { font-size: 14.5px; line-height: 1.5; }
.field__value--gold { color: var(--gold); }
.field__value--teal { color: var(--teal); }
.field__value--mono { font-family: var(--mono); color: var(--gold); }
.agent-card__row { display: flex; gap: 20px; }
.meter { display: flex; flex-direction: column; gap: 5px; }
.meter__head { display: flex; justify-content: space-between; }
.meter__head span:first-child {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: rgba(245, 239, 225, .4);
}
.meter__head span:last-child { font-family: var(--mono); font-size: 10px; }
.meter__val--gold { color: var(--gold); }
.meter__val--teal { color: var(--teal); }
.meter__val--dim  { color: rgba(245, 239, 225, .7); }
.meter__track {
  height: 6px; border-radius: 3px;
  background: rgba(245, 239, 225, .08); overflow: hidden;
}
.meter__fill { height: 100%; border-radius: 3px; transition: width .5s ease; }
.meter__fill--gold { background: linear-gradient(90deg, var(--orange), var(--gold)); }
.meter__fill--teal { background: linear-gradient(90deg, #1F8A7D, var(--teal)); }
.meter__fill--full { background: linear-gradient(90deg, var(--blue), var(--cream)); width: 100%; }

/* --------------------------------------------------------------------------
   04 · Cerebro conectado
   -------------------------------------------------------------------------- */

.brain { width: 100%; max-width: 760px; display: block; }
.brain-copy {
  margin: 0; text-align: center;
  font-size: 17px; line-height: 1.65;
  color: rgba(245, 239, 225, .68);
  max-width: 58ch; text-wrap: pretty;
}
.brain-copy span { color: var(--gold); }

/* --------------------------------------------------------------------------
   05 · Método I.D.S
   -------------------------------------------------------------------------- */

.method__step { display: grid; grid-template-columns: 44px 1fr; gap: 20px; }
.method__rail { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.method__line {
  flex: 1; width: 1px;
  background: linear-gradient(rgba(232, 184, 74, .5), rgba(232, 184, 74, .1));
  min-height: 60px;
}
.method__body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 44px; }
.method__step:last-child .method__body { padding-bottom: 0; }
.method__label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .25em;
  color: rgba(245, 239, 225, .45);
}
.method__title {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -.01em;
}
.method__title span { color: var(--gold); }
.method__copy { margin: 0; font-size: 16px; line-height: 1.65; color: rgba(245, 239, 225, .68); max-width: 56ch; }

/* --------------------------------------------------------------------------
   06 · Diagnóstico / formulario
   -------------------------------------------------------------------------- */

.diagnostic {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 24px;
  background:
    radial-gradient(900px 500px at 80% 0%,   rgba(30, 27, 58, .8), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(14, 42, 71, .7), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.diagnostic__stars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .5; pointer-events: none;
}
.diagnostic__inner {
  position: relative;
  max-width: 1060px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start;
}
.diagnostic__copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.diagnostic__title {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(32px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}
.diagnostic__title em { color: var(--gold); }
.diagnostic__lead {
  margin: 0; font-size: 17px; line-height: 1.65;
  color: rgba(245, 239, 225, .7); max-width: 52ch; text-wrap: pretty;
}
.perks { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.perk { display: flex; align-items: center; gap: 12px; }
.perk span { font-size: 15px; color: rgba(245, 239, 225, .75); }

.form-card {
  flex: 1 1 400px;
  background: rgba(15, 23, 46, .75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 239, 225, .12);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.form { display: flex; flex-direction: column; gap: 16px; }
.form__head { display: flex; justify-content: space-between; align-items: center; }
.form__head span:first-child {
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em; color: rgba(245, 239, 225, .45);
}
.form__secure { font-family: var(--mono); font-size: 10px; color: var(--teal); }
.form__secure .dot-live { animation-duration: 1.8s; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: rgba(245, 239, 225, .5);
}
.form__label i { color: rgba(245, 239, 225, .3); font-style: normal; }
.form__control {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid rgba(245, 239, 225, .14);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--cream);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form__control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 184, 74, .15);
}
select.form__control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1 L6 6 L11 1' stroke='%23E8B84A' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
textarea.form__control { resize: vertical; min-height: 80px; }
.form__submit {
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: var(--bg-2);
  font-weight: 600;
  font-size: 16.5px;
  padding: 17px 28px;
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(232, 184, 74, .3);
  transition: all .25s;
}
.form__submit:hover {
  background: var(--gold-lt);
  box-shadow: 0 0 44px rgba(232, 184, 74, .55);
  transform: translateY(-2px);
}
.form__submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.form__scarcity { display: flex; align-items: center; justify-content: center; gap: 8px; }
.form__scarcity i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: blinkDot 1.8s infinite;
}
.form__scarcity span { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.form__legal { margin: 0; text-align: center; font-size: 12.5px; color: rgba(245, 239, 225, .4); }
.form__error {
  margin: 0; text-align: center; font-size: 13px; color: #E8B84A;
}

.form-success {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center; padding: 30px 10px;
}
.form-success__icon {
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(43, 179, 163, .1);
  border: 1px solid rgba(43, 179, 163, .5);
  display: grid; place-items: center;
  box-shadow: 0 0 40px rgba(43, 179, 163, .2);
}
.form-success h3 {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 30px;
}
.form-success p {
  margin: 0; font-size: 16px; line-height: 1.6;
  color: rgba(245, 239, 225, .7); max-width: 36ch;
}
.form-success span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em; color: rgba(245, 239, 225, .35);
}

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

.footer {
  padding: 56px 24px 40px;
  background: var(--bg);
  border-top: 1px solid rgba(245, 239, 225, .07);
}
.footer__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 36px;
  justify-content: space-between; align-items: flex-start;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.footer__tagline {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 16px; line-height: 1.6; color: rgba(245, 239, 225, .6);
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em; color: rgba(245, 239, 225, .4);
}
.footer__link { font-size: 14px; color: rgba(245, 239, 225, .7); }
a.footer__link:hover { color: var(--gold); }
.footer__status { font-family: var(--mono); font-size: 11px; color: var(--teal); }
.footer__copy   { font-family: var(--mono); font-size: 11px; color: rgba(245, 239, 225, .4); }

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

@media (max-width: 760px) {
  body.has-sticky-cta { padding-bottom: 78px; }
  .channels__row { gap: 4px; }
  .agent-card { max-width: none; }
}

@media (max-width: 420px) {
  .channel { width: 48px; }
  .channel__icon { width: 46px; height: 46px; border-radius: 12px; }
}
