.loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 130px auto; /* Ajusta el margen superior e inferior para centrar verticalmente */
    perspective: 780px;
  }
  
  .text {
    font-size: 20px;
    font-weight: 700;
    color: #cecece;
    z-index: 10;
  }
  
  .load-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 50%;
  }
  
  .load-inner.load-one {
    left: 0%;
    top: 0%;
    border-bottom: 3px solid #5c5edc;
    animation: rotate1 1.15s linear infinite;
  }
  
  .load-inner.load-two {
    right: 0%;
    top: 0%;
    border-right: 3px solid #9147ff;
    animation: rotate2 1.15s 0.1s linear infinite;
  }
  
  .load-inner.load-three {
    right: 0%;
    bottom: 0%;
    border-top: 3px solid #3b82f6;
    animation: rotate3 1.15s 0.15s linear infinite;
  }
  
  @keyframes rotate1 {
    0% {
      transform: rotateX(45deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
      transform: rotateX(45deg) rotateY(-45deg) rotateZ(360deg);
    }
  }
  @keyframes rotate2 {
    0% {
      transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg);
    }
    100% {
      transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg);
    }
  }
  @keyframes rotate3 {
    0% {
      transform: rotateX(-60deg) rotateY(0deg) rotateZ(0deg);
    }
    100% {
      transform: rotateX(-60deg) rotateY(0deg) rotateZ(360deg);
    }
  }
  


  

#splashNotificaciones {
  display: none; /* Oculto inicialmente */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
  z-index: 1050;
  display: flex;
  justify-content: center; /* Centrado horizontal */
  align-items: center; /* Alineación vertical en el centro */
  padding-top: 20%; /* Ajusta este valor para mover el contenido hacia abajo */
}
:root{
  --spin: #eef0ff;     /* claro */
  --spin-dark: #b6befa;/* más oscuro y armónico */
}

/* Solo el spinner del splash de notificaciones */
#splashNotificaciones .spinner{
  /* aro tenue en el claro, con transparencia */
  border: 5px solid rgba(238, 240, 255, 0.35);
  /* borde superior (color que ves girar): más oscuro */
  border-top: 5px solid var(--spin-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.splash-contenido {
  text-align: center;
  color: rgb(23, 255, 42);
  font-family: Arial, sans-serif;
}


/* Spinner animado */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite; /* Animación continua */
  margin: 0 auto 20px auto; /* Centrar y dar espacio abajo */
}

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

/* Animación del texto */
.splash-texto {
  font-size: 20px;
  font-weight: bold;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% {
      opacity: 1;
  }
  50% {
      opacity: 0.5;
  }
}


/* Cambia el tamaño del spinner y texto para dispositivos pequeños */
@media (max-width: 768px) {
  .spinner {
      width: 30px; /* Spinner más pequeño */
      height: 30px;
      border-width: 3px; /* Bordes más delgados */
  }
  .splash-texto {
      font-size: 16px; /* Texto más pequeño */
  }
}

@media (max-width: 480px) {
  .spinner {
      width: 20px;
      height: 20px;
      border-width: 2px;
  }
  .splash-texto {
      font-size: 14px;
  }
}










/* Overlay full-screen (solo se usará en mobile) */
.global-spinner{
  position: fixed;
  inset: 0;
  display: none;                 /* se enciende por JS */
  align-items: center;
  justify-content: center;
  background: rgba(6,30,53,.7);
  z-index: 2147483647 !important;
}

/* Loader circular */
.global-spinner__loader{
  width: 52px; height: 52px;
  border: 4px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: gp-spin .9s linear infinite;
}
@keyframes gp-spin{ to{ transform: rotate(360deg); } }

/* Opcional: solo dejar visible en móviles */
@media (min-width: 769px){
  .global-spinner{ display: none !important; }
}
