:root {
  --primary: #020202;
  --primary-hover: #FDA920;
  --secondary: #FDA920;
  --accent: #FDB629;
  --surface: #FFFFFF;
  --background: #FFFFFF;
  --dark: #020202;
  --light: #FDB629;
  --nav: #020202;
  --title: #020202;
  --text-dark: #020202;
  --text-light: #FFFFFF;
}

* {
  box-sizing: border-box;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--text-light);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  transition: background 0.2s ease;
}
.btn-primary:hover {
  background: var(--accent);
}
.surface-card {
  background: var(--surface);
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.surface-card a {
  color: inherit;
}
.bg-nav {
  background: var(--nav) !important;
}
.text-title {
  color: var(--title) !important;
}
.text-text-light {
  color: var(--text-light) !important;
}
.text-text-light:hover {
  color: var(--primary) !important;
}
.mobile-nav-link:hover {
  background: rgba(255,255,255,0.08);
}


html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background-color: var(--background);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .page-title, .card-title, .about-us-title, .modal-header h2, .text-title {
  font-family: 'Montserrat', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
  opacity: 0.75;
  z-index: -1;
  pointer-events: none;
}

img,
iframe,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.client-logo-sphere-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 320px;
  perspective: 1000px;
  margin: 2.5rem auto;
}

.client-logo-sphere {
  width: 280px;
  height: 280px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateSphere 20s linear infinite;
}

.client-logo-circle {
  --radius: 190px;
  --angle: calc((var(--i) - 1) * (360deg / var(--total)));
  width: 190px;
  height: 190px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: calc(-190px / 2);
  margin-left: calc(-190px / 2);
  transform: rotateY(var(--angle)) translateZ(var(--radius)) scale(0.95);
  border-radius: 9999px;
  background-color: var(--light);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border: 3px solid var(--primary);
  backface-visibility: hidden;
}

.client-logo-circle img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  padding: 0.5rem;
}

@keyframes rotateSphere {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #25d366;
  color: #ffffff;
  font-size: 1.4rem;
  z-index: 1000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  animation: whatsapp-breathe 2.2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

@keyframes whatsapp-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  padding: 1rem;
}

@media (min-width: 640px) {
  .modal-overlay {
    padding: 2rem;
  }
}

.modal-card {
  width: min(100%, 38rem);
  max-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 2rem;
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.15);
  overflow: hidden;
}

.modal-card .modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

.modal-card .modal-body {
  padding: 2rem;
  overflow-y: auto;
}

.modal-card .modal-footer {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

.close-modal {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .client-logo-sphere-container {
    height: 260px;
  }
  .client-logo-circle {
    --radius: 120px;
    width: 130px;
    height: 130px;
    margin-top: calc(-130px / 2);
    margin-left: calc(-130px / 2);
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 1rem;
    bottom: 1rem;
    font-size: 1.2rem;
  }
}


.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeCarousel 16s infinite ease-in-out;
}

.carousel-slide .carousel-delay-4 {
  animation-delay: -4s;
}

.carousel-slide .carousel-delay-8 {
  animation-delay: -8s;
}

.carousel-slide .carousel-delay-12 {
  animation-delay: -12s;
}

@keyframes fadeCarousel {
  0% { opacity: 0.5; }
  2.5% { opacity: 1; }
  22.5% { opacity: 1; }
  27.5% { opacity: 0; }
  97.5% { opacity: 0; }
  100% { opacity: 0.5; }
}