/* =====================================================
   PUNTO MÓVIL — animations.css
   Dark tech style — reveal sutil sobre fondo oscuro
   ===================================================== */

/* =====================================================
   1. REVEAL — fade + slide up
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

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

/* =====================================================
   2. REVEAL-LEFT / REVEAL-RIGHT (sección contacto)
   ===================================================== */
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* =====================================================
   3. DELAYS escalonados — repair-grid items
   ===================================================== */
.repair-item:nth-child(1) { transition-delay: 0.00s; }
.repair-item:nth-child(2) { transition-delay: 0.06s; }
.repair-item:nth-child(3) { transition-delay: 0.12s; }
.repair-item:nth-child(4) { transition-delay: 0.18s; }
.repair-item:nth-child(5) { transition-delay: 0.24s; }
.repair-item:nth-child(6) { transition-delay: 0.30s; }
.repair-item:nth-child(7) { transition-delay: 0.36s; }
.repair-item:nth-child(8) { transition-delay: 0.42s; }

/* =====================================================
   4. Proceso steps — delays
   ===================================================== */
.proceso-step:nth-child(1) { transition-delay: 0.00s; }
.proceso-step:nth-child(3) { transition-delay: 0.15s; }
.proceso-step:nth-child(5) { transition-delay: 0.30s; }

/* =====================================================
   5. Hero stats strip — fade in escalonado
   ===================================================== */
.hero-stat:nth-child(1) { animation: stat-in 0.5s ease 0.6s both; }
.hero-stat:nth-child(2) { animation: stat-in 0.5s ease 0.75s both; }
.hero-stat:nth-child(3) { animation: stat-in 0.5s ease 0.90s both; }
.hero-stat:nth-child(4) { animation: stat-in 0.5s ease 1.05s both; }

@keyframes stat-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   6. Hero title — entrada dramática
   ===================================================== */
.hero-eyebrow {
  animation: fade-up 0.6s ease 0.15s both;
}

.hero-title {
  animation: fade-up 0.7s ease 0.3s both;
}

.hero-subtitle {
  animation: fade-up 0.6s ease 0.45s both;
}

.hero-content .btn-cta {
  animation: fade-up 0.6s ease 0.55s both;
}

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

/* =====================================================
   7. Botón flotante
   ===================================================== */
.whatsapp-float {
  animation: float-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}

@keyframes float-in {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* =====================================================
   8. Galería items — delays
   ===================================================== */
.galeria-item:nth-child(1) { transition-delay: 0.00s; }
.galeria-item:nth-child(2) { transition-delay: 0.08s; }
.galeria-item:nth-child(3) { transition-delay: 0.16s; }
.galeria-item:nth-child(4) { transition-delay: 0.24s; }
.galeria-item:nth-child(5) { transition-delay: 0.32s; }

/* =====================================================
   9. Prefers-reduced-motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .hero-eyebrow, .hero-title, .hero-subtitle,
  .hero-content .btn-cta, .hero-stat,
  .whatsapp-float {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .repair-item, .proceso-step, .galeria-item {
    transition-delay: 0s;
  }
}
