/* ============================================================
   POPUP PREMIUM — usa exactamente las mismas variables de diseño
   ya definidas en :root por el CSS del sitio (styles-CcYESj_A.css):
   --primary, --primary-foreground, --pink-soft, --pink-bright,
   --green-soft, --green-bright, --cream, --foreground,
   --muted-foreground, --border, --radius, --shadow-soft
   No se sobreescribe nada existente, solo se añaden reglas nuevas.
   ============================================================ */

#kp-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: oklch(20% 0.02 340 / 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  animation: kp-fade-in .25s ease;
}

#kp-overlay.kp-open {
  display: flex;
}

@keyframes kp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kp-pop-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.kp-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--cream, #fdfcf9);
  border-radius: calc(var(--radius, 1.25rem) + 24px);
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-soft, 0 10px 30px -10px oklch(60% .15 350/.25)), 0 25px 60px -15px rgba(0,0,0,.35);
  padding: 28px 24px 24px;
  animation: kp-pop-in .3s cubic-bezier(.16,1,.32,1);
}

@media (min-width: 640px) {
  .kp-modal { padding: 40px 44px 36px; }
}

.kp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: var(--foreground, #3a2530);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.kp-close:hover { transform: scale(1.08); background: var(--pink-soft, #f6dbe4); }

.kp-eyebrow {
  text-align: center;
  font-family: 'Fredoka', ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink-bright, oklch(75% .18 350));
  margin: 0 0 6px;
}

.kp-title {
  text-align: center;
  font-family: 'Fredoka', ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--foreground, #3a2530);
  margin: 0 0 10px;
}

@media (min-width: 640px) {
  .kp-title { font-size: 30px; }
}

.kp-title .kp-highlight {
  color: var(--pink-bright, oklch(75% .18 350));
}

.kp-subtitle {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-foreground, #7a6b73);
  max-width: 460px;
  margin: 0 auto 26px;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .kp-subtitle { font-size: 17px; }
}

.kp-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .kp-options { grid-template-columns: 1fr 1fr; }
}

.kp-card {
  position: relative;
  border-radius: calc(var(--radius, 1.25rem) + 8px);
  border: 3px solid var(--border, oklch(92% .02 340));
  background: #ffffff;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
}

.kp-card--premium {
  border-color: var(--pink-bright, oklch(75% .18 350));
  background: linear-gradient(160deg, #ffffff 0%, var(--pink-soft, #f6dbe4) 130%);
  box-shadow: 0 12px 28px -12px oklch(60% .15 350 / .35);
  transform: translateY(0);
}

@media (min-width: 640px) {
  .kp-card--premium { transform: translateY(-6px); }
}

.kp-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink-bright, oklch(75% .18 350));
  color: #ffffff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,.2);
}

.kp-card-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--foreground, #3a2530);
  margin: 6px 0 2px;
  text-align: center;
}

.kp-card-price-row {
  text-align: center;
  margin: 6px 0 14px;
}

.kp-price {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--foreground, #3a2530);
}

.kp-card--premium .kp-price {
  color: var(--pink-bright, oklch(75% .18 350));
  font-size: 36px;
}

.kp-price-note {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-foreground, #7a6b73);
  margin-top: 2px;
}

.kp-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kp-list li {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--foreground, #3a2530);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.kp-list li span.kp-ico {
  flex-shrink: 0;
}

.kp-list--muted li {
  color: var(--muted-foreground, #7a6b73);
}

.kp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.kp-btn--primary {
  background: var(--primary, oklch(62% .22 25));
  color: var(--primary-foreground, #fff);
  font-size: 15px;
  padding: 14px 18px;
  box-shadow: 0 8px 0 -2px oklch(45% .18 25);
}
.kp-btn--primary:hover { transform: translateY(2px); box-shadow: 0 5px 0 -2px oklch(45% .18 25); }

.kp-btn--ghost {
  background: #ffffff;
  color: var(--foreground, #3a2530);
  border: 2px solid var(--border, oklch(92% .02 340));
  font-size: 13.5px;
  padding: 12px 16px;
}
.kp-btn--ghost:hover { background: var(--muted, #f4f2ea); }

.kp-footnote {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted-foreground, #7a6b73);
  letter-spacing: .02em;
  margin-top: 16px;
}

.kp-secure-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.kp-secure-row span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-foreground, #7a6b73);
}

/* Body lock when modal is open */
body.kp-lock {
  overflow: hidden;
}
