/* DGREAT.AI — seccion Prompts (se apoya en ebooks.css) */
.pr-card {
  margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 22px;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: var(--eb-glow);
}
@media (min-width: 900px) { .pr-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 44px; align-items: start; } }
.pr-code { overflow-wrap: anywhere; }
.pr-badge {
  display: inline-block; font-size: 0.82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  color: #ff8fb1; background: rgba(255, 90, 140, 0.1); border: 1px solid rgba(255, 90, 140, 0.3);
}
.pr-title { margin: 16px 0 12px; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
.pr-text { color: var(--text-muted); line-height: 1.65; }
.pr-steps { list-style: none; counter-reset: s; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.pr-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.pr-steps li::before {
  content: counter(s); flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: #fff;
  background: linear-gradient(135deg, #ff8a5c, #d9542f);
}
.pr-note { margin-top: 20px; font-size: 0.82rem; color: var(--text-muted); opacity: 0.85; line-height: 1.5; }

.pr-box {
  position: relative; border-radius: 18px; overflow: hidden; min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(7, 11, 20, 0.7);
}
.pr-box__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px;
  padding: 8px 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pr-copy {
  font: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer;
  color: #0b1020; background: var(--eb-lime); border: 0; border-radius: 999px; padding: 7px 14px;
}
.pr-copy[hidden] { display: none; }
.pr-code {
  margin: 0; padding: 18px 16px 24px; max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  font: 0.84rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #dfe6f5;
}
.pr-box.is-locked .pr-code { filter: blur(7px); opacity: 0.55; overflow: hidden; max-height: 420px; user-select: none; pointer-events: none; }
.pr-lock {
  position: absolute; inset: 46px 0 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 20px;
}
.pr-box:not(.is-locked) .pr-lock { display: none; }
.pr-lock__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
}
.pr-lock h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin-top: 6px; }
.pr-lock p { color: var(--text-muted); font-size: 0.95rem; max-width: 28ch; }
.pr-ig {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 16px;
  font-weight: 800; font-size: 1rem; color: #fff; text-decoration: none;
  background: linear-gradient(90deg, #7c3fb0, #c94a7b 55%, #e8b05a);
  box-shadow: 0 16px 40px -12px rgba(201, 74, 123, 0.55); transition: transform 0.15s ease;
}
.pr-ig:hover { transform: translateY(-2px); }
@media (max-width: 420px) { .pr-ig { padding: 14px 18px; font-size: 0.95rem; } }
.pr-done {
  margin-top: 12px; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-muted);
  background: none; border: 0; text-decoration: underline; text-underline-offset: 3px;
}
.pr-done[hidden] { display: none; }
.pr-done:hover { color: #fff; }

/* Tarjetas con varios prompts (cada uno con su botón Copiar) */
.pr-item + .pr-item { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.pr-item__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px;
  padding: 12px 16px 0; font-weight: 800; font-size: 0.95rem; color: #fff;
}
.pr-item .pr-code { padding-top: 10px; max-height: 300px; }
.pr-box.is-locked .pr-items { max-height: 460px; overflow: hidden; }
.pr-box.is-locked .pr-item__head { filter: blur(5px); opacity: 0.5; user-select: none; }
.pr-item__head .pr-copy { white-space: nowrap; flex-shrink: 0; }

/* Desbloqueo con correo (formulario [data-lead]) */
.pr-form { width: 100%; max-width: 380px; margin-top: 10px; display: grid; gap: 10px; text-align: left; }
.pr-form__row { display: flex; gap: 8px; }
.pr-input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 1rem; color: #fff; padding: 13px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); outline: none;
}
.pr-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.pr-input:focus { border-color: var(--eb-lime, #c6ff3d); box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.18); }
.pr-submit {
  flex: 0 0 auto; font: inherit; font-weight: 800; font-size: 0.95rem; cursor: pointer; padding: 13px 18px; border: 0; border-radius: 14px;
  color: #0b1020; background: var(--eb-lime, #c6ff3d); transition: transform 0.15s ease, opacity 0.15s ease;
}
.pr-submit:hover { transform: translateY(-1px); }
.pr-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.pr-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); cursor: pointer; }
.pr-check input { margin-top: 2px; accent-color: var(--eb-lime, #c6ff3d); flex: 0 0 auto; }
.pr-lock .pr-msg, .pr-msg { max-width: none; min-height: 1.2em; font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.pr-msg.is-bad { color: #ff8fa3; }
.pr-lock .pr-legal, .pr-legal { max-width: none; font-size: 0.72rem; color: var(--text-muted); opacity: 0.8; margin: 0; }
.pr-legal a { color: inherit; }
.pr-hp, .pr-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pr-lock { overflow-y: auto; }
@media (max-width: 420px) { .pr-form__row { flex-direction: column; } .pr-submit { width: 100%; } }
@media (max-width: 600px) { .pr-lock .pr-lock__icon { display: none; } .pr-lock { justify-content: flex-start; padding-top: 26px; } .pr-lock h3 { margin-top: 0; } }
