/* =====================================================================
   Wondercris — Fondo de los laterales (desde 1380 px de ancho).
   Se elige en Admin → Tienda web → Temporadas. Reemplaza la animación continua de cgs-tema.css
   por opciones livianas: solo se anima transform/opacity (no repinta la pantalla) o nada.
   ===================================================================== */
@media (min-width: 1380px) {
  /* todas: sin la animación pesada ni la sombra difuminada */
  html[data-cgs-lat] body.ace-page::before,
  html[data-cgs-lat] body.ace-page::after { animation: none; filter: none; will-change: auto; }

  /* ---------- Chips suaves: mismo diseño, deriva muy lenta con transform ---------- */
  html[data-cgs-lat="suave"] body.ace-page::after { opacity: .75; animation: cgsLatDeriva 26s ease-in-out infinite alternate; will-change: transform; }

  /* ---------- Chips quietos ---------- */
  html[data-cgs-lat="estatico"] body.ace-page::after { opacity: .75; }

  /* ---------- Circuito ---------- */
  html[data-cgs-lat="circuito"] body.ace-page::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%231C90A9' stroke-opacity='.22' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 30h40l14 14h40M94 44v36l16 16h50M20 160v-40l16-16h30l12-12V60M120 0v22l-14 14M40 30V8M140 96v40l-14 14H90M0 120h12'/%3E%3C/g%3E%3Cg fill='%231C90A9' fill-opacity='.35'%3E%3Ccircle cx='94' cy='44' r='3'/%3E%3Ccircle cx='40' cy='8' r='3'/%3E%3Ccircle cx='78' cy='60' r='3'/%3E%3Ccircle cx='106' cy='36' r='3'/%3E%3Ccircle cx='90' cy='150' r='3'/%3E%3Ccircle cx='12' cy='120' r='3'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px 160px repeat,
      radial-gradient(520px 420px at 0% 25%, rgba(20, 121, 193, .12), transparent 70%),
      radial-gradient(520px 420px at 100% 75%, rgba(20, 121, 193, .12), transparent 70%);
  }
  html[data-cgs-lat="circuito"] body.ace-page::after {
    background:
      radial-gradient(360px 300px at 4% 40%, rgba(20, 121, 193, .16), transparent 70%),
      radial-gradient(360px 300px at 96% 60%, rgba(20, 121, 193, .16), transparent 70%);
    animation: cgsLatRespira 9s ease-in-out infinite alternate; will-change: opacity;
  }

  /* ---------- Puntos ---------- */
  html[data-cgs-lat="puntos"] body.ace-page::before {
    background:
      radial-gradient(circle, rgba(20, 121, 193, .38) 0 1.3px, transparent 1.8px) 0 0 / 22px 22px repeat,
      radial-gradient(520px 420px at 0% 30%, rgba(20, 121, 193, .14), transparent 70%),
      radial-gradient(520px 420px at 100% 70%, rgba(20, 121, 193, .14), transparent 70%);
  }
  html[data-cgs-lat="puntos"] body.ace-page::after { content: none; }

  /* ---------- Liso ---------- */
  html[data-cgs-lat="liso"] body.ace-page::before,
  html[data-cgs-lat="liso"] body.ace-page::after { content: none; }
}
@keyframes cgsLatDeriva { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -14px, 0); } }
@keyframes cgsLatRespira { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html[data-cgs-lat] body.ace-page::before, html[data-cgs-lat] body.ace-page::after { animation: none !important; }
}
