/* RZL Event: estilo RZL Systems (grafito + azul, esquinas a 45°, Tomorrow/Barlow) */
@font-face { font-family: "Tomorrow"; font-weight: 500; font-display: swap; src: url("/static/fonts/tomorrow-500.woff2") format("woff2"); }
@font-face { font-family: "Tomorrow"; font-weight: 600; font-display: swap; src: url("/static/fonts/tomorrow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/static/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/static/fonts/barlow-500.woff2") format("woff2"); }

:root {
  --bg: #070B11; --bg2: #0D141D; --panel: #101A26; --ink: #E6EDF3; --muted: #8494A6;
  --rule: #1D2A36; --line: rgba(120,170,230,.2); --blue: #087EF4; --cyan: #16C9F3;
  --ok: #2FD48B; --warn: #F5B83D; --bad: #FF4D5E;
  --tech: "Tomorrow", "Barlow", system-ui, sans-serif;
  --cut: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --cut-sm: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg) radial-gradient(70vmax 50vmax at 85% -10%, rgba(8,126,244,.14), transparent 60%) no-repeat;
  color: var(--ink); font: 400 1rem/1.5 "Barlow", system-ui, sans-serif; min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--tech); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--tech); letter-spacing: .06em; }

/* Barra superior */
.top { border-bottom: 1px solid var(--rule); background: rgba(7,11,17,.85); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--tech); font-weight: 600; letter-spacing: .08em; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-size: .8rem; color: var(--cyan); border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a, .nav button { font-family: var(--tech); font-size: .85rem; color: var(--muted); padding: 7px 12px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav a.on { color: var(--ink); text-decoration: none; }
.nav a.on { box-shadow: inset 0 -2px 0 var(--blue); }
.orgbar { border-bottom: 1px solid var(--rule); background: rgba(8,126,244,.08); }
.orgbar .top-in { padding: 6px 20px; justify-content: space-between; }
.orgtag { font-family: var(--tech); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; }
.narrow { max-width: 460px; }
.kicker { font-family: var(--tech); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.kicker::before { content: "// "; color: var(--blue); }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* Paneles con esquinas cortadas */
.panel { position: relative; background: var(--line); padding: 1px; clip-path: var(--cut); }
.panel > .in { background: linear-gradient(160deg, #122031, #0A1119); clip-path: var(--cut); padding: 20px; height: 100%; }
.stat .in { padding: 16px 18px; }
.stat b { display: block; font-family: var(--tech); font-size: 1.7rem; font-weight: 600; }
.stat span { color: var(--muted); font-size: .85rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--tech); font-weight: 500; font-size: .92rem; letter-spacing: .03em;
  padding: 11px 18px; border: 1px solid rgba(22,201,243,.55); color: var(--ink); background: rgba(7,11,17,.4);
  clip-path: var(--cut-sm); cursor: pointer; text-decoration: none; transition: background .2s, color .2s;
}
.btn:hover { background: var(--cyan); color: var(--bg); text-decoration: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }
.btn.small { padding: 6px 11px; font-size: .8rem; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Formularios */
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #0A121B; border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.full { grid-column: 1 / -1; }

/* Tablas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-family: var(--tech); font-weight: 500; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
td.num, th.num { text-align: right; }
tr.off td { opacity: .45; }

/* Etiquetas y avisos */
.tag { font-family: var(--tech); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.ok { color: var(--ok); border-color: rgba(47,212,139,.4); }
.tag.warn { color: var(--warn); border-color: rgba(245,184,61,.4); }
.tag.bad { color: var(--bad); border-color: rgba(255,77,94,.4); }
.tag.blue { color: var(--cyan); border-color: rgba(22,201,243,.4); }
.alert { padding: 12px 16px; border-left: 3px solid var(--cyan); background: rgba(22,201,243,.07); }
.alert.bad { border-color: var(--bad); background: rgba(255,77,94,.08); }
.alert.ok { border-color: var(--ok); background: rgba(47,212,139,.08); }
.secret { font-family: var(--tech); font-size: 1.1rem; letter-spacing: .08em; color: var(--cyan); user-select: all; }

/* Página pública del evento */
.ev-hero { padding: 36px 0 10px; }
.ev-meta { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-family: var(--tech); font-size: .95rem; }
.ev-meta b { color: var(--ink); font-weight: 500; }
.ev-layout { display: grid; gap: 28px; grid-template-columns: 1.3fr 1fr; align-items: start; margin-top: 26px; }
.ev-desc { white-space: pre-line; color: #C9D4DF; }
.ttype { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ttype .price { font-family: var(--tech); font-size: 1.2rem; font-weight: 600; }
.qty { display: flex; align-items: center; }
.qty button { width: 38px; height: 38px; font-size: 1.2rem; background: #0A121B; color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.qty button:hover { border-color: var(--cyan); }
.qty input { width: 52px; height: 38px; text-align: center; border-left: 0; border-right: 0; font-family: var(--tech); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.total-line { display: flex; justify-content: space-between; font-family: var(--tech); font-size: 1.15rem; padding: 14px 0 4px; }
.secure { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; justify-content: center; margin-top: 10px; }

/* Entradas */
.tickets { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 22px; }
.ticket { background: #fff; color: #0B1220; clip-path: var(--cut); padding: 20px; text-align: center; }
.ticket h3 { color: #0B1220; }
.ticket .qr svg { width: 100%; max-width: 240px; height: auto; margin: 12px auto 6px; display: block; }
.ticket .code { font-family: var(--tech); letter-spacing: .14em; font-size: .9rem; color: #354555; }
.ticket .tt { font-family: var(--tech); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #087EF4; }
.ticket.used { opacity: .55; }

/* Escáner */
.scan-body { background: #000; }
.scan-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #05080C; border-bottom: 1px solid var(--rule); gap: 10px; }
.scan-top h1 { font-size: 1rem; }
.scan-count { font-family: var(--tech); font-size: 1.1rem; }
.cam { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 3 / 4; background: #000; overflow: hidden; }
.cam video { width: 100%; height: 100%; object-fit: cover; }
.cam .frame { position: absolute; inset: 18%; border: 2px solid rgba(22,201,243,.8); clip-path: var(--cut); box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); pointer-events: none; }
.result { position: fixed; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; z-index: 20; }
.result.show { display: flex; }
.result.ok { background: #0E8F55; }
.result.used { background: #B7791F; }
.result.bad { background: #B3261E; }
.result .big { font-family: var(--tech); font-size: clamp(2rem, 9vw, 3.6rem); font-weight: 600; line-height: 1.1; color: #fff; }
.result .who { margin-top: 14px; font-size: 1.3rem; color: #fff; }
.result .hint { margin-top: 30px; color: rgba(255,255,255,.85); font-family: var(--tech); letter-spacing: .1em; font-size: .85rem; text-transform: uppercase; }
.manual { max-width: 640px; margin: 14px auto; padding: 0 14px; display: flex; gap: 8px; }
.cam-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--muted); }

.foot { border-top: 1px solid var(--rule); padding: 20px; text-align: center; color: var(--muted); font-size: .8rem; font-family: var(--tech); letter-spacing: .08em; }

@media (max-width: 860px) { .ev-layout { grid-template-columns: 1fr; } }
@media print {
  body { background: #fff; }
  .top, .foot, .noprint { display: none !important; }
  .ticket { break-inside: avoid; border: 1px solid #ccc; }
}

/* Filas editables de tipos de entrada */
.type-row { display: grid; grid-template-columns: 1.1fr 1.5fr 85px 90px 110px 60px auto; gap: 8px; align-items: center; }
.type-row .num { text-align: right; }
.w-sm { width: 70px; display: inline-block; }
@media (max-width: 760px) { .type-row { grid-template-columns: 1fr 1fr; } }

/* ---- Cartel público del evento ---- */
.org-head { display: inline-flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: var(--ink); font-family: var(--tech); font-weight: 500; letter-spacing: .04em; }
.org-head:hover { text-decoration: none; color: var(--cyan); }
.org-head img { height: 44px; width: auto; max-width: 140px; object-fit: contain; }
.poster { width: 100%; max-height: 520px; object-fit: cover; clip-path: var(--cut); display: block; }
.facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.facts > div { border-left: 2px solid var(--blue); padding: 4px 0 4px 12px; }
.facts span { display: block; font-family: var(--tech); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts b { font-weight: 500; font-size: 1.05rem; }
.facts em { display: block; font-style: normal; color: var(--muted); font-size: .9rem; }
.buybox { position: sticky; top: 76px; }
.ttype .price small { font-family: "Barlow", sans-serif; font-weight: 400; font-size: .82rem; color: var(--muted); }
.sum { padding-top: 10px; }
.sum > div { display: flex; justify-content: space-between; color: var(--muted); font-size: .95rem; padding: 3px 0; }
.sum .total-line { color: var(--ink); border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 10px; }

/* ---- Página del organizador ---- */
.org-hero { display: flex; gap: 22px; align-items: center; padding: 34px 0 26px; flex-wrap: wrap; }
.org-hero img { height: 96px; width: auto; max-width: 220px; object-fit: contain; }
.section-title { margin: 8px 0 16px; }
.ev-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.ev-card { color: var(--ink); }
.ev-card:hover { text-decoration: none; background: rgba(22,201,243,.5); }
.ev-card .in { padding: 0; display: flex; flex-direction: column; }
.ev-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ev-card-date { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #14305F, #0A1119); font-family: var(--tech); }
.ev-card-date b { font-size: 3rem; line-height: 1; }
.ev-card-date span { letter-spacing: .3em; color: var(--cyan); }
.ev-card-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
@media (max-width: 860px) { .buybox { position: static; } }

[hidden] { display: none !important; }

/* ---- Panel: enlaces, cartel, ocupación ---- */
.share { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--rule); }
.share:first-of-type { border-top: 0; }
.share > div { display: grid; gap: 2px; min-width: 0; }
.share a { overflow-wrap: anywhere; }
.poster-edit { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 20px; align-items: start; }
.poster-edit img { width: 100%; clip-path: var(--cut); display: block; }
.poster-edit img.logo-prev { background: #fff2; padding: 10px; object-fit: contain; max-height: 140px; }
.poster-empty { aspect-ratio: 16 / 9; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; }
.bar-cap { height: 4px; background: rgba(120,170,230,.15); }
.bar-cap i { display: block; height: 100%; width: 0; background: var(--blue); }
@media (max-width: 640px) { .poster-edit { grid-template-columns: 1fr; } }
.w-md { width: auto; display: inline-block; }

/* =====================================================================
   Tema claro para las páginas públicas (anuncio, compra, entradas):
   limpio y de confianza para el comprador.
   ===================================================================== */
body.light {
  --bg: #F4F6F9; --panel: #FFFFFF; --ink: #0F1B2A; --muted: #5B6B7C;
  --rule: #E3E8EE; --line: #D5DDE6; --blue: #0A66D8; --cyan: #0A66D8;
  background: var(--bg); color: var(--ink);
}
body.light a { color: var(--blue); }
body.light .top { background: rgba(255,255,255,.92); border-bottom-color: var(--rule); }
body.light .brand { color: var(--ink); }
body.light .brand span { color: var(--blue); border-left-color: var(--rule); }
body.light .nav a, body.light .nav button { color: var(--muted); }
body.light .nav a:hover, body.light .nav button:hover { color: var(--ink); }
body.light .panel { background: var(--line); }
body.light .panel > .in { background: #fff; }
body.light input, body.light select, body.light textarea { background: #fff; color: var(--ink); border-color: #C9D3DE; }
body.light input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,102,216,.15); }
body.light .qty button { background: #F0F3F7; color: var(--ink); border-color: #C9D3DE; }
body.light .btn { color: var(--ink); background: #fff; border-color: #C9D3DE; }
body.light .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
body.light .btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
body.light .btn.primary:hover { background: #084FA8; border-color: #084FA8; color: #fff; }
body.light .alert { background: #EAF2FD; border-left-color: var(--blue); }
body.light .alert.bad { background: #FDECEE; border-left-color: #D32F2F; }
body.light .alert.ok { background: #E7F7EF; border-left-color: #1E9E62; }
body.light .tag.bad { color: #C62828; border-color: #F2B8B8; }
body.light .foot { color: var(--muted); border-top-color: var(--rule); background: #fff; }
body.light .ev-desc { color: #2A3A4C; }
body.light .facts > div { border-left-color: var(--blue); }
body.light .kicker { color: var(--blue); }
body.light .kicker::before { color: var(--blue); }

/* Cabecera del anuncio */
.hero-banner { position: relative; margin: 0 -20px; background: #0F1B2A; min-height: 180px; }
.hero-banner img.cover { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.hero-banner .nocover { height: 200px; background: linear-gradient(120deg, #0F1B2A, #0A3E86 60%, #0A66D8); }
.hero-card { position: relative; margin: -70px 0 0; background: #fff; border: 1px solid var(--rule); padding: 22px 24px; display: flex; gap: 18px; align-items: center; box-shadow: 0 10px 30px rgba(15,27,42,.08); }
.hero-card .org-logo { width: 84px; height: 84px; object-fit: contain; flex: none; background: #fff; border: 1px solid var(--rule); padding: 6px; }
.hero-card h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.hero-card .by { color: var(--muted); font-size: .95rem; }

/* Bloques informativos del anuncio */
.info-box { background: #fff; border: 1px solid var(--rule); padding: 18px 20px; }
.info-box h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.org-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.org-card img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--rule); padding: 4px; }
.org-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: .92rem; }
.org-card dt { color: var(--muted); }
.checklist { list-style: none; display: grid; gap: 8px; font-size: .93rem; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #E7F7EF; color: #1E9E62; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }

/* Caja de compra */
body.light .buybox { background: var(--line); }
.trust { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.trust .lock { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.trust .lock b { color: var(--ink); font-weight: 500; }
.trust .lock svg { width: 20px; height: 20px; flex: none; color: #1E9E62; }
.methods { display: flex; gap: 6px; flex-wrap: wrap; }
.methods span { font-family: var(--tech); font-size: .72rem; font-weight: 500; letter-spacing: .04em; padding: 5px 9px; border: 1px solid var(--rule); background: #F7F9FB; color: #223; }
.fee-note { font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) { .hero-card { flex-direction: column; align-items: flex-start; margin-top: -40px; } }

body.light .ev-card { color: var(--ink); }
body.light .ev-card:hover { background: var(--blue); }
body.light .ticket { border: 1px solid var(--rule); }
body.light .org-hero { border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.pay-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.pay-opt.is-on { background: rgba(47,212,139,.55); }
ul.plain { list-style: none; display: grid; gap: 6px; }
ol.steps { padding-left: 20px; display: grid; gap: 8px; }
.access-form { margin-top: 6px; flex-wrap: nowrap; }
.access-form input { min-width: 170px; padding: 6px 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center-page { padding-top: 12vh; text-align: center; }
.pay-form { display: grid; gap: 10px; }
.pay-form .row { gap: 8px; }
.paybtns { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.btn.bizum { background: #05C3DD; border-color: #05C3DD; color: #002B36; }
body.light .btn.bizum:hover { background: #04A9C0; color: #002B36; }

/* ---- Panel en blanco ---- */
body.light .tag { color: var(--muted); border-color: var(--line); background: #fff; }
body.light .tag.ok { color: #16804F; border-color: #A9DEC2; background: #EFFAF4; }
body.light .tag.warn { color: #9A6512; border-color: #F0D29C; background: #FFF7E8; }
body.light .tag.bad { color: #B42318; border-color: #F4B8B2; background: #FEF1F0; }
body.light .tag.blue { color: var(--blue); border-color: #B9D3F5; background: #EEF5FE; }
body.light .orgbar { background: #EAF2FD; border-bottom-color: var(--rule); }
body.light .orgtag { color: var(--blue); }
body.light .secret { color: var(--blue); }
body.light .stat b { color: var(--ink); }
body.light th { color: var(--muted); border-bottom-color: var(--rule); }
body.light td { border-bottom-color: var(--rule); }
body.light .btn.ghost { color: var(--muted); border-color: var(--line); background: #fff; }
body.light .btn.ghost:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
body.light .pay-opt.is-on { background: #7BCFA5; }
body.light .bar-cap { background: #E6ECF2; }
body.light .poster-empty { border-color: var(--line); }
body.light .panel:hover { background: var(--line); }
body.light a.panel:hover { background: var(--blue); text-decoration: none; }
body.light .nav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); }
body.light h1, body.light h2, body.light h3 { color: var(--ink); }
.ev-card-date, body.light .ev-card-date b { color: #fff; }

/* ---- Escáner: cabe en la pantalla, botón dentro del visor ---- */
.cam { max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); aspect-ratio: 3 / 4; width: auto; max-width: min(640px, 100%); }
.cam-msg { background: rgba(0,0,0,.55); z-index: 2; }
.cam-msg p { margin-bottom: 16px; color: #C9D4DF; }
.scan-title { text-align: center; min-width: 0; }
.scan-title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-title span { font-family: var(--tech); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.scan-body { color: var(--ink); }

/* ---- Enlaces de escáner y listados ---- */
.w-lg { width: auto; min-width: 240px; flex: 1; }
.links-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.link-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--rule); background: #fff; }
.link-card.off { opacity: .55; }
.qr-mini svg { width: 110px; height: 110px; display: block; }
.scroll-y { max-height: 480px; overflow-y: auto; }
