/* Grupo LET — Manual de identidad 2026: rojo #FB0009, negro y blanco; grises #F7F7F7 / #EBEBEB / #E3E3E3 y negros
   #1A1A1A / #141414 / #0D0D0D; tipografía Barlow (y Barlow Condensed para títulos cortos en mayúsculas).
   Los colores son variables para la marca blanca por campamento. */
:root {
  --bg: #F7F7F7; --surface: #FFFFFF; --surface-2: #F7F7F7; --fg: #141414; --muted: #5E5E5E; --line: #E3E3E3;
  /* Marca blanca: brand.js fija --accent, --on-accent y --brand-text-light / -dark por campamento
     (colores ya ajustados para que se lean, ver api/src/lib/brand.js). */
  --accent: #FB0009; --accent-text: var(--brand-text-light, var(--accent)); --on-accent: #FFFFFF; --ink: #000000;
  --ok: #1D7A46; --warn: #9A5300; --bad: #B42318;
  --display: Barlow, "Segoe UI", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Barlow, "Segoe UI", system-ui, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0D0D; --surface: #141414; --surface-2: #1A1A1A; --fg: #EBEBEB; --muted: #A3A3A3; --line: #2B2B2B;
    --accent-text: var(--brand-text-dark, color-mix(in srgb, var(--accent) 50%, #FFFFFF)); --ink: #000000;
    --ok: #5BC48A; --warn: #E8A13A; --bad: #F2796B; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0D0D; --surface: #141414; --surface-2: #1A1A1A; --fg: #EBEBEB; --muted: #A3A3A3; --line: #2B2B2B;
  --accent-text: var(--brand-text-dark, color-mix(in srgb, var(--accent) 50%, #FFFFFF)); --ink: #000000;
  --ok: #5BC48A; --warn: #E8A13A; --bad: #F2796B; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent-text); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { justify-content: space-between; }

/* ---------- pantallas de acceso: tarjeta centrada ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-top { background: var(--ink); color: #fff; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 32px var(--gutter) 48px; }
@media (min-height: 760px) { .auth-main { align-items: center; } }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 480px) { .auth-card { padding: 24px 18px; border-radius: 14px; } }
.auth-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 16px var(--gutter) 24px; }

.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: #000; display: grid; place-items: center; flex: none; }
.brand-mark-img { background: none; display: block; }
.brand-initial { background: var(--accent); color: var(--on-accent, #fff); font-weight: 800; font-size: 17px; line-height: 1; }
.brand-name { font-family: var(--cond); font-weight: 800; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand-org { font-size: 12px; opacity: .75; display: block; margin-top: 2px; letter-spacing: 0; text-transform: none; font-family: var(--body); font-weight: 500; }

.eyebrow { font-family: var(--cond); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); font-size: 14px; }
.lead { color: var(--muted); }

/* ---------- formularios ---------- */
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { color: var(--muted); font-size: 12px; }
.field .err { color: var(--bad); font-size: 13px; font-weight: 600; }
.input-wrap { position: relative; display: flex; }
input[type="email"], input[type="password"], input[type="text"], input[type="tel"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="search"], input[type="url"], select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); font-size: 16px; /* 16px evita el zoom en iPhone */
}
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.bad input, .field.bad select { border-color: var(--bad); }
.input-wrap input { padding-right: 76px; }
.reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--accent-text); font-weight: 600; font-size: 13px; padding: 8px 10px; min-height: 36px; cursor: pointer; border-radius: 8px; }
.code-input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px !important; letter-spacing: .4em; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

.btn { border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 12px 18px; border-radius: 10px; min-height: 48px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: progress; filter: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent-text) 55%, transparent); }
.btn.quiet { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent); }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--accent-text); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Con la app instalada no hay barra del navegador: respeta la muesca del celular. */
.auth-top, .topbar { padding-top: max(10px, env(safe-area-inset-top, 0px)); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.lang.install { border-color: rgba(255,255,255,.55); }
.lang.theme { font-size: 16px; min-width: 38px; padding: 4px 8px; }
/* El tema elegido también aplica a controles nativos (fechas, listas). */
:root[data-theme="light"] { color-scheme: light; }
.lang { background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 8px; padding: 6px 10px; min-height: 36px; font-weight: 700; font-size: 13px; cursor: pointer; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; border: 1px solid; }
.alert.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--fg); }
.alert.ok { background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.alert.info { background: var(--surface-2); border-color: var(--line); }

.summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 6px; font-size: 14px; }
.summary dt { color: var(--muted); font-size: 12px; }
.summary dd { margin: 0 0 4px; font-weight: 600; word-break: break-word; }

.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; }
.qr { align-self: center; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; text-align: center; word-break: break-all; user-select: all; }

.roles { display: flex; flex-direction: column; gap: 10px; }
.role-opt { all: unset; box-sizing: border-box; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface-2); }
.role-opt:hover, .role-opt:focus-visible { border-color: var(--accent); }
.role-opt b { display: block; }
.role-opt span { color: var(--muted); font-size: 13px; }
.role-opt::after { content: "›"; font-size: 24px; color: var(--accent-text); }

