/* Desactivar la selección de texto */
.noselect, body {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer */
  user-select: none;         /* Chrome y otros */
}

 /* Fondo oscuro semitransparente */
 #warning-popup {
  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;
  z-index: 1000;
  display: none; /* Oculto por defecto */
}

/* Estilo del mensaje */
#warning-message {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  font-family: Arial, sans-serif;
  animation: fadeIn 0.3s ease-in-out;
}

/* Botón de cierre */
#close-warning {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #d9534f;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

#close-warning:hover {
  background: #c9302c;
}

/* Animación de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#auth-popup {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

#auth-message {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
}

#auth-message p {
  font-family: Georgia, serif;
  font-size: 16px;
  color: black;
}

#close-auth {
  background: red;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
}

#close-auth:hover {
  background: darkred;
}

/* ============================
   🎯 MEDIA QUERIES RESPONSIVAS
   ============================ */

/* 📱 Teléfonos pequeños (≤ 480px) */
@media (max-width: 480px) {
  .icon-button {
    font-size: 14px;
    padding: 6px 8px;
    margin: 3px;
  }

  h1, h2, h3 {
    font-size: 20px;
    text-align: center;
  }

  #menu-container {
    font-size: 14px;
  }

  #back-to-top {
    width: 36px;
    height: 36px;
    font-size: 14px;
    bottom: 15px;
    right: 15px;
  }
}

/* 📲 Teléfonos grandes y tabletas verticales (≤ 768px) */
@media (max-width: 768px) {
  .icon-button {
    font-size: 14px;
    padding: 8px 12px;
    margin: 5px;
  }

  #content-container,
  #menu-sub {
    padding: 10px;
  }

  h1 {
    font-size: 24px;
  }

  #menu-container {
    font-size: 15px;
  }

  #back-to-top {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* 💻 Laptops y pantallas medianas (≤ 1024px) */
@media (max-width: 1024px) {
  .icon-button {
    font-size: 16px;
    padding: 10px 14px;
    margin: 6px;
  }

  h1 {
    font-size: 28px;
  }

  #menu-container {
    font-size: 16px;
  }
}

/* 🖥️ Escritorios grandes (≥ 1025px) */
@media (min-width: 1025px) {
  .icon-button {
    font-size: 18px;
    padding: 12px 16px;
    margin: 8px;
  }

  h1 {
    font-size: 32px;
  }

  #menu-container {
    font-size: 17px;
  }

  #back-to-top {
    width: 45px;
    height: 45px;
    font-size: 20px;
    bottom: 25px;
    right: 25px;
  }
}
