:root {
  --primary: #6a11cb;
  --secondary: #2575fc;
  --accent: #25d366; /* WhatsApp verde */
  --dark: #0f0f1a;
  --light: #f8f9ff;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  overflow-x: hidden;
}

/* ---------- Gradientes de texto ---------- */
.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-light {
  background: linear-gradient(90deg, #fff, #c3d0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
}

/* ---------- NAVBAR ---------- */
.custom-nav {
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 1rem 0;
}
.custom-nav.scrolled {
  background: rgba(15, 15, 26, 0.98);
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.navbar-brand { font-size: 1.5rem; }
.nav-link {
  font-weight: 500;
  margin: 0 0.4rem;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: all 0.3s;
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 80%; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(106,17,203,0.92), rgba(37,117,252,0.88)),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80') center/cover;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08), transparent 60%);
}
.hero-shape {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 120px;
  background: var(--light);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}
.hero h1 { font-weight: 800; line-height: 1.15; }

/* ---------- BOTONES ---------- */
.btn {
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(106,17,203,0.4);
}
.btn-whatsapp {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn-whatsapp:hover {
  background: #1eb955;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37,211,102,0.4);
}
.btn-outline-light:hover { transform: translateY(-3px); }

/* ---------- FEATURE CARDS ---------- */
.feature-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(106,17,203,0.15);
  box-shadow: 0 15px 40px rgba(106,17,203,0.15);
}
.feature-icon {
  width: 70px; height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: transform 0.4s;
}
.feature-card:hover .feature-icon { transform: rotate(-10deg) scale(1.1); }

/* ---------- SECCIÓN SERVICIOS ---------- */
.bg-dark-section {
  background: linear-gradient(180deg, #0f0f1a, #1a1a2e);
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(106,17,203,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.service-card h5 { color: #fff; }
.service-card p { color: rgba(255,255,255,0.7); }
.service-icon {
  font-size: 2.5rem;
  display: inline-block;
  transition: transform 0.4s;
}
.service-card:hover .service-icon { transform: scale(1.15) rotate(5deg); }

/* ---------- STATS / MV ---------- */
.stat-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-5px); }
.mv-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.06);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--primary), var(--secondary)) 1;
  transition: all 0.3s;
}
.mv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(106,17,203,0.15);
}

/* ---------- CONTACTO ---------- */
.bg-gradient-section {
  background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
}
.contact-info, .contact-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}
.contact-form .form-control,
.contact-form .form-select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.contact-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.25rem rgba(37,117,252,0.25);
  color: #fff;
}
.contact-form .form-select option { color: #222; }

/* ---------- WHATSAPP FLOTANTE ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 60px; height: 60px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  z-index: 999;
  animation: pulse 2s infinite;
  transition: transform 0.3s;
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 30px rgba(37,211,102,0.9); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .display-4 { font-size: 2.2rem; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; }
}