/* ==========================================================================
   Paleta tomada de Priuser (common.css / page.remarketing.css)
   ========================================================================== */
:root {
  --p-10: #F7F7FF;
  --p-50: #EEEEFB;
  --p-100: #E0DFF6;
  --p-200: #C7C6E8;
  --p-300: #A3A1D6;
  --p-400: #7A77BF;
  --p-600: #4845A0;
  --p-700: #312E88;
  --p-900: #110E4B;
  --brand: #8247B4;
  --navy: #2E2B71;
  --bg: #F4F4F7;
  --card: #FFFFFF;
  --text: #575454;
  --text-light: #9797A2;
  --line: #E6E6EE;
  --green: #28671D;
  --wa: #25D366;
  --wa-dark: #075E54;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body { font-family: 'Hind', sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; }
body.playing, body.playing * { cursor: none !important; }

/* ---------- Escenario ---------- */
#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px; overflow: hidden;
  transform-origin: 50% 50%; background: var(--p-900);
}

/* Avance rápido (saltar escenas): sin transiciones ni animaciones */
#stage.ff *, #stage.ff *::before, #stage.ff *::after {
  transition-duration: 0s !important; transition-delay: 0s !important;
  animation-duration: 0s !important; animation-delay: 0s !important;
}

.scene {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.scene.active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }

/* Utilidades de entrada */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.pop { opacity: 0; transform: scale(.6); transition: opacity .35s ease, transform .5s var(--pop); }
.pop.in { opacity: 1; transform: none; }
.hidden { display: none !important; }

/* ==========================================================================
   Fondos oscuros con brillo
   ========================================================================== */
.dark-bg {
  background:
    radial-gradient(1200px 700px at 80% 10%, rgba(130, 71, 180, .55), transparent 60%),
    radial-gradient(900px 700px at 10% 100%, rgba(72, 69, 160, .6), transparent 60%),
    linear-gradient(160deg, #1b1760 0%, var(--p-900) 70%);
  color: #fff;
}
.particles span {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  from { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateY(-1200px); opacity: 0; }
}

/* ==========================================================================
   Escena 1 · Gancho
   ========================================================================== */
#s-hook .hook-text { position: absolute; left: 160px; top: 260px; }
#s-hook .l1 { font-size: 110px; font-weight: 700; line-height: 1; letter-spacing: -2px; }
#s-hook .l2 { font-size: 72px; font-weight: 300; line-height: 1.25; margin-top: 18px; }
#s-hook .kw {
  display: inline-block; font-weight: 700; color: #fff; padding: 0 22px; margin-left: 8px;
  background: linear-gradient(90deg, #E2557A, var(--brand)); border-radius: 18px;
  transform: rotate(-3deg) scale(.4); opacity: 0;
  transition: transform .6s var(--pop), opacity .3s;
}
#s-hook .kw.in { transform: rotate(-3deg) scale(1); opacity: 1; }
#s-hook .counter {
  position: absolute; left: 160px; top: 700px; display: flex; align-items: baseline; gap: 28px;
}
#s-hook .counter .num {
  font-size: 170px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #C7C6E8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#s-hook .counter .lbl { font-size: 38px; color: var(--p-200); max-width: 720px; line-height: 1.15; }
#s-hook .counter .lbl i { color: #E2557A; margin-right: 10px; }

/* ==========================================================================
   Escena 2 · Problema
   ========================================================================== */
#s-problem { background: var(--bg); }
#s-problem .cols { position: absolute; left: 160px; right: 160px; top: 120px; display: flex; gap: 40px; }
#s-problem .col { flex: 1; background: #EBEBF1; border-radius: 18px; padding: 22px; height: 640px; position: relative; overflow: hidden; }
#s-problem .col-head { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 600; color: var(--navy); margin-bottom: 18px; }
#s-problem .col-head .dot { width: 16px; height: 16px; border-radius: 50%; }
#s-problem .col-head .count { margin-left: auto; background: #fff; border-radius: 30px; padding: 2px 16px; font-size: 22px; color: var(--text-light); }
#s-problem .lead {
  background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 16px; box-shadow: 0 4px 14px rgba(17, 14, 75, .07);
  transform: translateY(-700px); transition: transform .9s var(--pop), filter 1.2s, opacity 1.2s;
}
#s-problem .lead.in { transform: none; }
#s-problem .lead .av { width: 52px; height: 52px; border-radius: 50%; background: var(--p-100); color: var(--p-600); display: grid; place-items: center; font-weight: 700; font-size: 22px; }
#s-problem .lead b { display: block; font-size: 24px; color: var(--navy); font-weight: 600; }
#s-problem .lead small { font-size: 19px; color: var(--text-light); }
#s-problem .lead.fade { filter: grayscale(1) blur(1px); opacity: .25; }
#s-problem .msg {
  position: absolute; left: 0; right: 0; bottom: 90px; text-align: center;
}
#s-problem .msg h2 { font-size: 84px; font-weight: 700; color: var(--navy); letter-spacing: -1px; line-height: 1; }
#s-problem .msg p { font-size: 46px; color: var(--text-light); margin-top: 8px; }
#s-problem .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,244,247,0) 30%, rgba(244,244,247,.95) 70%); opacity: 0; transition: opacity 1s; }
#s-problem .veil.in { opacity: 1; }

