/* ─────────────────────────────────────────────────────────────────
   WpLanding — Video Locked Form
   Marco tipo video con miniatura + botón play que abre un overlay
   con formulario "candado" que genera curiosidad.
   Reutiliza .wpl-vf y los 5 estilos (gold, neon, cinema, glass, holo).
   ───────────────────────────────────────────────────────────────── */

/* Marco que abre el popup: cursor pointer + transición 3D */
.wpl-locked.wpl-vf {
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  will-change: transform;
}
.wpl-locked.wpl-vf:hover {
  transform: scale(1.025) rotateX(2deg) rotateY(-2deg);
}
.wpl-locked.wpl-vf:active {
  transform: scale(.985);
  transition-duration: .12s;
}

/* Miniatura editable dentro del marco. Reemplaza al iframe del video. */
.wpl-locked .wpl-vf-screen .wpl-locked-thumb {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  background: #0b1020;
  z-index: 1;
}

/* Overlay con vignette/oscurecido encima de la miniatura para que destaque el play */
.wpl-locked .wpl-vf-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.45) 100%);
  z-index: 2;
}

/* Botón play centrado con pulso */
.wpl-locked .wpl-locked-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  box-shadow:
    0 0 0 0 rgba(255,255,255,.65),
    0 14px 40px -8px rgba(0,0,0,.6),
    0 0 30px 4px rgba(255,255,255,.35);
  animation: wplLockedPulse 2.2s ease-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wpl-locked .wpl-locked-play svg {
  width: 32px;
  height: 32px;
  fill: #0f172a;
  margin-left: 4px;
}
.wpl-locked:hover .wpl-locked-play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 0 0 0 rgba(255,255,255,0),
    0 20px 50px -8px rgba(0,0,0,.7),
    0 0 50px 8px rgba(255,255,255,.55);
}
@keyframes wplLockedPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255,255,255,.65),
      0 14px 40px -8px rgba(0,0,0,.6),
      0 0 30px 4px rgba(255,255,255,.35);
  }
  70% {
    box-shadow:
      0 0 0 22px rgba(255,255,255,0),
      0 14px 40px -8px rgba(0,0,0,.6),
      0 0 30px 4px rgba(255,255,255,.35);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255,255,255,0),
      0 14px 40px -8px rgba(0,0,0,.6),
      0 0 30px 4px rgba(255,255,255,.35);
  }
}

/* Etiqueta de duración estilo YouTube (esquina inferior derecha) */
.wpl-locked .wpl-locked-duration {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,.82);
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  letter-spacing: .03em;
  z-index: 3;
  backdrop-filter: blur(2px);
}

/* ─── OVERLAY con formulario candado ─── */
.wpl-locked-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, .88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: wplLockedFadeIn .25s ease;
}
@keyframes wplLockedFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.wpl-locked-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  padding: 38px 32px 32px;
  box-shadow:
    0 30px 90px -20px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.1) inset,
    0 0 60px -10px rgba(124,92,255,.4);
  animation: wplLockedSlideIn .45s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
@keyframes wplLockedSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Halo decorativo dentro del modal */
.wpl-locked-modal::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.25), transparent 70%);
  pointer-events: none;
}
.wpl-locked-modal::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.22), transparent 70%);
  pointer-events: none;
}

/* Botón cerrar */
.wpl-locked-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15,23,42,.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: background .15s, transform .15s;
  z-index: 10;
}
.wpl-locked-close:hover {
  background: rgba(15,23,42,.12);
  transform: rotate(90deg);
}
.wpl-locked-close svg { width: 16px; height: 16px; }

/* Candado animado */
.wpl-locked-lock {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #7c5cff 0%, #e0319d 60%, #f59e0b 100%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 18px 40px -10px rgba(124,92,255,.6),
    0 0 0 1px rgba(255,255,255,.25) inset;
  animation: wplLockedFloat 3s ease-in-out infinite;
}
.wpl-locked-lock svg { width: 40px; height: 40px; fill: #fff; }
@keyframes wplLockedFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(3deg); }
}

/* Headings */
.wpl-locked-modal h3 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}
.wpl-locked-modal .wpl-locked-sub {
  text-align: center;
  color: #64748b;
  font-size: .92rem;
  margin: 0 0 24px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.wpl-locked-modal .wpl-locked-sub strong { color: #0f172a; }

/* Botón submit */
.wpl-locked-modal .wpl-form-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #7c5cff 0%, #e0319d 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .01em;
  box-shadow:
    0 12px 28px -8px rgba(224,49,157,.55),
    0 0 0 1px rgba(255,255,255,.15) inset;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.wpl-locked-modal .wpl-form-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px -10px rgba(224,49,157,.7),
    0 0 0 1px rgba(255,255,255,.2) inset;
}
.wpl-locked-modal .wpl-form-submit:active { transform: translateY(0); }
.wpl-locked-modal .wpl-form-submit svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Disclaimer secreto */
.wpl-locked-modal .wpl-locked-hint {
  text-align: center;
  color: #94a3b8;
  font-size: .75rem;
  margin: 14px 0 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Responsive */
@media (max-width: 540px) {
  .wpl-locked .wpl-locked-play { width: 68px; height: 68px; }
  .wpl-locked .wpl-locked-play svg { width: 26px; height: 26px; }
  .wpl-locked-modal { padding: 30px 22px 24px; border-radius: 18px; }
  .wpl-locked-lock { width: 72px; height: 72px; }
  .wpl-locked-modal h3 { font-size: 1.35rem; }
}
