/* Fondo animado «Seguros en movimiento» (js/fondoSeguros.js), compartido por el login y el inicio.
   La capa va con z-index negativo: queda sobre el color de fondo de la página y DEBAJO de las tarjetas y el menú, sin tocar
   sus estilos. Nunca intercepta clics. */
.fondo-seguros {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.fondo-seguros-icono {
  position: absolute;
  top: 0;
  display: block;
  color: #2f80ed;
  will-change: transform;
  animation: fondoSegurosSubir linear infinite;
}

.fondo-seguros-icono.naranja {
  color: #ff7b36;
}

.fondo-seguros-icono svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes fondoSegurosSubir {
  0% { transform: translate(0, 108vh) rotate(-8deg); }
  50% { transform: translate(var(--vaiven, 0px), 48vh) rotate(8deg); }
  100% { transform: translate(0, -14vh) rotate(-6deg); }
}

/* Inicio: las tarjetas casi llenan la pantalla; un poco translúcidas dejan ver los iconos pasando por debajo sin que el texto
   pierda nitidez. Con el mouse encima cada acceso vuelve a su color de siempre. */
.home-body .home-card,
.home-body .home-kpi-card {
  background: rgba(255, 255, 255, 0.74);
}

.home-body .home-priority-item:not(:hover),
.home-body .home-actions-grid a:not(:hover) {
  background: rgba(251, 253, 255, 0.58);
}

.home-body .home-note {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(243, 248, 255, 0.74));
}

/* Equipos con «reducir movimiento» y la impresión: sin fondo. */
@media (prefers-reduced-motion: reduce), print {
  .fondo-seguros {
    display: none;
  }
}