/* ==========================================================================
   Escena 3 · Logo
   ========================================================================== */
#s-intro { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#s-intro .iso { width: 260px; height: 192px; overflow: visible; }
#s-intro .iso path { fill: var(--brand); transition: transform 1s var(--pop), opacity .4s; opacity: 0; }
#s-intro .iso .a { transform: translate(-300px, 120px); }
#s-intro .iso .b { transform: translate(300px, -120px); }
#s-intro .iso.in path { transform: none; opacity: 1; }
#s-intro .wordmark { width: 620px; margin-top: 50px; }
#s-intro h1 { font-size: 96px; font-weight: 700; color: var(--navy); margin-top: 60px; letter-spacing: -1.5px; line-height: 1; }
#s-intro h1 span { color: var(--brand); }
#s-intro p { font-size: 42px; color: var(--text-light); margin-top: 18px; }
#s-intro .iso-wrap { position: relative; }
#s-intro .ring {
  position: absolute; width: 400px; height: 400px; border-radius: 50%; border: 3px solid var(--p-200);
  left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.2); opacity: 0;
}
#s-intro .ring.in { animation: ring 1.6s var(--ease) forwards; }
@keyframes ring { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(4); } }

/* ==========================================================================
   Escena App (pasos 1–4): ventana con la interfaz de Priuser
   ========================================================================== */
#s-app { background: linear-gradient(160deg, #EDEBFA, #F7F7FF 50%, #EAE6F7); }
.caption {
  position: absolute; left: 0; right: 0; top: 34px; z-index: 30;
  display: flex; justify-content: center; pointer-events: none;
}
.caption .pill {
  display: flex; align-items: center; gap: 22px; padding: 14px 40px 14px 14px;
  background: var(--p-900); color: #fff; border-radius: 80px; box-shadow: 0 20px 50px rgba(17, 14, 75, .35);
  font-size: 44px; font-weight: 600; transform: translateY(-160px); transition: transform .7s var(--pop);
}
.caption .pill.in { transform: none; }
.caption .pill .n {
  width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--p-400)); font-size: 40px; font-weight: 700;
}
.caption .pill.plain { padding: 18px 46px; }

.camera { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; transition: transform 1.1s var(--ease); }

