/* ==========================================================================
   EROS FITNESS — POP-UP DE VENTA (assets/js/popup.js)
   Tarjeta oscura centrada (en celular sube desde abajo): foto de Eros o
   portada del ebook, título, 3 puntos, botón dorado y WhatsApp.
   ========================================================================== */
.pop { width: min(560px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.pop::backdrop { background: rgba(5, 4, 3, .74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.pop:not([open]) { display: none; }
.pop__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: end; overflow: hidden;
  max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 26px; border: 1px solid rgba(233, 169, 58, .45);
  background: radial-gradient(90% 60% at 100% 0%, rgba(233, 169, 58, .2), transparent 62%), linear-gradient(180deg, #1D1A14, #0F0D0A);
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(246, 199, 104, .08) inset;
}
.pop[open] .pop__panel { animation: pop-entra .55s var(--ease) both; }
@keyframes pop-entra { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .pop[open] .pop__panel { animation: none; } }

.pop__cerrar {
  position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11, 10, 8, .7); color: var(--text-2);
  transition: color .2s, border-color .2s;
}
.pop__cerrar:hover { color: var(--gold-hi); border-color: var(--gold); }
.pop__cerrar svg { width: 20px; height: 20px; }

.pop__cuerpo { position: relative; z-index: 2; padding: 28px 8px 24px 26px; }
.pop__avatar { display: none; width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 6%; background: #2A2419; border: 1.5px solid var(--gold); }
.pop .punto { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(233, 169, 58, .18); }
.pop__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 800 .66rem/1.3 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); }
.pop__titulo { font: 400 clamp(2rem, 1.6rem + 1.8vw, 2.7rem)/.95 var(--f-display); text-transform: uppercase; color: var(--text); text-wrap: balance; }
.pop__titulo em { font: italic 500 1.05em/.9 var(--f-serif); text-transform: none; background: var(--oro-texto); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.pop__texto { margin-top: 12px; font-size: .96rem; line-height: 1.5; color: var(--text-2); }
.pop__lista { display: grid; gap: 7px; margin: 14px 0 18px; padding: 0; list-style: none; }
.pop__lista li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; line-height: 1.4; color: var(--text); }
.pop__lista svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--gold); }
.pop__cta { --h: 56px; }
.pop__wa { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--text-2); text-decoration: underline; text-decoration-color: rgba(233, 169, 58, .45); text-underline-offset: 4px; }
.pop__wa:hover { color: var(--gold-hi); }
.pop__wa svg { width: 16px; height: 16px; color: var(--gold); }
.pop__nota { margin-top: 4px; text-align: center; font-size: .76rem; color: var(--muted); }

/* La foto: Eros recortado (gratis) o la portada del ebook (Paquete QUEMA) */
.pop__foto { position: relative; align-self: stretch; margin: 0; pointer-events: none; }
.pop__foto img { position: absolute; right: -6px; bottom: 0; width: 190px; max-width: none; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.pop--quema .pop__foto img { right: 18px; bottom: auto; top: 64px; width: 120px; border-radius: 6px; border: 1px solid var(--line-2); -webkit-mask-image: none; mask-image: none; transform: rotate(5deg); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .95); }
.pop__precio { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(233, 169, 58, .12); border: 1px solid var(--line-2); font: 800 .72rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); }

/* Celular: sube desde abajo, la foto pequeña arriba a la derecha */
@media (max-width: 599px) {
  .pop { width: 100%; max-height: 92dvh; margin: auto 0 0; }
  .pop__panel { grid-template-columns: minmax(0, 1fr); border-radius: 26px 26px 0 0; border-bottom: 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .pop[open] .pop__panel { animation-name: pop-sube; }
  @keyframes pop-sube { from { opacity: 0; transform: translateY(40px); } }
  .pop__cuerpo { padding: 26px 20px 18px; }
  .pop__titulo { padding-right: 96px; }
  .pop__foto { position: absolute; top: 0; right: 0; width: 120px; height: 200px; }
  .pop--quema .pop__foto img { width: 74px; top: 60px; right: 20px; }
  /* Gratis: en vez de la foto grande, Eros en un círculo junto al título */
  .pop--gratis .pop__foto { display: none; }
  .pop--gratis .pop__titulo { padding-right: 40px; }
  .pop__avatar { display: block !important; }
  .pop__avatar + .punto { display: none; }
  .pop__cerrar { top: 8px; right: 8px; }
}
html.pop-abierto { overflow: hidden; }
