/* PopUp Fraganceros — mínimo y responsive */
.pf-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.pf-popup[hidden] {
  display: none !important;
}

.pf-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  animation: pf-backdrop-in 0.28s ease-out;
}

@keyframes pf-backdrop-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.pf-popup__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  max-height: min(88vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
  -webkit-overflow-scrolling: touch;
  animation: pf-pop-in 0.22s ease-out;
}

@keyframes pf-pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pf-popup__close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pf-popup__close:hover,
.pf-popup__close:focus {
  background: #c91f1f;
  outline: none;
}

.pf-popup__media {
  display: block;
  line-height: 0;
}

.pf-popup__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
  margin: 0 auto;
}

.pf-popup__text {
  padding: 12px 16px 4px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: #111;
}

.pf-popup__text a {
  color: #c91f1f;
  text-decoration: underline;
  font-weight: 700;
}

.pf-popup__text a:hover {
  color: #9d1515;
}

.pf-popup__text p {
  margin: 0 0 0.4em;
}

.pf-popup__text p:last-child {
  margin-bottom: 0;
}

.pf-popup__text ul,
.pf-popup__text ol {
  margin: 0.4em 0 0.6em;
  padding-left: 1.2em;
  text-align: left;
}

.pf-popup__text strong,
.pf-popup__text b {
  font-weight: 800;
}

.pf-popup__dismiss {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f7f7f7;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pf-popup__dismiss:hover,
.pf-popup__dismiss:focus {
  background: #eee;
  outline: none;
}

@media (max-width: 480px) {
  .pf-popup {
    padding: 10px;
  }

  .pf-popup__card {
    width: min(96vw, 420px);
    border-radius: 8px;
  }

  .pf-popup__text {
    font-size: 14px;
    padding: 10px 12px 2px;
  }

  .pf-popup__close {
    width: 40px;
    height: 40px;
    top: 4px;
    right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-popup__card,
  .pf-popup__backdrop {
    animation: none;
  }
}

html.pf-popup-open {
  overflow: hidden;
}
