html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.55) 60%, rgba(20,8,0,0.85) 100%),
    url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .hero-section { background-attachment: scroll; }
}

/* ── TYPEWRITER ── */
.typewriter-wrap { display: inline-block; }
.typewriter {
  overflow: hidden;
  border-right: 3px solid #dc2626;
  white-space: nowrap;
  animation: typing 2.8s steps(30,end) forwards, blink 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0 }
  to   { width: 100% }
}
@keyframes blink {
  50% { border-color: transparent }
}

/* ── STATS ── */
.stats-section {
  background: linear-gradient(90deg, #111 0%, #1a0000 50%, #111 100%);
}

/* ── SERVICE CARDS ── */
.service-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(220,38,38,0.15);
}
.service-card .icon-wrap {
  transition: background 0.3s, transform 0.3s;
}
.service-card:hover .icon-wrap {
  background: #dc2626;
  transform: scale(1.12);
}
.service-card:hover .icon-wrap i {
  color: #fff !important;
}

/* ── CTA SECTION ── */
.cta-section {
  background-image:
    linear-gradient(to right, rgba(220,38,38,0.92) 0%, rgba(185,28,28,0.88) 100%),
    url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .cta-section { background-attachment: scroll; }
}

/* ── SWIPER ── */
.swiper { width: 100%; padding-bottom: 50px !important; }
.swiper-slide {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-slide img { width:100%; height:100%; object-fit:cover; }
.swiper-pagination-bullet-active { background: #dc2626 !important; }

/* ── PROCESO STEPS ── */
.step-num {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  animation: wa-pulse 2.5s infinite;
}
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  50%      { box-shadow: 0 0 0 16px rgba(34,197,94,0); }
}

/* ── TESTIMONIAL CARD ── */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

/* ── HEADER SCROLL ── */
header { transition: background 0.3s, box-shadow 0.3s; }
header.scrolled { background: rgba(0,0,0,0.97) !important; }

/* ── NAV UNDERLINE ── */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: #dc2626;
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
