/* =============================================================================
   motion.css — piezas COMUNES de los motion graphics de /anual y /mensual (28-10). Cada página
   carga además la suya: motion-anual.css o motion-mensual.css (así ninguna baja CSS de la otra).
   Va DESPUÉS de tienda.css y reutiliza sus piezas (td-glass, td-btn, td-kicker, td-checks…).
   CSS plano a mano. Todo con prefijo mo-. Lo mueve assets/js/motion.js. Reglas:
   - solo se animan transform y opacity;
   - lo que no se ve no se anima: motion.js pone mo-quieto a las secciones fuera de pantalla;
   - «reducir movimiento» (al final de cada archivo): todo quieto, en su estado final, y se lee igual.
   ============================================================================= */

/* ─────────── Piezas comunes ─────────── */
/* portadas reales de las clases: su fondo verde brillaba demasiado junto al verde de la página (Adan, 29-10) → algo apagadas */
img[src*="/img/oferta/portada-"] { filter: brightness(0.72) saturate(0.72); }
.mo-vivo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: #ff3b30; box-shadow: 0 6px 18px -6px rgb(255 59 48 / 0.8); font-size: 10.5px; font-weight: 900; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; color: #fff; white-space: nowrap; }
.mo-vivo i { position: relative; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.mo-vivo i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: td-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite; }
.mo-chip-ia { flex: none; padding: 3px 9px; border-radius: 999px; background: linear-gradient(90deg, #22f58c, #7cf5ff); font-size: 10.5px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--td-ink); }
.mo-etiquetas { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; padding: 0 16px; }
.mo-etiquetas li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; background: rgba(255, 255, 255, 0.04); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
/* corazones que suben en el directo */
.mo-corazones { position: absolute; right: 8%; bottom: 22%; z-index: 1; width: 24px; height: 110px; pointer-events: none; }
.mo-corazones i { position: absolute; left: 0; bottom: 0; width: 18px; height: 18px; opacity: 0; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2322f58c' d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.4.7-1.2 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); animation: mo-corazon 2.7s ease-out infinite; }
.mo-corazones i:nth-child(2) { left: 6px; animation-delay: 0.9s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff5a7a' d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.4.7-1.2 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); }
.mo-corazones i:nth-child(3) { left: -4px; animation-delay: 1.8s; }
@keyframes mo-corazon { 0% { opacity: 0; transform: translateY(0) scale(0.4); } 15% { opacity: 1; } 60% { transform: translate(-8px, -70px) scale(1); } 100% { opacity: 0; transform: translate(4px, -110px) scale(1.1); } }
@keyframes mo-gira { to { transform: rotate(360deg); } }

/* ─────────── Plan personalizado con IA: texto (las dos páginas) ─────────── */
.mo-ia-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) { .mo-ia-grid { grid-template-columns: 1fr 1fr; gap: 64px; } .mo-ia-grid--b > :first-child { order: 2; } }
.mo-pasos-ia { margin-top: 22px; display: grid; gap: 10px; }
.mo-pasos-ia li { display: flex; align-items: center; gap: 12px; font-weight: 600; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
.mo-pasos-ia b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgb(34 245 140 / 0.14); box-shadow: inset 0 0 0 1px rgb(34 245 140 / 0.35); font-family: Montserrat, ui-sans-serif, system-ui, sans-serif; font-weight: 900; color: var(--td-brand); }
.mo-ia__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mo-ia__top b { font-family: Montserrat, ui-sans-serif, system-ui, sans-serif; font-size: 16px; font-weight: 800; }
.mo-ia__ej { margin-top: 10px; text-align: right; font-size: 10.5px; color: rgba(255, 255, 255, 0.42); }

/* ─────────── Rendimiento: lo que no se ve no se anima (motion.js pone mo-quieto a las secciones fuera de pantalla) ─────────── */
.mo-quieto, .mo-quieto *, .mo-quieto *::before, .mo-quieto *::after { animation-play-state: paused !important; }

/* ─────────── Movimiento reducido: todo quieto, todo se lee ─────────── */
@media (prefers-reduced-motion: reduce) {
  .mo-vivo i::after, .mo-corazones { animation: none; }
  .mo-corazones { display: none; }
}
