/* ─────────────────────────────────────────────────────────────
   Entrenador de Ventas — Pirka
   Estética de marca: violeta-negro profundo + acento coral eléctrico.
   Paleta verbatim del landing/CRM de Pirka. Fuentes: Playfair Display + Inter.
   ───────────────────────────────────────────────────────────── */
:root {
  --bg:        #120826;   /* violeta-negro profundo */
  --bg-2:      #1A0F2E;
  --surface:   #241540;   /* superficie elevada */
  --surface-2: #2B1A47;
  --violet:    #3C2561;
  --violet-l:  #4E3278;
  --purple:    #81267A;
  --purple-l:  #9A3B93;
  --coral:     #F74C60;   /* acento único */
  --coral-l:   #F97585;
  --coral-d:   #E03A4E;
  --ink:       #FDFBFA;
  --cream:     #F5F0FA;
  --muted:     rgba(245,240,250,.72);
  --muted-lt:  rgba(245,240,250,.44);
  --line:      rgba(247,76,96,.20);
  --line-soft: rgba(245,240,250,.10);
  --radius:    18px;
  --ease:      cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  min-height: 100dvh;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(129,38,122,.20), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(247,76,96,.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  position: relative;
  overflow-x: hidden;
}

/* ── Fondo animado ── */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.blob-1 { width: 640px; height: 640px; top: -220px; left: -200px;
  background: radial-gradient(circle, rgba(129,38,122,.30), transparent 70%);
  animation: drift1 22s var(--ease) infinite; }
.blob-2 { width: 520px; height: 520px; bottom: -180px; right: -160px;
  background: radial-gradient(circle, rgba(247,76,96,.16), transparent 70%);
  animation: drift2 27s var(--ease) infinite; }
.blob-3 { width: 380px; height: 380px; top: 42%; left: 56%;
  background: radial-gradient(circle, rgba(78,50,120,.34), transparent 70%);
  animation: drift3 19s var(--ease) infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(60px,-40px) scale(1.08)} 66%{transform:translate(-30px,50px) scale(.95)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-50px,30px) scale(1.06)} 66%{transform:translate(40px,-60px) scale(.97)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-40px,-30px) scale(1.1)} }

/* ── Layout ── */
.wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 620px;
  margin: 0 auto; padding: clamp(1.5rem, 4vh, 3rem) 1.25rem;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
}
.stage { display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ── Entrada escalonada ── */
[data-reveal] { opacity: 0; transform: translateY(18px);
  animation: reveal .7s var(--ease) var(--d, 0s) both; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ── Marca ── */
.brand { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  box-shadow: 0 4px 16px rgba(247,76,96,.35); position: relative; }
.brand-mark::after { content:''; position:absolute; inset:5px 5px auto 5px; height:3px; border-radius:3px; background:rgba(255,255,255,.85); box-shadow:0 5px 0 rgba(255,255,255,.5); }
.brand-word { font-weight: 700; letter-spacing: .32em; font-size: .82rem; color: var(--cream); }

/* ── Eyebrow ── */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em;
  color: var(--muted); background: rgba(247,76,96,.07);
  border: 1px solid var(--line); border-radius: 100px; padding: .34rem .85rem; margin-bottom: 1.1rem; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral);
  animation: dot 2s var(--ease) infinite; }
@keyframes dot { 0%,100%{opacity:1;transform:scale(1);box-shadow:0 0 0 0 rgba(247,76,96,.5)} 50%{opacity:.5;transform:scale(.7);box-shadow:0 0 0 7px rgba(247,76,96,0)} }

/* ── Títulos ── */
h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1.03; letter-spacing: -.02em; margin-bottom: .9rem; }
.hl { color: var(--coral); filter: drop-shadow(0 0 12px rgba(247,76,96,.55)) drop-shadow(0 0 34px rgba(247,76,96,.3));
  animation: neon 3.4s var(--ease) infinite; }
@keyframes neon {
  0%,100% { filter: drop-shadow(0 0 9px rgba(247,76,96,.5)) drop-shadow(0 0 24px rgba(247,76,96,.28)); }
  50%     { filter: drop-shadow(0 0 18px rgba(247,76,96,.9)) drop-shadow(0 0 46px rgba(247,76,96,.5)); }
}
.stage-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: clamp(1.7rem, 5.5vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 1.6rem; }
.lede { color: var(--muted); font-size: 1.02rem; line-height: 1.65; max-width: 42ch; margin-bottom: 1.9rem; }

