/**
 * loader.css
 * ─────────────────────────────────────────────────────────────
 * Estilos para el overlay de carga inicial.
 * ─────────────────────────────────────────────────────────────
 */

#entry-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #020617; /* Slate 950 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

.circle {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.border {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top-color: #38bdf8; /* Sky 400 */
  border-radius: 50%;
  animation: rotate 2s linear infinite;
  opacity: 0.3;
}

/* Generar variaciones de velocidad para los bordes */
.border:nth-child(1) { animation-duration: 1.5s; opacity: 0.1; }
.border:nth-child(2) { animation-duration: 2.5s; opacity: 0.2; }
.border:nth-child(3) { animation-duration: 3s;   opacity: 0.15; }

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loadingText {
  color: #f8fafc;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 20px;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

#loader-bar-wrap {
  position: absolute;
  bottom: -40px;
  width: 160px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

#loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
