/* RedactaIA Lectores · portada: registro único, menú de autor, términos. */
.nav-links a.nav-autor { color: #fff; font-weight: 600; padding: 5px 10px; margin: -5px 0; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.nav-links a.nav-autor:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 1180px) { .nav-links a.nav-autor { padding: 4px 8px; } }
.menu a.mi-panel { font-weight: 600; color: #fff; }

.rg-modal.modal.sm { max-width: 540px; }
.form.rg .rg-brand { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 16px; }
.rg-steps { display: flex; gap: 6px; margin-right: 40px; }
.rg-steps i { width: 26px; height: 4px; border-radius: 2px; background: #3a3a3a; transition: background .25s; }
.rg-steps i.on { background: var(--ac); }
.rg-step { animation: rgIn .25s ease; }
@keyframes rgIn { from { opacity: 0; transform: translateX(10px); } }
.rg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rg-row .fld { min-width: 0; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23bbb' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.passwrap { position: relative; }
.passwrap .inp { padding-right: 48px; }
.passwrap .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #9a9a9a; cursor: pointer; display: grid; place-items: center; }
.passwrap .eye svg { width: 20px; height: 20px; }
.passwrap .eye.on, .passwrap .eye:hover { color: #fff; }
.at-wrap { position: relative; }
.at-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: #9a9a9a; font-size: 16px; }
.at-wrap .inp { padding-left: 32px; }
.fld .hint { display: block; color: #8c8c8c; font-size: 12.5px; margin-top: 6px; }
.fld .opt { font-style: normal; color: #7a7a7a; font-size: 12px; }
.ferr { color: #ff8a8f; font-size: 13px; margin: 6px 0 0; }
.ferr:empty { display: none; }
.bad > .inp, .bad .inp, .bad .rg-chips, .bad .rg-terms { border-color: #ff6b73 !important; }
.rg-block { margin: 4px 0 16px; }
.rg-l { display: block; font-size: 13px; color: #b3b3b3; margin: 0 0 8px; }
.rg-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rg-role { position: relative; cursor: pointer; }
.rg-role input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rg-role-in { display: block; height: 100%; border: 1px solid #4a4a4a; border-radius: 8px; padding: 12px 12px 11px; background: #262626; transition: border-color .15s, background .15s, box-shadow .15s; }
.rg-role-in b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 2px; }
.rg-role-in small { display: block; color: #9a9a9a; font-size: 12px; line-height: 1.35; }
.rg-role input:checked + .rg-role-in { border-color: #fff; background: #303030; box-shadow: inset 0 0 0 1px #fff; }
.rg-role input:focus-visible + .rg-role-in { outline: 2px solid #fff; outline-offset: 2px; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid transparent; border-radius: 8px; }
.rg-chip { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid #4a4a4a; background: #262626; color: #ddd; font-size: 13px; cursor: pointer; }
.rg-chip:hover { border-color: #888; }
.rg-chip.on { background: #fff; border-color: #fff; color: #111; font-weight: 600; }
.rg-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #cfcfcf; line-height: 1.45; cursor: pointer; border: 1px solid transparent; border-radius: 6px; padding: 2px; }
.rg-terms input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ac); flex: none; }
.rg-terms a { color: #fff; }
.rg-acts { display: flex; gap: 10px; margin-top: 8px; }
.rg-acts .btn { flex: 1; width: auto; margin-top: 0; justify-content: center; }
.rg-acts .btn[hidden] { display: none; }
.btn.busy { opacity: .75; cursor: progress; }
.rg-ok .rg-acts { flex-direction: column; }
@media (max-width: 520px) {
  .rg-roles { grid-template-columns: 1fr; }
  .rg-role-in { display: flex; gap: 10px; align-items: baseline; }
  .rg-row { grid-template-columns: 1fr; gap: 0; }
}
.page.legal { max-width: 820px; }
.page.legal h2 { color: #fff; font-size: 19px; margin: 28px 0 8px; }
.page.legal p { color: #cfcfcf; line-height: 1.65; }

/* ---------- Badge Audiolibro ---------- */
.card .abadge { position: absolute; left: 6px; bottom: 7px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 5px; border-radius: 10px; background: rgba(0,0,0,.78); color: #fff; font: 700 10px/1 var(--sans); letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.card .abadge svg { width: 12px; height: 12px; display: block; }
.card:hover .abadge { opacity: 0; }
.abadge.inline { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 4px; background: rgba(225,29,42,.16); color: #ff9aa0; font: 700 12px/1.4 var(--sans); }
.abadge.inline svg { width: 13px; height: 13px; display: block; }
@media (max-width: 500px) { .card .abadge b { display: none; } .card .abadge { padding: 0 5px; } }

/* ---------- Cómo comprar ---------- */
.buybox.cc { padding: 20px 20px 16px; }
.cc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cc-k { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ff9aa0; }
.cc-free { font-size: 13px; color: #7ee29a; background: rgba(70,211,105,.12); padding: 4px 10px; border-radius: 14px; }
.cc-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.cc-step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 0 0 18px; }
.cc-step::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: #3a3a3a; }
.cc-step:last-child::before { display: none; }
.cc-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #333; color: #ddd; font-weight: 800; font-size: 14px; position: relative; z-index: 1; }
.cc-n svg { width: 16px; height: 16px; }
.cc-step.now .cc-n { background: #fff; color: #111; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.cc-step.done .cc-n { background: #46d369; color: #0b2a14; }
.cc-step.done-soft .cc-n { background: rgba(70,211,105,.2); color: #7ee29a; }
.cc-b > b { display: block; color: #fff; font-size: 15px; margin: 4px 0 4px; }
.cc-b p { margin: 0 0 8px; color: #bdbdbd; font-size: 14px; line-height: 1.5; }
.cc-b .btn { margin-top: 6px; }
.pm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 8px 0 6px; }
.pm-list.compact { grid-template-columns: 1fr; }
.pm-card { position: relative; background: #1b1b1b; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 10px; overflow: hidden; }
.pm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pm, #888); }
.pm-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pm-h b { color: #fff; font-size: 14.5px; }
.pm-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--pm, #888); color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.pm-row { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 13.5px; }
.pm-k { color: #8c8c8c; width: 56px; flex: none; font-size: 12.5px; }
.pm-v { color: #e5e5e5; min-width: 0; overflow-wrap: anywhere; flex: 1; }
.pm-v.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; font-weight: 700; color: #fff; -webkit-user-select: all; user-select: all; }
.pm-copy { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; flex: none; }
.pm-copy svg { width: 14px; height: 14px; display: block; }
.pm-copy:hover { background: rgba(255,255,255,.1); }
.pm-copy.ok { border-color: #46d369; color: #7ee29a; }
.pm-link { margin-top: 8px; }
.pm-note { margin: 8px 0 0 !important; font-size: 13px !important; color: #bdbdbd !important; }
.pm-text { display: flex; gap: 10px; align-items: flex-start; }
.pm-text .methods { flex: 1; margin: 0; }
.pm-instr { font-size: 13.5px; color: #cfcfcf; margin: 8px 0 !important; }
.pm-instr b { color: #fff; }
.pm-wa { margin: 4px 0 6px; }
.autorbox { border-color: rgba(245,196,81,.35); }
.autorbox .cc-k { color: #f5c451; }

/* ---------- Modal de compra ---------- */
.paymodal.modal.sm { max-width: 560px; }
.payform h2 { margin-top: 4px; }
.pay-steps { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; font-size: 13px; color: #8c8c8c; }
.pay-steps span { padding: 5px 10px; border-radius: 14px; background: #262626; white-space: nowrap; }
.pay-steps span.on { background: #fff; color: #111; font-weight: 700; }
.pay-steps span.done { background: rgba(70,211,105,.16); color: #7ee29a; }
.pay-steps i { flex: 1; height: 2px; background: #333; }
.pay-p1 > .btn, .pay-p2 > .btn { width: 100%; margin-top: 12px; }
.rg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; border: 1.5px dashed #5a5a5a; border-radius: 8px; background: #262626; cursor: pointer; text-align: center; padding: 10px; }
.file-drop:hover, .file-drop:focus-within { border-color: #fff; }
.file-drop b { color: #fff; font-size: 14px; }
.file-drop .file-name { color: #9a9a9a; font-size: 12.5px; overflow-wrap: anywhere; }
.file-prev { margin-top: 8px; }
.file-prev img { max-height: 160px; border-radius: 6px; display: block; }
@media (max-width: 520px) { .rg-row2 { grid-template-columns: 1fr; gap: 0; } .pm-list { grid-template-columns: 1fr; } .pay-steps span { font-size: 12px; } }
.rg-acts .btn { min-height: 46px; }

/* 15-sep: bienvenida animada tras registrarse o entrar (libro que se abre + estantería + nombre) */
html.wel-lock, html.wel-lock body { overflow: hidden; }
.wel { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 24px 16px; background: radial-gradient(120% 90% at 50% 40%, #1d0b0d 0%, #0b0b0b 55%, #050505 100%); color: #fff; text-align: center; cursor: pointer; overflow: hidden; opacity: 0; outline: none; -webkit-tap-highlight-color: transparent; transition: opacity .28s ease; }
.wel.wel-in { opacity: 1; }
.wel.wel-out { opacity: 0; transition: opacity .5s ease, transform .5s ease, filter .5s ease; transform: scale(1.04); filter: blur(2px); }
.wel-glow { position: absolute; left: 50%; top: 42%; width: 520px; height: 520px; max-width: 130vw; max-height: 130vw; transform: translate(-50%, -50%) scale(.4); border-radius: 50%; background: radial-gradient(circle, rgba(225,29,42,.42) 0%, rgba(225,29,42,.12) 38%, rgba(225,29,42,0) 70%); opacity: 0; pointer-events: none; }
.wel-in .wel-glow { animation: welGlow 1.5s .35s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes welGlow { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.wel-book { position: relative; width: 118px; height: 160px; perspective: 900px; transform-style: preserve-3d; z-index: 1; }
.wel-page { position: absolute; inset: 4px 4px 4px 0; border-radius: 2px 8px 8px 2px; background: linear-gradient(90deg, #d9d2c3 0%, #f4efe4 14%, #fbf8f1 100%); box-shadow: 0 20px 40px rgba(0,0,0,.55); transform-origin: left center; }
.wel-page.p2 { background: linear-gradient(90deg, #cfc7b6 0%, #efe9dc 20%, #f7f3ea 100%); }
.wel-cover { position: absolute; inset: 0; border-radius: 3px 10px 10px 3px; background: linear-gradient(135deg, #e11d2a 0%, #8f0f19 70%, #5c0a10 100%); box-shadow: inset 6px 0 0 rgba(0,0,0,.25), 0 24px 50px rgba(0,0,0,.6); transform-origin: left center; display: grid; place-items: center; backface-visibility: hidden; }
.wel-mark { position: relative; font: 700 54px/1 var(--serif, Georgia, serif); color: #fff; letter-spacing: -.02em; }
.wel-mark i { position: absolute; right: -12px; bottom: 8px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.wel-in .wel-book { animation: welRise .6s cubic-bezier(.2,.8,.2,1) both; }
.wel-in .wel-cover { animation: welOpen 1s .45s cubic-bezier(.55,.05,.25,1) forwards; }
.wel-in .wel-page.p2 { animation: welLeaf .9s .75s cubic-bezier(.55,.05,.25,1) forwards; }
@keyframes welRise { from { opacity: 0; transform: translateY(24px) scale(.92); } }
@keyframes welOpen { 0% { transform: rotateY(0); } 100% { transform: rotateY(-158deg); box-shadow: inset 6px 0 0 rgba(0,0,0,.25), 0 10px 20px rgba(0,0,0,.3); } }
@keyframes welLeaf { to { transform: rotateY(-140deg); } }
.wel-tx { position: relative; z-index: 1; max-width: 560px; }
.wel-brand { display: inline-block; font: 600 13px/1 var(--sans, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: #bdbdbd; opacity: 0; }
.wel-brand b { color: var(--ac, #e11d2a); font-weight: 700; }
.wel-t { margin: 12px 0 6px; font: 700 clamp(28px, 7vw, 46px)/1.1 var(--serif, Georgia, serif); letter-spacing: -.01em; opacity: 0; overflow-wrap: anywhere; }
.wel-s { margin: 0; color: #cfcfcf; font-size: clamp(15px, 3.8vw, 17px); opacity: 0; }
.wel-in .wel-brand { animation: welUp .5s .7s ease-out forwards; }
.wel-in .wel-t { animation: welUp .6s .95s cubic-bezier(.2,.8,.2,1) forwards; }
.wel-in .wel-s { animation: welUp .6s 1.2s ease-out forwards; }
@keyframes welUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wel-shelf { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 6px; height: 80px; padding-bottom: 6px; border-bottom: 2px solid rgba(255,255,255,.14); }
.wel-shelf i { display: block; width: 16px; height: var(--h); border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #2c2c2c, #1a1a1a); box-shadow: inset 0 3px 0 rgba(255,255,255,.08); transform-origin: bottom; transform: scaleY(0); }
.wel-shelf i:nth-child(3n+2) { background: linear-gradient(180deg, #e11d2a, #7a0d15); }
.wel-shelf i:nth-child(4n) { width: 20px; background: linear-gradient(180deg, #e8e2d4, #b9b2a3); }
.wel-in .wel-shelf i { animation: welBook .45s calc(1.05s + var(--d)) cubic-bezier(.3,1.4,.5,1) forwards; }
@keyframes welBook { to { transform: scaleY(1); } }
.wel-skip { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 0; right: 0; font-size: 12.5px; color: #8a8a8a; opacity: 0; }
.wel-in .wel-skip { animation: welUp .4s .9s ease-out forwards; }
/* Movimiento reducido: sin giros ni saltos, solo fundido del texto */
.wel.wel-rm .wel-book, .wel.wel-rm .wel-shelf, .wel.wel-rm .wel-glow { display: none; }
.wel.wel-rm .wel-brand, .wel.wel-rm .wel-t, .wel.wel-rm .wel-s, .wel.wel-rm .wel-skip { opacity: 1; animation: none !important; }
.wel.wel-rm.wel-out { transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .wel, .wel * { animation: none !important; transition: opacity .2s linear !important; }
  .wel-book, .wel-shelf, .wel-glow { display: none; }
  .wel-brand, .wel-t, .wel-s, .wel-skip { opacity: 1; }
}
@media (max-height: 560px) { .wel-shelf { display: none; } .wel-book { width: 90px; height: 122px; } .wel-mark { font-size: 40px; } }
