/* ============================================================
   Buen Jale — Correcciones de rendimiento de scroll  v1
   Mismo aspecto visual; menos trabajo de pintado por frame.
   ============================================================ */

/* 1) background-attachment:fixed obliga a repintar el fondo en CADA frame de scroll */
.journal-one, .stats-one { background-attachment: scroll !important; }

/* 2) backdrop-filter: desenfoca lo que hay detrás en cada frame (carísimo sobre el robot 3D
      y sobre tarjetas que se mueven al hacer scroll). Se sustituye por un fondo algo más opaco. */
.service-card, .contact-panel, .hero-floating, .hero-kicker, .hero-mini-card,
.banner-one.banner-one-enhanced .banner-one_text,
.banner-one.banner-one-enhanced .banner-one_text-two,
.banner-one.banner-one-enhanced .down-box,
.case-pills span, .portfolio-card-media span, .sx-pills span, .sx-signal-node {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.hero-floating            { background: rgba(6,16,18,.72) !important; }
.hero-mini-card           { background: linear-gradient(180deg, rgba(14,26,28,.82), rgba(10,20,22,.82)) !important; }
.service-card             { background: linear-gradient(180deg, rgba(20,30,32,.86), rgba(14,22,24,.86)) !important; }
.contact-panel            { background: linear-gradient(180deg, rgba(18,28,30,.88), rgba(14,22,24,.88)) !important; }
.sx-signal-node           { background: rgba(8,20,22,.82) !important; }
.sx-pills span, .case-pills span, .portfolio-card-media span { background-color: rgba(8,16,18,.7) !important; }

/* 3) Robot 3D: mix-blend-mode + filter sobre un canvas WebGL vivo = 2 pasadas de composición
      a pantalla completa en cada frame. Se sustituyen por opacidad (mismo oscurecimiento). */
.banner-one .robot,
.banner-one.banner-one-enhanced .robot {
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: .72 !important;
  contain: layout paint;
}
.hero-ambient { filter: none !important; will-change: transform; }

/* 4) WhatsApp: animar box-shadow repinta un elemento fijo en cada frame.
      Se anima un anillo con transform/opacity (solo compositor). */
.bj-whatsapp-float { animation: none !important; will-change: transform; }
.bj-whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.55);
  pointer-events: none;
  opacity: 0;
  animation: bjWaRing 2.8s ease-out infinite;
}
@keyframes bjWaRing {
  0%, 55% { transform: scale(1);   opacity: 0; }
  60%     { transform: scale(1);   opacity: .7; }
  100%    { transform: scale(1.55); opacity: 0; }
}

/* 4b) Tarjetas de servicios (home)
      · Los giros de .service-card-orbit y .services-one::after son círculos simétricos:
        girarlos no se ve, pero cuestan un repintado continuo (el orbit además llevaba blur).
      · Sin scale(1.01) en hover (re-rasteriza el texto y lo desenfoca) y sin animar sombras grandes. */
.service-card-orbit { animation: none !important; filter: none !important; }
.services-one::after { animation: none !important; }
.services-one-home .service-card {
  transition: transform .3s ease, border-color .3s ease !important;
}
.services-one-home .service-card:hover { transform: translateY(-8px) !important; }
/* El chip repetía exactamente el título ("Páginas Web" / "Páginas Web"): se oculta el duplicado */
.service-card-badge { display: none !important; }

/* 4c) Animaciones decorativas en pausa MIENTRAS se hace scroll (se reanudan al parar).
      Lista explícita (no `*`): una regla universal obligaría a reevaluar los estilos de toda la página.
      No se tocan las animaciones de entrada (.wow / .animated). */
.bj-scrolling .service-card-icon-wrap,
.bj-scrolling .service-card-line span::before,
.bj-scrolling .service-card-icon-wrap::before,
.bj-scrolling .service-block_one-icon,
.bj-scrolling .hero-ambient,
.bj-scrolling .hero-floating,
.bj-scrolling .hero-grid-lines,
.bj-scrolling .bj-whatsapp-float::after,
.bj-scrolling .about-intro-orbit,
.bj-scrolling .portfolio-orbit,
.bj-scrolling .case-scroll i,
.bj-scrolling .sx-hero::after,
.bj-scrolling .sx-visual-shell::before,
.bj-scrolling .sx-visual-shell::after,
.bj-scrolling .sx-cta-inner::after,
.bj-scrolling .sx-core, .bj-scrolling .sx-core::after,
.bj-scrolling .sx-feature-icon i, .bj-scrolling .sx-deliverable-icon i,
.bj-scrolling .sx-preview-top i, .bj-scrolling .sx-browser-title,
.bj-scrolling .sx-browser-cards i, .bj-scrolling .sx-crm-ticket,
.bj-scrolling .sx-data-flow::before, .bj-scrolling .sx-data-flow::after,
.bj-scrolling .sx-ad-chart i, .bj-scrolling .sx-process-note i,
.bj-scrolling .sx-design-shape { animation-play-state: paused !important; }

/* 5) Animaciones infinitas fuera de pantalla: pausadas (las marca perf.js) */
.is-offscreen,
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after { animation-play-state: paused !important; }

/* 6) Secciones debajo del primer pantallazo: el navegador no las renderiza hasta acercarse */
.gallery-one, .journal-one, .testimonial-one, .stats-one, .awards-one, .main-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

/* 7) Imágenes: decodificación fuera del hilo principal */

@media (prefers-reduced-motion: reduce) {
  .bj-whatsapp-float::after { animation: none; }
}
