/* Estilo base y animaciones para SystemTask */
body.inicio {
  background: linear-gradient(to right, #0072ff, #00c6ff);
  color: white;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  padding: 40px;
}

.titulo {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.subtitulo {
  font-size: 1.2em;
  margin-bottom: 40px;
}

.usuarios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.avatar {
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;              
  flex-direction: column;     
  align-items: center;
}

.avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.avatar span {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  color: white;
}

.avatar:hover {
  transform: scale(1.1);
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 340px;              /* cuadro más grande */
  animation: entrada 0.4s ease;
}

.modal-contenido h2 {
  margin-bottom: 20px;
  color: #333;
}

.modal-contenido input {
  width: 80%;                /* más pequeño dentro del cuadro */
  padding: 8px;              /* menos alto */
  margin: 10px auto;         /* centrado */
  display: block;
}

.modal-contenido button {
  padding: 10px 20px;
  margin: 5px;
  background: #2575fc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-contenido button:hover {
  background: #1a5edb;
}

.oculto {
  display: none;
}

@keyframes entrada {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 🔧 Ajustes para móvil vertical (≤480px) */
@media (max-width: 480px) {
  .titulo {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .subtitulo {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .usuarios {
    gap: 14px;
  }

  .avatar img {
    width: 90px;
    height: 90px;
  }

  .avatar span {
    font-size: 0.85rem;
  }

  .modal-contenido {
    width: 85%;        
    max-width: 260px;  /* cuadro más grande que antes */
    padding: 16px;
    font-size: 0.85rem;
  }

  .modal-contenido input {
    width: 70%;        /* campo más pequeño dentro del cuadro */
    padding: 6px;
  }

  .modal-contenido button {
    font-size: 0.85rem;
    padding: 8px;
  }
}
#loader {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(2px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#loader img {
  width: 80px;
  height: auto;
}
/* 🔧 Ajustes para móviles en horizontal o tablets pequeñas (481–768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .titulo {
    font-size: 2rem;
  }

  .subtitulo {
    font-size: 1rem;
  }

  .avatar img {
    width: 90px;  
    height: 90px;
  }

  .avatar span {
    font-size: 0.85rem;
  }

  .modal-contenido {
    width: 300px;  
    font-size: 0.9rem;
    padding: 18px;
  }

  .modal-contenido input {
    width: 75%;    /* campo más pequeño */
    padding: 7px;
  }
}