/* ============================================
   EVA - Centro de Recursos | Estilos
   ============================================ */

/* ---------- Animaciones de entrada ---------- */
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@keyframes expand-shake {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.15) rotate(-3deg); }
  50%  { transform: scale(1.05) rotate(3deg); }
  75%  { transform: scale(1.15) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.animate-fade-down { animation: fade-down 0.7s ease-out both; }
.animate-fade-up   { animation: fade-up 0.7s ease-out both; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Tarjetas ---------- */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(30, 58, 138, 0.25);
}

.card:hover .preview-icon {
  animation: expand-shake 0.6s ease;
  color: #94a3b8; /* slate-400 */
}

/* ---------- Gota de agua (logo) ---------- */
.water-drop {
  transition: transform 0.3s ease;
}

.water-drop:hover {
  animation: bounce-soft 0.8s ease-in-out;
}

/* ---------- Subrayado animado de títulos de sección ---------- */
.section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  border-radius: 9999px;
  background: #1e3a8a; /* blue-900 */
  transition: width 0.5s ease;
}

.section-title:hover::after {
  width: 48px;
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .card,
  .water-drop,
  .preview-icon {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}