  /* OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 5, 15, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* MODAL CON SCROLL */
.modal {
  background: #020b16;
  color: #cfefff;
  padding: 30px;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;

  box-shadow: 0 0 25px rgba(0, 234, 255, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* ANIMACIÓN */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BOTÓN HERO */
.hero-btn {
  padding: 15px 25px;
  background: transparent;
  border: 2px solid #00eaff;
  color: #00eaff;
  border-radius: 10px;
  cursor: pointer;
}

.hero-btn:hover {
  background: #00eaff;
  color: #000;
}

/* CERRAR */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 25px;
  cursor: pointer;
}

/* TEXTOS */
.modal h2 {
  color: #00eaff;
}

.subtitle {
  color: #7ddfff;
  margin-bottom: 10px;
}

.intro {
  margin-bottom: 20px;
}

/* GRID BASE */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

/* BOXES */
.box {
  border: 1px solid rgba(0, 234, 255, 0.2);
  padding: 15px;
  border-radius: 12px;
  background: rgba(0, 10, 25, 0.6);
}

.box.small {
  font-size: 14px;
  opacity: 0.85;
}
.box ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

/* DESTACADO */
.highlight {
  border: 1px solid #00eaff;
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.4);
}

/* BOTÓN */
.btn-primary {
  display: block;
  text-align: center;
  padding: 15px;
  border: 2px solid #00eaff;
  border-radius: 10px;
  color: #00eaff;
  margin-top: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #00eaff;
  color: #000;
}

/* TEXTO FINAL */
.ally {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.9;
}

/* TABLET */
@media (max-width: 900px) {
  .modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MÓVIL */
@media (max-width: 600px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .modal {
    width: 95%;
    padding: 20px;
    border-radius: 15px;
  }
}
.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-thumb {
  background: #00eaff;
  border-radius: 10px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}