/* GPP Aviso Emergente — modal centrado con afiche */

.gpp-pop {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: gpp-pop-fade 0.25s ease-out both;
}

.gpp-pop[hidden] {
  display: none !important;
}

body.gpp-pop-open {
  overflow: hidden;
}

.gpp-pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 38, 0.74);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.gpp-pop__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(3, 16, 26, 0.45);
  animation: gpp-pop-up 0.3s ease-out both;
}

.gpp-pop__close {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #0b3d62;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(3, 16, 26, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.gpp-pop__close:hover,
.gpp-pop__close:focus {
  background: #eef5fa;
  transform: scale(1.05);
}

.gpp-pop__poster {
  display: block;
  line-height: 0;
}

.gpp-pop__poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px 14px 0 0;
}

.gpp-pop__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  border-radius: 0 0 14px 14px;
}

.gpp-pop__caption {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

.gpp-pop__cta {
  flex: 0 0 auto;
  background: #0b3d62;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 8px;
  padding: 9px 16px;
  white-space: nowrap;
  transition: background 0.18s ease;
}

.gpp-pop__cta:hover,
.gpp-pop__cta:focus {
  background: #14507f;
  color: #ffffff !important;
}

@keyframes gpp-pop-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes gpp-pop-up {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .gpp-pop,
  .gpp-pop__card { animation: none; }
}

@media (max-width: 640px) {
  .gpp-pop {
    padding: 12px;
  }

  .gpp-pop__card {
    max-width: 100%;
    max-height: 90vh;
  }

  .gpp-pop__close {
    top: 6px;
    left: 6px;
    width: 36px;
    height: 36px;
    font-size: 23px;
  }

  .gpp-pop__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: center;
  }

  .gpp-pop__cta {
    display: block;
    text-align: center;
  }
}