/* ── Card / formulario ── */
.card { background: linear-gradient(180deg, rgba(43,26,71,.72), rgba(36,21,64,.72));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.4rem; backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04); }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-lt); margin-bottom: .4rem; }
input { width: 100%; padding: .85rem 1rem; font-size: 1rem; color: var(--ink);
  background: rgba(18,8,38,.6); border: 1px solid var(--line-soft); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s; font-family: inherit; }
input::placeholder { color: var(--muted-lt); }
input:focus { outline: none; border-color: var(--coral); background: rgba(18,8,38,.85);
  box-shadow: 0 0 0 4px rgba(247,76,96,.14); }

/* ── Botones ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; width: 100%; padding: .95rem 1.2rem; font-family: inherit; font-size: 1rem;
  font-weight: 600; color: var(--ink); border: none; border-radius: 13px; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .25s, filter .2s, opacity .2s; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn-ico { width: 20px; height: 20px; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--coral));
  box-shadow: 0 12px 30px -12px rgba(247,76,96,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(247,76,96,.75); }
.btn-primary:disabled { opacity: .4; cursor: default; filter: grayscale(.3); box-shadow: none; }
.btn-danger { background: linear-gradient(135deg, var(--coral-d), var(--coral));
  box-shadow: 0 12px 30px -14px rgba(247,76,96,.7); max-width: 260px; margin: 0 auto; }
.btn-danger:hover { transform: translateY(-2px); }
.btn-call { margin-top: .2rem; }
.linklike { display: block; margin: 1rem auto 0; background: none; border: none; color: var(--muted-lt);
  font: inherit; font-size: .85rem; cursor: pointer; transition: color .2s; }
.linklike:hover { color: var(--coral-l); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: var(--coral-l); font-size: .88rem; min-height: 1.3em; margin-top: .7rem; text-align: center; }

/* ── Selección (rol / producto) ── */
.group { margin-bottom: 1.5rem; }
.group-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--muted-lt); margin-bottom: .7rem; }
.choices { display: grid; gap: .7rem; }
.choices-2 { grid-template-columns: 1fr 1fr; }
.choices-3 { grid-template-columns: 1fr 1fr 1fr; }
.choice { text-align: left; display: flex; flex-direction: column; gap: .2rem;
  padding: 1rem; border-radius: 15px; cursor: pointer; color: var(--cream);
  background: linear-gradient(180deg, rgba(43,26,71,.55), rgba(36,21,64,.55));
  border: 1px solid var(--line-soft); font-family: inherit;
  transition: transform .16s var(--ease), border-color .2s, box-shadow .25s, background .2s; }
.choice:hover { transform: translateY(-3px); border-color: var(--line);
  box-shadow: 0 14px 32px -18px rgba(0,0,0,.8); }
.choice-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: .5rem;
  border-radius: 10px; color: var(--coral-l); background: rgba(247,76,96,.08); border: 1px solid var(--line); }
.choice-icon svg { width: 20px; height: 20px; }
.choice-title { font-weight: 600; font-size: .95rem; line-height: 1.2; }
.choice-sub { font-size: .74rem; color: var(--muted-lt); line-height: 1.3; }
.choice[aria-pressed="true"] { border-color: var(--coral);
  background: linear-gradient(180deg, rgba(247,76,96,.16), rgba(129,38,122,.14));
  box-shadow: 0 0 0 1px var(--coral), 0 16px 34px -18px rgba(247,76,96,.6); }
.choice[aria-pressed="true"] .choice-icon { color: #fff; background: var(--coral); border-color: transparent; }
.setup-hint { font-size: .82rem; color: var(--muted-lt); text-align: center; margin: .3rem 0 1.2rem; line-height: 1.5; }
.setup-actions { margin-top: .2rem; }

/* ── Pantalla de llamada ── */
.call-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.chip-scene { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--cream);
  background: rgba(247,76,96,.1); border: 1px solid var(--line); border-radius: 100px; padding: .32rem .8rem; }
.call-timer { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted-lt); font-weight: 500; }

.orb-zone { display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: clamp(1.5rem, 6vh, 3.5rem) 0 1.4rem; }

/* orbe reactivo: escala/glow por --level (0..1); color por estado (data-mode) */
.orb { --level: 0; --hue: var(--coral); position: relative; width: 190px; height: 190px;
  display: grid; place-items: center; }
