/* Loader Styles */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  /* Ocultar por defecto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
  /* Permite interacción con elementos debajo */
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #000000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite, color-change 3s infinite;
}

/* Loader Styles */
.loader-container3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  /* Ocultar por defecto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
  /* Permite interacción con elementos debajo */
}

.spinner3 {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #000000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite, color-change 3s infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes color-change {

  0%,
  33% {
    border-top-color: black;
  }

  34%,
  66% {
    border-top-color: red;
  }
}



.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* LOADER PARA LA VISTA CONTENIDO DE NOTICIAS */


/* 
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 50vw;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centrado vertical */
/* align-items: center;
  /* Centrado horizontal */
/* background: rgba(255, 255, 255, 0.8);
  z-index: 9999 !important;
} */



/* .spinner4 {
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
  z-index: 9999 !important;
} */

.loader-container {
  position: fixed;
  /* Fijo en toda la pantalla */
  top: 0;
  left: 0;
  width: 100vw;
  /* Ancho completo */
  height: 100vh;
  /* Alto completo */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  /* Fondo blanco semitransparente */
  z-index: 9999;
  /* Asegura que esté por encima de TODO */
}

.spinner4 {
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}






/* Loader principal */
/* loader.css */
/* .loader-overlay {
  position: fixed;
  top: 5%;
  left: 5%;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  display: none; */
/* Ocultar por defecto */
/* justify-content: center !important;
  align-items: center !important;
  z-index: 9999; */
/* position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999; */
/* } */

/* .loader-container2 { */
/* margin-top: 10%; */
/* position: fixed; */
/* justify-content: center !important; */
/* align-items: center !important; */
/* margin-left: -20% !important; */
/* } */

/* .spinner2 { */
/* position: fixed; */
/* border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #000000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite, color-change 3s infinite; */

/* justify-content: center;
  align-items: center; */

/* } */


/* .loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden; 
  }
  
  .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #000000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite, color-change 3s infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
  
    100% {
      transform: rotate(360deg);
    }
  }
  
  @keyframes color-change {
    0%, 33% {
      border-top-color: black;
    }
  
    34%, 66% {
      border-top-color: red;
    }
  } */