/* ════════════════════════════════════════════════════════════════════════════
   TheWaveRadar — Waitlist modal
   Modal accesible con backdrop + iframe de Tally.
   ════════════════════════════════════════════════════════════════════════════ */

body.tw-is-modal-open {
  overflow: hidden;
}

.tw-waitlist-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  animation: tw-fade-in 0.15s ease-out;
  overflow-y: auto;
}

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

.tw-waitlist-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--tw-bg-card);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: tw-modal-in 0.2s ease-out;
}

@keyframes tw-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tw-waitlist-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tw-accent), var(--tw-info));
}

.tw-waitlist-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--tw-text-mute);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.tw-waitlist-close:hover {
  color: var(--tw-text);
  background: rgba(255, 255, 255, 0.06);
}
.tw-waitlist-close:focus-visible {
  outline: 2px solid var(--tw-accent);
  outline-offset: 2px;
}

.tw-waitlist-head {
  padding: 28px 28px 18px;
}
.tw-waitlist-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--tw-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.tw-waitlist-title {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tw-waitlist-sub {
  margin: 0;
  color: var(--tw-text-mute);
  font-size: 0.92rem;
  line-height: 1.5;
}
.tw-waitlist-sub strong {
  color: var(--tw-text);
  font-weight: 600;
}
.tw-waitlist-anchor {
  display: block;
  margin-top: 8px;
  color: var(--tw-text-soft);
  font-size: 0.82rem;
  font-style: italic;
}

.tw-waitlist-body {
  padding: 0 4px 4px;
}
.tw-waitlist-iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: none;
  background: transparent;
}

/* ── Placeholder cuando Tally no está configurado ─────────────── */
.tw-waitlist-placeholder {
  padding: 22px 28px 28px;
  color: var(--tw-text);
}
.tw-waitlist-placeholder p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.tw-waitlist-placeholder code {
  padding: 2px 6px;
  background: var(--tw-bg-soft);
  border: 1px solid var(--tw-border);
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: ui-monospace, Menlo, monospace;
}
.tw-waitlist-placeholder-foot {
  color: var(--tw-text-mute);
  font-size: 0.85rem;
  margin-top: 14px !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tw-waitlist-backdrop { padding: 20px 12px; }
  .tw-waitlist-head     { padding: 24px 20px 14px; }
  .tw-waitlist-title    { font-size: 1.2rem; }
}
