body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: white;
  text-align: center;
}

header {
  margin-top: 50px;
}

.search-box {
  margin: 30px 0;
}

input {
  padding: 12px;
  width: 250px;
  border-radius: 8px;
  border: none;
}

button {
  padding: 12px;
  margin-left: 10px;
  border: none;
  background: #22c55e;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

#results {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* LISTA */
.card {
  background: #1e293b;
  padding: 12px;
  margin: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.card:hover {
  background: #334155;
}

/* OVERLAY */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

/* CONTENIDO */
.modal-content {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  margin: 5% auto;
  padding: 25px;
  width: 90%;
  max-width: 550px;
  border-radius: 16px;
  color: #e2e8f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);

  max-height: 75vh;
  overflow-y: auto;

  animation: slideUp 0.25s ease;
}

/* TITULO */
#modal-title {
  margin-top: 0;
  color: #38bdf8; /* azul */
  font-size: 22px;
  letter-spacing: 1px;
}

/* TEXTO */
#modal-body p {
  line-height: 1.6;
  margin-bottom: 12px;
}

/* BOTON CLOSE */
.close {
  float: right;
  cursor: pointer;
  font-size: 22px;
  color: #94a3b8;
  transition: 0.2s;
}

.close:hover {
  color: #38bdf8;
  transform: scale(1.2);
}

/* SCROLL PERSONALIZADO */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #0ea5e9;
}

/* ANIMACIONES */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

footer {
  margin-top: 60px;
  padding: 25px 10px;
  background: #020617;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid #1e293b;
}

/* LINKS */
.footer-links {
  margin: 15px 0;
}

.footer-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #38bdf8;
  font-weight: 500;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #0ea5e9;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* COPYRIGHT */
footer .copyright {
  font-size: 13px;
  color: #64748b;
}