.orb-core { width: 108px; height: 108px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--coral-l), var(--coral) 45%, var(--purple) 105%);
  box-shadow: 0 0 calc(30px + var(--level) * 70px) rgba(247,76,96,calc(.35 + var(--level) * .5)),
              inset 0 0 30px rgba(255,255,255,.18);
  transform: scale(calc(1 + var(--level) * .18));
  transition: transform .08s linear, box-shadow .12s linear; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(247,76,96,.35);
  transform: scale(calc(1 + var(--level) * .35)); opacity: calc(.5 - var(--level) * .2);
  transition: transform .1s linear, opacity .1s linear; }
.orb-ring-2 { inset: -26px; border-color: rgba(129,38,122,.28);
  transform: scale(calc(1 + var(--level) * .22)); }
/* modo escuchando: tinte violeta */
.orb[data-mode="listen"] .orb-core { background: radial-gradient(circle at 35% 30%, var(--purple-l), var(--purple) 50%, var(--violet) 110%);
  box-shadow: 0 0 calc(24px + var(--level) * 55px) rgba(129,38,122,calc(.3 + var(--level) * .45)), inset 0 0 30px rgba(255,255,255,.14); }
.orb[data-mode="listen"] .orb-ring { border-color: rgba(129,38,122,.4); }
.orb[data-mode="think"] .orb-core { animation: think 1.1s var(--ease) infinite; }
@keyframes think { 0%,100%{opacity:.75} 50%{opacity:1} }

/* ecualizador reactivo */
.eq { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin-top: 1.4rem; }
.eq span { width: 5px; height: 6px; border-radius: 4px;
  background: linear-gradient(to top, var(--violet), var(--purple), var(--coral));
  box-shadow: 0 0 8px rgba(247,76,96,.4); transition: height .09s linear; }

.estado { margin-top: 1.2rem; font-size: 1.05rem; font-weight: 600; color: var(--cream);
  letter-spacing: .01em; text-align: center; min-height: 1.4em; }

/* transcripción */
.transcript { flex: 0 1 auto; max-height: 34vh; overflow-y: auto; margin: .4rem 0 1.4rem;
  display: flex; flex-direction: column; gap: .55rem; padding-right: .3rem; }
.transcript .line { max-width: 88%; padding: .6rem .85rem; border-radius: 13px; font-size: .92rem; line-height: 1.5; }
.transcript .yo { align-self: flex-end; background: rgba(129,38,122,.22); border: 1px solid rgba(129,38,122,.4);
  border-bottom-right-radius: 5px; color: var(--ink); }
.transcript .cli { align-self: flex-start; background: rgba(43,26,71,.7); border: 1px solid var(--line-soft);
  border-bottom-left-radius: 5px; color: var(--cream); }
.transcript .who { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .18rem; opacity: .7; }
.transcript .yo .who { color: var(--purple-l); }
.transcript .cli .who { color: var(--coral-l); }
.transcript::-webkit-scrollbar { width: 6px; }
.transcript::-webkit-scrollbar-thumb { background: rgba(247,76,96,.25); border-radius: 6px; }

/* ── Responsivo ── */
@media (max-width: 460px) {
  .choices-3 { grid-template-columns: 1fr; }
  .choices-2 { grid-template-columns: 1fr; }
  .choice { flex-direction: row; align-items: center; gap: .8rem; }
  .choice-icon { margin-bottom: 0; flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ─── Debrief ─── */
#debrief { max-width: 720px; }
.debrief-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.debrief-nota {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; font-family: 'Playfair Display', serif;
  font-size: 2.6rem; font-weight: 700; color: #fff;
  background: radial-gradient(circle at 30% 30%, #81267A, #3C2561);
  box-shadow: 0 10px 30px rgba(60, 37, 97, .45);
}
.debrief-veredicto-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.debrief-veredicto-text { font-size: 1.15rem; font-weight: 600; margin-top: .25rem; }
.debrief-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .debrief-cols { grid-template-columns: 1fr; } }
.debrief-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px; padding: 1rem 1.15rem;
}
.debrief-card h3 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; opacity: .8; }
.debrief-bien h3 { color: #6ee7b7; }
.debrief-mejorar h3 { color: #F74C60; }
.debrief-card ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.debrief-card li { position: relative; padding-left: 1.1rem; line-height: 1.4; }
.debrief-card li::before { content: '›'; position: absolute; left: 0; opacity: .6; }
.debrief-objecion { margin-bottom: 1rem; }
.debrief-escenario { font-size: .9rem; opacity: .65; margin-bottom: 1.5rem; font-style: italic; }
