/* Contenedor del loader */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  /* Fondo oscuro desenfocado tipo overlay */
  background: rgba(0, 0, 0, 0.815);
  backdrop-filter: blur(5px);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* Estilos de los puntitos */
.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 20px;
  height: 20px;
  background-color: #5c6164;
  border-radius: 50%;
  animation: bounce 1.5s infinite ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #d3bdc5;
  /* Color del texto */
  font-size: 12px;
  /* Tamaño del texto */
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

.dot:nth-child(4) {
  animation-delay: 0.6s;
}

.dot:nth-child(5) {
  animation-delay: 0.8s;
}

.dot:nth-child(6) {
  animation-delay: 1s;
}

.dot:nth-child(7) {
  animation-delay: 1.2s;
}

.dot:nth-child(8) {
  animation-delay: 1.4s;
}

.loader h1 {
  font-size: 1em;
  color: rgb(255, 255, 255);
  width: 60%;
  text-align: center;
  position: absolute;
  bottom: 20px;
  left: 50%;
  top: 55%;
  transform: translateX(-50%);
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }
}

/* Ocultar loader después de 3 segundos */
.hidden {
  display: none;
}


.circulo-carga {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 50%;
  top: 42%;
  /* centrado perfecto */
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.circulo-carga::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 5px solid rgba(255,255,255,0.25);
  border-top: 5px solid #7e2748;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-logo {
  width: 50%;
  height: 50%;
  object-fit: cover;
  border-radius: 8px;
  animation: none;
}

/* Ajuste responsive */
@media (max-width: 767px) {
  .circulo-carga {
    width: 40px;
    height: 40px;
  }
  .circulo-carga::before {
    border-width: 4px;
  }
  .loader-logo {
    width: 65%;
    height: 65%;
  }
}

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

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

.espera-internet h1 {
  font-size: 0.8em;
  color: rgb(255, 255, 255);
  text-align: center;
  position: absolute;
  bottom: 20px;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
}
