/* Eco Vídeos de Categoría · estética ecoimpresion.es
   Todo va con #eco-vc / #eco-vc-modal y !important en medidas y botones,
   para que el tema y Elementor no puedan cambiar tamaños ni estilos. */
#eco-vc{--vc-blue:#5283CF;--vc-ink:#3D5FA6;--vc-navy:#1E2F5C;--vc-pink:#F1A8D3;--vc-pink-ink:#A3367A;
  position:fixed!important;right:20px!important;left:auto!important;top:auto!important;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:9970!important;
  width:auto!important;max-width:calc(100vw - 24px)!important;height:auto!important;margin:0!important;padding:0!important;
  display:flex!important;align-items:flex-end!important;gap:12px;font-family:inherit;background:none!important;border:0!important;
  opacity:0;transform:translateY(24px) scale(.96);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.8,.2,1),bottom .35s ease}
#eco-vc[hidden],#eco-vc-modal[hidden]{display:none!important}
#eco-vc.is-in{opacity:1;transform:none}
#eco-vc *,#eco-vc-modal *{box-sizing:border-box}

/* Mensaje */
#eco-vc .eco-vc__bubble{cursor:pointer;display:grid!important;gap:3px;width:auto!important;max-width:230px!important;margin:0 0 18px!important;padding:10px 14px!important;
  background:#fff!important;border:1px solid #E6ECF7!important;border-left:4px solid var(--vc-pink)!important;border-radius:14px!important;
  box-shadow:0 10px 28px rgba(82,132,202,.28)!important;text-align:left!important;transition:opacity .3s,transform .3s}
#eco-vc .eco-vc__bubble b{display:block;font-size:14px!important;line-height:1.25!important;font-weight:700!important;color:var(--vc-ink)!important;text-transform:none!important;letter-spacing:normal!important}
#eco-vc .eco-vc__bubble span{display:block;font-size:13px!important;line-height:1.25!important;font-weight:600!important;color:var(--vc-pink-ink)!important}
#eco-vc.no-bubble .eco-vc__bubble{opacity:0;transform:translateX(10px);pointer-events:none}

/* Miniatura */
#eco-vc .eco-vc__thumb{position:relative!important;display:block!important;flex:none!important;cursor:pointer;
  width:104px!important;height:185px!important;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;overflow:hidden!important;border-radius:14px!important;border:3px solid #fff!important;background:#DCE6F7!important;
  box-shadow:0 12px 30px rgba(82,132,202,.45)!important;opacity:.85;transition:opacity .2s,transform .2s,box-shadow .2s}
#eco-vc .eco-vc__thumb video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:cover!important;display:block!important;pointer-events:none}
#eco-vc .eco-vc__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(82,132,202,0) 30%,rgba(30,47,92,.85) 100%);opacity:0;transition:opacity .2s}
#eco-vc .eco-vc__play{position:absolute;left:50%;top:44%;width:42px;height:42px;margin:-21px 0 0 -21px;border-radius:50%;background:#fff;color:var(--vc-blue);
  display:grid;place-items:center;box-shadow:0 6px 16px rgba(30,47,92,.35);opacity:0;transform:scale(.8);transition:opacity .2s,transform .2s}
#eco-vc .eco-vc__play svg{margin-left:3px;width:22px;height:22px}
#eco-vc .eco-vc__label{position:absolute;left:50%;bottom:9px;transform:translateX(-50%);white-space:nowrap;background:var(--vc-pink);color:var(--vc-navy);
  font-size:12px;font-weight:700;line-height:1;padding:6px 10px;border-radius:999px;opacity:0;transition:opacity .2s}
