/* Turnero — estilos compartidos (reserva pública, panel y admin)
   Minimalista: blanco hueso, negro, y un degradé azul → amarillo → naranja para destacar. */
:root {
  --accent: #ff6a2b;                 /* color del negocio: detalles y acentos */
  --ink: #111111;                    /* color principal de acción */
  --ink-2: #3b3b3b;
  --muted: #8d8d8a;
  --bg: #f4f4f1;
  --card: #ffffff;
  --line: #ebebe7;
  --soft: #f1f1ee;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
  --accent-ink: #ffffff;
  --grad: linear-gradient(95deg, #2f80ed 0%, #56b8f0 28%, #f6c445 58%, #ff6a2b 82%, #ff4f6d 100%);
  --ok: #1f9d55;
  --warn: #d48a00;
  --alert: #ff6a2b;
  --bad: #e0453a;
  --wa: #25b862;
  --radius: 26px;
  --radius-sm: 18px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 10px 30px rgba(17, 17, 17, .05);
  --shadow-lg: 0 16px 40px rgba(17, 17, 17, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.035em; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; letter-spacing: -.02em; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.wrap-narrow { max-width: 460px; margin: 0 auto; padding: 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.hidden { display: none !important; }

/* Tarjetas */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card-flat { background: var(--card); border-radius: var(--radius-sm); padding: 14px 16px; }
.card-tint { background: var(--card); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); }
.section-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin: 26px 4px 10px; }

/* Ícono en cuadrado suave */
.ichip { width: 42px; height: 42px; border-radius: 14px; background: var(--soft); color: var(--ink); display: grid; place-items: center; flex: none; }
.ichip svg { width: 20px; height: 20px; }
.ichip.sm { width: 34px; height: 34px; border-radius: 11px; }
.ichip.sm svg { width: 17px; height: 17px; }

/* Botones */
.btn { appearance: none; border: 1px solid transparent; background: var(--ink); color: #fff; font: 600 15px/1 var(--font); padding: 15px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; transition: transform .06s ease, opacity .15s; letter-spacing: -.01em; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .25; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-danger { background: #fff; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 22%, white); }
.btn-wa { background: var(--ink); color: #fff; }
.btn-wa svg { color: var(--wa); }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: 14px; }
.btn-round { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 auto; }
.icon { width: 18px; height: 18px; flex: none; }
.link-btn { background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Formularios */
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 7px; color: var(--ink); }
.field { margin-bottom: 16px; }
.field small { display: block; margin-top: 5px; font-size: 12.5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; font: 16px/1.3 var(--font); color: var(--ink); background: var(--soft); border: 1.5px solid transparent; border-radius: 16px; padding: 14px 15px; outline: none; transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); background: #fff; }
textarea { min-height: 92px; resize: vertical; }
input[type=color] { width: 54px; height: 48px; border: 0; border-radius: 14px; padding: 4px; background: var(--soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .grid-2.collapse { grid-template-columns: 1fr; } }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }

/* Mensajes */
.flash { border-radius: 18px; padding: 13px 16px; margin-bottom: 12px; font-weight: 500; font-size: 14.5px; background: #fff; box-shadow: var(--shadow); border-left: 4px solid var(--ink); }
.flash-ok { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--bad); color: var(--bad); }
.flash-info { border-left-color: #2f80ed; }
.note { font-size: 13.5px; color: var(--ink-2); background: #fff; border-radius: 18px; padding: 14px 16px; }

/* Chips de estado */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; white-space: nowrap; background: var(--soft); color: var(--ink); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-ok::before { background: var(--ok); }
.chip-warn::before { background: #f6c445; }
.chip-alert::before { background: var(--alert); }
.chip-bad { color: var(--bad); }
.chip-bad::before { background: var(--bad); }
.chip-muted { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); }

/* Avatar / logo con aro degradé */
.biz-logo, .topbar .mini-logo { position: relative; border-radius: 50%; object-fit: cover; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; flex: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px transparent; }
.ring-wrap { position: relative; border-radius: 50%; padding: 3px; background: var(--grad); flex: none; display: inline-grid; }
.ring-wrap > * { box-shadow: 0 0 0 3px var(--bg) !important; }

/* ---------- Reserva pública ---------- */
.biz { display: flex; gap: 14px; align-items: center; padding: 18px 2px 6px; }
.biz-logo { width: 58px; height: 58px; font-size: 19px; }
.biz h1 { margin: 0; font-size: 1.45rem; }
.biz p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.biz-desc { color: var(--ink-2); font-size: 15px; margin: 14px 4px 0; white-space: pre-line; }
.steps { display: flex; gap: 6px; margin: 22px 0 18px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: #e2e2de; }
.steps span.on { background: var(--grad); }
.svc { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--card); border: 2px solid transparent; border-radius: var(--radius); padding: 18px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .06s; box-shadow: var(--shadow); }
.svc + .svc { margin-top: 10px; }
.svc:active { transform: scale(.99); }
.svc.sel { border-color: var(--ink); }
.svc-name { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.svc-meta { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.svc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.svc-meta svg { width: 14px; height: 14px; }
.svc-desc { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.svc-price { font-family: var(--display); font-weight: 700; white-space: nowrap; font-size: 17px; letter-spacing: -.02em; }
.svc-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 4px 9px; border-radius: 999px; margin-bottom: 8px; }
.svc-cuotas { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-top: 8px; }
.svc-cuotas::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head strong { text-transform: capitalize; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; color: var(--ink); display: grid; place-items: center; text-decoration: none; }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: 12px; color: var(--muted); text-align: center; font-weight: 500; padding-bottom: 6px; }
.cal button { aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; font: 500 15px var(--font); color: #c7c7c2; cursor: default; position: relative; max-width: 46px; width: 100%; justify-self: center; }
.cal button.av { background: var(--soft); color: var(--ink); cursor: pointer; font-weight: 600; }
.cal button.av::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal button.sel { background: var(--ink); color: #fff; }
.cal button.sel::after { background: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { border: 0; background: #fff; border-radius: 999px; padding: 14px 0; font: 600 15px var(--font); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.slot.sel { background: var(--ink); color: #fff; }
.summary { display: grid; gap: 2px; }
.summary .k { color: var(--muted); font-size: 13.5px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.sum-row:last-child { border-bottom: 0; }
.sum-row strong { text-align: right; font-weight: 600; }
.sum-row.big strong { font-family: var(--display); font-size: 22px; letter-spacing: -.03em; color: var(--ink) !important; }
.sum-row .strike { text-decoration: line-through; color: var(--muted); font-weight: 500; margin-right: 6px; }
.hero-state { text-align: center; padding: 28px 8px 12px; }
.hero-state .big-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: #fff; box-shadow: var(--shadow); }
.hero-state .big-icon svg { width: 30px; height: 30px; }
.hero-state h2 { font-size: 1.7rem; }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--soft); border-radius: 16px; padding: 12px 14px; }
.copybox code { font: 500 14.5px/1.45 var(--font); white-space: pre-wrap; word-break: break-word; flex: 1; }
.pay-opt { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.pay-opt + .pay-opt { margin-top: 10px; }
.pay-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pay-choice label { margin: 0; background: #fff; border-radius: 22px; padding: 16px; cursor: pointer; box-shadow: var(--shadow); border: 2px solid transparent; font-weight: 500; }
.pay-choice input { display: none; }
.pay-choice label:has(input:checked) { border-color: var(--ink); }
.pay-choice b { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin-top: 2px; }
.pay-choice small { display: block; font-size: 12px; margin-top: 2px; }
.countdown { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 60%, #f6c44566 60%); }
.footer-note { text-align: center; font-size: 12px; color: #b4b4af; padding: 28px 0 34px; }
.filepick { display: flex; align-items: center; gap: 10px; border: 1.5px dashed #d6d6d1; border-radius: 16px; padding: 14px; cursor: pointer; background: var(--soft); color: var(--ink-2); font-weight: 500; }
.filepick input { display: none; }

/* ---------- Panel ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.topbar.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar .wrap { padding-top: 14px; padding-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.topbar .who { flex: 1; min-width: 0; }
.topbar .who b { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.03em; line-height: 1.15; }
.topbar .who small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .mini-logo { width: 44px; height: 44px; font-size: 15px; }
.impersonating { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 12px; }
.impersonating a { color: #f6c445; }
.wrap.panel-main { padding-top: 4px; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 14px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; }
.tabbar nav { pointer-events: auto; max-width: 460px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 999px; padding: 7px; box-shadow: var(--shadow-lg); }
.tabbar a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 7px; height: 48px; min-width: 48px; border-radius: 999px; background: transparent; transition: background .15s; }
.tabbar a span { display: none; }
.tabbar a.on { background: var(--ink); color: #fff; padding: 0 18px; flex: 1; max-width: 160px; }
.tabbar a.on span { display: inline; }
.tabbar svg { width: 21px; height: 21px; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: #fff; border-radius: var(--radius); padding: 14px 8px; box-shadow: var(--shadow); margin-bottom: 12px; }
.week a { text-decoration: none; color: var(--ink); text-align: center; padding: 2px 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.week a small { font-size: 12px; font-weight: 500; color: var(--muted); }
.week a b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--ink); }
.week a.today small { color: var(--ink); font-weight: 700; }
.week a.sel b { background: var(--ink); color: #fff; }
.week a.today:not(.sel) b { box-shadow: inset 0 0 0 1.5px var(--ink); }
.week a i { position: absolute; bottom: -6px; left: 50%; margin-left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); font-size: 0; }
.daynav { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 6px 0 12px; }
.daynav h2 { margin: 0; font-size: 1.35rem; }
.daynav h2::first-letter { text-transform: uppercase; }

.today-card { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.ring { width: 80px; height: 80px; flex: none; position: relative; }
.ring svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.ring .ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ring .ring-txt b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.ring .ring-txt small { font-size: 10.5px; }
.today-card h3 { margin: 0 0 4px; font-size: 18px; }
.today-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.bk { display: flex; gap: 14px; text-decoration: none; color: inherit; background: #fff; border-radius: 22px; padding: 14px 16px; align-items: center; box-shadow: var(--shadow); }
.bk + .bk { margin-top: 8px; }
.bk-time { width: 66px; flex: none; text-align: left; padding-right: 12px; border-right: 1px solid var(--line); }
.bk-time b { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.bk-time small { font-size: 11.5px; white-space: nowrap; }
.bk-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-svc { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk.cancel { opacity: .5; }
.bk.cancel .bk-name { text-decoration: line-through; }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty .ichip { margin: 0 auto 12px; width: 54px; height: 54px; border-radius: 18px; }
.alertbar { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 22px; padding: 12px 14px; font-weight: 600; text-decoration: none; margin-bottom: 12px; }
.alertbar .ichip { background: rgba(255, 255, 255, .12); color: #f6c445; }
.alertbar span { flex: 1; }
.seg { display: flex; background: #fff; border-radius: 999px; padding: 5px; gap: 4px; margin-bottom: 14px; box-shadow: var(--shadow); }
.seg a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 10px 10px; border-radius: 999px; white-space: nowrap; }
.seg a.on { background: var(--ink); color: #fff; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 11px 12px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.day-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.day-row:last-child { border-bottom: 0; }
.range { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.range input { padding: 10px 8px; font-size: 15px; }
.range button { flex: none; }
.share-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.share-box::after { content: ""; position: absolute; right: -62px; top: -66px; width: 116px; height: 116px; border-radius: 50%; border: 10px solid transparent; background: var(--grad) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9; pointer-events: none; }
.share-box > * { position: relative; z-index: 1; }
.share-box a, .share-box code { color: #fff; }
.share-box .btn { background: #fff; color: var(--ink); }
.share-box .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.receipt-img { border-radius: 16px; max-height: 420px; object-fit: contain; background: var(--soft); width: 100%; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: #fff; border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 140px; }
.tile b { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; display: block; line-height: 1.15; }
.tile small { font-size: 12.5px; line-height: 1.35; display: block; margin-top: 4px; }
.tile.primary { background: var(--ink); color: #fff; }
.tile.primary small { color: rgba(255, 255, 255, .65); }
.tile.primary .ichip { background: rgba(255, 255, 255, .1); color: #f6c445; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.stat b { display: block; white-space: nowrap; font-family: var(--display); font-size: clamp(16px, 5vw, 22px); font-weight: 700; letter-spacing: -.03em; }
.stat small { font-size: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: " +"; color: var(--muted); }
details.more[open] > summary::after { content: " –"; }
.pill-help { font-size: 12.5px; color: var(--muted); }
.pill-help code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.install-hint { display: none; }
.auth-logo { width: 62px; height: 62px; border-radius: 20px; background: var(--ink); margin: 44px auto 18px; display: grid; place-items: center; color: #fff; position: relative; }
.auth-logo::after { content: ""; position: absolute; right: -5px; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); border: 3px solid var(--bg); }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; color: var(--ink); margin: 0 0 12px; font-size: 14.5px; }
.back svg { width: 16px; height: 16px; }
.page-title { margin: 6px 2px 4px; font-size: 1.7rem; }
.page-sub { margin: 0 2px 16px; color: var(--muted); font-size: 14px; }
.code-pill { font: 700 13px var(--font); letter-spacing: .06em; background: var(--soft); padding: 5px 10px; border-radius: 10px; }

/* Hoja para compartir */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 17, .35); display: none; align-items: flex-end; justify-content: center; padding: 12px; }
.sheet-bg.open { display: flex; }
.sheet { background: #fff; width: 100%; max-width: 460px; border-radius: 28px; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheetUp .18s ease-out; }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) { .sheet-bg { align-items: center; } }

@media (min-width: 760px) {
  .wrap { padding: 22px; }
  h1 { font-size: 2rem; }
}