.window {
  position: absolute; left: 110px; top: 150px; width: 1700px; height: 900px;
  background: var(--bg); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(17, 14, 75, .25), 0 0 0 1px rgba(17, 14, 75, .06);
  display: flex; flex-direction: column;
}
.titlebar { height: 44px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 18px; gap: 8px; flex: none; }
.titlebar .d { width: 13px; height: 13px; border-radius: 50%; background: #E3E3EA; }
.titlebar .url { margin-left: 24px; background: var(--bg); border-radius: 20px; padding: 4px 22px; font-size: 15px; color: var(--text-light); }
.titlebar .url i { margin-right: 8px; font-size: 12px; }
.app { flex: 1; display: flex; min-height: 0; }

/* Sidebar (estilo #hs-sidebar) */
.sidebar { width: 270px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px; flex: none; }
.sidebar .logo { height: 26px; margin: 4px 10px 30px; align-self: flex-start; }
.sidebar .grp { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: #B5B5C2; margin: 18px 12px 8px; }
.sidebar .item { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 8px; font-size: 17px; color: #8F8F9D; transition: background .3s, color .3s; }
.sidebar .item i { width: 22px; text-align: center; font-size: 17px; }
.sidebar .item.sel { background: #F1F0FB; color: var(--p-600); font-weight: 600; }
.sidebar .profile { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.sidebar .profile .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--p-400)); color: #fff; display: grid; place-items: center; font-weight: 600; }
.sidebar .profile b { display: block; font-size: 15px; color: var(--navy); font-weight: 600; }
.sidebar .profile small { font-size: 13px; color: var(--text-light); }

/* Contenido */
.main { flex: 1; padding: 26px 32px; overflow: hidden; position: relative; min-width: 0; }
.page-title { font-size: 28px; font-weight: 500; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.page-title i { color: var(--p-400); font-size: 22px; }
.page-sub { font-size: 15px; color: var(--text-light); margin-top: 2px; }
.tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin-top: 16px; }
.tabs .tab { font-size: 16px; padding: 10px 2px; color: var(--text-light); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .tab.sel { color: var(--p-600); border-bottom-color: var(--p-600); }
.toolbar-row { display: flex; gap: 12px; margin: 16px 0; align-items: center; }

/* Botones (HSComponents) */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; border-radius: 4px; padding: 9px 18px; border: 1px solid var(--p-400); transition: background .25s, transform .15s, color .25s; white-space: nowrap; }
.btn.fill { background: var(--p-400); color: #fff; }
.btn.fill.hover { background: var(--p-600); border-color: var(--p-600); }
.btn.out { background: #fff; color: var(--p-600); }
.btn.out.hover { background: var(--p-10); }
.btn.sm { font-size: 12px; padding: 6px 12px; }
.btn.danger { color: #A52222; border-color: #E9B5B5; background: #fff; }
.btn.wa { background: var(--green); border-color: var(--green); color: #fff; }
.pressed { transform: scale(.94); }

.empty { margin-top: 80px; text-align: center; color: var(--text-light); font-size: 18px; transition: opacity .3s; }
.empty i { font-size: 54px; color: var(--p-200); display: block; margin-bottom: 14px; }

/* Card de regla */
.rule {
  background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(17, 14, 75, .06); border: 1px solid var(--line);
  opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease);
}
.rule.in { opacity: 1; transform: none; }
.rule-head { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; color: var(--navy); }
.rule-head i.fa-chevron-down { margin-left: auto; color: var(--text-light); font-size: 14px; }
.rule-body { display: flex; height: 470px; }
.rule-left { width: 430px; padding: 20px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; flex: none; }
.rule-right { flex: 1; padding: 14px 24px; min-width: 0; position: relative; }
.rule-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 22px; border-top: 1px solid var(--line); }

.field label { display: block; font-size: 14px; color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.select {
  position: relative; border: 1px solid #D9D9E3; border-radius: 6px; height: 42px; padding: 0 14px;
  display: flex; align-items: center; font-size: 16px; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.select::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 11px; color: var(--text-light); margin-left: auto; }
.select.focus { border-color: var(--p-400); box-shadow: 0 0 0 3px var(--p-50); }
.select .ph { color: var(--text-light); }
.dropdown {
  position: absolute; left: -1px; right: -1px; top: 44px; background: #fff; border-radius: 6px; z-index: 10;
  box-shadow: 0 12px 30px rgba(17, 14, 75, .18); border: 1px solid var(--line); overflow: hidden;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .25s;
}
.dropdown.open { opacity: 1; transform: none; }
.dropdown div { padding: 10px 14px; font-size: 16px; transition: background .15s; }
.dropdown div.hl { background: var(--p-50); color: var(--p-600); }

.checks { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; opacity: 0; transform: translateX(-14px); transition: opacity .3s, transform .4s var(--ease); }
.check.in { opacity: 1; transform: none; }
.check .box { width: 20px; height: 20px; border: 2px solid #C9C9D6; border-radius: 4px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check .box i { font-size: 11px; color: #fff; transform: scale(0); transition: transform .3s var(--pop); }
.check.on .box { background: var(--p-400); border-color: var(--p-400); }
.check.on .box i { transform: scale(1); }
.motivos-empty { font-size: 14px; color: var(--text-light); font-style: italic; }

.radios { display: flex; gap: 22px; }
.radio { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.radio .o { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C9C9D6; display: grid; place-items: center; transition: border-color .2s; }
.radio .o::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--p-400); transform: scale(0); transition: transform .3s var(--pop); }
.radio.on .o { border-color: var(--p-400); }
.radio.on .o::after { transform: scale(1); }

.diferido { display: flex; gap: 14px; max-height: 0; overflow: visible; opacity: 0; transition: opacity .4s, max-height .5s var(--ease); }
.diferido.in { max-height: 90px; opacity: 1; }
.diferido .field { flex: 1; }
.num-input { border: 1px solid #D9D9E3; border-radius: 6px; height: 42px; padding: 0 14px; display: flex; align-items: center; font-size: 16px; width: 80px; transition: border-color .2s, box-shadow .2s; }
.num-input.focus { border-color: var(--p-400); box-shadow: 0 0 0 3px var(--p-50); }

/* Pestañas de canal */
.channels { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.channel { display: flex; align-items: center; gap: 10px; font-size: 16px; padding: 8px 2px 10px; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.channel.sel { color: var(--p-700); border-bottom-color: var(--p-400); }
.channel .fa-whatsapp { font-size: 19px; }
.switch { width: 36px; height: 20px; border-radius: 20px; background: #D9D9E3; position: relative; transition: background .25s; }
.switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--pop); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--p-400); }
.switch.on::after { transform: translateX(16px); }

.panel { padding-top: 14px; }
.row { display: flex; gap: 12px; align-items: flex-end; }
.input {
  flex: 1; border: 1px solid #D9D9E3; border-radius: 6px; min-height: 42px; padding: 8px 14px; font-size: 16px; color: var(--text);
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.input.focus { border-color: var(--p-400); box-shadow: 0 0 0 3px var(--p-50); }
.caret { display: inline-block; width: 2px; height: 20px; background: var(--p-600); margin-left: 1px; animation: blink 1s steps(1) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }
.var {
  display: inline-flex; align-items: center; background: var(--p-50); color: var(--p-600); border: 1px solid var(--p-200);
  border-radius: 20px; padding: 0 10px; font-size: .85em; font-weight: 600; line-height: 1.5; margin: 0 2px; white-space: nowrap;
  animation: varPop .45s var(--pop);
}
@keyframes varPop { from { transform: scale(.3); opacity: 0; } }

.designs { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--navy); font-weight: 600; }
.design { border: 1px solid #D9D9E3; border-radius: 6px; padding: 5px 14px; font-size: 14px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 8px; transition: all .25s; }
.design .sw { width: 14px; height: 14px; border-radius: 3px; }
.design.sel { border-color: var(--p-400); background: var(--p-10); color: var(--p-600); box-shadow: 0 0 0 3px var(--p-50); }
.insert-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--text-light); flex-wrap: wrap; }
.insert-bar .chip { border: 1px dashed var(--p-300); color: var(--p-600); border-radius: 20px; padding: 2px 12px; font-size: 14px; font-weight: 500; background: #fff; transition: background .2s; }
.insert-bar .chip.hover { background: var(--p-50); }
.insert-bar .fmt { border: 1px solid #D9D9E3; border-radius: 4px; padding: 2px 10px; font-size: 13px; color: var(--text); }

/* Vista previa de email */
.email-canvas { margin-top: 12px; background: #f4f4f7; border-radius: 8px; padding: 14px; height: 226px; overflow: hidden; transition: background .6s; position: relative; }
.email-canvas .zone { position: absolute; right: 10px; top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); }
.mail { width: 540px; margin: 0 auto; background: #fff; border-radius: 4px; overflow: hidden; transition: all .6s; font-family: 'Lato', 'Open Sans', sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.mail .mh { padding: 14px 24px; font-size: 18px; font-weight: 700; color: #2b4c9b; border-bottom: 1px solid #eee; transition: all .6s; font-family: Georgia, serif; }
.mail .mb { padding: 12px 24px 12px; }
.mail .mt { font-size: 22px; font-weight: 700; color: #333; transition: color .6s; min-height: 30px; font-family: Georgia, serif; }
.mail .mp { font-size: 14px; color: #555; line-height: 1.5; margin-top: 6px; min-height: 42px; }
.mail .mbtn { display: inline-block; margin-top: 8px; padding: 8px 20px; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: #fff; background: #2b4c9b; border-radius: 3px; transition: all .6s; }
.mail .mf { padding: 10px 24px; font-size: 11px; color: #999; border-top: 1px solid #eee; transition: all .6s; }
/* Diseño "Moderna" (EmailDisenoService) */
.email-canvas.moderna { background: #e9edf5; }
.email-canvas.moderna .mail { border-radius: 16px; font-family: 'Open Sans', sans-serif; }
.email-canvas.moderna .mh { background: #1f2a44; color: #fff; font-family: 'Montserrat', sans-serif; border: 0; }
.email-canvas.moderna .mt { font-family: 'Montserrat', sans-serif; color: #1f2a44; }
.email-canvas.moderna .mbtn { background: #3b6fe0; border-radius: 30px; }
.email-canvas.moderna .mf { background: #1f2a44; color: #aab3c8; border: 0; }

/* WhatsApp */
.wa-head { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: var(--navy); }
.wa-head .fa-whatsapp { color: var(--green); font-size: 22px; }
.badge { font-family: 'Hind', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; padding: 3px 12px; border-radius: 20px; transition: all .35s; display: inline-flex; align-items: center; gap: 6px; }
.badge.sin { background: #E5E5E5; color: #818181; }
.badge.borrador { background: #E8ECFC; color: #3A3FCC; }
.badge.pendiente { background: #FAE2CA; color: #B26518; }
.badge.aprobado { background: #DDFCD2; color: #28671D; }
.badge.bump { animation: bump .5s var(--pop); }
@keyframes bump { 40% { transform: scale(1.35); } }
.wa-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.wa-box h4 { font-size: 15px; color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.wa-content { border: 1px solid #D9D9E3; border-radius: 6px; padding: 12px 14px; font-size: 16px; line-height: 1.6; min-height: 90px; transition: border-color .2s, box-shadow .2s; }
.wa-content.focus { border-color: var(--p-400); box-shadow: 0 0 0 3px var(--p-50); }
.wa-vars { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--text-light); }
.wa-vars .chip { border: 1px dashed var(--p-300); color: var(--p-600); border-radius: 20px; padding: 1px 10px; font-size: 13px; font-weight: 500; }
.wa-note { margin-top: 12px; background: var(--p-10); border: 1px solid var(--p-200); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--p-700); display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; transition: all .4s; }
.wa-note.ok { background: #EEFBE8; border-color: #BFE7B1; color: var(--green); }
.wa-actions { margin-top: 12px; display: flex; gap: 12px; align-items: center; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toggle HABILITADO */
.toggle { display: flex; border: 1px solid #D9D9E3; border-radius: 6px; overflow: hidden; font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.toggle div { padding: 9px 18px; color: var(--text-light); transition: all .35s; }
.toggle .off.sel { background: #EDEDF2; color: var(--text); }
.toggle .on.sel { background: var(--green); color: #fff; }
.toggle.glow { animation: glow 1.4s ease-out; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(40, 103, 29, .55); } 100% { box-shadow: 0 0 0 30px rgba(40, 103, 29, 0); } }

/* Notas flotantes (narrativa del video, no forman parte de la UI) */
.callout {
  position: absolute; z-index: 20; max-width: 380px; background: var(--p-900); color: #fff; border-radius: 16px;
  padding: 16px 22px; font-size: 22px; line-height: 1.25; font-weight: 500; box-shadow: 0 20px 40px rgba(17, 14, 75, .35);
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .5s var(--pop);
}
.callout.in { opacity: 1; transform: none; }
.callout i { color: #C9A6F0; margin-right: 8px; }
.callout::before { content: ''; position: absolute; width: 18px; height: 18px; background: var(--p-900); transform: rotate(45deg); }
.callout.left::before { right: -7px; top: 50%; margin-top: -9px; }
.callout.right::before { left: -7px; top: 50%; margin-top: -9px; }
.callout.top::before { bottom: -7px; left: 50%; margin-left: -9px; }
.callout.bottom::before { top: -7px; left: 50%; margin-left: -9px; }

/* Salto en el tiempo (paso 2) */
.timejump {
  position: absolute; right: 90px; bottom: 80px; z-index: 25; background: #fff; border-radius: 22px; padding: 26px 34px;
  box-shadow: 0 30px 70px rgba(17, 14, 75, .3); display: flex; align-items: center; gap: 28px;
  opacity: 0; transform: translateY(60px) scale(.9); transition: opacity .4s, transform .6s var(--pop);
}
.timejump.in { opacity: 1; transform: none; }
.cal { width: 150px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 16px rgba(17, 14, 75, .12); text-align: center; }
.cal .m { background: var(--brand); color: #fff; font-weight: 700; font-size: 24px; letter-spacing: 2px; padding: 6px 0; }
.cal .d { font-size: 64px; font-weight: 700; color: var(--navy); line-height: 1.2; background: #fff; }
.cal .h { font-size: 18px; color: var(--text-light); padding-bottom: 8px; background: #fff; }
.cal.flip .m { animation: flipM .25s ease; }
@keyframes flipM { from { transform: rotateX(90deg); } }
.timejump .arrow { font-size: 34px; color: var(--p-300); }
.timejump .lbl { font-size: 15px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; text-align: center; }

/* Confeti */
.confetti { position: absolute; width: 12px; height: 18px; border-radius: 2px; z-index: 40; pointer-events: none; animation: confetti 1.8s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes confetti {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
}

/* Toast de guardado (simula el feedback de GUARDAR) */
.toast { position: absolute; right: 40px; top: 70px; background: var(--navy); color: #fff; border-radius: 8px; padding: 12px 20px; font-size: 16px; z-index: 15; display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(-20px); transition: all .4s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast i { color: #9BE58A; }

/* ---------- Cursor animado ---------- */
.cursor { position: absolute; left: 0; top: 0; width: 34px; height: 34px; z-index: 50; pointer-events: none; transition-property: transform; transition-timing-function: var(--ease); filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.cursor svg { width: 34px; height: 34px; transition: transform .12s; transform-origin: 6px 4px; }
.cursor.down svg { transform: scale(.82); }
.cursor .ripple { position: absolute; left: -16px; top: -18px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--p-400); opacity: 0; }
.cursor.click .ripple { animation: ripple .55s ease-out; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ==========================================================================
   Escena · Vendedor cierra el lead
   ========================================================================== */
#s-seller { background: linear-gradient(160deg, #EDEBFA, #F7F7FF 50%, #EAE6F7); }
.lead-card {
  position: absolute; left: 50%; top: 290px; width: 900px; margin-left: -450px; background: #fff; border-radius: 22px;
  box-shadow: 0 40px 100px rgba(17, 14, 75, .2); padding: 40px 48px;
}
.lead-card .top { display: flex; align-items: center; gap: 26px; }
.lead-card .av { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, #F2C9A0, #E09A6A); display: grid; place-items: center; font-size: 40px; color: #fff; font-weight: 700; }
.lead-card h3 { font-size: 40px; color: var(--navy); font-weight: 600; line-height: 1.1; }
.lead-card .meta { font-size: 21px; color: var(--text-light); margin-top: 6px; display: flex; gap: 26px; }
.lead-card .meta i { color: var(--p-300); margin-right: 6px; }
.lead-card .state { margin-left: auto; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; padding: 8px 20px; border-radius: 30px; background: var(--p-50); color: var(--p-600); transition: all .4s; }
.lead-card .state.perdido { background: #FFE3E0; color: #A52222; }
.lead-card .state.bump { animation: bump .5s var(--pop); }
.lead-card .hr { height: 1px; background: var(--line); margin: 30px 0 26px; }
.lead-card .fields { display: flex; gap: 22px; align-items: flex-end; }
.lead-card .fields .field { flex: 1; }
.lead-card .fields label { font-size: 17px; }
.lead-card .select { height: 52px; font-size: 19px; }
.lead-card .dropdown { top: 54px; }
.lead-card .dropdown div { font-size: 19px; padding: 12px 16px; }
.lead-card .btn { font-size: 18px; padding: 13px 26px; }
.sched {
  position: absolute; left: 50%; top: 720px; transform: translateX(-50%) translateY(40px); opacity: 0;
  display: flex; align-items: center; gap: 18px; background: var(--p-900); color: #fff; border-radius: 60px; padding: 18px 36px 18px 20px; font-size: 32px; font-weight: 500;
  box-shadow: 0 20px 50px rgba(17, 14, 75, .35); transition: all .6s var(--pop);
}
.sched.in { opacity: 1; transform: translateX(-50%); }
.sched .ic { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--p-400)); display: grid; place-items: center; font-size: 26px; }

/* ==========================================================================
   Escena · Salto de 3 meses
   ========================================================================== */
#s-time { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#s-time .clock { width: 300px; height: 300px; border-radius: 50%; border: 10px solid rgba(255,255,255,.85); position: relative; }
#s-time .clock::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: #fff; }
#s-time .hand { position: absolute; left: 50%; bottom: 50%; width: 10px; margin-left: -5px; border-radius: 6px; background: #fff; transform-origin: 50% 100%; }
#s-time .hand.h { height: 80px; background: #C9A6F0; }
#s-time .hand.m { height: 120px; }
#s-time .spin-m { animation: spin .35s linear infinite; }
#s-time .spin-h { animation: spin 4.2s linear infinite; }
#s-time .pages { display: flex; gap: 18px; margin-top: 60px; }
#s-time .pages .cal { width: 130px; opacity: .25; transform: scale(.9); transition: all .3s var(--pop); }
#s-time .pages .cal.on { opacity: 1; transform: scale(1.08); }
#s-time .pages .cal .d { font-size: 54px; }
#s-time h2 { font-size: 110px; font-weight: 700; margin-top: 50px; letter-spacing: -2px; line-height: 1; }
#s-time p { font-size: 44px; color: var(--p-200); margin-top: 10px; }

/* ==========================================================================
   Escena · Resultado (celular + email)
   ========================================================================== */
#s-result { background: linear-gradient(160deg, #EDEBFA, #F7F7FF 50%, #EAE6F7); }
.phone {
  position: absolute; left: 280px; top: 150px; width: 430px; height: 870px; border-radius: 60px; background: #111;
  padding: 16px; box-shadow: 0 50px 110px rgba(17, 14, 75, .35);
  transform: translateY(1000px) rotate(-6deg); transition: transform 1s var(--pop);
}
.phone.in { transform: rotate(-3deg); }
.phone .screen { width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: #ECE5DD; display: flex; flex-direction: column; position: relative; }
.phone .notch { position: absolute; left: 50%; top: 10px; width: 120px; height: 30px; margin-left: -60px; border-radius: 20px; background: #111; z-index: 3; }
.chat-head { background: var(--wa-dark); color: #fff; padding: 52px 20px 14px; display: flex; align-items: center; gap: 12px; }
.chat-head .av { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.chat-head .av img { width: 28px; }
.chat-head b { font-size: 19px; display: block; font-weight: 600; }
.chat-head small { font-size: 14px; opacity: .8; }
.chat { flex: 1; padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.bubble { max-width: 82%; padding: 10px 14px 20px; border-radius: 12px; font-size: 19px; line-height: 1.35; color: #222; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.1); opacity: 0; transform: translateY(20px) scale(.9); transition: all .45s var(--pop); }
.bubble.in { opacity: 1; transform: none; }
.bubble.recv { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.bubble.sent { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 2px; }
.bubble .t { position: absolute; right: 10px; bottom: 4px; font-size: 12px; color: #888; }
.bubble .t i { color: #34B7F1; margin-left: 4px; }
.typing { align-self: flex-end; background: #DCF8C6; border-radius: 12px; padding: 14px 18px; display: flex; gap: 6px; opacity: 0; transition: opacity .3s; }
.typing.in { opacity: 1; }
.typing span { width: 9px; height: 9px; border-radius: 50%; background: #8aa889; animation: dot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-6px); } }
.chat-input { background: #F0F0F0; padding: 12px 16px 26px; display: flex; gap: 10px; align-items: center; }
.chat-input div { flex: 1; background: #fff; border-radius: 22px; height: 44px; }
.chat-input i { color: var(--wa-dark); font-size: 22px; }
.notif {
  position: absolute; left: 12px; right: 12px; top: 46px; z-index: 4; background: rgba(255,255,255,.96); border-radius: 18px; padding: 12px 14px;
  display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: translateY(-150px); transition: transform .6s var(--pop);
}
.notif.in { transform: none; }
.notif .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 24px; flex: none; }
.notif b { font-size: 15px; display: block; color: #111; }
.notif span { font-size: 14px; color: #444; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }

.inbox {
  position: absolute; left: 860px; top: 210px; width: 800px; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(17, 14, 75, .22); opacity: 0; transform: translateX(120px); transition: all .8s var(--ease);
}
.inbox.in { opacity: 1; transform: none; }
.inbox .ih { padding: 18px 26px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--text-light); }
.inbox .ih i { color: #E2557A; }
.inbox .mailrow { display: flex; gap: 18px; padding: 22px 26px; align-items: center; background: #F7F7FF; border-left: 5px solid var(--brand); }
.inbox .mailrow .av { width: 54px; height: 54px; border-radius: 50%; background: #1f2a44; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; }
.inbox .mailrow b { font-size: 21px; color: #111; display: block; }
.inbox .mailrow .s { font-size: 20px; color: var(--navy); font-weight: 600; }
.inbox .mailrow .p { font-size: 17px; color: var(--text-light); }
.inbox .mailrow .tm { margin-left: auto; font-size: 16px; color: var(--brand); font-weight: 600; align-self: flex-start; }
.inbox .mini { padding: 22px 26px; background: #e9edf5; }
.inbox .mini .mail { width: 100%; border-radius: 16px; font-family: 'Open Sans', sans-serif; }
.inbox .mini .mh { background: #1f2a44; color: #fff; font-family: 'Montserrat', sans-serif; border: 0; }
.inbox .mini .mt { font-family: 'Montserrat', sans-serif; color: #1f2a44; }
.inbox .mini .mbtn { background: #3b6fe0; border-radius: 30px; }
.inbox .mini .mf { background: #1f2a44; color: #aab3c8; border: 0; }
.result-msg { position: absolute; left: 860px; top: 790px; width: 1000px; }
.result-msg h2 { white-space: nowrap; font-size: 66px; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -1px; }
.result-msg h2 i { color: var(--wa); margin-right: 14px; }
.result-msg p { font-size: 36px; color: var(--text-light); margin-top: 10px; }

/* ==========================================================================
   Escena · Cierre
   ========================================================================== */
#s-outro { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#s-outro .benefits { display: flex; gap: 34px; }
#s-outro .benefit { width: 490px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 26px; padding: 40px 36px; backdrop-filter: blur(6px); }
#s-outro .benefit .ic { width: 84px; height: 84px; border-radius: 22px; background: linear-gradient(135deg, var(--brand), var(--p-400)); display: grid; place-items: center; font-size: 38px; margin-bottom: 24px; }
#s-outro .benefit h3 { font-size: 42px; font-weight: 700; line-height: 1.05; }
#s-outro .benefit p { font-size: 26px; color: var(--p-200); margin-top: 10px; line-height: 1.25; }
#s-outro .final { display: flex; flex-direction: column; align-items: center; margin-top: 90px; }
#s-outro .final .logo { width: 520px; filter: brightness(0) invert(1); }
#s-outro .final h2 { font-size: 56px; font-weight: 500; margin-top: 30px; }
#s-outro .final .cta { margin-top: 34px; display: flex; align-items: center; gap: 26px; }
#s-outro .final .cta .b { background: #fff; color: var(--p-900); font-size: 36px; font-weight: 700; padding: 18px 50px; border-radius: 60px; box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: pulse 2s infinite; }
#s-outro .final .cta .w { font-size: 34px; color: var(--p-200); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 100% { box-shadow: 0 0 0 30px rgba(255,255,255,0); } }

/* ==========================================================================
   Controles (fuera del escenario)
   ========================================================================== */
#controls {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 100;
  display: flex; align-items: center; gap: 6px; background: rgba(17, 14, 75, .92); color: #fff; padding: 8px 12px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .35s var(--ease); max-width: calc(100% - 32px);
}
#controls.visible { transform: translate(-50%, 0); }
#controls button { background: none; border: 0; color: #fff; width: 38px; height: 38px; border-radius: 8px; font-size: 15px; cursor: pointer; flex: none; }
#controls button:hover { background: rgba(255,255,255,.12); }
#scene-list { display: flex; gap: 4px; margin: 0 8px; overflow-x: auto; }
#scene-list button { width: auto; padding: 0 10px; font-family: 'Hind', sans-serif; font-size: 13px; color: var(--p-200); white-space: nowrap; }
#scene-list button.cur { background: var(--p-400); color: #fff; }
#time-label { font-size: 14px; color: var(--p-200); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }

#start-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(10, 8, 40, .92); display: grid; place-items: center; padding: 16px; transition: opacity .4s; }
#start-overlay.gone { opacity: 0; pointer-events: none; }
.start-card { background: #fff; border-radius: 20px; padding: 40px 48px; max-width: 560px; text-align: center; }
.start-card img { width: 220px; }
.start-card h1 { font-size: 24px; color: var(--navy); margin-top: 22px; font-weight: 600; }
.start-card p { font-size: 17px; color: var(--text); margin-top: 10px; line-height: 1.5; }
.start-card kbd { background: var(--p-50); border: 1px solid var(--p-200); border-radius: 4px; padding: 0 6px; font-family: inherit; color: var(--p-600); }
.start-card button { margin-top: 26px; background: var(--p-400); color: #fff; border: 0; border-radius: 6px; padding: 12px 30px; font-family: inherit; font-size: 17px; font-weight: 500; cursor: pointer; }
.start-card button:hover { background: var(--p-600); }
