/* Estilos para el modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-popup {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 2px solid #ff8c00;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 
    0px 4px 20px rgba(255, 140, 0, 0.3),
    0px 0px 30px rgba(0, 0, 0, 0.5);
  max-width: 420px;
  text-align: center;
  color: #ffffff;
}

.modal-popup h1 {
  margin-top: 0;
  color: #ffcc00;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.modal-popup p {
  margin-bottom: 12px;
  color: #e0e0e0;
  font-size: 14px;
  line-height: 1.4;
}

.modal-popup p:nth-child(2),
.modal-popup p:nth-child(3),
.modal-popup p:nth-child(4) {
  background: rgba(255, 140, 0, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #ff8c00;
  margin: 8px 0;
}

.modal-popup p:nth-child(4) {
  border-left-color: #ffcc00;
  background: rgba(255, 204, 0, 0.1);
}

.modal-popup p strong {
  color: #ffcc00;
  font-weight: bold;
}

.modal-popup .button {
  background: linear-gradient(135deg, #ff8c00, #ff6600);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0px 3px 10px rgba(255, 140, 0, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  margin: 5px;
}

.modal-popup .button:hover {
  background: linear-gradient(135deg, #ff6600, #ff4500);
  transform: translateY(-2px);
  box-shadow: 0px 5px 15px rgba(255, 140, 0, 0.6);
  text-decoration: none;
  color: #ffffff;
}

.modal-popup .reload-button {
  color: #888888;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  border: 2px solid #555555;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-popup .reload-button:hover {
  color: #ffcc00;
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.1);
  text-decoration: none;
  transform: scale(1.05);
}

/* Efecto de brillo sutil */
.modal-popup::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff8c00, #ffcc00, #ff8c00);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.3;
}

/* Animación sutil para el modal */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-popup {
  animation: modalFadeIn 0.3s ease-out;
}