/* ---------- portal ---------- */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { background: var(--ink); color: #fff; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { color: #fff; opacity: .8; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.topbar nav a[aria-current="page"] { opacity: 1; background: rgba(255,255,255,.12); }
.usermenu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.usermenu .who { font-size: 13px; text-align: right; line-height: 1.25; }
.usermenu .who small { display: block; opacity: .7; }
.topbar .btn.quiet { color: #fff; border-color: rgba(255,255,255,.3); }
.content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px clamp(var(--gutter), 3vw, 40px) 48px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 800px) { .content { padding-left: 32px; padding-right: 32px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; color: var(--muted); font-size: 14px; }
.tile b { color: var(--fg); display: block; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-text); }
.list { display: flex; flex-direction: column; }
.item { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 0; }
.item .meta { min-width: 0; }
.item .meta b { display: block; word-break: break-all; }
.item .meta > span { display: block; }
.item .meta { flex: 1 1 280px; }
.devlink { font-size: 12px; word-break: break-all; }

/* ---------- estudiantes y registro en 6 pasos ---------- */
.head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.stack-sm > .pill { align-self: flex-start; }
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.pill.info { background: color-mix(in srgb, #2563EB 14%, transparent); color: color-mix(in srgb, #2563EB 80%, var(--fg)); }
.pill:not(.ok):not(.warn):not(.bad):not(.info) { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.light { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.light::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.light.ok { color: var(--ok); } .light.warn { color: var(--warn); } .light.bad { color: var(--bad); }
a.app-row { color: inherit; text-decoration: none; border-radius: 10px; }
a.app-row:hover b { color: var(--accent-text); }
.okText { color: var(--ok); font-weight: 700; } .badText { color: var(--bad); font-weight: 700; }
.alert.warnbox { background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 40%, transparent); color: var(--fg); margin-top: 6px; }

.wizsteps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ws { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; padding: 6px 2px; border-radius: 10px; min-width: 0; }
.ws i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); font-weight: 800; color: var(--muted); }
.ws.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.ws.warn i { border-color: var(--warn); color: var(--warn); }
.ws.cur { color: var(--fg); }
.ws.cur i { background: var(--accent); border-color: var(--accent); color: #fff; }
.ws span { line-height: 1.2; }
@media (max-width: 640px) { .ws span { display: none; } .ws.cur span { display: none; } }
.wizcard { gap: 18px; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 640px) { .formgrid { grid-template-columns: 1fr; } }
.formgrid .wide { grid-column: 1 / -1; }
.subhead { padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.subhead:first-child { border-top: 0; padding-top: 0; }
.subhead h3 { font-size: 16px; } .subhead h4 { font-size: 14px; margin: 0; color: var(--muted); }
.req { color: var(--bad); }
textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font: inherit; font-size: 16px; resize: vertical; color: inherit; }
textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type="date"], input[type="datetime-local"] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 16px; }
.field.bad textarea, .field.bad input, .field.bad select, fieldset.bad .radio-card, .doc.bad { border-color: var(--bad); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
.radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: var(--surface-2); min-height: 48px; }
.radio-card input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.radio-card b { display: block; font-size: 14px; } .radio-card small { display: block; color: var(--muted); font-size: 12px; }
.radio-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.wiznav { padding-top: 8px; border-top: 1px solid var(--line); }
[data-role="save-state"][data-state="error"], [data-role="save-state"][data-state="offline"] { color: var(--bad); font-weight: 700; }
[data-role="save-state"][data-state="saved"] { color: var(--ok); }

.docs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.doc { display: flex; gap: 14px; border: 1px dashed var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.doc.has { border-style: solid; }
.doc-thumb { width: 72px; height: 92px; flex: none; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-weight: 800; font-size: 22px; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
label.btn { cursor: pointer; }
label.btn.busy { opacity: .6; pointer-events: none; }

.sign { display: flex; flex-direction: column; gap: 12px; }
[data-role="signpad"] { display: flex; flex-direction: column; gap: 12px; }
.contract { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--surface-2); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.contract h4 { margin: 0; }
.pad-wrap { position: relative; border: 2px dashed var(--line); border-radius: 12px; background: #fff; height: 180px; touch-action: none; }
.pad { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; border-radius: 10px; }
.pad-hint { position: absolute; left: 14px; bottom: 10px; color: #8a96a3; font-size: 13px; pointer-events: none; }
.pad-wrap.drawn .pad-hint { display: none; }
.pad-clear { position: absolute; right: 8px; top: 8px; background: #fff; color: #111; }
.final { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.final.ready { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 8%, var(--surface-2)); }
.final ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.timeline { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; flex-direction: column; }

/* ---------- bandeja del campamento ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.tabs { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; min-height: 40px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tab .count { font-size: 12px; background: color-mix(in srgb, currentColor 15%, transparent); border-radius: 999px; padding: 0 8px; }
.search { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 16px; width: 100%; max-width: 320px; }
@media (max-width: 640px) { .search { max-width: none; } }
.inbox-row .meta { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-width: 0; flex: 1 1 260px; }
.inbox-row .meta:hover b { color: var(--accent-text); }
.warnText { color: var(--warn); font-weight: 600; }
.actionbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); position: sticky; top: 0; z-index: 2; }
.actionbar .danger { margin-left: auto; }
.review-docs { display: grid; gap: 12px; }
.rdoc { display: flex; gap: 14px; align-items: flex-start; }
.rdoc-thumb { width: 96px; height: 120px; flex: none; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-weight: 800; text-decoration: none; }
.rdoc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dialog { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--surface); color: var(--fg); width: min(480px, calc(100% - 32px)); }
.dialog::backdrop { background: rgba(0,0,0,.5); }

/* ---------- reportes y tablero ---------- */
/* Paleta validada (dataviz): serie 1 azul, serie 2 naranja; pasa daltonismo y contraste en claro y oscuro. */
:root { --series-1: #2a78d6; --series-2: #eb6834; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --series-1: #3987e5; --series-2: #d95926; } }
:root[data-theme="dark"] { --series-1: #3987e5; --series-2: #d95926; }
.filters { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.filter { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); flex: 1 1 150px; min-width: 0; }
.filter.narrow { flex: 0 1 90px; }
.filter select, .filter input { min-height: 40px; font-size: 15px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--fg); width: 100%; }
.tiles-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.stat span { color: var(--muted); font-size: 13px; }
.stat b { font-family: var(--display); font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat small { color: var(--muted); font-size: 12px; }
a.stat.link:hover { border-color: var(--accent); }
.charts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.bar-label { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.bar-track { height: 14px; display: flex; gap: 2px; }
.bar { display: block; height: 14px; width: var(--w, 0%); background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 0; transition: width .3s; }
.bar[data-w="0"] { display: none; }
.bar.pipe { background: var(--series-2); }
.bar-track.stacked .bar:not(:last-child) { border-radius: 0; }
.bar-row:hover .bar { filter: brightness(1.1); }
.bar-value { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 2ch; text-align: right; }
.occ .bar-row { grid-template-columns: minmax(110px, 30%) 1fr auto; }
.legend { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; background: var(--series-1); margin-left: 8px; }
.legend .sw.p { background: var(--series-2); }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.linkish:hover { color: var(--accent-text); }
.block { display: block; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.views { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.chip button { background: none; border: 0; padding: 6px 12px; min-height: 34px; cursor: pointer; font-weight: 600; font-size: 13px; color: inherit; }
.chip .chip-x { padding: 6px 10px; color: var(--muted); border-left: 1px solid var(--line); }
@media print {
  .topbar, .no-print, .filters .btn, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .stat, .filters { break-inside: avoid; border-color: #ccc; }
  .content { max-width: none; padding: 0; }
  .filters select, .filters input { border: 0; background: none; padding: 0; min-height: 0; appearance: none; }
  .bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------- programas y precios ---------- */
.program.off, .item.off { opacity: .65; }
.row.nowrap { flex-wrap: nowrap; }
.row.nowrap select { flex: 1; min-width: 0; }
input.money { width: 100%; min-width: 96px; max-width: 140px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
table.data.price-matrix { min-width: 0; }
table.data.price-matrix td, table.data.price-matrix th { padding-left: 6px; padding-right: 6px; }
.price-matrix th[scope="row"] { white-space: nowrap; font-weight: 600; color: var(--fg); font-size: 14px; }
#sp-agency { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); padding: 6px 10px; max-width: 100%; }

.role-desc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--fg); }

/* ---------- pagos ---------- */
.pay-card h3 { font-size: 15px; margin-top: 6px; }
.upload-proof > summary { list-style: none; display: inline-flex; cursor: pointer; }
.upload-proof > summary::-webkit-details-marker { display: none; }
.upload-proof[open] > summary { margin-bottom: 12px; }
.pay-card .tiles-stats .stat b { font-size: 22px; }

.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.mini-stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.mini-stats span { font-size: 12px; color: var(--muted); }
.mini-stats b { font-variant-numeric: tabular-nums; }
.radio-grid.one { grid-template-columns: 1fr; }
.qb-export { align-items: flex-end; }
.qb-export .filter { flex: 0 1 170px; }

/* ---------- portales: grupos y padres ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.checklist .mark { font-weight: 700; color: var(--warn, var(--muted)); text-align: center; }
.checklist li.done .mark { color: var(--ok); }
.itinerary { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 12px; }
.itinerary b { display: inline-block; }
.itinerary b::first-letter { text-transform: uppercase; }
.itinerary .plain { margin-top: 4px; }
.it-time { display: inline-block; min-width: 46px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.it-editor { display: flex; flex-direction: column; gap: 8px; }
/* Cada actividad: fecha · hora · quitar, y debajo actividad y detalle a todo lo ancho. */
.it-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.it-row input { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: inherit; min-width: 0; width: 100%; font: inherit; font-size: 15px; }
.it-row input[data-k="title"], .it-row input[data-k="detail"] { grid-column: 1 / -1; }
.it-row input[data-k="title"] { font-weight: 600; }
.add-students > summary, details.card > summary { list-style: none; display: inline-flex; cursor: pointer; align-self: flex-start; width: auto; }
.add-students > summary::-webkit-details-marker, details.card > summary::-webkit-details-marker { display: none; }
.add-students[open] > summary, details.card[open] > summary { margin-bottom: 12px; }
.add-students { margin-top: 12px; }
.add-students input[type="search"] { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: inherit; width: 100%; font: inherit; }
label.item.check { cursor: pointer; justify-content: flex-start; gap: 12px; }
.guardian-form { max-width: 460px; }
.guardian-form .btn { align-self: flex-start; }

/* ---------- alojamiento ---------- */
.hs-options { flex-basis: 100%; border-top: 1px dashed var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.item.opt.off .meta b { color: var(--muted); }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.card.off { opacity: .7; }
ul.occ { display: flex; flex-direction: column; gap: 6px; }
ul.occ li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.host-head { display: flex; gap: 16px; align-items: center; }
.doc-thumb.big { width: 88px; height: 110px; flex: none; font-size: 28px; font-weight: 700; }
.doc-thumb.big img { width: 100%; height: 100%; object-fit: cover; }
dl.summary.health dd { color: var(--warn); font-weight: 600; }
details > summary.linkbtn { list-style: none; cursor: pointer; margin-top: 8px; }
details > summary.linkbtn::-webkit-details-marker { display: none; }
form.row input[type="email"] { flex: 1 1 200px; min-width: 0; }

/* ---------- operación y pase de lista ---------- */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.roster-item { display: flex; gap: 8px; align-items: center; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.roll-start { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .roll-start { grid-template-columns: 1fr 1fr auto; align-items: center; } }
.roll-start .roll-notice { grid-column: 1 / -1; }
.roll-notice input, .roll-notice textarea, .roll-notice select { width: 100%; }
.roll-counter { position: sticky; top: 0; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px;
  background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.roll-counter b { font-size: 22px; font-variant-numeric: tabular-nums; }
.roll-counter.done { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.scan-box { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; max-height: 55vh; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18% 22%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); pointer-events: none; }
.roll-search { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: inherit; width: 100%; font: inherit; }
.roll-row { flex-wrap: wrap; }
.roll-row > .row.nowrap:first-child { flex: 1 1 190px; min-width: 0; }
.roll-row .meta { min-width: 0; }
.roll-row .meta b { overflow-wrap: normal; word-break: normal; }
.roll-row.present { background: color-mix(in srgb, var(--ok) 7%, transparent); }
.roll-row.absent { background: color-mix(in srgb, var(--bad) 7%, transparent); }
.roll-item > summary { list-style: none; cursor: pointer; width: 100%; }
.roll-item > summary::-webkit-details-marker { display: none; }
.roll-item { display: block; }

/* ---------- salud ---------- */
.inc-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.inc-photo { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface-2); }
.inc-photo img { width: 100%; height: 100%; object-fit: cover; }
.quick-forms { display: flex; flex-direction: column; gap: 4px; }
.quick-forms .add-students { margin-top: 0; }

/* ---------- transporte ---------- */
.day-head { font-size: 15px; margin: 8px 0 0; color: var(--muted); }
.day-head::first-letter { text-transform: uppercase; }
.make-trip { border-top: 1px dashed var(--line); padding-top: 10px; }

/* ---------- plataforma ---------- */
.platform-banner { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px;
  background: #5B2A86; color: #fff; font-weight: 600; font-size: 14px; }
.platform-banner .btn { background: #fff; color: #5B2A86; border-color: #fff; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 12px; }
.grow-card { flex: 1; }

/* ---------- marca blanca ---------- */
/* Logo: cuadrado o ancho (el de LET es "LET▶" a lo ancho); alto fijo y ancho según el logo. */
.brand-logo { height: 38px; width: auto; max-width: 140px; border-radius: 6px; object-fit: contain; background: #fff; flex: none; }
.logo-box { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; background: #fff; overflow: hidden; flex: none; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.color-input { width: 64px; height: 44px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.brand-preview { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; color: #141414; }

/* ---------- API ---------- */
.key-value { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
pre.code { margin: 0; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; overflow-x: auto; white-space: pre; }

.rate-input { max-width: 110px; }
form[data-hs-form="rate"] { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; }
form[data-hs-form="rate"] label { flex-basis: 100%; }
form[data-hs-form="rate"] select { width: auto; min-width: 80px; }

/* ---------- visita del inspector (en el celular) ---------- */
.ins-check .meta { gap: 8px; }
.ins-check .meta b { word-break: normal; overflow-wrap: break-word; }
.ins-check .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-check .seg .check { min-height: 44px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.ins-check .seg .check:has(input:checked) { border-color: var(--accent); }

/* ---------- galería ---------- */
.photos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.photo { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; }
.photo.hidden-photo { opacity: .55; }
.photo a.ph { display: block; aspect-ratio: 4 / 3; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.photo .row { gap: 6px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 20; display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 8px; }
.lightbox .lb-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; color: #fff; flex-wrap: wrap; }

/* ---------- autorregistro ---------- */
.formgrid.one { grid-template-columns: 1fr; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-cta { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
a.role-opt { color: inherit; }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; max-width: calc(100% - 32px); z-index: 10; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---------- tabla de planes ---------- */
.plans-table th.num, .plans-table td.num { text-align: center; }
.plans-table td .okText { font-weight: 800; }
.plans-table input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.plans-table tfoot td { border-bottom: 0; }
.plan-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.roles-table th.num { min-width: 120px; }
.role-pick { margin-top: 6px; max-width: 260px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--fg); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }

/* ---------- guía de configuración ---------- */
.setup-guide { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.setup-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.setup-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .4s; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.setup-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.setup-steps li .meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setup-steps li .mark { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; }
.setup-steps li.done { opacity: .65; }
.setup-steps li.done .mark { background: var(--ok, #16a34a); border-color: transparent; color: #fff; }
.setup-steps li.next { border-color: var(--accent); }

/* ---------- resumen de plataforma ---------- */
.ov-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ov-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.ov-kpi span { font-size: 13px; color: var(--muted); }
.ov-kpi b { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ov-kpi small { font-size: 12px; color: var(--muted); }
.ov table.data { min-width: 0; }

/* ---------- menú agrupado ---------- */
.topbar nav { align-items: center; }
.nav-group { position: relative; }
.nav-btn { color: #fff; opacity: .8; background: transparent; border: 0; padding: 8px 10px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 36px; }
.nav-btn:hover, .topbar nav a:hover { opacity: 1; }
.nav-btn.is-active, .nav-btn[aria-expanded="true"] { opacity: 1; background: rgba(255,255,255,.12); }
.nav-btn span { font-size: 11px; opacity: .8; }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 200px; display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--ink); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.nav-menu[hidden] { display: none; }
.topbar .nav-menu a { opacity: .85; padding: 10px 12px; white-space: nowrap; }
.topbar .nav-menu a[aria-current="page"] { opacity: 1; background: rgba(255,255,255,.12); }
@media (max-width: 640px) {
  .nav-menu { position: fixed; left: var(--gutter); right: var(--gutter); top: auto; min-width: 0; }
}
.nav-menu.to-left { left: auto; right: 0; }

/* ---------- calendario de campamentos (línea de tiempo) ---------- */
.cal-chart { display: flex; flex-direction: column; gap: 6px; }
.cal-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 12px; align-items: center; }
.cal-row.off { opacity: .55; }
.cal-label { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.cal-label b, .cal-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-track { position: relative; height: 26px; }
.cal-head .cal-track { height: 18px; }
.cal-month { position: absolute; top: 0; font-size: 11px; color: var(--muted); padding-left: 4px; text-transform: capitalize; white-space: nowrap; }
.cal-grid { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--line); }
.cal-today { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--fg); opacity: .55; z-index: 2; }
.cal-bar { position: absolute; top: 5px; height: 16px; border-radius: 4px; overflow: hidden; z-index: 1; cursor: default;
  background: color-mix(in srgb, var(--accent) 40%, var(--surface)); box-shadow: 0 0 0 2px var(--surface); }
.cal-bar:hover, .cal-bar:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
.cal-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.cal-legend { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cal-legend .sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; vertical-align: middle; }
.cal-legend .sw.full { background: var(--accent); }
.cal-legend .sw.free { background: color-mix(in srgb, var(--accent) 40%, var(--surface)); }
.cal-legend .sw.now { width: 2px; height: 14px; background: var(--fg); opacity: .55; }
@media (max-width: 640px) { .cal-row { grid-template-columns: 96px 1fr; gap: 8px; } .cal-month { font-size: 10px; } }

/* Cotizador */
.q-price { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-end; border-left: 4px solid var(--accent); }
.q-big { font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.q-mid { font-size: 24px; font-variant-numeric: tabular-nums; }
table.data.q-calc { min-width: 0; }
.q-calc td.num { white-space: nowrap; }
table.data tr.strong td { font-weight: 700; }
.q-add { flex-direction: row; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.q-add select, .q-add input[type="text"] { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--fg); max-width: 100%; }
.q-add select { flex: 1 1 260px; }

/* Portal del Director general: finanzas y cotizaciones */
.ov-kpi.bad b { color: var(--bad); }
.ov-kpi.warn b { color: var(--warn); }
.pm-meter { width: 90px; margin: 4px 0 0 auto; height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.pm-meter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.pm-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 180px; padding-top: 8px; }
.pm-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.pm-bar i { display: block; width: 70%; max-width: 36px; background: var(--accent); border-radius: 4px 4px 0 0; }
.pm-bar:hover i, .pm-bar:focus i { filter: brightness(1.15); }
.pm-bar .pm-val { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-chip { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 6px 14px; min-height: 36px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--fg); }
.pm-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
tr.pm-detail > td { background: var(--surface-2); }
.pm-detail-grid h3 { margin: 0; }
.pre { white-space: pre-wrap; margin: 0; }
.content nav a { white-space: nowrap; }
.ov-alert { display: block; text-decoration: none; color: var(--fg); }
.ov-alert:hover { filter: brightness(1.05); }

/* Bitácora del Director */
.au-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
@media (max-width: 760px) { .au-filters { grid-template-columns: 1fr; } }
.au-filters .wide { grid-column: 1 / -1; }
.au-filters .grow { flex: 1; }
.au-person { position: relative; }
.au-suggest { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / .2); overflow: hidden; }
.au-suggest button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); text-align: left; cursor: pointer; }
.au-suggest button:hover, .au-suggest button:focus { background: var(--surface-2); }
tr.au-sens > td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.au-table td { vertical-align: top; }

/* Cotizador: opciones */
.q-opts { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 4px 0 0; }
.q-opts legend { font-weight: 700; padding: 0 6px; }
.q-was { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 8px; }

/* ⓘ de cada puesto */
.role-i { background: none; border: 1px solid var(--line); border-radius: 999px; width: 22px; height: 22px; padding: 0; font-size: 13px; line-height: 1; color: var(--accent-text); cursor: pointer; vertical-align: middle; }
.role-i:hover, .role-i:focus-visible { background: var(--surface-2); }
.role-dlg { max-width: 440px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); padding: 18px 20px; }
.role-dlg::backdrop { background: rgb(0 0 0 / .45); }
.role-dlg ul { margin: 6px 0 0; padding-left: 20px; }
.role-dlg h2 { margin: 0; }

/* Calendario: tocar un programa */
button.cal-label { background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; font: inherit; }
button.cal-label:hover b, button.cal-label:focus-visible b { text-decoration: underline; }
.cal-bar[role="button"] { cursor: pointer; }
.cal-detail { border: 1px solid var(--accent); border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }

/* Contrato en PDF */
.contract-pdf { width: 100%; height: 60vh; min-height: 360px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pdf-contract { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Hoteles */
.hotel-benefits { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.hotel-benefits h3 { margin: 0; }
.list .item.off { opacity: .6; }

/* Cartas de invitación */
.lt-field { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font: 12px ui-monospace, monospace; color: var(--accent-text); cursor: pointer; margin: 2px 0; }
.lt-list { max-height: 420px; overflow: auto; }
.lt-list .item { align-items: flex-start; }
.lt-tpl { border-top: 1px solid var(--line); padding: 10px 0; }
.lt-tpl > summary { cursor: pointer; }

/* Chat interno */
.chat { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 14px; align-items: start; }
.chat-list { display: flex; flex-direction: column; gap: 10px; max-height: 72vh; overflow: auto; }
.chat-threads { display: flex; flex-direction: column; }
.chat-item { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line); }
.chat-item .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item:hover, .chat-item.on { background: var(--surface-2); }
.chat-name { font-weight: 600; }
.chat-people { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.chat-room { display: flex; flex-direction: column; gap: 10px; min-height: 60vh; }
.chat-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.chat-back { display: none; }
.chat-msgs { flex: 1; min-height: 300px; max-height: 58vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.chat-msg { max-width: 78%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.chat-msg p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 44px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface-2); color: var(--fg); font: inherit; }
.chat-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; }
  .chat.has-open .chat-list { display: none; }
  .chat:not(.has-open) .chat-room { display: none; }
  .chat-back { display: inline; }
}

/* Equipos */
.team-list li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.wa-steps { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }

/* Chat: archivos */
.chat-attach { cursor: pointer; font-size: 18px; padding: 8px 10px; }
.chat-img img { display: block; max-width: min(260px, 100%); max-height: 260px; border-radius: 10px; margin-top: 4px; object-fit: cover; }
.chat-file { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); text-decoration: none; max-width: 100%; }
.chat-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-file small { color: var(--muted); white-space: nowrap; }

/* Celular: cuadros de resumen de dos en dos */
@media (max-width: 640px) { .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; } .ov-kpi b { font-size: 20px; } .ov-kpi { padding: 10px; } }

/* Podcast: panel del equipo */
.pc-copy { flex-wrap: nowrap; }
.pc-copy input { flex: 1; min-width: 0; font-size: 13px; }
.grow-input { flex: 1; min-width: 0; }
form.row .grow-input { min-width: 180px; }
.pc-ep { color: inherit; text-decoration: none; }
.pc-ep:hover b { color: var(--accent-text); }
.pc-ep .meta b { word-break: normal; }
.pc-ep .row { gap: 6px; margin-top: 4px; }
.pc-yt:empty { display: none; }
.pc-yt { position: relative; aspect-ratio: 16 / 9; max-width: 560px; border-radius: 12px; overflow: hidden; background: #000; }
.pc-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pc-month { margin: 0; text-align: center; }
.pc-month::first-letter, .pc-day h3::first-letter { text-transform: uppercase; }
.pc-day + .pc-day { margin-top: 16px; }
.pc-day h3 { margin: 0 0 6px; font-size: 15px; color: var(--muted); }
.pc-day.today h3 { color: var(--accent-text); }
.pc-ev .meta b { word-break: normal; }
.pc-cover { width: 160px; height: 160px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.pc-days { grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; }
.pc-days .pm-bar i { width: 100%; }
.pc-days .pm-val { font-size: 10px; }
audio { width: 100%; max-width: 560px; }
@media (max-width: 640px) { .pc-days .pm-val { display: none; } }
.pc-new { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; }
.pc-new input { flex: 1 1 240px; min-width: 0; }
.card > label.btn { align-self: flex-start; }

/* ---------- pendientes de la semana (junta de los lunes) ---------- */
.wk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; margin: 16px 0; }
.wk-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wk-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.wk-n { display: grid; place-items: center; min-height: 40px; border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 20px;
  font-variant-numeric: tabular-nums; text-decoration: none; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }
.wk-warn .wk-n { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border-color: transparent; }
.wk-bad .wk-n { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); border-color: transparent; }
.wk-info .wk-n { background: color-mix(in srgb, #2563EB 12%, transparent); color: color-mix(in srgb, #2563EB 80%, var(--fg)); border-color: transparent; }
.wk-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wk-label { font-weight: 700; color: inherit; text-decoration: none; }
.wk-label:hover { color: var(--accent-text); }
.wk-list { margin: 4px 0 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.wk-list a { color: inherit; }
.wk-clear { margin: 12px 0 0; }
@media print {
  .wk-grid { grid-template-columns: 1fr 1fr; }
  .wk-n { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .wk-section { break-inside: avoid; }
}
.chat-rename { flex: 1 1 100%; gap: 8px; }
.chat-rename input { flex: 1 1 220px; min-width: 0; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: inherit; font: inherit; }
/* Precios: columna "Precio especial" (la agencia se elige arriba); escondida si nadie tiene precio especial. */
.price-matrix.no-special .special-col { display: none; }
.price-matrix th.special-col { vertical-align: bottom; }
.price-matrix th.special-col span { display: block; margin-bottom: 4px; }
.price-matrix .sp-agency { width: 100%; min-width: 150px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: inherit; font: inherit; font-size: 13px; padding: 4px 8px; }

/* ---------- buscador general ---------- */
.search-big { width: 100%; font: inherit; font-size: 18px; min-height: 52px; padding: 12px 16px; margin: 12px 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: inherit; }
.search-big:focus { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
a.search-hit { color: inherit; text-decoration: none; }
a.search-hit:hover b { color: var(--accent-text); }

/* ---------- chat: primer botón de la derecha (antes del nombre) y en rojo si hay mensajes sin leer ----------
   Sin estirar el bloque del usuario: así los menús se quedan centrados. */
.topbar .btn.has-unread, .topbar nav a.has-unread { background: var(--bad); border-color: var(--bad); color: #fff; opacity: 1; }
.btn.has-unread .chat-badge, .topbar nav a.has-unread .chat-badge { background: #fff; color: var(--bad); }
@media (prefers-reduced-motion: no-preference) {
  .topbar .has-unread { animation: chat-pulse 1.6s ease-in-out infinite; }
}
@keyframes chat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 121, 107, .6); } 50% { box-shadow: 0 0 0 6px rgba(242, 121, 107, 0); } }

/* ---------- contenido del catálogo (Administrador y Diseño) ---------- */
.cc-card { display: grid; gap: 14px; }
.cc-cover { width: 100%; max-width: 520px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.cc-cover.empty { display: grid; place-items: center; text-align: center; padding: 12px; }
.cc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cc-photos figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.cc-photos img { width: 100%; height: 100%; object-fit: cover; }
.cc-del { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; font-size: 14px; line-height: 28px; }
.cc-new { position: absolute; left: 4px; bottom: 4px; padding: 2px 8px; border-radius: 999px; background: var(--warn); color: #1a1a1a; font-size: 11px; font-weight: 700; }
.cc-del:hover { background: var(--bad); }

/* ---------- reporte general para imprimir (Dirección) ---------- */
.bad-text { color: var(--bad); }
.warn-text { color: var(--warn); }
.rp { display: grid; gap: 16px; }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rp-kpi { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rp-kpi b { font-size: 26px; line-height: 1.1; }
.rp-section h2 { margin-bottom: 8px; }
.rp-section h3 { margin: 14px 0 6px; font-size: 15px; }
.rp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rp-table th, .rp-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rp-table th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.rp-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-table .rp-n { width: 48px; font-weight: 700; font-size: 16px; }
.rp-section { overflow-x: auto; }
/* Inicio: tarjetas de la semana, documentos de viaje y estado del sistema */
.home-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.home-list li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.home-list .n { min-width: 28px; font-weight: 700; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 8px 0; }
.sys-grid div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sys-grid b { font-size: 18px; }
@media print {
  .rp-table { font-size: 11px; }
  .rp-table th, .rp-table td { padding: 3px 5px; border-color: #ccc; }
  .rp-kpi { border-color: #ccc; }
  .rp-section { overflow: visible; }
  .rp-list { break-inside: auto; }
  .rp-table tr { break-inside: avoid; }
  .bad-text { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .rp-table a { color: inherit; text-decoration: none; }
}

/* ---------- podcast · producción ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pp-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.pp-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; scroll-snap-align: start; }
.pp-col h3 { margin: 0 0 2px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pp-col h3 .count { font-size: 12px; font-weight: 600; background: color-mix(in srgb, currentColor 12%, transparent); border-radius: 999px; padding: 0 8px; }
.pp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.pp-card-title { font-weight: 600; color: inherit; text-decoration: none; line-height: 1.3; }
.pp-card-title:hover { color: var(--accent-text); }
.pp-meta { display: flex; flex-direction: column; gap: 2px; }
.pp-card .linkbtn { align-self: flex-start; }
.pp-done { text-decoration: line-through; opacity: .6; }
.pp-late { border-left: 3px solid var(--bad); padding-left: 8px; }
.pp-late-input { border-color: var(--bad) !important; color: var(--bad); }
.pp-task { flex-wrap: wrap; gap: 8px; }
.pp-task .check { flex: 1 1 220px; }
.pp-task-fields { gap: 6px; flex-wrap: wrap; }
.pp-task-fields select, .pp-task-fields input, .pp-add input, .pp-add select { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: inherit; font: inherit; font-size: 13px; padding: 4px 8px; }
.pp-add { gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pp-add input[name="title"] { flex: 1 1 220px; }
.pp-place { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- buzón de quejas y comentarios ---------- */
.qj-item { color: inherit; text-decoration: none; align-items: flex-start; }
.qj-item:hover b { color: var(--accent-text); }
.qj-item .meta { gap: 2px; }
.qj-tabs { gap: 6px; flex-wrap: wrap; }
.qj-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 8px; }
.qj-info dt { color: var(--muted); font-size: 13px; }
.qj-info dd { margin: 0; }
.qj-actions { gap: 8px; align-items: center; flex-wrap: wrap; }
.qj-actions select { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: inherit; font: inherit; font-size: 14px; padding: 4px 8px; }
.qj-thread { display: flex; flex-direction: column; gap: 10px; }
.qj-msg { max-width: 80%; align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 8px 12px; }
.qj-msg.mine { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: color-mix(in srgb, var(--accent, #FB0009) 8%, var(--surface)); }
.qj-msg.note { align-self: stretch; max-width: none; background: color-mix(in srgb, var(--warn) 10%, transparent); border-style: dashed; }
.qj-body { white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
@media (max-width: 600px) { .qj-msg { max-width: 95%; } }

/* ---------- encabezado en dos líneas fijas ----------
   Arriba: el logo a la izquierda y lo de la persona a la derecha (Chat justo antes del nombre).
   Abajo: todos los menús centrados, con todo el ancho (con tantos menús ya no cabía todo en una línea). */
.topbar > .usermenu { order: 2; margin-left: auto; }
.topbar > nav { order: 3; flex: 1 0 100%; justify-content: center; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; }
@media (max-width: 640px) { .topbar > nav { justify-content: flex-start; } .topbar > .usermenu { margin-left: 0; } }

/* ---------- planes (portal del Director) ---------- */
.plan-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: inherit; text-decoration: none;
  border: 2px solid color-mix(in srgb, var(--accent, #FB0009) 45%, var(--line)); }
.plan-strip:hover { border-color: var(--accent, #FB0009); }
.plan-strip .pill { margin-right: 6px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan-card h2 { margin: 0; }
.plan-mods { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.plan-mods li.on { color: var(--fg); }
.plan-mods li.off { color: var(--muted); opacity: .7; }

/* ---------- editor de la página del catálogo (Diseño) ---------- */
.cc-tabs { gap: 6px; flex-wrap: wrap; }
.cp-hero { position: relative; border-radius: 12px; overflow: hidden; min-height: 140px; background: var(--accent, #FB0009); display: grid; place-items: center; }
.cp-hero img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.cp-hero .cp-veil { position: absolute; inset: 0; background: #0a0c10; opacity: .55; pointer-events: none; }
.cp-hero:not(.has) .cp-veil { display: none; }
.cp-hero > span { position: relative; z-index: 1; color: #fff; }
.cp-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 1fr; gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cp-row.cp-head { border-bottom: 0; padding-bottom: 0; }
.cp-label { font-size: 13px; color: var(--muted); padding-top: 8px; }
.cp-row input, .cp-row textarea { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: inherit; font: inherit; font-size: 14px; padding: 6px 10px; }
.cp-row input::placeholder, .cp-row textarea::placeholder { color: var(--muted); opacity: .7; }
.cp-color { gap: 16px; align-items: center; flex-wrap: wrap; }
.cp-color input[type="color"] { width: 64px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.cp-actions { gap: 8px; flex-wrap: wrap; align-items: center; position: sticky; bottom: 0; z-index: 5; background: var(--bg); padding: 10px 0; border-top: 1px solid var(--line, rgba(127,127,127,.2)); }
@media (max-width: 760px) { .cp-row { grid-template-columns: 1fr; } .cp-row.cp-head { display: none; } }
.cp-status { margin: 0; }

/* Podcast · Invitados */
.pg-filters { flex-wrap: wrap; gap: 6px; }
a.pg-row { color: inherit; text-decoration: none; align-items: flex-start; }
a.pg-row:hover b { text-decoration: underline; }
.pg-story { display: block; color: var(--muted); margin-top: 2px; }

/* Versión al pie de cada página y aviso de versión nueva */
.app-ver, .auth-ver { text-align: center; padding: 16px 16px 24px; }
.ver-new { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; justify-content: center; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px;
  background: var(--surface, #1e2832); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

/* Facturas: pestañas que son enlaces */
a.tab { color: var(--fg); text-decoration: none; }
a.tab[aria-selected="true"] { color: var(--bg); }

/* Cotizador con el formato del Excel de cotización: secciones con barra negra, franja roja del precio
   y celdas amarillas de escenarios. */
.xq { gap: 14px; }
.xq-brand { color: var(--accent-text); font-weight: 800; letter-spacing: .02em; margin: 0; }
.xq-title { font-size: 32px; letter-spacing: .04em; margin: 0; }
.xq-table { margin-top: 6px; }
.xq-table .xq-head th { background: #111; color: #fff; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; }
.xq-table .xq-head th:first-child { text-align: left; }
.xq-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.xq-table .xq-sub td:first-child { padding-left: 28px; }
.xq-table .xq-price td { background: var(--accent); color: #fff; font-weight: 800; font-size: 20px; }
.xq-table td.xq-yellow { background: color-mix(in srgb, #FACC15 45%, var(--surface)); }
.xq-table td.xq-yellow input { background: transparent; border-color: color-mix(in srgb, #A16207 40%, transparent); text-align: right; width: 6em; }
.xq-foot { border-top: 1px solid var(--line); padding-top: 10px; }
@media print { .xq { box-shadow: none; border: 0; } }

/* Directorio de proveedores */
.sup-stars { color: #D97706; letter-spacing: 1px; }
.sup-rates { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.sup-rate-table input, .sup-rate-table select { min-width: 90px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--fg); }
.sup-rate-table input[name="title"], .sup-rate-table input[name="conditions"] { min-width: 180px; }
.sup-rate-table select { min-width: 150px; }
