/* vivo 2026: microinteracciones comunes para las páginas de servicio, casos y sectores */
#vivo-bar{position:fixed;left:0;top:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:#004833;z-index:1000;pointer-events:none}

/* títulos: aparecen y se dibuja una raya corta */
.e26 .vtw h2,.e26 .vivo-h{position:relative}
.e26 .vtw h2::after{content:"";display:block;width:0;height:3px;border-radius:2px;background:#004833;margin-top:18px;transition:width .9s cubic-bezier(.2,.7,.2,1) .15s}
.e26 .vtw.vivo-on h2::after{width:44px}
@media (min-width:861px){.m26 .vtw>h2{position:sticky;top:104px}}

/* entrada escalonada de listas y pasos */
.e26 .vivo-st>*{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--k,0)*70ms)}
.e26 .vivo-on .vivo-st>*,.e26 .vivo-st.vivo-on>*{opacity:1;transform:none}

/* listas con check: al pasar el ratón */
.m26 .vlist li{transition:background .25s,padding-left .25s}
.m26 .vlist li:before{transition:transform .3s cubic-bezier(.2,.8,.2,1),background .3s}
.m26 .vlist li:hover{background:rgba(223,233,236,.45)!important;padding-left:40px!important}
.m26 .vlist li:hover:before{transform:scale(1.15) rotate(-8deg)}

/* listas numeradas sueltas dentro del texto: línea de tiempo */
.m26 .vc>ol:not([class]){list-style:none;counter-reset:vo;padding:0;margin:0 0 22px;position:relative}
.m26 .vc>ol:not([class])::before{content:"";position:absolute;left:15px;top:8px;bottom:8px;width:1px;background:rgba(0,72,51,.18)}
.m26 .vc>ol:not([class])>li{counter-increment:vo;position:relative;padding:4px 0 18px 50px;margin:0}
.m26 .vc>ol:not([class])>li::before{content:counter(vo);position:absolute;left:0;top:0;width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#004833;font:600 13px "DM Sans",system-ui,sans-serif;box-shadow:inset 0 0 0 1.5px rgba(0,72,51,.35);transition:background .35s,color .35s,box-shadow .35s;transition-delay:calc(var(--k,0)*120ms + .2s)}
.m26 .vivo-on .vc>ol:not([class])>li::before{background:#004833;color:#fff;box-shadow:none}

/* tres formas: al pasar el ratón */
.e26 .opx>div{transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,background .3s}
.e26 .opx>div:hover{transform:translateX(4px)}
.e26 .opx>div.rec{background:#fff;box-shadow:0 18px 40px -30px rgba(0,72,51,.55);animation:vivo-rec 3.2s ease-in-out infinite}
@keyframes vivo-rec{50%{box-shadow:0 18px 40px -26px rgba(0,72,51,.75),0 0 0 4px rgba(223,233,236,.9)}}

/* preguntas: se abren suaves */
.e26 details{interpolate-size:allow-keywords}
.e26 details::details-content{height:0;overflow:clip;transition:height .35s cubic-bezier(.2,.7,.2,1),content-visibility .35s allow-discrete}
.e26 details[open]::details-content{height:auto}
.e26 .vfaq summary{transition:color .2s}
.e26 .vfaq summary:hover{color:#004833}
.e26 .vfaq summary:after{transition:transform .35s cubic-bezier(.2,.8,.2,1),background .25s,color .25s!important}
.e26 .vfaq details[open] summary:after{background:#004833;color:#fff}

/* botones y enlaces */
.e26 .vbtn{transition:transform .2s,box-shadow .25s,background .2s,color .2s}
.e26 .vbtn:hover{transform:translateY(-2px);box-shadow:0 12px 24px -16px rgba(0,40,30,.55)}
.e26 .vbtn:active{transform:translateY(0) scale(.98)}
.m26 .vc p a,.m26 .vc li a,.m26 .vfaq a{text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/100% 1px no-repeat;transition:background-size .35s cubic-bezier(.2,.7,.2,1)}
.m26 .vc p a:hover,.m26 .vc li a:hover,.m26 .vfaq a:hover{background-size:0 1px;background-position:100% 100%}

/* visual de la cabecera: se inclina un poco con el ratón */
.e26 .vis{transition:transform .5s cubic-bezier(.2,.7,.2,1);transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));will-change:transform}
.e26 .vchip{animation:vivo-flota 5s ease-in-out infinite}
@keyframes vivo-flota{50%{transform:translateY(-6px)}}

/* imágenes que se pueden ampliar */
.e26 img.vivo-zoom{cursor:zoom-in;transition:transform .5s cubic-bezier(.2,.7,.2,1),box-shadow .4s}
.e26 img.vivo-zoom:hover{transform:translateY(-3px);box-shadow:0 20px 40px -26px rgba(0,30,20,.55)}
#vivo-lb{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:4vmin;background:rgba(6,14,11,.82);backdrop-filter:blur(6px);opacity:0;pointer-events:none;transition:opacity .3s}
#vivo-lb.on{opacity:1;pointer-events:auto;cursor:zoom-out}
#vivo-lb img{max-width:min(1200px,100%);max-height:88vh;border-radius:12px;box-shadow:0 40px 80px rgba(0,0,0,.45);transform:scale(.94);transition:transform .4s cubic-bezier(.2,.8,.2,1)}
#vivo-lb.on img{transform:none}
#vivo-lb button{position:absolute;top:18px;right:18px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#111;font-size:22px;cursor:pointer}

/* cifras que cuentan */
.e26 .vivo-n{font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion:reduce){
 .e26 .vivo-st>*{opacity:1;transform:none;transition:none}
 .e26 .vtw h2::after{transition:none;width:44px}
 .e26 .opx>div.rec,.e26 .vchip{animation:none}
 .e26 .vis{transform:none}
 #vivo-bar{display:none}
}
