/* ===== S&L PROCARGO — PROFESSIONAL AUTO TRANSPORT ===== */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
::selection { background: #1e40af; color: #fff; }

/* --- Page Transition --- */
.page-enter { animation: fadeInUp 0.6s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll Animations --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.animate-visible { opacity: 1; transform: translateY(0); }
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.18s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.3s; }
.stagger > *:nth-child(6) { transition-delay: 0.36s; }

/* --- Hero --- */
.hero-overlay { position: relative; }
.hero-overlay::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,15,30,0.88) 0%, rgba(10,15,30,0.65) 40%, rgba(10,15,30,0.88) 100%);
}
.hero-overlay > * { position: relative; z-index: 2; }
@media (max-width: 768px) {
  .hero-overlay::before { background: linear-gradient(180deg, rgba(10,15,30,0.92) 0%, rgba(10,15,30,0.75) 40%, rgba(10,15,30,0.93) 100%); }
}
.hero-bg { animation: heroZoom 20s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* --- Navigation --- */
.nav-scrolled {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: #1e40af;
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ===== UNIFIED BUTTON SYSTEM ===== */

/* Primary CTA — Blue gradient, main action */
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #fff; font-weight: 700; font-size: 0.875rem;
  padding: 0.75rem 1.5rem; border-radius: 0.625rem;
  transition: all 0.3s ease; position: relative; overflow: hidden;
  text-decoration: none; border: none; cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,64,175,0.35);
  background: linear-gradient(135deg, #1a37a0 0%, #1d4ed8 100%);
}
.btn-cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-100%); transition: transform 0.5s;
}
.btn-cta:hover::after { transform: translateX(100%); }

/* Secondary CTA — Dark navy, pairs with primary */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #0f172a; color: #fff;
  font-weight: 700; font-size: 0.875rem;
  padding: 0.75rem 1.5rem; border-radius: 0.625rem;
  transition: all 0.3s ease; text-decoration: none;
  border: none; cursor: pointer;
}
.btn-secondary:hover {
  background: #1e293b; transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Outline — For dark backgrounds */
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff; font-weight: 700; font-size: 0.875rem;
  padding: calc(0.75rem - 2px) 1.5rem; border-radius: 0.625rem;
  transition: all 0.3s ease; text-decoration: none;
  background: transparent; cursor: pointer;
}
.btn-outline:hover {
  border-color: #fff; background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Pulse animation for primary CTA */
.btn-pulse { animation: ctaPulse 2.5s ease-in-out infinite; }
.btn-pulse:hover { animation: none; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
}

/* White outline button — for light backgrounds */
.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: #0f172a;
  border: 2px solid #e2e8f0;
  font-weight: 700; font-size: 0.875rem;
  padding: calc(0.75rem - 2px) 1.5rem; border-radius: 0.625rem;
  transition: all 0.3s ease; text-decoration: none;
  cursor: pointer;
}
.btn-white:hover {
  border-color: #1e40af; color: #1e40af;
  box-shadow: 0 4px 15px rgba(30,64,175,0.1);
  transform: translateY(-2px);
}

/* --- Floating Badge (hero) --- */
.float-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.5rem 1.125rem; border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 600; color: #fff;
}

/* --- Trust Badge (hero) --- */
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.85); font-size: 0.8125rem; font-weight: 600;
}
.trust-badge svg { width: 1.125rem; height: 1.125rem; }


/* --- Icon Box --- */
.icon-box {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* --- Service Card Stripe --- */
.service-stripe {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, #1e40af, #3b82f6);
}

/* --- Image Zoom Container --- */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.img-zoom:hover img { transform: scale(1.06); }

/* --- Cards --- */
.card-hover { transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

/* --- Process Number --- */
.process-number {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-size: 1.25rem; font-weight: 800;
}

/* --- Partner Logo --- */
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem 1rem; border-radius: 0.75rem;
  background: #f8fafc; border: 1px solid #e2e8f0;
  font-weight: 700; font-size: 0.875rem; color: #475569;
  transition: all 0.3s ease;
}
.partner-logo:hover {
  border-color: #1e40af; color: #1e40af;
  box-shadow: 0 4px 15px rgba(30,64,175,0.08);
}

/* --- Stats --- */
.stat-item { position: relative; }
.stat-item::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 40px; background: rgba(255,255,255,0.12);
}
.stat-item:last-child::after { display: none; }
.stat-number {
  font-family: 'DM Sans', sans-serif; font-size: 2.5rem; font-weight: 900;
  line-height: 1; margin-bottom: 0.25rem; text-align: center;
}
.stat-label {
  font-size: 0.8125rem; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 500; text-align: center;
}

/* --- Stars --- */
.star-rating { color: #FBBF24; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: #1e40af; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s ease; z-index: 50;
  cursor: pointer; border: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: #1a3a9e; transform: translateY(-3px); }

/* --- Mobile Call Bar --- */
.mobile-call-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 50; background: #0f172a;
  padding: 0.625rem 0.75rem; display: flex; gap: 0.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.mobile-call-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 0.5rem; font-size: 0.8125rem; font-weight: 700; color: #fff;
  letter-spacing: 0.02em; border-radius: 0.5rem;
  transition: opacity 0.2s; text-decoration: none;
}
.mobile-call-bar a:hover { opacity: 0.9; }
.mobile-call-bar .call-btn { background: linear-gradient(135deg, #1e40af, #2563eb); }
.mobile-call-bar .text-btn { background: #1e293b; border: 1px solid rgba(255,255,255,0.1); }

/* --- Images --- */
img { opacity: 1; }

/* --- Responsive --- */
@media (min-width: 1024px) { .mobile-call-bar { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 4.5rem; } }
@media (max-width: 768px) { .stat-item::after { display: none; } .hero-bg { animation-duration: 30s; } }
