body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

#loading-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow: hidden;
}

#loading-bg::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.loading-logo {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

.loading-logo img {
  width: 90px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  animation: logoFloat 3s ease-in-out infinite;
}

.loading {
  position: relative;
  width: 80px;
  height: 80px;
  z-index: 2;
}

.loading .effect-1,
.loading .effect-2,
.loading .effect-3 {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  box-sizing: border-box;
}

.loading .effect-1 {
  border-left: 3px solid rgba(255, 255, 255, 0.8);
  border-top: 3px solid rgba(255, 255, 255, 0.8);
  animation: rotate 1.2s linear infinite;
}

.loading .effect-2 {
  border-right: 3px solid rgba(255, 255, 255, 0.6);
  border-bottom: 3px solid rgba(255, 255, 255, 0.6);
  animation: rotate 1.2s linear infinite reverse;
  animation-delay: 0.2s;
}

.loading .effect-3 {
  border-left: 3px solid rgba(255, 255, 255, 0.4);
  border-right: 3px solid rgba(255, 255, 255, 0.4);
  animation: rotate 1.2s linear infinite;
  animation-delay: 0.4s;
  transform: scale(0.8);
}

.loading::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -20px;
  left: -20px;
  animation: pulse 2s ease-in-out infinite;
}

.loading::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -30px;
  left: -30px;
  animation: pulse 2s ease-in-out infinite 0.5s;
}

/* Texto de loading */
.loading-text {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.loading-text::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

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

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes dots {
  0%, 20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}

@media (max-width: 768px) {
  .loading-logo img {
    width: 70px;
  }
  
  .loading {
    width: 60px;
    height: 60px;
  }
  
  .loading-text {
    font-size: 14px;
    bottom: 15%;
  }
}

@media (max-width: 480px) {
  .loading-logo img {
    width: 60px;
  }
  
  .loading {
    width: 50px;
    height: 50px;
  }
  
  .loading-text {
    font-size: 12px;
    bottom: 12%;
  }
}