/* ============================================================
   TLM Cali — Hoja de estilos principal
   Stack: Tailwind CDN + custom utilities
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --blue-primary: #1E40AF;
  --blue-hover:   #1E3A8A;
  --blue-dark:    #1e3a8a;
  --orange-cta:   #F97316;
  --orange-hover: #EA580C;
  --green-wa:     #25D366;
  --text-dark:    #1F2937;
  --bg-alt:       #F3F4F6;
  --white:        #FFFFFF;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Pulse CTA ---------- */
@keyframes pulse-cta {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.pulse-cta {
  animation: pulse-cta 5s ease-in-out infinite;
}

/* ---------- Scroll Fade-in ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* Accesibilidad: sin animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-on-scroll.fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pulse-cta {
    animation: none !important;
  }
}

/* ---------- Hero clip-path diagonal accent (desktop only) ---------- */
@media (min-width: 1024px) {
  .hero-accent {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  }
}

.hero-accent-reverse {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
}

/* ---------- Trust Strip ---------- */
.trust-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* ---------- Navbar sticky transition ---------- */
#main-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ---------- Service Card Hover ---------- */
.service-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-left-color 0.25s ease;
  border-left: 4px solid transparent;
}

.service-card:hover {
  box-shadow: 0 10px 25px -5px rgba(30,64,175,0.15), 0 4px 6px -2px rgba(30,64,175,0.1);
  transform: translateY(-3px);
  border-left-color: var(--blue-primary);
}

/* ---------- Process Step Numbers ---------- */
.step-number {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(30, 64, 175, 0.08);
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  pointer-events: none;
  user-select: none;
}

/* ---------- Testimonial quote decoration ---------- */
.testimonial-quote {
  font-size: 5rem;
  line-height: 0.8;
  color: rgba(249, 115, 22, 0.15);
  font-family: Georgia, serif;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  pointer-events: none;
  user-select: none;
}

/* ---------- FAQ Accordion ---------- */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-content.open {
  max-height: 400px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

/* ---------- Mobile overlay ---------- */
#mobile-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* ---------- WhatsApp float button hover ---------- */
.wa-float {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

/* ---------- Brand accent line for headings ---------- */
.heading-accent::after {
  content: '';
  display: block;
  width: 3.5rem;
  height: 4px;
  background: var(--orange-cta);
  border-radius: 2px;
  margin-top: 0.75rem;
}

.heading-accent-center::after {
  content: '';
  display: block;
  width: 3.5rem;
  height: 4px;
  background: var(--orange-cta);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ---------- Brand Badge ---------- */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
}

/* ---------- Image Placeholders ---------- */
.img-placeholder {
  background-color: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #6B7280;
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
}

/* ---------- Star Rating ---------- */
.star-icon {
  color: #FBBF24;
}

/* ---------- Button gradient (hero primary) ---------- */
.btn-primary {
  background: var(--orange-cta);
  color: #fff;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.875rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.875rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
  text-decoration: none;
  font-size: 1.05rem;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

/* ---------- Scroll stagger delays ---------- */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
