
/* Fondo oscuro con blur */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9999;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

/* Caja */
.modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 900px;
  width: 90%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: scaleIn 0.3s ease;
  position: relative;
}

/* Animación */
@keyframes scaleIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Imagen */
.modal-img-wrap {
  height: 100%;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info */
.modal-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.modal-info p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* Botón cerrar */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #000;
  color: #fff;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: 0.3s;
}

.close-btn:hover {
  background: #ff3b3b;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-box {
    grid-template-columns: 1fr;
  }

  .modal-img-wrap {
    height: 250px;
  }
}