/* Modal Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Fondo oscuro para enfoque */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* Contenido del Modal */
.modal-content {
  position: relative;
  background: #f9f9f9; /* Fondo claro profesional */
  color: #333;
  border-radius: 8px;
  padding: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeInScale 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

/* Animación de entrada */
@keyframes fadeInScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Título */
.modal-content h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #222;
  text-align: center;
  border-bottom: 2px solid #007bff;
  padding-bottom: 8px;
}

/* Texto */
#modalText p {
  font-size: 1rem;
  color: #555;
  margin: 10px 0;
  line-height: 1.6;
}

/* Imagen */
#modalImage {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 16px;
}

/* Botón cerrar */
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #007bff;
}

/* Botón contacto */
#contactBtn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#contactBtn:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 480px) {
  .modal-content {
    padding: 16px;
    max-width: 95%;
  }
  .modal-content h2 {
    font-size: 1.4rem;
  }
}