/* Corrección de especificidad para el atributo hidden */
.wd-overlay[hidden],
.wd-topbar[hidden] {
  display: none !important;
}

html.wd-no-scroll,
html.wd-no-scroll body {
  overflow: hidden;
}

.wd-topbar {
  position: sticky;
  top: 0;
  z-index: 9998;
  background: linear-gradient(90deg, var(--wd-dark), var(--wd-primary), var(--wd-secondary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.wd-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.wd-topbar__pill {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wd-topbar__text {
  font-weight: 700;
}

.wd-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wd-topbar__cta,
.wd-topbar__close {
  border: 0;
  cursor: pointer;
}

.wd-topbar__cta {
  border-radius: 999px;
  background: #fff;
  color: var(--wd-dark);
  padding: 10px 16px;
  font-weight: 800;
}

.wd-topbar__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.wd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  display: flex; 
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wd-modal {
  position: relative;
  width: min(860px, 100%);
  border-radius: 24px;
  overflow: hidden;
  background: #fffaf3;
  color: #111827;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.wd-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
}

.wd-badge {
  background: linear-gradient(90deg, var(--wd-secondary), var(--wd-primary));
  color: #fff;
  font-weight: 800;
  text-align: center;
  padding: 14px 50px 14px 20px;
}

.wd-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  padding: 26px;
}

.wd-visual {
  min-height: 300px;
  border-radius: 18px;
  background: radial-gradient(circle at top, #ffe2ad, #ffd17d 42%, #ffb100 75%, #ff8f1f 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-lock {
  font-size: 90px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}

.wd-spark {
  position: absolute;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.95);
  transform: rotate(45deg);
  border-radius: 3px;
}

.wd-spark--1 { top: 22%; left: 18%; }
.wd-spark--2 { top: 18%; right: 20%; }
.wd-spark--3 { bottom: 22%; right: 24%; }

.wd-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 8px;
}

.wd-content h2 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--wd-dark);
}

.wd-subheadline {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #334155;
}

.wd-proof {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 18px;
  background: rgba(30, 41, 59, 0.08);
  color: var(--wd-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.wd-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.wd-form input {
  height: 56px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
}

.wd-form button {
  height: 56px;
  border: 0;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, var(--wd-primary), #ea580c);
  box-shadow: 0 14px 28px rgba(255, 106, 0, 0.32);
}

.wd-form button:hover,
.wd-topbar__cta:hover {
  transform: translateY(-1px);
}

.wd-feedback {
  min-height: 24px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
}

.wd-feedback.is-success { color: #047857; }
.wd-feedback.is-error { color: #b91c1c; }
.wd-feedback.is-loading { color: #334155; }

.wd-smallprint {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 767px) {
  .wd-overlay {
    padding: 14px;
    align-items: flex-start;
  }

  .wd-modal {
    margin-top: 24px;
    border-radius: 20px;
  }

  .wd-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .wd-visual {
    min-height: 140px;
  }

  .wd-lock {
    font-size: 62px;
  }

  .wd-content h2 {
    font-size: 34px;
  }

  .wd-subheadline {
    font-size: 17px;
  }

  .wd-topbar__inner {
    justify-content: space-between;
  }

  .wd-topbar__text {
    flex: 1 1 100%;
    order: 3;
    text-align: center;
  }
}