.hero-gradient {
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
}
.card-hover {
  transition: transform 0.2s ease-in-out;
}
.card-hover:hover {
  transform: translateY(-5px);
}
.navbar-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.583);
  transition: all 0.3s ease;
}
.navbar-transparent {
  background-color: rgba(255, 255, 255, 1);
}
.logo-image {
  max-width: 50px;
  border-radius: 10px;
  animation: logoAnimation 2s ease-in-out;
}

@keyframes logoAnimation {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(360deg);
  }
}

.icon {
  opacity: 0; /* Start hidden */
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.icon-visible {
  animation: iconAnimation 0.5s forwards;
}

@keyframes iconAnimation {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* hero seciton */
.hero {
  position: relative;
  height: 100vh;
  background: url('/hero-background.png') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: blur(10px); /* Adjust the blur amount as needed */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeIn 1.5s ease-out;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeIn 2s ease-out;
}

.hero button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  animation: fadeIn 2.5s ease-out;
}

.hero button:hover {
  background-color: #0056b3;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* NavBar */
.navbar {
  position: fixed;
  width: 100%;
  top: -100px; /* Hide the navbar initially */
  left: 0;
  background-color: rgba(
    255,
    255,
    255,
    0.8
  ); /* Adjust the color and opacity as needed */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: top 0.3s ease, background-color 0.3s ease,
    backdrop-filter 0.3s ease;
  z-index: 10;
}

.navbar.scrolled {
  top: 0; /* Show the navbar when scrolled */
}

.navbar-content {
  transition: transform 0.3s ease;
}

/* ANIMACIÓN DE CARGA */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo grisáceo translúcido */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none; /* Oculto por defecto */
}

.loading-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

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