/* ============================================================
   Modal — pop-up de evento (ex: MAIO - AI experience)
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-7) var(--space-4);
  z-index: 100;
  overflow-y: auto;
}
.modal-overlay.is-open {
  display: flex;
}

.modal {
  position: relative;
  max-width: 760px;
  width: 100%;
  background: var(--color-primary-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn 220ms ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--transition-base);
}
.modal__close:hover {
  background: rgba(0, 0, 0, 0.55);
}
.modal__close svg {
  width: 16px;
  height: 16px;
}

.modal__image {
  display: block;
  width: 100%;
  height: auto;
}
