:root {
  --font-family: 'Poppins', sans-serif;
  --main-color: #000;
  --point-color: #fff;
  --size: 4px;
}

body {
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  text-align: center;
  padding: 0 15px;
}

.mensaje {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-family);
}

.logo {
  height: 35p;
  margin-bottom: 8px;
}

.principal {
  font-size: 1.1rem;
  color: #ccc;
  white-space: nowrap;
  margin-bottom: 8px;
}

.secundario {
  font-size: 0.9rem;
  color: #888;
}

.loader {
  background-color: var(--main-color);
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0; 
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;  
  z-index: 100000;
  animation: fadeOut 2s forwards;
}

.loader__element {
  border-radius: 100%;
  border: var(--size) solid var(--point-color);
  margin: calc(var(--size) * 2);
  animation: preloader .6s ease-in-out alternate infinite;
}

.loader__element:nth-child(2) {
  animation: preloader .6s ease-in-out alternate .2s infinite;
}

.loader__element:nth-child(3) {
  animation: preloader .6s ease-in-out alternate .4s infinite;
}

@keyframes preloader {
  100% { transform: scale(2); }
}

@keyframes fadeOut {
  100% {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 30px;
  }

  .principal {
    font-size: 1rem;
  }

  .secundario {
    font-size: 0.85rem;
  }
}
