/* Consola de participante. Tokens y medidas de design/tokens.css (tema CITCOM del marketplace). */
:root {
  --teal: #11899A;          /* acento; no para texto normal sobre blanco */
  --teal-strong: #0E7383;   /* botones principales y enlaces */
  --teal-tint: #E3F3F5;
  --teal-select: #E8F4F6;
  --teal-ink: #0B5F6B;
  --graphite: #1F242C;
  --ground: #F3F4F6;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --divider: #F0F1F3;
  --input-border: #C4C9D0;
  --chip-grey: #E9EBEE;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #4B5563;
  --on-dark: #D1D5DB;
  --on-dark-muted: #A8B0BC;
  --warning-bg: #FFF4E5;
  --warning-border: #F0B35B;
  --warning-ink: #6B3A00;
  --warning-text: #8A4A00;
  --pending: #E8A33D;
  --danger: #B42318;
  --danger-bg: #FEF3F2;
  --font-body: Barlow, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius-control: 10px;
  --radius-card: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.4; }
a { color: var(--teal-strong); }
a:hover { color: var(--graphite); }
button, input, select { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible,
label:focus-within > .choice-box { outline: 3px solid var(--teal); outline-offset: 2px; }
code, .mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.icon { flex: none; }
h1, h2 { color: var(--graphite); }

/* --- botones ------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-control); font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; line-height: 1.1; text-align: center; }
.btn-primary { background: var(--teal-strong); color: #fff; }
.btn-primary:hover { background: var(--teal-ink); color: #fff; }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--input-border); }
.btn-secondary:hover { border-color: var(--graphite); color: var(--ink); }
.btn-outline { background: #fff; color: var(--teal-strong); border-color: var(--teal-strong); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-danger-outline { min-height: 44px; padding: 0 14px; font-size: 15px; background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 16px; }
.btn-big { min-height: 56px; font-size: 18px; width: 100%; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--teal-strong); cursor: pointer; }
.icon-btn:hover { background: var(--divider); }

/* --- estructura ---------------------------------------------------------------------- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.nav { flex: 1 1 240px; max-width: 264px; background: var(--graphite); color: var(--on-dark); display: flex; flex-direction: column;
  padding: 28px 16px; gap: 28px; }
.nav a { color: var(--on-dark); text-decoration: none; }
.nav-brand { padding: 0 12px; display: flex; flex-direction: column; gap: 6px; }
.nav-brand img { width: 132px; height: auto; display: block; }
.eyebrow-dark { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.org-switch { position: relative; }
.org-switch summary, .org-card { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-control);
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; min-height: 56px; }
.org-switch summary { cursor: pointer; }
.org-switch summary::-webkit-details-marker { display: none; }
.org-switch[open] summary svg { transform: rotate(180deg); }
.org-avatar { width: 36px; height: 36px; border-radius: 8px; background: var(--teal-tint); color: var(--teal-ink); display: grid;
  place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.org-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.org-text strong { font-weight: 600; font-size: 16px; }
.org-text span { font-size: 13px; color: var(--on-dark-muted); }
.org-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: var(--radius-control);
  box-shadow: 0 12px 32px rgba(0,0,0,.28); padding: 6px; z-index: 5; display: flex; flex-direction: column; }
.org-menu a { color: var(--ink); padding: 12px; border-radius: 8px; min-height: 44px; display: flex; align-items: center; }
.org-menu a:hover { background: var(--ground); color: var(--ink); }
.nav-links { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; min-height: 44px; }
.nav a.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a.nav-link[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.nav-link.soon { color: var(--on-dark-muted); cursor: default; }
.nav-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.nav-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 8px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-strong); color: #fff; display: grid; place-items: center;
  font-size: 14px; font-weight: 600; flex: none; }
.nav-user-text { display: flex; flex-direction: column; font-size: 14px; flex: 1; min-width: 0; }
.nav-user-text span:first-child { color: #fff; }
.nav-user-text span:last-child { color: var(--on-dark-muted); }
.logout { margin: 0; }
.logout button { color: var(--on-dark); }
.logout button:hover { background: rgba(255,255,255,.08); color: #fff; }

.main { flex: 999 1 560px; min-width: 0; padding: 40px 48px 56px; display: flex; flex-direction: column; gap: 28px; max-width: 1180px; }
.main.tight { gap: 24px; padding-top: 32px; }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-header > div { display: flex; flex-direction: column; gap: 8px; }
.page-title { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 700; }
.page-title.big { font-size: 44px; }
.lead { margin: 0; font-size: 17px; color: var(--muted); }
.did { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.did code { font-size: 14px; color: var(--ink-2); background: var(--chip-grey); padding: 4px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.breadcrumb { font-size: 15px; color: var(--muted); }
.section-title { margin: 0; font-size: 22px; font-weight: 600; }
.footnote { margin: 0; font-size: 15px; color: var(--muted); }

/* --- avisos ---------------------------------------------------------------------------- */
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 12px; }
.alert-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 2px; }
.alert-text strong { font-size: 17px; }
.alert-text span { font-size: 15px; }
.alert-warning { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning-ink); }
.alert-warning .btn { background: transparent; color: var(--warning-ink); border-color: var(--warning-ink); min-height: 44px; padding: 0 18px; font-size: 16px; }
.alert-ok { background: var(--teal-tint); border: 1px solid #9fd3da; color: var(--teal-ink); }
.alert-error { background: var(--danger-bg); border: 1px solid #f4b8b3; color: var(--danger); }
.alert-info { background: #fff; border: 1px solid var(--border); color: var(--ink-2); }

/* --- tarjetas de estado ------------------------------------------------------------------ */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.status-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.status-card .label { font-size: 15px; color: var(--muted); }
.status-card .value { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; }
.status-card .value small { font-weight: 400; color: var(--muted); font-size: 16px; }
.status-card .detail { font-size: 14px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.dot-sm { width: 8px; height: 8px; }

.columns { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-wide { flex: 3 1 460px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col-narrow { flex: 2 1 320px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.task { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border);
  color: var(--ink); text-decoration: none; min-height: 132px; }
a.task:hover { border-color: var(--teal-strong); color: var(--ink); }
.task strong { font-size: 18px; }
.task span { font-size: 15px; color: var(--muted); }
.task.soon { opacity: .72; }
.task .soon-pill { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); background: var(--chip-grey); padding: 2px 8px; border-radius: 999px; }

.changes { list-style: none; margin: 0; padding: 4px 20px; }
.changes li { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--divider); }
.changes li:last-child { border-bottom: 0; }
.changes .dot { margin-top: 8px; }
.changes .text { display: flex; flex-direction: column; gap: 2px; }
.changes .text span:last-child { font-size: 14px; color: var(--muted); }
.empty { padding: 20px; color: var(--muted); font-size: 15px; }

/* --- personas -------------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--input-border);
  background: #fff; color: var(--ink); font-size: 16px; text-decoration: none; }
.filter:hover { color: var(--ink); border-color: var(--graphite); }
.filter[aria-current="true"] { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.search { min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-control);
  border: 1px solid var(--input-border); background: #fff; color: var(--muted); flex: 0 1 320px; margin: 0; }
.search:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.search input { border: 0; outline: none; font-size: 16px; flex: 1; min-width: 0; background: transparent; color: var(--ink); min-height: 42px; }
.table-wrap { overflow-x: auto; max-width: 100%; min-width: 0; position: relative; }
table.people { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 980px; }
.people td:nth-child(1) { min-width: 270px; }
.people td:nth-child(4) { min-width: 190px; }
.people thead tr { text-align: left; color: var(--muted); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.people th { padding: 14px 20px; font-weight: 600; border-bottom: 1px solid var(--border); }
.people td { padding: 18px 20px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.people tbody tr:last-child td { border-bottom: 0; }
.people tbody tr:hover { background: #F9FAFB; }
.people td.actions { padding: 12px; text-align: right; white-space: nowrap; }
.person { display: flex; gap: 12px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-strong); color: #fff; display: grid; place-items: center;
  font-weight: 600; font-size: 15px; flex: none; }
.avatar.test { background: var(--chip-grey); color: var(--ink-2); }
.person-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person-name { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.person-mail { font-size: 14px; color: var(--muted); overflow-wrap: break-word; }
.tag { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--chip-grey); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-ink); }
.chip.danger { background: var(--danger-bg); color: var(--danger); }
.chip.none { background: var(--chip-grey); color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 4px; }
.warn-line { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--warning-text); font-weight: 600; }
.small { font-size: 15px; }
.row-menu { position: relative; display: inline-block; text-align: left; }
.row-menu summary { list-style: none; width: 44px; height: 44px; border-radius: var(--radius-control); display: inline-grid; place-items: center;
  color: var(--ink-2); cursor: pointer; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:hover { background: var(--divider); }
.row-menu .menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 260px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(17,24,39,.16); padding: 6px; z-index: 4; display: flex; flex-direction: column; }
.menu a, .menu button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink);
  text-decoration: none; font-size: 16px; background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
.menu a:hover, .menu button:hover { background: var(--ground); color: var(--ink); }
.menu .danger { color: var(--danger); }
.menu form { margin: 0; }

/* --- formulario ------------------------------------------------------------------------- */
.form-card { flex: 3 1 480px; display: flex; flex-direction: column; gap: 28px; padding: 28px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { font-size: 20px; font-weight: 600; color: var(--graphite); padding: 0; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 600; }
.field input, .field select { min-height: 48px; padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--input-border);
  font-size: 17px; color: var(--ink); background: #fff; font-weight: 400; width: 100%; }
.field .hint { font-size: 15px; font-weight: 400; color: var(--muted); }
.field.narrow input { max-width: 260px; }
.choice { display: flex; position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 16px 18px; border-radius: 12px; border: 2px solid var(--border);
  background: #fff; color: var(--ink); width: 100%; }
.choice input:checked + .choice-box { border-color: var(--teal-strong); background: var(--teal-select); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--teal); outline-offset: 2px; }
.checkbox { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #9CA3AF; background: #fff; display: grid; place-items: center;
  flex: none; margin-top: 2px; color: #fff; }
.checkbox svg { visibility: hidden; }
.choice input:checked + .choice-box .checkbox { border-color: var(--teal-strong); background: var(--teal-strong); }
.choice input:checked + .choice-box .checkbox svg { visibility: visible; }
.choice-text { display: flex; flex-direction: column; gap: 4px; }
.choice-text strong { font-size: 18px; font-weight: 600; }
.choice-text span { font-size: 15px; color: var(--muted); font-weight: 400; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.methods .choice-box { flex-direction: column; gap: 6px; min-height: 112px; }
.nif-field { display: none; }
form:has(input[name="method"][value="cert"]:checked) .nif-field, .nif-field.show { display: flex; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--divider); }
.notice { font-size: 15px; color: var(--warning-ink); background: var(--warning-bg); border: 1px solid var(--warning-border); border-radius: 10px; padding: 12px 14px; margin: 0; }
.errors { margin: 0; padding: 14px 18px 14px 36px; border-radius: 12px; background: var(--danger-bg); border: 1px solid #f4b8b3; color: var(--danger); }

.aside { flex: 2 1 320px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.plan { background: var(--graphite); color: #fff; border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.plan h2 { margin: 0; font-size: 20px; font-weight: 600; color: #fff; }
.plan ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 12px; font-size: 16px; line-height: 1.35; }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--graphite); display: grid; place-items: center; flex: none; margin-top: 1px; }
.tech summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px;
  font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.tech summary::-webkit-details-marker { display: none; }
.tech[open] summary svg { transform: rotate(180deg); }
.tech-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.tech-body p { margin: 0; font-size: 14px; color: var(--muted); }
.tech-list { margin: 0; padding: 14px 16px; list-style: none; background: var(--ground); border-radius: 10px; display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; color: #1F2937; line-height: 1.45; }
.tech-list li { display: flex; gap: 8px; }
.tech-list .op { color: var(--teal-strong); flex: none; }
.tech-list .what { overflow-wrap: anywhere; }

/* --- persona lista ---------------------------------------------------------------------- */
.ready { display: flex; flex-direction: column; gap: 20px; padding: 28px; max-width: 760px; }
.ready h2 { margin: 0; font-size: 22px; }
.copy-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.copy-row input { flex: 1 1 320px; min-height: 48px; padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--input-border);
  font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); background: var(--ground); min-width: 0; }
.secret { font-family: var(--font-mono); font-size: 22px; letter-spacing: .04em; background: var(--ground); border-radius: 10px; padding: 12px 16px; display: inline-block; }

/* --- acceso ------------------------------------------------------------------------------ */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.hero { flex: 1 1 480px; background: var(--graphite); color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; min-height: 560px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.hero-inner { position: relative; margin: 40px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 40px; }
.hero-logo { width: 180px; height: auto; display: block; padding: 18px 22px; background: var(--graphite); border-radius: 4px; align-self: flex-start; }
.hero-box { display: flex; flex-direction: column; gap: 16px; max-width: 520px; padding: 32px; background: var(--graphite); border-top: 4px solid var(--teal); }
.hero-box .eyebrow { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); font-weight: 600; }
.hero-box h1 { margin: 0; font-size: 48px; line-height: 1.05; font-weight: 600; color: #fff; }
.hero-box p { margin: 0; font-size: 19px; line-height: 1.45; color: var(--on-dark); }
.login-panel { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 56px 32px; }
.login-form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.login-form h2 { margin: 0; font-size: 32px; font-weight: 600; }
.login-form .intro { display: flex; flex-direction: column; gap: 6px; }
.login-form .intro p { margin: 0; font-size: 17px; color: var(--muted); }
.org-static { min-height: 52px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--input-border); background: #fff; font-size: 17px;
  display: flex; align-items: center; font-weight: 400; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.divider span { flex: 1; height: 1px; background: var(--on-dark); }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.login-row .hint { font-size: 15px; color: var(--muted); flex: 1 1 200px; }
.login-foot { margin: 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.login-methods { display: flex; flex-direction: column; gap: 12px; margin: 0; }

/* --- recoger la credencial ---------------------------------------------------------------- */
.pickup { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: var(--graphite); color: var(--on-dark); padding: 0 32px; min-height: 72px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar img { width: 120px; height: auto; display: block; }
.topbar span { font-size: 15px; color: var(--on-dark-muted); }
.topbar strong { color: #fff; font-weight: 600; }
.pickup-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 48px 32px 64px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.qr-card { flex: 1 1 380px; border-radius: 18px; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.qr { width: 300px; max-width: 100%; aspect-ratio: 1; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr.expired { opacity: .2; }
.countdown { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.countdown strong { font-variant-numeric: tabular-nums; }
.qr-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pickup-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; }
.pickup-text .intro { display: flex; flex-direction: column; gap: 10px; }
.pickup-text .eyebrow { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-strong); font-weight: 700; }
.pickup-text h1 { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 700; }
.pickup-text .intro p { margin: 0; font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--graphite); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }
.steps .stack { padding-top: 4px; gap: 2px; }
.steps strong { font-size: 18px; }
.steps .stack span { font-size: 16px; color: var(--muted); }
.claims { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.claims h2 { margin: 0; font-size: 18px; font-weight: 600; }
.claims dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px 16px; font-size: 16px; }
.claims dt { color: var(--muted); }
.claims dd { margin: 0; overflow-wrap: anywhere; }
.claims p { margin: 0; font-size: 14px; color: var(--muted); }
.cred-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- pantallas estrechas ----------------------------------------------------------------- */
@media (max-width: 820px) {
  .nav { max-width: none; flex-basis: 100%; padding: 20px 16px; gap: 18px; }
  .nav-bottom { margin-top: 0; }
  .main { padding: 28px 16px 40px; }
  .page-title, .page-title.big { font-size: 34px; }
  .hero { min-height: 420px; }
  .hero-inner { margin: 24px 16px; }
  .hero-box { padding: 24px; }
  .hero-box h1 { font-size: 36px; }
  .login-panel { padding: 40px 16px; }
  .pickup-main { padding: 32px 16px 48px; }
  .pickup-text h1 { font-size: 34px; }
  .qr-card { padding: 24px 16px; }
  .form-card { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
}

.btn-link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--teal-strong); text-decoration: underline; font-weight: 400; font-size: 16px; }
.btn-link:hover { color: var(--graphite); }
.login-form .alert { margin: 0; }
.nav a.nav-user-link { color: var(--on-dark-muted); font-size: 14px; text-decoration: underline; }
.nav a.nav-user-link:hover { color: #fff; }

/* Language switcher */
.lang-switch { display: flex; flex-wrap: wrap; gap: 2px; font-size: 14px; }
.lang-switch a { min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 8px;
  color: var(--teal-strong); text-decoration: none; }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.login-panel { position: relative; }
.lang-switch.corner { position: absolute; top: 12px; right: 20px; }
.topbar .lang-switch a { color: var(--on-dark-muted); }
.topbar .lang-switch a[aria-current="true"] { color: #fff; }

/* Settings menu (side menu): opens upwards */
.settings-menu { position: relative; }
.settings-menu summary { list-style: none; cursor: pointer; color: var(--on-dark); }
.settings-menu summary::-webkit-details-marker { display: none; }
.settings-menu summary:hover, .settings-menu[open] summary { color: #fff; background: rgba(255,255,255,.06); }
.settings-menu summary .icon:last-child { margin-left: auto; transform: rotate(180deg); }
.settings-menu[open] summary .icon:last-child { transform: none; }
.settings-menu .menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: #fff; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28); padding: 6px; z-index: 5; display: flex; flex-direction: column; }
.settings-menu .menu a, .settings-menu .menu button { justify-content: space-between; }
.settings-menu .menu a[aria-current="true"], .settings-menu .menu button[aria-current="true"] { font-weight: 600; color: var(--teal-ink); }
.menu-label { padding: 8px 12px 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.topbar > span { margin-left: auto; }
.main > .lang-switch { justify-content: flex-end; }
