/* ===== Efectos visuales LoQueBusque ===== */

/* Scroll reveal: elementos aparecen al hacer scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Retraso escalonado para grids */
.reveal-on-scroll.delay-1 { transition-delay: 0.1s; }
.reveal-on-scroll.delay-2 { transition-delay: 0.2s; }
.reveal-on-scroll.delay-3 { transition-delay: 0.3s; }
.reveal-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Card hover: brillo sutil al pasar el mouse */
.card-hover-glow {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-hover-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(106,166,255,.15);
  border-color: rgba(106,166,255,.25) !important;
}

/* Botón volver arriba (arriba del banner de cookies) */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(106,166,255,.9), rgba(77,134,255,.9));
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(106,166,255,.3);
}
.back-to-top:hover {
  box-shadow: 0 12px 32px rgba(106,166,255,.45);
  transform: translateY(-2px);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Badge/eyebrow con pulso sutil */
.eyebrow-pulse {
  animation: eyebrowPulse 2.5s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125,255,178,.2); }
  50% { box-shadow: 0 0 0 6px rgba(125,255,178,.0); }
}

/* Stat card hover */
.stat-hover:hover {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(125,255,178,.2) !important;
  transform: translateY(-1px);
}

/* Botón back-to-top: colores actualizados */
.back-to-top {
  background: linear-gradient(135deg, rgba(96,165,250,.9), rgba(59,130,246,.9));
  box-shadow: 0 8px 24px rgba(96,165,250,.35);
}
.back-to-top:hover {
  box-shadow: 0 12px 32px rgba(96,165,250,.5);
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .reveal-on-scroll.revealed { transform: none; }
  .card-hover-glow:hover { transform: none; }
  .back-to-top { transition: opacity 0.2s; }
  .eyebrow-pulse { animation: none; }
  .stat-hover:hover { transform: none; }
}
