:root {
  --primary: #7B1FA2;
  --primary-dark: #4A148C;
  --primary-light: #AB47BC;
  --primary-50: #F3E5F5;
  --secondary: #1565C0;
  --secondary-light: #42A5F5;
  --accent: #FF6D00;
  --accent-light: #FFAB40;
  --dark: #1A1A2E;
  --dark-secondary: #2D2D44;
  --whatsapp: #25D366;
  --bs-primary: #7B1FA2;
  --bs-primary-rgb: 123, 31, 162;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 25px; }

@media (max-width: 991.98px) {
  section[id] { scroll-margin-top: 5px; }
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  padding-top: 76px;
}

@media (max-width: 991.98px) {
  body { padding-top: 66px; }
}

.hero-gradient {
  background: linear-gradient(135deg, #1565C0 0%, #7B1FA2 30%, #4A148C 100%);
}

.navbar { backdrop-filter: blur(10px); }

.navbar .nav-link {
  position: relative;
  padding: 0.5rem 1rem !important;
  font-weight: 500;
  transition: color 0.3s;
  color: #ffffff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff !important;
  opacity: 0.7;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 60%;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title {
  font-weight: 800;
  color: var(--dark);
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
  margin: 1rem auto 0;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(123, 31, 162, 0.12) !important;
}

.pdf-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.pdf-card:hover {
  border-color: var(--primary) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(123, 31, 162, 0.1);
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.5s;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(0,0,0,0.4);
}

.gallery-overlay svg {
  width: 40px;
  height: 40px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s;
}

.gallery-item:hover .gallery-overlay svg {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.fade-delay-1 { animation-delay: 0.2s; opacity: 0; }
.fade-delay-2 { animation-delay: 0.4s; opacity: 0; }
.fade-delay-3 { animation-delay: 0.6s; opacity: 0; }

.modal-overlay {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}

.btn-primary-custom {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 31, 162, 0.3);
  color: white;
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s;
}

.btn-outline-custom:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
  color: white;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s;
}

.btn-accent:hover {
  background: #E65100;
  border-color: #E65100;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 109, 0, 0.35);
  color: white;
}

.icon-circle {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.icon-circle svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.info-card:hover .icon-circle {
  background: var(--primary);
}

.info-card:hover .icon-circle svg {
  color: white;
}

.footer-section {
  background: var(--dark);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.15);
}

.lightbox-btn {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  transition: all 0.3s;
}

.lightbox-btn:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

.lightbox-img-wrap {
  overflow: hidden;
  border-radius: 0.375rem;
  cursor: grab;
  user-select: none;
  max-height: 85vh;
}

.lightbox-img-wrap:active {
  cursor: grabbing;
}

.lightbox-img-wrap img {
  display: block;
  max-height: 85vh;
  max-width: 80vw;
  width: auto;
  height: auto;
  transform-origin: 0 0;
  pointer-events: none;
}

.badge-speed {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-number { font-size: 2.8rem; }
}
