/* Chemical EXS v2.9.94 · chatbot, menú móvil, capas y movimiento */

/* Etiquetas de orientación por contexto */
.page-store .cx-next-action::after{
  content:"Listo para buscar" !important;
}
.page-service .cx-field-current::after{
  content:"Llena aquí tu orden" !important;
}

/* Chatbot: clic estable y ventana realmente visible al abrir */
.cx-chat-v2993{
  pointer-events:auto !important;
}
.cx-chat-v2993 .cx-chat-launcher,
.cx-chat-v2993 .cx-chat-window{
  pointer-events:auto;
}
.cx-chat-v2993 .cx-chat-launcher{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.cx-chat-v2993.is-open .cx-chat-window:not([hidden]){
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
}
html.cx-chat-open,
html.cx-chat-open body{
  overscroll-behavior:none;
}

/* Tienda: el encabezado y el barrido quedan delante de las tarjetas */
.page-store .store-gallery-2935{
  isolation:isolate;
}
.page-store .store-gallery-2935 > header{
  position:relative;
  z-index:9 !important;
  padding:12px 14px 15px;
  border-radius:18px 18px 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(247,252,255,.8));
  backdrop-filter:blur(12px);
}
.page-store .store-gallery-cards{
  position:relative;
  z-index:4 !important;
}
.page-store .store-gallery-scan{
  z-index:7 !important;
  pointer-events:none;
  opacity:.72;
  mix-blend-mode:screen;
}
.page-store .store-gallery-2935 > footer{
  position:relative;
  z-index:8 !important;
}

/* Soporte remoto: encabezado más compacto y centrado */
.page-remote .remote-hero-art,
.page-invoice .feature-hero-art{
  display:grid;
  place-items:center;
  min-width:0;
}
.page-remote .remote-workspace-2935,
.page-invoice .invoice-checkout-2935{
  width:min(100%,620px);
  margin-inline:auto;
  transform-origin:center;
}
.page-remote .remote-workspace-2935 > header{
  justify-content:center !important;
  flex-wrap:wrap;
  text-align:center;
}
.page-remote .remote-workspace-2935 > header span{
  justify-content:center;
  font-size:9px !important;
  letter-spacing:.08em !important;
}
.page-remote .remote-workspace-2935 > header b{
  font-size:12px !important;
}

/* Timbrado Be: centrado y con más movimiento */
.page-invoice .invoice-checkout-2935{
  animation:cxInvoiceFloat 5.8s ease-in-out infinite;
}
.page-invoice .invoice-checkout-2935 > header{
  justify-content:center !important;
  flex-wrap:wrap;
  text-align:center;
}
.page-invoice .invoice-checkout-2935 > header span,
.page-invoice .invoice-checkout-2935 > header b{
  position:relative;
  z-index:2;
}
.page-invoice .invoice-checkout-2935::after{
  content:"";
  position:absolute;
  inset:-30% auto auto -35%;
  width:44%;
  height:170%;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent);
  transform:rotate(18deg);
  animation:cxInvoiceShine 5.2s ease-in-out infinite;
}
.page-invoice .invoice-checkout-grid li{
  animation:cxInvoiceStep 3.8s ease-in-out infinite;
}
.page-invoice .invoice-checkout-grid li:nth-child(2){animation-delay:.24s}
.page-invoice .invoice-checkout-grid li:nth-child(3){animation-delay:.48s}
.page-invoice .invoice-checkout-grid li:nth-child(4){animation-delay:.72s}
.page-invoice .invoice-sheet-2935{
  animation:cxInvoicePaper 4.6s ease-in-out infinite !important;
}

@keyframes cxInvoiceFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-7px)}
}
@keyframes cxInvoiceShine{
  0%,25%{transform:translateX(-130%) rotate(18deg);opacity:0}
  45%{opacity:.85}
  70%,100%{transform:translateX(430%) rotate(18deg);opacity:0}
}
@keyframes cxInvoiceStep{
  0%,100%{transform:translateX(0)}
  50%{transform:translateX(4px)}
}
@keyframes cxInvoicePaper{
  0%,100%{transform:translateY(0) rotate(-.5deg)}
  50%{transform:translateY(-8px) rotate(.8deg)}
}

/* Entrada de página y revelado al desplazarse */
.public-page.cx-motion-enabled main{
  opacity:0;
  transform:translateY(10px);
}
.public-page.cx-motion-enabled.cx-page-ready main{
  opacity:1;
  transform:none;
  transition:opacity .42s ease,transform .5s cubic-bezier(.2,.8,.2,1);
}
.public-page.cx-motion-enabled.cx-page-leaving main{
  opacity:0;
  transform:translateY(8px) scale(.995);
  transition:opacity .16s ease,transform .16s ease;
}
.public-page.cx-motion-enabled .cx-scroll-reveal{
  opacity:0;
  transform:translateY(28px) scale(.985);
  filter:saturate(.92);
  transition:opacity .68s ease,transform .72s cubic-bezier(.2,.8,.2,1),filter .68s ease;
  transition-delay:var(--cx-reveal-delay,0ms);
}
.public-page.cx-motion-enabled .cx-scroll-reveal.is-visible{
  opacity:1;
  transform:none;
  filter:none;
}
.public-page.cx-motion-enabled .feature-hero-art,
.public-page.cx-motion-enabled .remote-hero-art,
.public-page.cx-motion-enabled .store-hero-art,
.public-page.cx-motion-enabled .service-hero-art{
  transition:transform .4s ease;
}

@media(max-width:760px){
  .page-store .store-gallery-2935 > header{
    padding:10px 11px 13px !important;
  }
  .page-remote .remote-workspace-2935,
  .page-invoice .invoice-checkout-2935{
    width:100% !important;
    margin-inline:auto !important;
  }
  .page-remote .remote-workspace-2935 > header,
  .page-invoice .invoice-checkout-2935 > header{
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
  }
  .page-remote .remote-workspace-2935 > header span,
  .page-invoice .invoice-checkout-2935 > header span{
    width:100%;
    justify-content:center;
    text-align:center;
  }
  .page-remote .remote-workspace-2935 > header b,
  .page-invoice .invoice-checkout-2935 > header b{
    width:100%;
    text-align:center;
  }
  .page-remote .remote-workspace-2935 > header span{font-size:8px !important}
  .page-remote .remote-workspace-2935 > header b{font-size:11px !important}
}

@media(prefers-reduced-motion:reduce){
  .page-invoice .invoice-checkout-2935,
  .page-invoice .invoice-checkout-2935::after,
  .page-invoice .invoice-checkout-grid li,
  .page-invoice .invoice-sheet-2935{
    animation:none !important;
  }
  .public-page.cx-motion-enabled main,
  .public-page.cx-motion-enabled .cx-scroll-reveal{
    opacity:1 !important;
    transform:none !important;
    filter:none !important;
    transition:none !important;
  }
}

/* v2.9.97: el botón y la ventana siempre reciben interacción */
.cx-chat-v2993[data-chat-ready="1"]{pointer-events:auto!important}
.cx-chat-v2993[data-chat-ready="1"] [data-chat-toggle],
.cx-chat-v2993[data-chat-ready="1"] [data-chat-window],
.cx-chat-v2993[data-chat-ready="1"] [data-chat-close],
.cx-chat-v2993[data-chat-ready="1"] [data-chat-home]{pointer-events:auto!important}
.cx-chat-v2993[data-chat-opened="1"] [data-chat-window]{display:grid!important;visibility:visible!important;opacity:1!important}
