/* =========================
   POPUP HUERTA MONARDA
   ========================= */

.hm-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.hm-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hm-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.72);
}

.hm-popup__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  background: #f4ecdd;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 4rem;
}

.hm-popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f1f1f;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.hm-popup__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 300px);
  gap: 3rem;
  align-items: center;
}

.hm-popup__text {
  color: #1f1f1f;
}

.hm-popup__kicker {
 
  margin: 0 0 18px; font-size: var(--font-size-ui); letter-spacing: .15em; text-transform: uppercase;}

.hm-popup__title {
	font-family: var(--font-display); font-size: 30px; line-height: 1.1; letter-spacing: .02em;}

.hm-popup__text p {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.5;
}

.hm-popup__media {
  width: 100%;
}

.hm-popup__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hm-popup__footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-start;
}

.hm-popup__button {
  display: inline-flex;
    align-items: flex-start;
  justify-content: center;
  min-width: 180px;
  min-height: 40px;
  padding: 0.9rem 1.5rem;
  border: 1px solid #1f1f1f;
  background: transparent;
  color: #1f1f1f;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.hm-popup__button:hover,
.hm-popup__button:focus-visible {
  background: #1f1f1f;
  color: #f4ecdd;
  border-color: #1f1f1f;
}

body.hm-popup-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .hm-popup {
    padding: 1.5rem;
  }

  .hm-popup__panel {
    padding: 3rem 2rem;
  }

  .hm-popup__body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hm-popup__media {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .hm-popup {
    padding: 1rem;
  }

  .hm-popup__panel {
    padding: 2.75rem 1.25rem 1.5rem;
  }

  .hm-popup__close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .hm-popup__title {
    font-size: 1.8rem;
  }

  .hm-popup__text p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hm-popup__footer {
    margin-top: 1.75rem;
  }

  .hm-popup__button {
    width: 100%;
  }
}
