/* saludo inicial se llama splash */

/* Estilos para el mensaje de bienvenida (splash) */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: Arial, sans-serif;
  color: #333;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.splash-content {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.splash-content img {
  width: 250px;
  margin-bottom: 20px;
}

.splash-content h1 {
  font-size: 1.5rem;
  margin: 10px 0;
}

.splash-content p {
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.4;
  max-width: 90%;
}

/* Animación para ocultar el splash */
.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

/* Ocultar el contenido principal hasta que pase el splash */
body.loaded #main-content {
  display: block;
}

#main-content {
  display: none;
}

/* Modal informativo */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background-color: white;
  padding: 30px;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  text-align: left;
  font-family: Arial, sans-serif;
}

.modal-content h2,
.modal-content h3 {
  margin-top: 0;
}

.modal-content ul {
  padding-left: 20px;
}

#start-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#start-btn:hover {
  background-color: #005fa3;
}

/* RESPONSIVE: Mejora en pantallas pequeñas */
@media (max-width: 480px) {
  .splash-content img {
    width: 180px;
  }

  .splash-content h1 {
    font-size: 1.2rem;
  }

  .splash-content p {
    font-size: 0.95rem;
    padding: 0 15px;
  }
}

