/* Interruptor tipo iPhone, flotante (sin tarjeta), para activar/desactivar la IA automática del Dashboard (12-oct-2026).
   Lo pinta assets/js/ia-ajustes.js dentro de <span data-ia-switch="objetivos|tareas">. Quitar su <link> lo deja sin estilo. */
.nl-ia-sw { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.nl-ia-sw__txt { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); transition: color 180ms cubic-bezier(.2,.8,.2,1); }
.nl-ia-sw:has(.nl-ios[aria-checked="true"]) .nl-ia-sw__txt { color: rgba(255,255,255,.8); }
.nl-ios {
  position: relative; flex: none; width: 34px; height: 20px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: background-color 220ms cubic-bezier(.2,.8,.2,1); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.nl-ios::before { content: ""; position: absolute; inset: -12px -6px; }          /* zona de toque más grande que el dibujo */
.nl-ios::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.4), 0 0 0 .5px rgba(0,0,0,.08);
  transition: transform 260ms cubic-bezier(.3,1.3,.5,1), width 160ms cubic-bezier(.2,.8,.2,1);
}
.nl-ios[aria-checked="true"] { background: #34c759; }
.nl-ios[aria-checked="true"]::after { transform: translateX(14px); }
.nl-ios:active::after { width: 20px; }
.nl-ios[aria-checked="true"]:active::after { transform: translateX(10px); }
.nl-ios:focus-visible { outline: 2px solid #5ea2ff; outline-offset: 3px; }
.nl-ios:disabled { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .nl-ios, .nl-ios::after, .nl-ia-sw__txt { transition: none; } }
.nl-tarea-desde { display: inline-block; margin-top: 2px; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(251,191,36,.8); }
