/* BC Web · animaciones (bloque «Animación»). Solo se carga en las páginas que la usan. */
.st{--navy:#123E68;--deep:#0B2A47;--night:#071B30;--lime:#A0C541;--ink:#FFFFFF;--soft:#C9D6E3;--display:'Barlow Condensed','Arial Narrow',Arial,sans-serif}
/* ---------- ESCENA (común) ---------- */
.st{position:relative;color:var(--ink);width:100%;max-width:100%;aspect-ratio:16/9;background:radial-gradient(120% 90% at 50% 40%,#16477A 0%,var(--deep) 55%,var(--night) 100%);overflow:hidden;border-radius:4px}
@media (max-width:700px){.st{aspect-ratio:4/3}.ctrl{width:30px;height:30px}}
.st > svg,.st > canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.ctrl svg{display:block;width:14px;height:16px}
.st .dot,.st .fd,.st .e-dot,.st .e-fd{transform-box:fill-box;transform-origin:center}
.st text{font-family:var(--display);fill:var(--ink)}
.sc{opacity:0;transition:opacity .5s ease}
.st[data-s="1"] .sc1,.st[data-s="2"] .sc2,.st[data-s="3"] .sc3,.st[data-s="4"] .sc4,.st[data-s="5"] .sc5,.st[data-s="6"] .sc6,.st[data-s="7"] .sc7{opacity:1}
.vb{transform-box:view-box}
.cap{position:absolute;left:3.2%;bottom:5%;font:700 clamp(13px,2.1vw,24px)/1 var(--display);letter-spacing:.1em;text-transform:uppercase;color:var(--lime);transition:opacity .3s;text-shadow:0 2px 10px rgba(7,27,48,.8)}
.prog{position:absolute;right:3.2%;bottom:5.4%;display:flex;gap:5px}
.prog i{width:clamp(12px,2.4vw,30px);height:4px;background:rgba(255,255,255,.22);transition:background .3s}
.prog i.on{background:var(--lime)}
.ctrl{position:absolute;right:max(10px,2%);top:max(10px,3%);width:40px;height:40px;border-radius:50%;border:1.5px solid rgba(255,255,255,.4);background:rgba(7,27,48,.55);color:var(--ink);cursor:pointer;display:grid;place-items:center;z-index:3}
.ctrl:hover{border-color:var(--lime);color:var(--lime)}
.ctrl:focus-visible{outline:3px solid var(--lime);outline-offset:3px}
.st.paused,.st.paused *{animation-play-state:paused!important}
@keyframes up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes pop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes press{50%{transform:scale(.92)}}
@keyframes dotin{from{opacity:0;transform:scale(0)}to{opacity:1;transform:none}}
@keyframes fadein{from{opacity:0}to{opacity:1}}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes rip{from{opacity:.9;transform:scale(.2)}to{opacity:0;transform:scale(2.2)}}

/* ---------- 1 · DEL CLIC A LA VENTA ---------- */
.tun{opacity:0;transition:opacity .5s}
#v[data-s="3"] .tun{opacity:1}
/* 1 · campaña */
#v[data-s="1"] .card{animation:pop .7s cubic-bezier(.2,1.4,.4,1) both}
#v[data-s="1"] .launch{animation:press .3s ease 1.1s both}
.chip{opacity:0}
#v[data-s="1"] .chip{animation:fly .8s cubic-bezier(.2,1.2,.4,1) both}
#v[data-s="1"] .chip.c1{animation-delay:1.35s}#v[data-s="1"] .chip.c2{animation-delay:1.55s}#v[data-s="1"] .chip.c3{animation-delay:1.75s}
.wire{stroke-dasharray:6 10;opacity:0}
#v[data-s="1"] .wire{animation:wire 1.2s linear 1.6s both}
@keyframes pop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes press{50%{transform:scale(.92)}}
@keyframes fly{from{transform:translate(var(--fx),var(--fy)) scale(.3);opacity:0}to{transform:none;opacity:1}}
@keyframes wire{from{opacity:0;stroke-dashoffset:80}to{opacity:.7;stroke-dashoffset:0}}

/* 2 · búsqueda */
.dot{opacity:0}
#v[data-s="2"] .dot{animation:dotin .12s ease both}
.caret{opacity:0}
#v[data-s="2"] .caret{animation:blink .8s steps(1) infinite .5s}
#v[data-s="2"] .zoom{animation:zoom .7s cubic-bezier(.7,0,.9,.3) 2.9s both}
#v[data-s="2"] .pill{animation:flash .4s ease 2.5s both}
@keyframes dotin{from{opacity:0;transform:scale(0)}to{opacity:1;transform:none}}
@keyframes blink{0%{opacity:1}50%{opacity:0}}
@keyframes zoom{to{transform:scale(2.6);opacity:0}}
@keyframes flash{50%{stroke:var(--lime);stroke-width:6}}

/* 4 · resultados */
.res{opacity:0}
#v[data-s="4"] .res{animation:up .5s ease both}
#v[data-s="4"] .res.r2{animation-delay:.12s}#v[data-s="4"] .res.r3{animation-delay:.24s}#v[data-s="4"] .res.r4{animation-delay:.36s}
#v[data-s="4"] .hit{animation:hit .5s ease 2.4s both}
.cur{opacity:0}
#v[data-s="4"] .cur4{animation:c4 2.6s cubic-bezier(.5,0,.3,1) .6s both}
#v[data-s="5"] .cur5{animation:c5 1.4s cubic-bezier(.5,0,.3,1) .5s both}
.ripple{opacity:0;transform-box:fill-box;transform-origin:center}
#v[data-s="4"] .rip4{animation:rip .6s ease 2.4s both}
#v[data-s="5"] .rip5{animation:rip .6s ease 1.7s both}
@keyframes up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes hit{to{fill:#1C5288}}
@keyframes c4{0%{opacity:0;transform:translate(420px,260px)}15%{opacity:1}100%{opacity:1;transform:translate(0,0)}}
@keyframes c5{0%{opacity:0;transform:translate(300px,200px)}20%{opacity:1}100%{opacity:1;transform:translate(0,0)}}
@keyframes rip{from{opacity:.9;transform:scale(.2)}to{opacity:0;transform:scale(2.2)}}

/* 5 · landing y lead */
.form{opacity:0}
#v[data-s="5"] .form{animation:slide .5s cubic-bezier(.2,1.1,.4,1) 1.9s both}
.fd{opacity:0}
#v[data-s="5"] .fd{animation:dotin .1s ease both}
.toast{opacity:0}
#v[data-s="5"] .toast{animation:toast .5s cubic-bezier(.2,1.4,.4,1) 3.1s both}
#v[data-s="5"] .cta{animation:press .3s ease 1.7s both}
@keyframes slide{from{opacity:0;transform:translateX(80px)}to{opacity:1;transform:none}}
@keyframes toast{from{opacity:0;transform:translateY(30px) scale(.8)}to{opacity:1;transform:none}}

/* 6 · embudo y venta */
.lvl{opacity:0}
#v[data-s="6"] .lvl{animation:up .5s ease both}
#v[data-s="6"] .l2{animation-delay:.25s}#v[data-s="6"] .l3{animation-delay:.5s}#v[data-s="6"] .l4{animation-delay:.75s}
.sale{opacity:0}
#v[data-s="6"] .sale{animation:pop .6s cubic-bezier(.2,1.4,.4,1) 2.4s both}
.spark{opacity:0;transform-origin:1240px 430px}
#v[data-s="6"] .spark{animation:spark .9s ease-out 2.6s both}
@keyframes spark{0%{opacity:1;transform:scale(.2)}100%{opacity:0;transform:scale(1.6)}}

/* 7 · cierre */
#v[data-s="7"] .endt{animation:up .6s ease both}
#v[data-s="7"] .endsub{animation:up .6s ease .3s both}
.uline{stroke-dasharray:520;stroke-dashoffset:520}
#v[data-s="7"] .uline{animation:draw .8s ease .5s forwards}
@keyframes draw{to{stroke-dashoffset:0}}


.win{opacity:0;transition:opacity .4s}
#v[data-s="2"] .win,#v[data-s="4"] .win,#v[data-s="5"] .win{opacity:1}
/* ---------- 2 · TU WEB ---------- */
.w-win,.w-stats,.w-phone,.w-plan,.w-built{opacity:0;transition:opacity .5s}
#w[data-s="1"] .w-win,#w[data-s="2"] .w-win,#w[data-s="3"] .w-win{opacity:1}
#w[data-s="1"] .w-stats{opacity:1;animation:up .6s ease .3s both}
.w-old{transition:opacity .6s}
#w[data-s="2"] .w-old,#w[data-s="3"] .w-old{opacity:0}
#w[data-s="2"] .w-plan,#w[data-s="3"] .w-plan{opacity:1}
.w-wire{stroke-dasharray:2200;stroke-dashoffset:2200}
#w[data-s="2"] .w-wire{animation:draw 1.3s ease both}
#w[data-s="2"] .w-wire:nth-child(2){animation-delay:.25s}#w[data-s="2"] .w-wire:nth-child(3){animation-delay:.45s}#w[data-s="2"] .w-wire:nth-child(4){animation-delay:.7s}#w[data-s="2"] .w-wire:nth-child(5){animation-delay:.85s}#w[data-s="2"] .w-wire:nth-child(6){animation-delay:1s}
#w[data-s="3"] .w-wire{stroke-dashoffset:0}
#w[data-s="3"] .w-built{opacity:1}
.w-fill{opacity:0}
#w[data-s="3"] .w-fill{animation:fadein .45s ease both}
#w[data-s="3"] .w-built>:nth-child(2){animation-delay:.2s}#w[data-s="3"] .w-built>:nth-child(3){animation-delay:.4s}#w[data-s="3"] .w-built>:nth-child(4){animation:pop .5s cubic-bezier(.2,1.4,.4,1) .7s both}#w[data-s="3"] .w-built>:nth-child(5){animation-delay:.9s}#w[data-s="3"] .w-built>:nth-child(6){animation-delay:1.1s}#w[data-s="3"] .w-built>:nth-child(7){animation-delay:1.25s}#w[data-s="3"] .w-built>:nth-child(8){animation-delay:1.4s}
.w-pop{transform-box:view-box}
#w[data-s="3"] .w-phone{opacity:1;animation:wslide .7s cubic-bezier(.2,1.1,.4,1) 1.7s both}
@keyframes wslide{from{opacity:0;transform:translateX(120px)}to{opacity:1;transform:none}}
.w-arc{stroke-dasharray:100;stroke-dashoffset:66}
#w[data-s="4"] .w-arc{animation:warc 1.6s cubic-bezier(.3,0,.2,1) .3s forwards}
@keyframes warc{to{stroke-dashoffset:2}}
.w-needle{transform-box:view-box;transform:rotate(-28.8deg)}
#w[data-s="4"] .w-needle{animation:wneedle 1.6s cubic-bezier(.3,0,.2,1) .3s forwards}
@keyframes wneedle{from{transform:rotate(-28.8deg)}to{transform:rotate(86.4deg)}}
.w-check{opacity:0}
#w[data-s="4"] .w-check{animation:up .45s ease both}
#w[data-s="4"] .c1{animation-delay:.9s}#w[data-s="4"] .c2{animation-delay:1.3s}#w[data-s="4"] .c3{animation-delay:1.7s}#w[data-s="4"] .c4{animation-delay:2.1s}
.w-pub{transform-box:view-box}
#w[data-s="5"] .w-pub{animation:wpub 1.4s ease both}
@keyframes wpub{0%{opacity:0;transform:scale(.7)}20%{opacity:1;transform:none}70%{opacity:1;transform:scale(.94)}100%{opacity:0;transform:scale(1.6)}}
.w-wave{transform-box:fill-box;transform-origin:center;opacity:0}
#w[data-s="5"] .w-wave{animation:rip 1s ease-out .5s both}#w[data-s="5"] .w2{animation-delay:.8s}
.w-serp,.w-ai{opacity:0}
#w[data-s="5"] .w-serp{animation:up .5s ease 1.3s both}
#w[data-s="5"] .w-ai{animation:up .5s ease 1.8s both}
.w-cite{opacity:0;transform-box:fill-box;transform-origin:center}
#w[data-s="5"] .w-cite{animation:pop .5s cubic-bezier(.2,1.4,.4,1) 2.6s both}
.w-line{stroke-dasharray:100;stroke-dashoffset:100}
#w[data-s="6"] .w-line{animation:draw 2.4s cubic-bezier(.4,0,.2,1) .2s forwards}
.w-areaP{opacity:0}
#w[data-s="6"] .w-areaP{animation:fadein 1.2s ease 1.2s both}
.w-note{opacity:0}
#w[data-s="6"] .w-note{animation:wnote .5s cubic-bezier(.2,1.3,.4,1) both}
#w[data-s="6"] .n1{animation-delay:1.1s}#w[data-s="6"] .n2{animation-delay:1.9s}#w[data-s="6"] .n3{animation-delay:2.7s}
@keyframes wnote{from{opacity:0;transform:translateX(60px)}to{opacity:1;transform:none}}
#w[data-s="7"] .w-endt{animation:up .6s ease both}#w[data-s="7"] .w-e2{animation-delay:.2s}
#w[data-s="7"] .w-endsub{animation:up .6s ease .5s both}
.w-uline,.e-uline,.v-uline{stroke-dasharray:700;stroke-dashoffset:700}
#w[data-s="7"] .w-uline,#e[data-s="7"] .e-uline{animation:draw .8s ease .6s forwards}

/* ---------- 3 · AULAS LLENAS ---------- */
.e-room,.e-phone{opacity:0;transition:opacity .5s}
#e[data-s="1"] .e-room,#e[data-s="6"] .e-room{opacity:1}
#e[data-s="2"] .e-phone,#e[data-s="3"] .e-phone{opacity:1}
#e[data-s="2"] .e-phone{animation:up .6s ease both}
.e-desk rect{transition:fill .3s}
.e-stu{opacity:0;transform-box:fill-box;transform-origin:center bottom}
#e[data-s="6"] .e-desk rect{animation:edesk .3s ease both}
#e[data-s="6"] .e-stu{animation:pop .35s cubic-bezier(.2,1.5,.4,1) both}
@keyframes edesk{to{fill:#A0C541}}
.e-full{opacity:0;transform-box:view-box}
#e[data-s="6"] .e-full{animation:pop .5s cubic-bezier(.2,1.6,.4,1) 3.3s both}
.e-dot{opacity:0}
#e[data-s="2"] .e-dot{animation:dotin .12s ease both}
#e[data-s="2"] .e-pill{animation:eflash .4s ease 1.6s both}
@keyframes eflash{50%{stroke:#A0C541;stroke-width:6}}
.e-tag{opacity:0}
#e[data-s="2"] .e-tag{animation:etag .6s cubic-bezier(.2,1.3,.4,1) both, efloat 2.4s ease-in-out .6s infinite alternate}
#e[data-s="2"] .t1{animation-delay:.6s,1.2s}#e[data-s="2"] .t2{animation-delay:.9s,1.5s}#e[data-s="2"] .t3{animation-delay:1.2s,1.8s}#e[data-s="2"] .t4{animation-delay:1.5s,2.1s}
@keyframes etag{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
@keyframes efloat{from{transform:translateY(0)}to{transform:translateY(-12px)}}
.e-tag{transform-box:fill-box;transform-origin:center}
.e-pin{transform-box:view-box;opacity:0}
#e[data-s="3"] .e-pin{animation:epin .7s cubic-bezier(.3,1.6,.5,1) .4s both}
@keyframes epin{from{opacity:0;transform:translateY(-160px)}to{opacity:1;transform:none}}
.e-ping{transform-box:fill-box;transform-origin:center;opacity:0}
#e[data-s="3"] .e-ping{animation:rip 1.2s ease-out 1s infinite}
.e-card{opacity:0}
#e[data-s="3"] .e-card{animation:up .5s ease 1.3s both}
.e-ticket{opacity:0}
#e[data-s="4"] .e-ticket{animation:pop .6s cubic-bezier(.2,1.3,.4,1) both}
.e-cur{opacity:0}
#e[data-s="4"] .e-cur{animation:ecur 1.3s cubic-bezier(.5,0,.3,1) .5s both}
@keyframes ecur{0%{opacity:0;transform:translate(320px,240px)}20%{opacity:1}100%{opacity:1;transform:none}}
.e-book{transform-box:view-box}
#e[data-s="4"] .e-book{animation:press .3s ease 1.8s both}
.e-done{opacity:0}
#e[data-s="4"] .e-done{animation:fadein .3s ease 2s both}
#e[data-s="4"] .e-cur{animation:ecur 1.3s cubic-bezier(.5,0,.3,1) .5s both,ehide .2s ease 2.1s forwards}
@keyframes ehide{to{opacity:0}}
.e-fam use{opacity:0}
#e[data-s="4"] .e-fam use{animation:up .5s ease both}
#e[data-s="4"] .f1{animation-delay:2.3s}#e[data-s="4"] .f2{animation-delay:2.45s}#e[data-s="4"] .f3{animation-delay:2.6s}#e[data-s="4"] .f4{animation-delay:2.75s}#e[data-s="4"] .f5{animation-delay:2.9s}
.e-form{opacity:0}
#e[data-s="5"] .e-form{animation:up .5s ease both}
.e-fd{opacity:0}
#e[data-s="5"] .e-fd{animation:dotin .1s ease both}
.e-send{transform-box:view-box}
#e[data-s="5"] .e-send{animation:press .3s ease 2.1s both}
.e-p{opacity:0}
#e[data-s="5"] .e-p{animation:edrop .4s ease both}
#e[data-s="5"] .p1{animation-delay:1s}#e[data-s="5"] .p2{animation-delay:1.4s}#e[data-s="5"] .p3{animation-delay:1.8s}
@keyframes edrop{from{opacity:0;transform:translateY(-60px)}to{opacity:1;transform:none}}
#e[data-s="7"] .e-endt{animation:up .6s ease both}#e[data-s="7"] .e-e2{animation-delay:.2s}
#e[data-s="7"] .e-endsub{animation:up .6s ease .5s both}
@media (prefers-reduced-motion:reduce){.st *{animation:none!important;transition:none!important}.w-uline,.e-uline,.uline{stroke-dashoffset:0!important}}

/* ---------- 4 · DE LA IDEA A LA MARCA ---------- */
.b-book{opacity:0;transition:opacity .5s}
#b[data-s="1"] .b-book,#b[data-s="2"] .b-book{opacity:1}
.b-draw,.b-sk path,.b-sk circle,.b-sk rect,.b-pick{stroke-dasharray:100;stroke-dashoffset:100}
#b[data-s="1"] .b-draw{animation:draw 1.4s ease .2s forwards}
#b[data-s="1"] .d2{animation-delay:1.2s}
#b[data-s="1"] .d3{animation-delay:1.6s}
.b-spark{opacity:0}
#b[data-s="1"] .b-spark{animation:fadein .5s ease 2.1s both}
.b-pencil{transform-box:view-box}
#b[data-s="1"] .b-pencil{animation:bpen 2.2s ease-in-out both}
@keyframes bpen{0%{transform:translate(-240px,-200px)}35%{transform:translate(-150px,-60px)}70%{transform:translate(-60px,-110px)}100%{transform:none}}
#b[data-s="2"] .s1 *{animation:draw 1s ease .1s forwards}
#b[data-s="2"] .s2 *{animation:draw 1s ease .5s forwards}
#b[data-s="2"] .s3 *{animation:draw 1s ease .9s forwards}
.b-notes,.b-ok{opacity:0}
#b[data-s="2"] .b-notes{animation:fadein .5s ease 1.5s both}
#b[data-s="2"] .b-pick{animation:draw .9s ease 2s forwards}
#b[data-s="2"] .b-ok{animation:up .45s ease 2.6s both}
.b-guides{opacity:0}
#b[data-s="3"] .b-guides{animation:fadein .6s ease both}
.b-logo,.b-word{opacity:0;transform-box:fill-box;transform-origin:center}
#b[data-s="3"] .b-logo{animation:pop .6s cubic-bezier(.2,1.4,.4,1) .7s both}
#b[data-s="3"] .b-word{animation:up .6s ease 1.4s both}
.b-sw,.b-type{opacity:0}
#b[data-s="4"] .b-sw{animation:up .45s ease both}
#b[data-s="4"] .w1{animation-delay:.2s}
#b[data-s="4"] .w2{animation-delay:.4s}
#b[data-s="4"] .w3{animation-delay:.6s}
#b[data-s="4"] .w4{animation-delay:.8s}
#b[data-s="4"] .b-type{animation:up .6s ease 1.3s both}
.b-app{opacity:0}
#b[data-s="5"] .b-app{animation:up .55s cubic-bezier(.2,1.1,.4,1) both}
#b[data-s="5"] .a1{animation-delay:.2s}
#b[data-s="5"] .a2{animation-delay:.7s}
#b[data-s="5"] .a3{animation-delay:1.2s}
#b[data-s="5"] .a4{animation-delay:1.7s}
.b-per{fill:#2C6BA8;transition:fill .4s}
#b[data-s="6"] .b-per{animation:bper .4s ease both}
@keyframes bper{to{fill:#A0C541}}
.b-bub{opacity:0;transform-box:fill-box;transform-origin:10% 100%}
#b[data-s="6"] .b-bub{animation:pop .5s cubic-bezier(.2,1.4,.4,1) 2.4s both}
#b[data-s="7"] .b-endt{animation:up .6s ease both}
#b[data-s="7"] .b-e2{animation-delay:.2s}
#b[data-s="7"] .b-endsub{animation:up .6s ease .5s both}
.b-uline{stroke-dasharray:700;stroke-dashoffset:700}
#b[data-s="7"] .b-uline{animation:draw .8s ease .6s forwards}