#eco-vc .eco-vc__thumb:hover,#eco-vc .eco-vc__thumb:focus-visible{opacity:1;transform:translateY(-2px);box-shadow:0 16px 36px rgba(82,132,202,.55)!important}
#eco-vc .eco-vc__thumb:hover .eco-vc__shade,#eco-vc .eco-vc__thumb:focus-visible .eco-vc__shade,
#eco-vc .eco-vc__thumb:hover .eco-vc__play,#eco-vc .eco-vc__thumb:focus-visible .eco-vc__play,
#eco-vc .eco-vc__thumb:hover .eco-vc__label,#eco-vc .eco-vc__thumb:focus-visible .eco-vc__label{opacity:1}
#eco-vc .eco-vc__thumb:hover .eco-vc__play,#eco-vc .eco-vc__thumb:focus-visible .eco-vc__play{transform:none}
#eco-vc .eco-vc__thumb:focus-visible{outline:3px solid var(--vc-blue);outline-offset:3px}
@media (hover:none){#eco-vc .eco-vc__thumb{opacity:1}#eco-vc .eco-vc__shade,#eco-vc .eco-vc__play,#eco-vc .eco-vc__label{opacity:1}#eco-vc .eco-vc__play{transform:none}}

/* Botones de cerrar: anulamos los estilos de botón del tema */
#eco-vc .eco-vc__x,#eco-vc-modal .eco-vc-modal__x{appearance:none!important;-webkit-appearance:none!important;display:grid!important;place-items:center!important;
  min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;
  background:#5283CF!important;color:#fff!important;font-family:inherit!important;font-weight:400!important;text-transform:none!important;letter-spacing:0!important;
  line-height:1!important;cursor:pointer;box-shadow:0 4px 10px rgba(30,47,92,.3)!important;text-decoration:none!important}
#eco-vc .eco-vc__x{position:absolute!important;right:-8px!important;top:-10px!important;left:auto!important;width:26px!important;height:26px!important;font-size:17px!important;z-index:2}
#eco-vc .eco-vc__x:hover,#eco-vc-modal .eco-vc-modal__x:hover{background:#3D5FA6!important}
#eco-vc .eco-vc__x:focus-visible,#eco-vc-modal .eco-vc-modal__x:focus-visible{outline:3px solid #F1A8D3!important;outline-offset:2px}

/* Ampliado */
#eco-vc-modal{position:fixed!important;inset:0!important;z-index:99990!important;display:grid!important;place-items:center!important;padding:20px!important;margin:0!important;font-family:inherit}
#eco-vc-modal .eco-vc-modal__bg{position:absolute;inset:0;background:rgba(30,47,92,.82);opacity:0;transition:opacity .25s}
#eco-vc-modal .eco-vc-modal__box{position:relative;width:min(360px,calc(100vw - 40px))!important;max-width:none!important;display:grid;gap:12px;justify-items:center;transform:scale(.92);opacity:0;transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .25s}
#eco-vc-modal.is-open .eco-vc-modal__bg{opacity:1}
#eco-vc-modal.is-open .eco-vc-modal__box{transform:none;opacity:1}
#eco-vc-modal video{width:100%!important;height:auto!important;max-width:100%!important;max-height:calc(100vh - 140px)!important;aspect-ratio:9/16;object-fit:cover!important;
  background:#000!important;border-radius:18px!important;border:3px solid #fff!important;box-shadow:0 24px 64px rgba(0,0,0,.45)!important;display:block!important;margin:0!important;padding:0!important}
#eco-vc-modal .eco-vc-modal__x{position:absolute!important;top:-14px!important;right:-14px!important;width:40px!important;height:40px!important;font-size:24px!important;z-index:2}
#eco-vc-modal .eco-vc-modal__t{margin:0!important;color:#fff!important;font-weight:700!important;font-size:16px!important;text-align:center!important}

/* Convive con la barra de newsletter: se sube por encima */
body.eco-nl-on #eco-vc{bottom:calc(var(--eco-nl-h,0px) + 6px)}
html.eco-vc-lock{overflow:hidden}

@media (max-width:640px){
  #eco-vc{right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px));gap:8px}
  #eco-vc .eco-vc__thumb{width:82px!important;height:146px!important;border-radius:12px!important}
  #eco-vc .eco-vc__bubble{max-width:170px!important;padding:8px 11px!important;margin-bottom:12px!important}
  #eco-vc .eco-vc__bubble b{font-size:13px!important}
  #eco-vc .eco-vc__bubble span{font-size:12px!important}
  #eco-vc .eco-vc__play{width:34px;height:34px;margin:-17px 0 0 -17px}
  #eco-vc .eco-vc__label{font-size:11px;padding:5px 8px;bottom:7px}
  #eco-vc-modal .eco-vc-modal__x{top:-12px!important;right:-6px!important}
}
@media (prefers-reduced-motion:reduce){#eco-vc,#eco-vc *,#eco-vc-modal *{transition:none!important}}
