/* GP-CLUB-POPUP — modal Club Garden Pàmies (marca + glamour) */
@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Source+Sans+3:wght@400;600;700&display=swap");

/* Ocultar popup demo del módulo (se sustituye) */
#overlay,
.newsletter-main,
.cp-show-newsletter-popup,
.cp-coupon-small {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.gp-club-pop {
  --gp-green: #2d6a4f;
  --gp-green-deep: #1b4332;
  --gp-ink: #f4f7f4;
  --gp-muted: rgba(244, 247, 244, 0.78);
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.gp-club-pop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gp-club-pop__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(45, 106, 79, 0.35), transparent 55%),
    rgba(8, 18, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.gp-club-pop__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 640px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gp-club-pop.is-open .gp-club-pop__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.gp-club-pop__media {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(160deg, rgba(27, 67, 50, 0.35), rgba(8, 18, 12, 0.55)),
    var(--gp-club-bg, #1b4332) center / cover no-repeat;
}

.gp-club-pop__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 18, 12, 0.75) 100%);
  pointer-events: none;
}

.gp-club-pop__shine {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 60%
  );
  transform: translateX(-30%);
  animation: gpClubShine 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gpClubShine {
  0%, 100% { transform: translateX(-40%) skewX(-12deg); opacity: 0.35; }
  50% { transform: translateX(35%) skewX(-12deg); opacity: 0.7; }
}

.gp-club-pop__media-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem 1.6rem 1.7rem;
  color: var(--gp-ink);
}

.gp-club-pop__eyebrow {
  margin: 0 0 0.35rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(149, 213, 178, 0.95);
}

.gp-club-pop__brand {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  font-weight: 400;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.gp-club-pop__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background:
    linear-gradient(165deg, #13271d 0%, #1b4332 48%, #244c38 100%);
  color: var(--gp-ink);
}

.gp-club-pop__title {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gp-club-pop__lead {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--gp-muted);
}

.gp-club-pop__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(149, 213, 178, 0.55);
  background: rgba(0, 0, 0, 0.22);
}

.gp-club-pop__code-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(149, 213, 178, 0.9);
}

.gp-club-pop__code-value {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
}

.gp-club-pop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.gp-club-pop__cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--gp-green) 0%, var(--gp-green-deep) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.gp-club-pop__cta:hover,
.gp-club-pop__cta:focus {
  color: #fff !important;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.gp-club-pop__ghost {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(244, 247, 244, 0.9) !important;
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gp-club-pop__ghost:hover,
.gp-club-pop__ghost:focus {
  border-color: rgba(149, 213, 178, 0.7);
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}

.gp-club-pop__note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(244, 247, 244, 0.55);
}

.gp-club-pop__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(8, 18, 12, 0.55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gp-club-pop__close:hover {
  background: var(--gp-green);
  transform: rotate(90deg);
}

@media (max-width: 767px) {
  .gp-club-pop__panel {
    grid-template-columns: 1fr;
    max-height: min(92vh, 720px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gp-club-pop__media {
    min-height: 190px;
  }

  .gp-club-pop__brand {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .gp-club-pop__body {
    padding: 1.25rem 1.2rem 1.4rem;
  }

  .gp-club-pop__actions {
    flex-direction: column;
  }

  .gp-club-pop__cta,
  .gp-club-pop__ghost {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gp-club-pop,
  .gp-club-pop__panel,
  .gp-club-pop__cta,
  .gp-club-pop__close,
  .gp-club-pop__shine {
    animation: none !important;
    transition: none !important;
  }

  .gp-club-pop.is-open .gp-club-pop__panel {
    transform: none;
  }
}
