/* Estilos de las páginas de pago (pagar y gracias). Misma paleta que la portada. */
:root {
  --bg: #09090a;
  --text: #f5f3ee;
  --muted: #c4c0b8;
  --dim: #9a968f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --gold: #d6b264;
  --gold-soft: #ead7a4;
  --error: #f0a59a;
  --grad: linear-gradient(120deg, #f6e8c3, #d6b264 50%, #9c7a35);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { font-size: 112.5%; }
body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(700px 500px at 0% 0%, rgba(184, 145, 63, .16), transparent 70%),
    radial-gradient(600px 500px at 100% 0%, rgba(111, 106, 96, .18), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
header { padding: 20px 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.logo svg { width: 28px; height: 28px; }
main { flex: 1; display: grid; place-items: center; padding: 24px 16px 64px; }

.caja {
  width: 100%; max-width: 440px;
  padding: 36px 28px; border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9);
}
.kicker { font-size: .88rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
h1 { margin-top: 12px; font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-soft); }
.precio { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.precio b { font-size: 2.4rem; font-weight: 600; letter-spacing: -.03em; }
.precio span { color: var(--muted); }
p.nota { margin-top: 10px; color: var(--muted); font-size: .95rem; }

form { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
label { font-size: .88rem; color: var(--muted); }
input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  color: var(--text); font: 500 1rem var(--sans);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 178, 100, .15); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; border: none; border-radius: 999px; cursor: pointer;
  font: 600 1rem var(--sans); color: #0a0a0a; background: var(--grad);
  box-shadow: 0 14px 40px -14px rgba(214, 178, 100, .7);
  transition: transform .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn.secundario { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }

.error { min-height: 1.4em; color: var(--error); font-size: .9rem; }
.seguro { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--dim); font-size: .9rem; }
.seguro svg { width: 14px; height: 14px; fill: currentColor; }

.clave {
  margin-top: 24px; padding: 18px; border-radius: 16px; text-align: center;
  border: 1px dashed rgba(214, 178, 100, .5); background: rgba(214, 178, 100, .06);
  font: 600 clamp(1.05rem, 5vw, 1.35rem) ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .06em; color: var(--gold-soft); word-break: break-all;
}
.acciones { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

.cargando { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--gold); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cargando { animation-duration: 3s; } }

/* Páginas legales (términos, privacidad) */
.doc { width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 0 72px; }
.doc h1 { margin-top: 10px; }
.doc .fecha { margin-top: 8px; color: var(--dim); font-size: .88rem; }
.doc h2 { margin-top: 40px; font-size: 1.2rem; letter-spacing: -.02em; font-weight: 600; color: var(--gold-soft); }
.doc p, .doc li { margin-top: 12px; color: #cfccc5; font-size: .98rem; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--gold-soft); }
.doc .aviso { margin-top: 28px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); font-size: .9rem; }
textarea {
  width: 100%; min-height: 90px; padding: 14px 16px; border-radius: 14px; resize: vertical;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  color: var(--text); font: 500 .95rem var(--sans); outline: none;
}
textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 178, 100, .15); }
.ok { color: #9fe0b4; }
