/* ===== Unio Core: componentes visuales (ucx) ===== */
.ucx,.ucx *{box-sizing:border-box}
.ucx{--c:#00c2cb;--c2:#4fe3e9;--ink:#0a2540;--txt:rgba(255,255,255,.78);font-family:Montserrat,sans-serif;color:#fff;width:100%}
.ucx svg{display:block}
/* aparición al hacer scroll */
html.ucx-js .ucx-r{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
html.ucx-js .ucx-r.is-in{opacity:1;transform:none}
/* tarjetas con icono */
.ucx-grid{display:grid;gap:22px;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr))}
@media(max-width:1024px){.ucx-grid{grid-template-columns:repeat(var(--colst,2),minmax(0,1fr))}}
@media(max-width:767px){.ucx-grid{grid-template-columns:1fr;gap:16px}}
.ucx-card{position:relative;padding:28px 24px 26px;border-radius:22px;background:linear-gradient(160deg,rgba(0,194,203,.13),rgba(255,255,255,.025) 60%);border:1px solid rgba(0,194,203,.22);transition:transform .35s,box-shadow .35s,border-color .35s;overflow:hidden;height:100%}
.ucx-card::before{content:"";position:absolute;width:180px;height:180px;right:-70px;top:-70px;border-radius:50%;background:radial-gradient(circle,rgba(0,194,203,.28),transparent 70%);opacity:.6;transition:opacity .35s,transform .6s}
.ucx-card:hover{transform:translateY(-6px);border-color:rgba(0,194,203,.65);box-shadow:0 22px 50px rgba(0,0,0,.35),0 0 30px rgba(0,194,203,.15)}
.ucx-card:hover::before{opacity:1;transform:scale(1.25)}
.ucx-ico{position:relative;width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,var(--c),#0b7e93);color:var(--ink);margin-bottom:18px;box-shadow:0 8px 24px rgba(0,194,203,.35)}
.ucx-ico svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ucx-card h3{position:relative;font-family:Montserrat,sans-serif;font-size:19px;line-height:1.3;font-weight:700;color:#fff;margin:0 0 8px}
.ucx-card p{position:relative;font-size:15px;line-height:1.6;color:var(--txt);margin:0}
.ucx-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--c);margin-bottom:8px}
@media(max-width:767px){.ucx-card{padding:22px 20px;text-align:left}.ucx-card h3{font-size:17px}.ucx-card p{font-size:14.5px}.ucx-ico{width:48px;height:48px;border-radius:14px;margin-bottom:14px}.ucx-ico svg{width:24px;height:24px}}
/* pasos */
.ucx-steps{display:grid;gap:22px;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));counter-reset:s;position:relative}
.ucx-steps::before{content:"";position:absolute;left:8%;right:8%;top:44px;height:2px;background:linear-gradient(90deg,transparent,rgba(0,194,203,.6),transparent)}
.ucx-step{position:relative;text-align:center;padding:0 10px}
.ucx-step b{display:grid;place-items:center;width:88px;height:88px;margin:0 auto 18px;border-radius:50%;font-size:34px;font-weight:800;color:var(--ink);background:radial-gradient(circle at 30% 30%,var(--c2),var(--c));box-shadow:0 0 0 8px rgba(0,194,203,.12),0 0 40px rgba(0,194,203,.45);position:relative}
.ucx-step h3{font-size:18px;font-weight:700;margin:0 0 8px;color:#fff}
.ucx-step p{font-size:15px;line-height:1.6;color:var(--txt);margin:0}
@media(max-width:1024px){.ucx-steps{grid-template-columns:repeat(var(--colst,2),minmax(0,1fr))}.ucx-steps::before{display:none}}
@media(max-width:767px){.ucx-steps{grid-template-columns:1fr;gap:28px}.ucx-step b{width:72px;height:72px;font-size:28px}}
/* marco de dispositivo y animación flotante */
@keyframes ucxFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes ucxPulse{0%{box-shadow:0 0 0 0 rgba(0,194,203,.6)}100%{box-shadow:0 0 0 12px rgba(0,194,203,0)}}
@keyframes ucxDot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@keyframes ucxWave{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
.ucx-stage{position:relative;padding:30px 10px;max-width:520px;margin:0 auto}
.ucx-stage::before{content:"";position:absolute;inset:8% 6%;border-radius:50%;background:radial-gradient(circle,rgba(0,194,203,.28),transparent 65%);filter:blur(10px);z-index:0}
.ucx-float{position:absolute;z-index:3;display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;background:rgba(9,30,52,.92);border:1px solid rgba(0,194,203,.4);box-shadow:0 14px 34px rgba(0,0,0,.4);font-size:12.5px;line-height:1.35;color:#fff;animation:ucxFloat 5s ease-in-out infinite;backdrop-filter:blur(6px)}
.ucx-float small{display:block;color:var(--txt);font-size:11.5px}
.ucx-float .ucx-ico{width:34px;height:34px;border-radius:10px;margin:0;box-shadow:none;flex:none}
.ucx-float .ucx-ico svg{width:18px;height:18px}
@media(max-width:767px){.ucx-float{position:relative;inset:auto!important;margin:10px auto 0;max-width:300px;animation:none}}
/* chat en móvil */
.ucx-phone{position:relative;z-index:2;width:min(350px,100%);margin:0 auto;background:#07192c;border:1px solid rgba(0,194,203,.4);border-radius:34px;padding:12px;box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 70px rgba(0,194,203,.2)}
.ucx-phone-head{display:flex;gap:10px;align-items:center;padding:8px 8px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
.ucx-av{width:40px;height:40px;border-radius:50%;flex:none;display:grid;place-items:center;background:linear-gradient(135deg,var(--c),#0b7e93);color:var(--ink);font-weight:800;font-size:13px}
.ucx-phone-head b{display:block;font-size:14px}
.ucx-phone-head small{font-size:11.5px;color:#7ef0c2}
.ucx-msgs{display:flex;flex-direction:column;gap:9px;padding:14px 6px 8px;min-height:360px}
.ucx-m{max-width:84%;padding:10px 13px;border-radius:16px;font-size:13.5px;line-height:1.45;opacity:0;transform:translateY(10px) scale(.97);transition:opacity .45s,transform .45s}
.ucx-m.in{opacity:1;transform:none}
.ucx-m.u{align-self:flex-end;background:var(--c);color:var(--ink);border-bottom-right-radius:5px;font-weight:500}
.ucx-m.b{align-self:flex-start;background:rgba(255,255,255,.09);color:#fff;border-bottom-left-radius:5px}
.ucx-m small{display:block;font-size:10.5px;opacity:.6;margin-top:3px;text-align:right}
.ucx-typing{align-self:flex-start;display:none;gap:4px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.09)}
.ucx-typing.on{display:flex}
.ucx-typing i{width:7px;height:7px;border-radius:50%;background:#fff;animation:ucxDot 1.2s infinite}
.ucx-typing i:nth-child(2){animation-delay:.15s}.ucx-typing i:nth-child(3){animation-delay:.3s}
.ucx-phone-input{display:flex;align-items:center;gap:8px;margin:4px 4px 2px;padding:10px 14px;border-radius:22px;background:rgba(255,255,255,.06);font-size:12.5px;color:rgba(255,255,255,.45)}
.ucx-phone-input span{margin-left:auto;width:28px;height:28px;border-radius:50%;background:var(--c)}
/* panel (dashboard) */
.ucx-panel{position:relative;z-index:2;background:linear-gradient(170deg,#0c2d4b,#07192c);border:1px solid rgba(0,194,203,.35);border-radius:24px;padding:20px;box-shadow:0 30px 80px rgba(0,0,0,.5),0 0 60px rgba(0,194,203,.16)}
.ucx-panel-head{display:flex;align-items:center;gap:10px;margin-bottom:14px;font-weight:700;font-size:15px}
.ucx-live{width:10px;height:10px;border-radius:50%;background:#2ee6a6;animation:ucxPulse 1.6s infinite}
.ucx-panel-head em{margin-left:auto;font-style:normal;font-size:11px;font-weight:600;color:var(--c);padding:4px 10px;border-radius:20px;background:rgba(0,194,203,.12)}
.ucx-agent{display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);margin-bottom:9px}
.ucx-agent .ucx-ico{width:40px;height:40px;border-radius:12px;margin:0;flex:none;box-shadow:none}
.ucx-agent .ucx-ico svg{width:20px;height:20px}
.ucx-agent div{min-width:0;flex:1}
.ucx-agent b{display:block;font-size:13.5px}
.ucx-st{display:block;font-size:12px;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .3s}
.ucx-agent .ucx-n{font-size:18px;font-weight:800;color:var(--c)}
.ucx-wave{display:flex;align-items:center;gap:3px;height:22px}
.ucx-wave i{width:3px;height:100%;border-radius:2px;background:var(--c);animation:ucxWave 1s ease-in-out infinite;transform-origin:center}
.ucx-wave i:nth-child(2){animation-delay:.1s}.ucx-wave i:nth-child(3){animation-delay:.25s}.ucx-wave i:nth-child(4){animation-delay:.4s}.ucx-wave i:nth-child(5){animation-delay:.15s}.ucx-wave i:nth-child(6){animation-delay:.3s}
.ucx-approve{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px 14px;border-radius:16px;background:rgba(0,194,203,.1);border:1px dashed rgba(0,194,203,.5);font-size:13px}
.ucx-btn{margin-left:auto;padding:7px 14px;border-radius:20px;background:var(--c);color:var(--ink);font-weight:700;font-size:12px;animation:ucxPulse 1.8s infinite;white-space:nowrap}
/* bandeja de aprobación */
.ucx-item{display:flex;align-items:center;gap:12px;padding:13px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);margin-bottom:9px;transition:background .4s,border-color .4s}
.ucx-item div{flex:1;min-width:0}
.ucx-item b{display:block;font-size:13.5px}
.ucx-item small{display:block;font-size:11.5px;color:var(--txt)}
.ucx-state{font-size:11.5px;font-weight:700;padding:6px 11px;border-radius:20px;white-space:nowrap;background:rgba(255,200,87,.15);color:#ffc857}
.ucx-item.ok{background:rgba(46,230,166,.08);border-color:rgba(46,230,166,.35)}
.ucx-item.ok .ucx-state{background:rgba(46,230,166,.15);color:#2ee6a6}
/* llamada (agente de voz) */
.ucx-call-top{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.ucx-call-top .ucx-av{width:48px;height:48px;animation:ucxPulse 1.6s infinite}
.ucx-call-top b{display:block;font-size:15px}
.ucx-call-top small{font-size:12px;color:var(--txt)}
.ucx-timer{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:700;color:var(--c)}
.ucx-call .ucx-wave{height:40px;justify-content:center;margin:6px 0 14px}
.ucx-call .ucx-wave i{width:4px}
.ucx-line{font-size:13px;line-height:1.5;padding:9px 12px;border-radius:12px;margin-bottom:8px;background:rgba(255,255,255,.05);opacity:0;transform:translateY(8px);transition:opacity .5s,transform .5s}
.ucx-line.in{opacity:1;transform:none}
.ucx-line strong{color:var(--c)}
/* informe con nota */
.ucx-score{display:flex;align-items:center;gap:18px;margin-bottom:16px}
.ucx-gauge{position:relative;width:120px;height:120px;flex:none}
.ucx-gauge svg{width:120px;height:120px;transform:rotate(-90deg)}
.ucx-gauge circle{fill:none;stroke-width:10}
.ucx-gauge .bg{stroke:rgba(255,255,255,.08)}
.ucx-gauge .fg{stroke:url(#ucxg);stroke-linecap:round;stroke-dasharray:314;stroke-dashoffset:314;transition:stroke-dashoffset 2s cubic-bezier(.2,.7,.2,1)}
.ucx-gauge span{position:absolute;inset:0;display:grid;place-items:center;font-size:32px;font-weight:800}
.ucx-gauge span small{display:block;font-size:11px;font-weight:600;color:var(--txt);margin-top:-14px}
.ucx-score b{display:block;font-size:16px;margin-bottom:4px}
.ucx-score p{font-size:12.5px;color:var(--txt);margin:0;line-height:1.5}
.ucx-bar{margin-bottom:9px;font-size:12.5px}
.ucx-bar div{display:flex;justify-content:space-between;margin-bottom:4px}
.ucx-bar i{display:block;height:7px;border-radius:6px;background:rgba(255,255,255,.08);overflow:hidden}
.ucx-bar i u{display:block;height:100%;width:0;border-radius:6px;transition:width 1.6s cubic-bezier(.2,.7,.2,1);background:var(--c)}
.ucx-bar.lo i u{background:#ff8a4c}.ucx-bar.mid i u{background:#ffc857}
.ucx-tip{display:flex;gap:10px;align-items:flex-start;margin-top:14px;padding:12px;border-radius:14px;background:rgba(255,138,76,.1);border:1px solid rgba(255,138,76,.35);font-size:12.5px;line-height:1.45}
.ucx-tip strong{color:#ffb38c}
/* hojas de informe */
.ucx-pages{position:relative;max-width:400px;margin:0 auto;padding:20px 30px 30px}
.ucx-page{position:relative;z-index:2;background:#fff;color:#0a2540;border-radius:14px;padding:24px 22px;box-shadow:0 30px 70px rgba(0,0,0,.5);transform:rotate(-2deg);transition:transform .5s}
.ucx-pages:hover .ucx-page{transform:rotate(0)}
.ucx-pages::before,.ucx-pages::after{content:"";position:absolute;inset:26px 36px 24px 24px;background:#d9f6f7;border-radius:14px;transform:rotate(5deg);z-index:1}
.ucx-pages::after{background:#8ee6ea;transform:rotate(9deg);z-index:0}
.ucx-page h4{font-size:15px;margin:0 0 4px;color:#0a2540;font-family:Montserrat,sans-serif}
.ucx-page small{font-size:11px;color:#5a6b7d}
.ucx-page ol{margin:14px 0 0;padding:0;list-style:none;counter-reset:m}
.ucx-page li{counter-increment:m;display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.4;padding:8px 0;border-top:1px solid #e6eef3}
.ucx-page li::before{content:counter(m);flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800;background:#00c2cb;color:#0a2540}
.ucx-page .ucx-badge{position:absolute;top:18px;right:18px;font-weight:800;font-size:22px;color:#00a3ab}
/* red de asistentes */
.ucx-net{position:relative;z-index:2;max-width:460px;margin:0 auto}
.ucx-net svg{width:100%;height:auto;overflow:visible}
.ucx-net .ln{stroke:rgba(0,194,203,.55);stroke-width:2;stroke-dasharray:6 8;animation:ucxFlow 1.2s linear infinite}
@keyframes ucxFlow{to{stroke-dashoffset:-28}}
.ucx-net .nd circle{fill:#0c2d4b;stroke:#00c2cb;stroke-width:2}
.ucx-net .nd text{fill:#fff;font:600 13px Montserrat,sans-serif;text-anchor:middle}
.ucx-net .hub circle{fill:#00c2cb}
.ucx-net .hub text{fill:#0a2540;font:800 15px Montserrat,sans-serif;text-anchor:middle}
.ucx-net .nd{animation:ucxFloat 5s ease-in-out infinite}
.ucx-net .nd:nth-of-type(2n){animation-delay:-2.5s}
/* herramientas conectadas */
.ucx-tools{position:relative;z-index:2;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:440px;margin:0 auto;padding:10px}
.ucx-chip{display:flex;align-items:center;gap:8px;padding:11px 16px;border-radius:40px;background:rgba(9,30,52,.9);border:1px solid rgba(0,194,203,.35);font-size:13.5px;font-weight:600;animation:ucxFloat 6s ease-in-out infinite;box-shadow:0 10px 26px rgba(0,0,0,.3)}
.ucx-chip:nth-child(2n){animation-delay:-3s}.ucx-chip:nth-child(3n){animation-delay:-1.5s}
.ucx-chip .ucx-ico{width:28px;height:28px;border-radius:9px;margin:0;box-shadow:none}
.ucx-chip .ucx-ico svg{width:15px;height:15px}
.ucx-chip.core{width:100%;justify-content:center;padding:18px;font-size:16px;font-weight:800;background:linear-gradient(135deg,var(--c),#0b7e93);color:var(--ink);border:0;animation:none;border-radius:20px}
@media(max-width:767px){.ucx-stage{padding:10px 0}.ucx-msgs{min-height:330px}.ucx-panel{padding:16px}.ucx-score{flex-direction:column;text-align:center}}

@media(max-width:767px){.ucx-item{flex-wrap:wrap}.ucx-item div{flex-basis:calc(100% - 52px)}.ucx-item .ucx-state{margin-left:50px}.ucx-panel-head{flex-wrap:wrap}.ucx-panel-head em{margin-left:0}}
