/* ===========================
   MODAL EMERGENTE
=========================== */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s ease forwards;
}

.modal-contenido {
  background: #11121a;
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 20px;
  padding: 40px 30px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 40px rgba(0,255,255,0.2);
  position: relative;
  text-align: center;
  transform: scale(0.8);
  opacity: 0;
  animation: modalIn 0.4s forwards;
}

.modal-contenido h3 {
  color: #0ff;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

/* --- INFO BOXES (Cajas clickeables) --- */
.modal-info {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.info-box {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;         /* 🔹 quita subrayado */
  color: inherit;                /* 🔹 mantiene el color del texto */
  display: block;                /* 🔹 hace clickeable todo el bloque */
}

.info-box:hover {
  background: rgba(0, 255, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.info-box h4 {
  color: #0ff;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.info-box p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- BOTÓN CERRAR --- */
.cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #0ff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cerrar:hover {
  color: #fff;
  transform: rotate(90deg);
}

/* ===========================
   ANIMACIONES
=========================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  to { transform: scale(1); opacity: 1; }
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */

@media (max-width: 600px) {
  .modal-contenido {
    width: 90%;
    padding: 30px 20px;
  }

  .modal-info {
    flex-direction: column;
    gap: 15px;
  }
}
