/* POPUP DISCORD PERSONALIZADO */
.discord-popup {
  width: 550px;
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  /* Asegura apilado vertical */
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

.discord-popup-header {
  width: 100%;
  border-bottom: 1px solid #666666;
  padding: 0;
  margin: 0;
  line-height: 0;
  position: relative;
}

.discord-popup-url {
  font-size: 1em;
  color: #b9bbbe;
}

.discord-popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  transition: color 0.2s;
}

.discord-popup-close:hover {
  color: #5865f2;
}

.discord-popup-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  /* Cambia a flex-end para pegar al footer */
  padding: 0;
  margin: 0;
  border: 1px solid #666666;
  background: linear-gradient(135deg, #EFEFEF 0%, #6c6569 100%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  min-height: 0;
  /* Quita el min-height */
  height: auto;
}

.discord-img-btn-container {
  position: relative;
  width: 90%;
  margin: 30px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.discord-popup-img {
  display: block;
  width: 100%;
  /* Ocupa todo el ancho del popup */
  height: auto;
  margin: 0;
  padding: 0;
}

.discord-popup-btn {
  position: absolute;
  bottom: 35px;
  /* Ajusta según la imagen */
  left: 40%;
  transform: translateX(-50%);
  background: #8DA1FC;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.10);
  transition: background 0.2s;
}

.discord-popup-btn:hover {
  background: #404eed;
  color: #fff;
}

.web-header,
.web-footer {
  margin: 0;
  padding: 0;
  border: none;
}