body {
  margin: 0;
  padding: 0;
}

.splash-screen {
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: Helvetica, 'sans-serif';
  background-color: #f2f3f8;
  color: #5E6278;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
}

/* Spinner personalizado para splash screen */
.splash-screen .spinner-turnalis {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.splash-screen .spinner-turnalis .circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(from 0deg, transparent, #00e0a0, #0078ff, #00e0a0, transparent);
  animation: rotate 3s linear infinite;
  box-shadow: 
    0 0 15px rgba(0, 224, 160, 0.25),
    0 0 30px rgba(0, 120, 255, 0.15);
  
  &::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 1;
  }
}

.splash-screen .spinner-turnalis .hand {
  position: absolute;
  left: 50%;
  transform-origin: 50% 100%;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 0 8px rgba(0, 224, 160, 0.4);
}

.splash-screen .spinner-turnalis .hour-hand {
  width: 10px;
  height: 25%;
  background: linear-gradient(to top, #00e0a0, #0078ff);
  top: 25%;
  animation: hour-hand-sweep 12s infinite linear;
}

.splash-screen .spinner-turnalis .minute-hand {
  width: 6px;
  height: 40%;
  background: linear-gradient(to top, #0078ff, #00e0a0);
  top: 10%;
  animation: minute-hand-sweep 2s infinite linear;
}

.splash-screen .spinner-turnalis .center-dot {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #00ffc8, #00e0a0);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.5);
}





/* Logo del splash screen */
.splash-logo {
  margin-bottom: 1.5rem;
}

.splash-logo img {
  height: 40px !important;
  width: auto;
}

/* Texto del splash screen */
.splash-text span {
  color: #5E6278;
  transition: none !important;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  font-weight: 500;
}

/* Animaciones del spinner */
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes hour-hand-sweep {
  0% { 
    transform: rotate(0deg);
  }
  100% { 
    transform: rotate(360deg);
  }
}

@keyframes minute-hand-sweep {
  0% { 
    transform: rotate(0deg);
  }
  100% { 
    transform: rotate(360deg);
  }
}



/* Tema oscuro */
[data-bs-theme="dark"] .splash-screen {
  background-color: #151521;
  color: #92929F;
}

[data-bs-theme="dark"] .splash-text span {
  color: #92929F;
}

#root {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}
