@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/montserrat-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/montserrat-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Paleta: Blue Express (azul #0032A0, #032266, #3363FF, #00BCFF, fondo #ECF1FF) + Recibelo.cl (rosa #E6166A, morado #5E358B). Tipografía: Montserrat, la que usan ambos sitios. */
:root { --ctxh: 48px; }
:root {
  color-scheme: light;
  --navy: #032266; --blue: #0032A0; --blue2: #3363FF; --sky: #00BCFF; --soft: #ECF1FF;
  --pink: #E6166A; --pink-dk: #C4125A; --purple: #5E358B; --orange: #FF7E44;
  --bg: #F2F5FB; --card: #FFFFFF; --ink: #14203D; --ink2: #4A5876; --ink3: #566178;
  --line: #E1E7F3; --line2: #EDF1F8; --accent: var(--blue); --accent-soft: var(--soft);
  --ok: #0B7D45; --ok-soft: #E1F5EA; --ok-bar: #14A35C;
  --warn: #9A5400; --warn-soft: #FFF0CF; --warn-bar: #F4A100;
  --bad: #B42318; --bad-soft: #FDE7E7; --bad-bar: #D92D20;
  --c0: #0032A0; --c1: #E6166A; --c2: #5E358B; --bar1: #B45309; --bar2: #E6166A; --meta: #55627C;
  --radius: var(--r-3); --r-1: 8px; --r-2: 12px; --r-3: 16px; --r-4: 24px;
  --sh-1: 0 1px 2px rgba(3,34,102,.06); --sh-2: 0 12px 32px rgba(3,34,102,.16); --shadow: var(--sh-1);
  --grad: linear-gradient(115deg, #032266 0%, #0032A0 34%, #4B3A97 64%, #9B2A86 84%, #E6166A 100%);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
button, select, input { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
h1, h2, h3 { color: var(--navy); }
.muted { color: var(--ink2); font-weight: 500; }
.sm { font-size: 13px; }

/* ---------- logos ---------- */

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 22px 20px calc(44px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius:var(--radius); box-shadow: var(--sh-1); padding: 22px; }
.card h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.1px; display: flex; align-items: center; gap: 10px; }
.card h3 { margin: 0 0 8px; font-size: 13px; line-height: 1.3; color: var(--ink2); font-weight: 700; letter-spacing: .2px; }
.card .cap { margin: 0 0 16px; color: var(--ink2); font-size: 14px; font-weight: 500; }
.card p { margin: 8px 0; }

/* ---------- botones y campos ---------- */
.btn { appearance: none; border: 1.5px solid #CBD5EA; background: #fff; color: var(--blue); border-radius:999px; padding: 9px 18px; min-height: 42px; cursor: pointer; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; transition: background .12s, border-color .12s, color .12s; }
.btn:hover { border-color: var(--blue); background: var(--soft); }
.btn:focus-visible, .kpi:focus-visible, .rowbtn:focus-visible, select:focus-visible, input:focus-visible, .link:focus-visible { outline: 3px solid rgba(51,99,255,.45); outline-offset: 2px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--navy); border-color: var(--navy); }
.btn.quiet { background: transparent; color: var(--ink2); border-color: var(--line); }
.btn.quiet:hover { color: var(--blue); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn.ghost:hover { background: rgba(255,255,255,.24); border-color: #fff; }
.btn.sm { min-height: 34px; padding: 5px 14px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.cta { background: #fff; color: var(--pink-dk); border-color: #fff; box-shadow: var(--sh-1); }
.btn.cta:hover { background: #FFE9F1; border-color: #FFE9F1; }
.btn.cta[disabled] { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; opacity: 1; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn[disabled]:hover { background: inherit; }
.link { background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 4px 8px; border-radius:var(--r-1); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink2); min-width: 0; letter-spacing: .2px; }
select, input { height: 44px; padding: 0 14px; border: 1.5px solid #CBD5EA; border-radius:var(--r-2); background: #fff; font-size: 14px; font-weight: 600; width: 100%; min-width: 0; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230032A0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 410px; background: #fff; border-radius:var(--r-4); padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.login-card .duo { justify-content: center; padding-bottom: 16px; border-bottom: 1px solid var(--line2); }
.login-card h1 { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.login-card p { margin: 0; font-size: 14px; }
.pw { position: relative; display: block; } .pw input { padding-right: 62px; } .pw .link { position: absolute; right: 4px; top: 5px; height: 34px; }
.err { background: var(--bad-soft); color: var(--bad); border-radius:var(--r-2); padding: 10px 14px; font-size: 14px; font-weight: 700; }

/* ---------- estado / actualización ---------- */
.status { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-items: start; }
.st { min-width: 0; }
.st .k { font-size: 12px; text-transform: uppercase; letter-spacing: .9px; color: var(--ink3); font-weight: 700; }
.st .v { font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.st .s { font-size: 13px; color: var(--ink2); font-weight: 500; }
.refresh { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.refresh .btn { flex: none; }
.refresh .s { flex: 1; line-height: 1.35; }
.spin { width: 14px; height: 14px; border-radius:50%; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: sp .8s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
.note { font-size: 12px; color: var(--ink3); margin-top: 10px; font-weight: 500; }

/* ---------- rango ---------- */
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick .btn { min-height: 44px; padding: 8px 16px; }
.quick .btn.quiet { background: #fff; border-color: #CBD5EA; color: var(--blue); }
.quick .btn.primary { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line2); align-items: center; }
.actions .lbl { font-size: 13px; color: var(--ink2); font-weight: 700; margin-right: 6px; }
.range { display: grid; grid-template-columns: minmax(150px, 210px) minmax(150px, 210px) 1fr; gap: 14px; align-items: end; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi { text-align: left; cursor: pointer; padding: 15px 16px 14px 20px; border-radius:var(--r-3); border: 1.5px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden; transition: border-color .12s, background .12s, box-shadow .12s; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #C9D2E6; }
.kpi.ok::before { background: var(--ok-bar); } .kpi.warn::before { background: var(--warn-bar); } .kpi.bad::before { background: var(--bad-bar); }
.kpi:hover { border-color: var(--blue2); box-shadow: none; }
.kpi[aria-pressed="true"] { background: var(--soft); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.kpi .kl { font-size: 12px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .7px; }
.kpi .kv { font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1.12; color: var(--navy); }
.kpi .kd { font-size: 13px; color: var(--ink2); line-height: 1.4; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 3px 11px 3px 9px; border-radius:999px; width: fit-content; margin-top: 7px; }
.pill i { width: 9px; height: 9px; border-radius:50%; background: currentColor; display: inline-block; }
.pill.ok { color: var(--ok); background: var(--ok-soft); } .pill.warn { color: var(--warn); background: var(--warn-soft); } .pill.bad { color: var(--bad); background: var(--bad-soft); }

/* ---------- gráficos ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 4px; border-radius:2px; display: inline-block; }
.legend i.dash { height: 0; border-top: 2px dashed var(--meta); background: none; }
.legend i.sq { height: 11px; width: 11px; border-radius:3px; }
svg.chart { display: block; width: 100%; height: auto; overflow: visible; }
svg.chart text { font: 600 11.5px var(--font); fill: var(--ink3); }
svg.chart .grid { stroke: var(--line2); stroke-width: 1; }
svg.chart .meta { stroke: var(--meta); stroke-width: 1.6; stroke-dasharray: 6 5; }
svg.chart .band { fill: var(--soft); }
svg.chart .l0 { stroke: var(--c0); fill: none; stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; }
svg.chart .l1 { stroke: var(--c1); fill: none; stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; }
svg.chart .p0 { fill: var(--c0); stroke: #fff; stroke-width: 1.5; } svg.chart .p1 { fill: var(--c1); stroke: #fff; stroke-width: 1.5; }
svg.chart .b0 { fill: var(--c0); } svg.chart .b1 { fill: var(--bar1); } svg.chart .b2 { fill: var(--bar2); }
svg.chart .hit { fill: transparent; cursor: pointer; }
svg.chart .val { fill: var(--ink2); font-weight: 700; font-size: 12px; }
svg.chart .metaT { fill: var(--ink2); font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.readout { margin: 12px 0 0; font-size: 14px; }

/* ---------- filas con barra ---------- */
.rows { display: flex; flex-direction: column; gap: 2px; }
.rowbtn { display: block; width: 100%; text-align: left; cursor: pointer; padding: 9px 11px; border-radius:var(--r-2); border: 0; background: transparent; }
.rowbtn:hover { background: var(--line2); }
.rowbtn[aria-pressed="true"] { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--blue2); }
.rowbtn .t { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.rowbtn .t span:last-child { color: var(--ink2); text-align: right; flex: none; font-weight: 600; }
.rowbtn .bar { height: 7px; border-radius:var(--r-1); margin-top: 6px; background: var(--line2); overflow: hidden; }
.rowbtn .bar i { display: block; height: 100%; border-radius:var(--r-1); background: var(--blue); } .rowbtn .bar.low i { background: #C9D2E6; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sub { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line2); }

.dhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.callout { background: var(--soft); border-radius:var(--r-2); padding: 13px 16px; font-size: 14px; color: var(--ink); font-weight: 600; }
.callout.warn { background: var(--warn-soft); }

/* ---------- tablas ---------- */
.tscroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; font-weight: 500; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink3); font-weight: 700; padding: 9px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; background: #FAFBFE; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line2); }
table.t tbody tr:hover { background: #F7F9FE; }
table.t .r { text-align: right; }
.tone-success { color: var(--ok); font-weight: 700; } .tone-warning { color: var(--warn); font-weight: 700; } .tone-danger { color: var(--bad); font-weight: 700; }
table.t.scroll th, table.t.scroll td { white-space: nowrap; }
table.t.scroll th:first-child, table.t.scroll td:first-child { position: sticky; left: 0; background: #fff; font-weight: 700; z-index: 1; box-shadow: 1px 0 0 var(--line2); }
table.t.scroll th:first-child { background: #FAFBFE; }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius:999px; font-weight: 700; font-size: 14px; z-index: 50; box-shadow: var(--sh-2); max-width: calc(100vw - 32px); text-align: center; }
.foot { font-size: 12px; color: var(--ink3); text-align: center; padding: 6px 8px; font-weight: 500; }
#reporte { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 18px; padding-bottom: 28px; }
  .hero h1 { font-size: 28px; }
  .grid3, .grid2 { grid-template-columns: 1fr; gap: 0; } .grid3 > div + div, .grid2 > div + div { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line2); }
}
/* ---------- celular ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .band { border-radius:0 0 var(--r-4) var(--r-4); }
  .band::before { background-size: 130% auto; background-position: right -90px bottom -10px; opacity: .15; }
  .top-in { padding: 12px 14px 4px; }
  .who span { display: none; }
  .hero-in { padding: 12px 14px 22px; gap: 14px; }
  .hero h1 { font-size: 22px; margin-bottom: 6px; } .hero p { font-size: 14px; }
  .glass { padding: 14px; border-radius:var(--r-3); }
  .st .v { font-size: 22px; }
  .refresh { flex-direction: column; align-items: stretch; gap: 8px; } .refresh .btn { width: 100%; } .refresh .s { text-align: center; }
  .wrap { padding: 14px 12px calc(40px + env(safe-area-inset-bottom)); gap: 14px; }
  .card { padding: 17px 15px; border-radius:var(--r-3); }
  .card h2 { font-size: 18px; }
  .range { grid-template-columns: 1fr 1fr; } .range .quick { grid-column: 1 / -1; }
  .quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .quick .btn { padding: 8px 2px; font-size: 13px; min-height: 42px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 11px 11px 17px; } .kpi::before { width: 6px; }
  .kpi .kv { font-size: 22px; } .kpi .kd { font-size: 12px; } .kpi .kl { font-size: 12px; letter-spacing: .5px; }
  .pill { font-size: 12px; }
  .actions .btn { flex: 1 1 auto; }
  .login-card { padding: 26px 20px 22px; border-radius:var(--r-4); }
  /* tablas de paquetes -> tarjetas */
  table.t.cards thead { display: none; }
  table.t.cards, table.t.cards tbody, table.t.cards tr, table.t.cards td { display: block; width: 100%; }
  table.t.cards tr { border: 1px solid var(--line); border-radius:var(--r-2); padding: 8px 14px; margin-bottom: 10px; background: #fff; box-shadow: var(--sh-1); }
  table.t.cards td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  table.t.cards td::before { content: attr(data-l); color: var(--ink3); font-size: 12px; font-weight: 700; text-align: left; flex: none; padding-top: 2px; }
  table.t.cards td:first-child { font-weight: 800; font-size: 16px; color: var(--navy); padding-bottom: 6px; border-bottom: 1px solid var(--line2); margin-bottom: 3px; }
  table.t.cards tbody tr:hover { background: #fff; }
  .tscroll { margin: 0 -15px; padding: 0 15px; }
}

/* ---- impresión / PDF ---- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff !important; color: #111 !important; font-size: 11pt; }
  #app, #login, #toast { display: none !important; }
  #reporte { display: block !important; }
  :root { --c0: #0032A0; --c1: #E6166A; --c2: #5E358B; --bar1: #FF7E44; --bar2: #5E358B; --meta: #555; --card: #fff; --ink: #111; --ink2: #333; --ink3: #555; --line: #cfd6e4; --line2: #e6eaf2; --accent-soft: #eaf1ff; }
}
#reporte { font-family: var(--font); color: #111; }
#reporte h1 { font-size: 20pt; margin: 6px 0 2px; color: #032266; }
#reporte .rhead { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #032266; border-bottom: 3px solid #E6166A; margin-bottom: 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#reporte .rhead img { height: 34px; width: auto; display: block; } #reporte .rhead span { font-size: 16pt; color: #fff; font-weight: 300; }
#reporte h2 { font-size: 13pt; margin: 16px 0 6px; padding-bottom: 3px; border-bottom: 2px solid #0032A0; color: #032266; break-after: avoid; }
#reporte .meta { color: #444; font-size: 10pt; margin-bottom: 10px; }
#reporte table.t { font-size: 9.5pt; } #reporte table.t th { color: #444; } #reporte table.t tr { break-inside: avoid; }
#reporte .kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#reporte .kp div { border: 1px solid #cfd6e4; border-left-width: 5px; border-radius:var(--r-1); padding: 6px 9px; break-inside: avoid; }
#reporte .kp .ok { border-left-color: #0e8a4f; } #reporte .kp .warn { border-left-color: #b7791f; } #reporte .kp .bad { border-left-color: #c62828; } #reporte .kp .none { border-left-color: #9aa5bd; }
#reporte .kp b { display: block; font-size: 15pt; } #reporte .kp span { font-size: 9pt; color: #444; display: block; }
#reporte svg.chart text { fill: #444; } #reporte svg.chart .band { fill: #eaf1ff; }
#reporte .pie { font-size: 9pt; color: #555; margin-top: 14px; }

#reporte table.t { font-size: 8.5pt; } #reporte table.t th { white-space: normal; padding: 5px 4px; } #reporte table.t td { white-space: nowrap; padding: 4px 4px; }

/* ---------- pestañas ---------- */
.tabs { max-width: 1120px; margin: 0 auto; padding: 16px 20px 0; }
.tabs-in { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius:999px; box-shadow: var(--sh-1); max-width: 100%; }
.tab { appearance: none; border: 0; background: transparent; color: var(--ink2); font-weight: 700; font-size: 14px; padding: 10px 20px; min-height: 44px; border-radius:999px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--blue); background: var(--soft); }
.tab[aria-selected="true"] { background: var(--blue); color: #fff; }
.tab:focus-visible { outline: 3px solid rgba(51,99,255,.45); outline-offset: 2px; }
.tabs + .wrap { padding-top: 16px; }

/* ---------- buscador de fotos ---------- */
.fform { display: flex; flex-direction: column; gap: 10px; }
textarea { width: 100%; min-height: 84px; padding: 12px 14px; border: 1.5px solid #CBD5EA; border-radius:var(--r-2); background: #fff; font: 600 14px/1.45 var(--font); resize: vertical; }
textarea:focus-visible { outline: 3px solid rgba(51,99,255,.45); outline-offset: 2px; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.frow .btn { min-width: 150px; }
.fmsg { margin-top: 12px; border-radius:var(--r-2); padding: 12px 15px; font-size: 14px; font-weight: 700; }
.fmsg.warn { background: var(--warn-soft); color: var(--warn); }
.fmsg.bad { background: var(--bad-soft); color: var(--bad); }
.fmsg.cap { background: var(--soft); color: var(--navy); border: 1.5px solid var(--blue2); }
#fotosRes { display: flex; flex-direction: column; gap: 18px; }
.fhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.fk { font-size: 12px; text-transform: uppercase; letter-spacing: .9px; color: var(--ink3); font-weight: 700; }
.fidt { margin: 2px 0 0 !important; font-size: 22px !important; font-weight: 800 !important; letter-spacing: -.3px; word-break: break-all; }
.fmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fmeta .pill { margin-top: 0; }
.chip { font-size: 12px; font-weight: 700; color: var(--ink2); background: var(--line2); border-radius:999px; padding: 3px 10px; }
.fsum { margin: 8px 0 14px !important; color: var(--ink2); font-size: 14px; font-weight: 600; }
.fempty { margin-top: 12px; background: var(--line2); border-radius:var(--r-2); padding: 16px; color: var(--ink2); font-weight: 600; font-size: 14px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ph { margin: 0; border: 1px solid var(--line); border-radius:var(--r-2); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.thumb { appearance: none; border: 0; padding: 0; margin: 0; position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--line2) linear-gradient(90deg, var(--line2), #F7F9FE, var(--line2)); cursor: zoom-in; }
.thumb { overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.thumb:focus-visible { outline: 3px solid rgba(51,99,255,.6); outline-offset: -3px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius:999px; color: #fff; letter-spacing: .2px; }
.tag.ok { background: var(--ok); } .tag.bad { background: var(--bad-bar); }
.thumb .tag { position: absolute; left: 8px; top: 8px; box-shadow: var(--sh-1); }
.ph figcaption { padding: 10px 12px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pdate { font-weight: 800; color: var(--navy); }
.pmot { color: var(--ink2); font-weight: 500; }
.prec { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 3px; font-size: 13px; overflow-wrap: anywhere; }
.prec span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink3); font-weight: 700; }
.prec a { color: var(--blue); font-weight: 700; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.lb-bg { position: absolute; inset: 0; background: #031240; }
.lb-box { position: relative; width: min(960px, 100%); max-height: 100dvh; display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); gap: 10px; color: #fff; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lb-t { font-weight: 700; font-size: 14px; }
.lb-img { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; flex: 1 1 auto; }
.lb-img img { max-width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; border-radius:var(--r-1); background: #0b1a45; touch-action: pan-y; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 56px; border: 0; border-radius:var(--r-2); background: rgba(255,255,255,.2); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.lb-nav:hover { background: rgba(255,255,255,.34); } .lb-nav.prev { left: 4px; } .lb-nav.next { right: 4px; }
.lb-cap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.lb-cap a { color: #BFD3FF; font-weight: 700; margin-left: auto; }
.lb-rec { background: rgba(255,255,255,.1); border-radius:var(--r-2); padding: 4px 12px 10px; }
.lb-rec .prec { border: 0; margin: 0; padding-top: 6px; } .lb-rec .prec span { color: rgba(255,255,255,.7); } .lb-rec .prec a { color: #BFD3FF; }

@media (max-width: 640px) {
  .tabs { padding: 12px 12px 0; } .tabs-in { display: flex; } .tab { flex: 1; padding: 10px 8px; font-size: 14px; }
  .gal { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ph figcaption { padding: 8px 9px 10px; font-size: 13px; }
  .fidt { font-size: 18px !important; }
  .frow { flex-direction: column-reverse; align-items: stretch; } .frow .btn { width: 100%; } .frow .s { text-align: center; }
  .lb-nav { width: 40px; height: 50px; }
}
@media (max-width: 380px) { .gal { grid-template-columns: 1fr; } }
@media print { #tabs, #fotos, #lightbox { display: none !important; } }
.btn.primary[disabled], .btn.primary[disabled]:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.idint { font-size: 12px; font-weight: 700; color: var(--ink3); background: var(--line2); border-radius:var(--r-1); padding: 1px 6px; margin-left: 4px; vertical-align: middle; text-transform: uppercase; letter-spacing: .4px; }

.fmem { margin-top: 0; }

/* descargas */
.fall { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fdl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.fdl .btn { flex: 0 1 auto; }
textarea::placeholder, input::placeholder { color: #6B7690; opacity: 1; font-weight: 500; }
.btn.dl[disabled] { opacity: .65; }
@media (max-width: 640px) { .fall { flex-direction: column; align-items: stretch; text-align: center; } .fall .btn { width: 100%; } .fdl { flex-direction: column; } .fdl .btn { width: 100%; } }

/* día elegido en el gráfico: el rango (banda azul) no cambia; el día se marca aparte */
svg.chart .selband { fill: rgba(0,50,160,.10); stroke: var(--blue); stroke-width: 1.5; }
.readout .btn { margin-left: 8px; }

/* barra de acciones (descargar todo + anteriores) */
.fbar { display: flex; flex-direction: column; gap: 10px; }
.fbar[hidden] { display: none; }
.fbar .fall { gap: 10px 14px; }
.fbar .fallt { flex: 1 1 160px; }
.antw { position: relative; margin-left: auto; }
.btn.ant { background: #fff; border-color: var(--blue2); color: var(--blue); box-shadow: var(--sh-1); }
.btn.ant:hover { background: var(--soft); }
.btn.ant[disabled] { border-color: #CBD5EA; box-shadow: none; }
.btn.ant .ico { flex: none; }
.btn.ant .cnt { background: var(--blue); color: #fff; border-radius:999px; min-width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: 12px; padding: 0 6px; }
.btn.ant[disabled] .cnt { background: var(--ink3); }
.btn.ant .car { font-size: 12px; }
.btn.ant.pulse { animation: pulso 1.2s ease-in-out 3; }
@keyframes pulso { 50% { box-shadow: 0 0 0 5px rgba(0,50,160,.25); } }
.faviso { margin-top: 0; }
@media (max-width: 640px) { .antw { width: 100%; margin-left: 0; } .btn.ant { width: 100%; justify-content: center; } .fbar .fallt { text-align: center; } }
/* tarjeta de foto: fecha/hora en chips y datos en filas etiqueta / valor */
.ph figcaption { padding: 12px 14px 14px; gap: 10px; }
.pdt { display: flex; flex-wrap: wrap; gap: 8px; }
.cd { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); color: var(--navy); border-radius:999px; padding: 5px 12px 5px 9px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cd .ico { color: var(--blue2); flex: none; }
.cd.ch .ico { color: var(--pink); }
.prow { margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.prow > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.prow dt { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink3); font-weight: 700; }
.prow dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; }
.prow dd a { color: var(--blue); font-weight: 700; }
.prow .coord { display: block; font-size: 12px; color: var(--ink3); font-weight: 500; margin-top: 1px; }
.thumb { background: #F2F5FB; }
.lb-rec { padding: 12px 14px; } .lb-rec .prow { gap: 7px; } .lb-rec .prow dt { color: rgba(255,255,255,.65); } .lb-rec .prow dd { color: #fff; } .lb-rec .prow dd a { color: #BFD3FF; } .lb-rec .coord { color: rgba(255,255,255,.65); }
.lb-cap .cd { background: rgba(255,255,255,.14); color: #fff; } .lb-cap .cd .ico { color: #BFD3FF; }
@media (max-width: 640px) { .prow > div { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; } .cd { font-size: 12px; padding: 4px 10px 4px 8px; } .gal .ph figcaption { padding: 10px 10px 12px; } }

/* panel "Búsquedas anteriores": desplegable en desktop, bottom sheet en mobile */
.btn.ant.abierto { background: var(--soft); box-shadow: 0 0 0 3px rgba(51,99,255,.2); }
.hback { position: fixed; inset: 0; z-index: 40; background: transparent; }
.hpanel { position: absolute; z-index: 41; top: calc(100% + 10px); right: 0; width: min(430px, 92vw); background: #fff; border: 1px solid var(--line); border-radius:var(--r-3); box-shadow: var(--sh-2); overflow: hidden; outline: none; animation: hin .16s ease-out; display: flex; flex-direction: column; max-height: min(560px, 70vh); }
@keyframes hin { from { opacity: 0; transform: translateY(-6px); } }
.hgrab { display: none; }
.hhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 14px 8px 18px; }
.hhead h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--navy); font-weight: 800; }
.hhead p { margin: 2px 0 0; font-size: 12px; color: var(--ink3); font-weight: 500; }
.hclose { appearance: none; border: 0; background: var(--bg); color: var(--ink2); width: 34px; height: 34px; border-radius:50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.hclose:hover { background: var(--soft); color: var(--blue); } .hclose:focus-visible, .hmain:focus-visible, .hx:focus-visible, .hlink:focus-visible { outline: 3px solid rgba(51,99,255,.45); outline-offset: 2px; }
.hscroll { list-style: none; margin: 0; padding: 4px 12px 8px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-height: 0; }
.hcard { position: relative; display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius:var(--r-2); background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.hcard:hover { border-color: var(--blue2); box-shadow: none; background: #FAFCFF; }
.hcard:active { background: var(--soft); transform: scale(.995); }
.hcard.on { border-color: var(--blue); background: var(--soft); box-shadow: 0 0 0 2px rgba(0,50,160,.12); }
.hmain { appearance: none; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 10px 6px 10px 10px; border-radius:var(--r-2); min-height: 76px; }
.hth { width: 56px; height: 56px; border-radius:var(--r-1); background: var(--soft); color: var(--blue2); display: grid; place-items: center; overflow: hidden; flex: none; }
.hth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hbd { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.hid { font-weight: 800; font-size: 14px; color: var(--navy); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.hwhen { font-size: 12px; color: var(--ink3); font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.hview { background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; border-radius:999px; padding: 2px 8px; }
.hchips { display: flex; flex-wrap: wrap; gap: 5px; }
.hc { font-size: 12px; font-weight: 700; border-radius:999px; padding: 2px 9px; white-space: nowrap; }
.hc.ok { background: var(--ok-soft); color: var(--ok); } .hc.bad { background: var(--bad-soft); color: var(--bad); } .hc.nul { background: var(--bg); color: var(--ink3); }
.hx { appearance: none; border: 0; background: none; color: var(--ink3); width: 44px; flex: none; display: grid; place-items: start center; padding-top: 12px; cursor: pointer; border-radius:0 var(--r-2) var(--r-2) 0; }
.hx:hover { color: var(--bad); background: var(--bad-soft); } .hx:active { background: #F9CFCF; }
.hhint { margin: 0; padding: 4px 18px 10px; font-size: 12px; color: var(--ink3); }
.hfoot { display: flex; align-items: center; gap: 8px; padding: 10px 18px 14px; border-top: 1px solid var(--line2); min-height: 46px; }
.hlink { appearance: none; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--bad); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; border-radius:var(--r-1); }
.hlink:hover { color: #9C0F14; } .hlink.no { color: var(--ink2); }
.hq { font-size: 13px; font-weight: 700; color: var(--ink); } .hsep { color: var(--ink3); }
.hvacio { text-align: center; padding: 22px 26px 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hvi { width: 52px; height: 52px; border-radius:50%; background: var(--soft); color: var(--blue2); display: grid; place-items: center; margin-bottom: 4px; } .hvi .ico { width: 26px; height: 26px; }
.hvacio b { color: var(--navy); font-size: 14px; } .hvacio p { margin: 0; font-size: 13px; color: var(--ink3); line-height: 1.45; }
@media (max-width: 640px) {
  .hback { background: rgba(3,34,102,.5); animation: hfade .18s; }
  @keyframes hfade { from { opacity: 0; } }
  .hpanel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-height: 82vh; max-height: 82dvh; border-radius:var(--r-4) var(--r-4) 0 0; border: 0; animation: hup .22s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes hup { from { transform: translateY(40px); opacity: .4; } }
  .hgrab { display: block; width: 42px; height: 5px; border-radius:3px; background: #CBD5EA; margin: 8px auto 0; flex: none; }
  .hpanel::before { display: none; }
  .hhead { padding-top: 6px; } .hclose { width: 44px; height: 44px; }
  .hmain { min-height: 84px; } .hx { width: 52px; } .hlink { padding: 12px 6px; font-size: 14px; } .hq { font-size: 14px; }
}
@media (max-width: 420px) { .gal { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .gal { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .fbar .fall { flex-direction: column; align-items: stretch; } .fbar .fallt { flex: none; text-align: center; } }

/* ---------- pestañas: Casos y Embudo ---------- */
.tab .sh { display: none; }
.tab.soon { color: var(--ink3); }
.soonb { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; background: var(--soft); color: var(--blue); border-radius:999px; padding: 2px 8px; margin-left: 8px; vertical-align: 1px; }
.tab[aria-selected="true"] .soonb { background: rgba(255,255,255,.22); color: #fff; }
.soonb.big { display: inline-block; margin: 0 0 4px; font-size: 12px; padding: 4px 12px; background: var(--soft); color: var(--blue); }
@media (max-width: 640px) { .tab .lg { display: none; } .tab .sh { display: inline; } .soonb { display: none; } .tab { padding: 10px 6px; } }
@media (max-width: 380px) { .tab { font-size: 13px; } }

/* ---------- Casos ---------- */
#casos, #embudo { gap: 16px; }
.cs-ejemplo { background: repeating-linear-gradient(135deg, #FFF0CF, #FFF0CF 14px, #FFE6A8 14px, #FFE6A8 28px); color: #6B3B00; border: 2px dashed #F4A100; border-radius:var(--r-2); padding: 12px 16px; font-size: 14px; font-weight: 600; }
.cs-ejemplo b { background: #9A5400; color: #fff; border-radius:var(--r-1); padding: 2px 8px; margin-right: 6px; letter-spacing: .6px; }
.cs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cs-card { container-type: inline-size; background: #fff; border: 1px solid var(--line); border-radius:var(--r-3); box-shadow: var(--sh-1); padding: 18px 18px 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.cs-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--a, var(--c)); }
.cs-card.cero { box-shadow: none; background: #FBFCFE; }
.cs-card.cero::before { opacity: .35; }
.cs-top { display: flex; align-items: center; gap: 12px; }
.cs-ico { width: 46px; height: 46px; border-radius:var(--r-2); background: var(--bg); color: var(--a, var(--c)); display: grid; place-items: center; flex: none; }
.cs-card.cero .cs-ico { opacity: .7; }
.cs-ttl { flex: 1; min-width: 0; }
.cs-ttl h3 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.cs-pct { font-size: 13px; color: var(--ink3); font-weight: 600; }
.cs-n { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -1.5px; color: var(--c); }
.cs-card.cero .cs-n { color: #A9B3C7; }
.cs-meter { height: 6px; border-radius:999px; background: var(--line2); overflow: hidden; }
.cs-meter i { display: block; height: 100%; background: var(--a, var(--c)); border-radius:999px; }
.cs-desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink2); font-weight: 500; }
.cs-nota { margin: 4px 0 0; font-size: 13px; color: var(--ink3); font-weight: 500; }
.cs-det { margin-top: 2px; border-top: 1px solid var(--line2); padding-top: 10px; }
.cs-det summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius:var(--r-2); background: var(--bg); color: var(--c); font-weight: 700; font-size: 14px; user-select: none; }
.cs-det summary::-webkit-details-marker { display: none; }
.cs-det summary span { flex: 1; } .cs-det summary b { background: #fff; border-radius:999px; padding: 1px 10px; font-size: 13px; }
.cs-det summary:hover { filter: brightness(.97); } .cs-det summary:focus-visible { outline: 3px solid rgba(51,99,255,.45); outline-offset: 2px; }
.cs-car { transition: transform .2s; } .cs-det[open] .cs-car { transform: rotate(180deg); }
.cs-tabla { margin-top: 10px; max-height: 340px; overflow-y: auto; border: 1px solid var(--line2); border-radius:var(--r-2); font-size: 13px; }
.cs-th, .cs-tr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, .95fr) minmax(0, 1.2fr); gap: 8px; padding: 9px 12px; align-items: center; }
.cs-th { position: sticky; top: 0; background: #F4F7FD; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--ink3); }
.cs-it + .cs-it { border-top: 1px solid var(--line2); } .cs-it:nth-of-type(even) { background: #FAFBFE; }
.cs-cod { font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.cs-est { display: inline-block; background: var(--bg); color: var(--c); border-radius:999px; padding: 2px 9px; font-weight: 700; font-size: 13px; }
.cs-mas { margin-top: 10px; width: 100%; }
.cs-pie { margin: 2px 4px 0; font-size: 13px; color: var(--ink3); font-weight: 500; line-height: 1.5; }
.cs-vacio { background: #fff; border: 1px solid var(--line); border-radius:var(--r-4); box-shadow: var(--sh-1); padding: 38px 24px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cs-vi { width: 96px; height: 96px; border-radius:50%; background: var(--soft); color: var(--blue2); display: grid; place-items: center; margin-bottom: 6px; }
.cs-vi svg { width: 52px; height: 52px; }
.cs-vacio h2 { margin: 0; font-size: 22px; color: var(--navy); } .cs-vacio h2::before { display: none; }
.cs-vacio p { margin: 0; max-width: 520px; color: var(--ink2); font-size: 16px; line-height: 1.55; font-weight: 500; }
.cs-re { margin-top: 10px; }
.emb-nota { background: var(--bg); border-radius:var(--r-2); padding: 10px 16px; margin-top: 10px !important; font-size: 14px !important; }
.cs-grid.fantasma { opacity: .72; }
@media (max-width: 900px) { .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-hero { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) {
  .cs-hero { padding: 20px 18px; border-radius:var(--r-3); } .cs-big { font-size: 56px; letter-spacing: -2px; }
  .cs-grid { grid-template-columns: 1fr; gap: 12px; }
  .cs-card { padding: 16px 14px 14px; }
  .cs-th { display: none; }
  .cs-tr { grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 10px 12px; }
  .cs-tr > span::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ink3); }
  .cs-vacio { padding: 28px 16px 26px; }
}
@container (max-width: 470px) {
  .cs-th { display: none; }
  .cs-tr { grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 10px 12px; }
  .cs-tr > span::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ink3); }
}
.cs-cinta { position: fixed; right: 14px; top: 76px; z-index: 30; background: #9A5400; color: #fff; font-weight: 800; letter-spacing: 1.2px; font-size: 13px; padding: 6px 14px; border-radius:999px; box-shadow: var(--sh-2); pointer-events: none; }

/* ---------- Casos: detalle por paquete e historial ---------- */
.cs-cod { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cs-hb { appearance: none; border: 0; background: none; padding: 6px 4px 6px 0; margin: -6px 0; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 3px; min-height: 36px; border-radius:var(--r-1); text-align: left; overflow-wrap: anywhere; }
.cs-hb span { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; text-decoration-color: var(--ink3); }
.cs-hb svg { color: var(--c, var(--blue)); flex: none; }
.cs-hb:hover span { text-decoration-style: solid; text-decoration-color: var(--c, var(--blue)); }
.cs-hb:focus-visible, .cs-ab:focus-visible, .cs-vm:focus-visible, .cs-mx:focus-visible { outline: 3px solid rgba(51,99,255,.5); outline-offset: 2px; }
.cs-ab { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; border: 1px solid #CBD5EA; border-radius:999px; padding: 4px 10px 4px 8px; white-space: nowrap; background: #fff; min-height: 30px; }
.cs-ab:hover { background: var(--soft); border-color: var(--blue); }
.cs-x { margin: 0; padding: 2px 12px 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: 13px; }
.cs-x > div { min-width: 0; }
.cs-x dt { font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--ink3); margin-bottom: 1px; }
.cs-x dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.4; }
.cs-x .viejo dd { color: var(--bad); font-weight: 800; }
.cs-nt { grid-column: 1 / -1; background: #F4F7FD; border-radius:var(--r-1); padding: 8px 12px 10px; }
.cs-nt dt span { text-transform: none; letter-spacing: 0; font-weight: 700; }
.cs-ntx { white-space: pre-line; font-weight: 500 !important; }
.cs-ntx.corta { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-vm { appearance: none; border: 0; background: none; color: var(--blue); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 0 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
@container (max-width: 470px) { .cs-x { grid-template-columns: 1fr 1fr; padding: 2px 12px 12px; } }
@container (max-width: 240px) { .cs-x { grid-template-columns: 1fr; } }
/* modal Historial: ventana centrada en desktop, hoja inferior en celular */
body.cs-modal-on { overflow: hidden; }
#csModal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; pointer-events: none; }
#csModal:empty { display: none; }
.cs-mb { position: absolute; inset: 0; background: rgba(3,18,64,.55); pointer-events: auto; animation: hfade .15s; }
.cs-md { position: relative; pointer-events: auto; width: min(560px, calc(100vw - 24px)); max-height: min(720px, calc(100dvh - 32px)); background: #fff; border-radius:var(--r-4); border-top: 5px solid var(--a, var(--c, var(--blue))); box-shadow: var(--sh-2); display: flex; flex-direction: column; outline: none; overflow: hidden; }
.cs-grab { display: none; }
.cs-mh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 10px 22px; }
.cs-mk { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink3); }
.cs-mh h3 { margin: 2px 0 0; font-size: 22px; line-height: 1.2; color: var(--navy); font-weight: 800; overflow-wrap: anywhere; }
.cs-mc { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--c, var(--ink2)); }
.cs-mx { appearance: none; border: 0; background: var(--bg); color: var(--ink2); width: 44px; height: 44px; border-radius:50%; font-size: 16px; font-weight: 700; cursor: pointer; flex: none; }
.cs-mx:hover { background: var(--soft); color: var(--blue); }
.cs-mbody { overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 16px; min-height: 0; }
.cs-tl { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; }
.cs-tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius:2px; }
.cs-ev { position: relative; padding: 0 0 14px 12px; }
.cs-ev::before { content: ""; position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius:50%; background: #fff; border: 3px solid var(--c, var(--blue)); }
.cs-ev.nota::before { border-color: var(--ink3); border-radius:3px; }
.cs-evh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.cs-evf { font-size: 13px; font-weight: 700; color: var(--ink2); }
.cs-evs { font-size: 13px; font-weight: 800; color: var(--navy); background: var(--bg); border-radius:999px; padding: 2px 10px; }
.cs-ev.nota .cs-evs { background: #fff; border: 1px dashed var(--ink3); color: var(--ink2); font-style: italic; }
.cs-evn { margin: 6px 0 0; padding: 8px 12px; background: #F4F7FD; border-radius:var(--r-1); font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.cs-mn { margin: 6px 0 0; font-size: 13px; color: var(--ink3); font-weight: 500; }
.cs-ml { margin: 4px 22px 18px; align-self: flex-start; flex: none; }
@media (max-width: 640px) {
  #csModal { place-items: end center; }
  .cs-md { width: 100%; max-height: 88dvh; border-radius:var(--r-4) var(--r-4) 0 0; padding-bottom: env(safe-area-inset-bottom); animation: hup .22s ease-out; }
  .cs-grab { display: block; width: 42px; height: 5px; border-radius:3px; background: #CBD5EA; margin: 8px auto 0; flex: none; }
  .cs-mh { padding: 8px 12px 8px 18px; } .cs-mbody { padding: 4px 18px 14px; } .cs-ml { margin: 0 18px 16px; }
  .cs-ab span { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .cs-md, .cs-mb { animation: none; } }
@keyframes hfade { from { opacity: 0; } }
@keyframes hup { from { transform: translateY(40px); opacity: .4; } }
.cs-cod::before { flex: 0 0 100%; }

.st .s span { display: block; } .st .s b { font-weight: 800; }

/* =====================================================================
   v3 (30-10): cabecera sólida, titular, gráficos con eje fijo, contraste y tamaños
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* cabecera */
.top { background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.accent { height: 3px; background: var(--pink); }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.who span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.intro { background: #fff; border-bottom: 1px solid var(--line); }
.intro-in { max-width: 1120px; margin: 0 auto; padding: 20px 24px 16px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.intro h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; color: var(--navy); }
.intro .sub { margin: 4px 0 0; font-size: 14px; color: #4F5B73; font-weight: 500; }
.upd-wrap { min-width: 0; }
.upd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--ink2); font-weight: 500; }
.upd b { color: var(--navy); font-weight: 700; }
.upd-t { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.fr { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; padding: 3px 10px 3px 8px; border-radius:999px; }
.fr.ok { color: var(--ok); background: var(--ok-soft); } .fr.late { color: #7A4300; background: #FFF0CF; } .fr.stale { color: #8F0F47; background: #FDE8EF; }
.refmsg { width: 100%; font-size: 13px; color: var(--ink2); } .refmsg:empty { display: none; } .refmsg.good { color: var(--ok); } .refmsg.badm { color: var(--bad); font-weight: 700; } .refmsg.limit { color: #5B6475; font-size: 13px; font-weight: 500; }
.btn.sec { background: #fff; border-color: #CBD5EA; color: var(--blue); }
.stale { display: flex; align-items: center; gap: 8px; justify-content: center; background: #FDE8EF; color: #8F0F47; font-weight: 700; font-size: 14px; padding: 10px 16px; text-align: center; }
.ctx { position: fixed; z-index: 35; top: 0; left: 0; right: 0; height: var(--ctxh); background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); box-sizing: content-box; }
.ctx-in { max-width: 1120px; margin: 0 auto; height: 48px; padding: 0 24px; display: flex; align-items: center; gap: 10px; overflow-x: auto; white-space: nowrap; }
.rchip { font-size: 13px; font-weight: 700; color: #3B4660; background: var(--line2); border-radius:999px; padding: 5px 12px; }
.fchip { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; background: #FDE8EF; color: #8F0F47; font: 700 13px var(--font); height: 32px; padding: 0 10px 0 12px; border-radius:999px; position: relative; }
.fchip::after { content: ""; position: absolute; inset: -6px -4px; }
.fchip.inh { margin-left: 10px; vertical-align: middle; }

/* tips ⓘ */
.tipw { position: relative; display: inline-flex; vertical-align: middle; }
.tipb { appearance: none; border: 0; background: none; color: var(--ink2); padding: 0; width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius:50%; cursor: pointer; position: relative; }
.tipb::after { content: ""; position: absolute; inset: -10px; }
.tipb:hover { color: var(--blue); background: var(--soft); }
.tipb:focus-visible { outline: 3px solid rgba(51,99,255,.5); outline-offset: 1px; }
.tipt { display: none; position: absolute; z-index: 45; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); width: min(300px, 76vw); background: var(--navy); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.45; padding: 10px 12px; border-radius:var(--r-1); text-align: left; letter-spacing: 0; text-transform: none; white-space: normal; box-shadow: var(--sh-2); }
.tipw.open .tipt { display: block; }
.tl .tipw, .ktip .tipw { margin-left: 2px; }

/* barra de anclas */
.anc { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; overflow-x: auto; margin: -2px -4px; padding: 8px 4px; background: var(--bg); scrollbar-width: none; }
.anc::-webkit-scrollbar { display: none; }
body.ctx-on .anc { top: calc(var(--ctxh) + env(safe-area-inset-top)); }
.anc a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius:999px; background: #fff; border: 1px solid var(--line); color: var(--ink2); font-weight: 700; font-size: 14px; text-decoration: none; }
.anc a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.anc a:focus-visible { outline: 3px solid rgba(51,99,255,.5); outline-offset: 2px; }
#resumen, #tendencia, #porcp, #pendientes, #causas, #paquetes, #detalle, #rango { scroll-margin-top: 112px; }
.wrap { gap: 16px; padding: 16px 24px calc(44px + env(safe-area-inset-bottom)); }
.card { box-shadow: none; border-radius:var(--r-2); padding: 22px; }
.card h2 { font-size: 18px; }
.card .cap, .card .muted { font-size: 14px; }
.rhead2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rhead2 h2 { margin: 0; }
.rhead2 .actions { margin: 0; padding: 0; border: 0; gap: 8px; }
.range { grid-template-columns: auto minmax(150px, 200px) minmax(150px, 200px); align-items: end; margin-top: 12px; }
.range .preset { display: none; }
.range .quick { grid-column: auto; }
.h2s { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--navy); }
.blk { display: flex; flex-direction: column; gap: 12px; }

/* titular */
.tit { background: #fff; border: 1px solid var(--line); border-radius:var(--r-2); padding: 24px; display: grid; grid-template-columns: minmax(220px, auto) minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 32px; align-items: center; }
.tit p { margin: 0; }
.tl { font-size: 13px; font-weight: 700; color: #4F5B73; }
.tv { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; color: var(--navy); margin: 4px 0 8px !important; }
.t1 { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; } .t2 { font-size: 14px; font-weight: 500; color: var(--ink2); margin-top: 4px !important; line-height: 1.4; }
.tit-b, .tit-c { display: flex; flex-direction: column; gap: 2px; }
.tit-c { border-left: 1px solid var(--line2); padding-left: 24px; }
.cmp b { font-weight: 800; } .dl { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; }
.dl.up { color: var(--ok); } .dl.dn { color: var(--bad); } .dl.eq { color: var(--ink2); }
.tdet { align-self: flex-start; margin: 8px 0 0 -8px; min-height: 36px; }
.frase { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); max-width: 70ch; }
.pill { font-size: 13px; height: 28px; align-items: center; margin-top: 0; padding: 0 12px 0 9px; gap: 6px; } .pill svg { flex: none; }
.pill.ok { color: var(--ok); background: var(--ok-soft); } .pill.warn { color: #7A4300; background: #FFF0CF; } .pill.bad { color: #8F0F47; background: #FDE8EF; }
.pill.aprox { color: #3B4660; background: var(--line2); }
.pill i { display: none; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kcard { position: relative; display: flex; flex-direction: column; }
.kcard .kpi { flex: 1; }
.ktip { position: absolute; top: 8px; right: 8px; z-index: 2; }
.kpi { padding: 14px 16px 14px 20px; }
.kpi .kl { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--ink2); padding-right: 28px; }
.kpi .kv { font-size: 28px; letter-spacing: -.6px; }
.kpi .kd { font-size: 14px; color: var(--ink2); }
.kpi .pill { margin-top: 8px; }
.kpi.ok::before { background: var(--ok); } .kpi.warn::before { background: #B45309; } .kpi.bad::before { background: var(--bad); }
.verant { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.mas { border: 1px solid var(--line); border-radius:var(--r-2); background: #fff; }
.mas summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 16px; font-weight: 700; font-size: 14px; color: var(--navy); border-radius:var(--r-2); }
.mas summary::-webkit-details-marker { display: none; }
/* v7: sin el glifo "▾" suelto; la flecha es un chevron dibujado, pegado al texto */
.mas summary { justify-content: flex-start; } .mas summary::after { content: ""; width: 7px; height: 7px; border: solid var(--ink2); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; flex: none; } .mas[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.mas summary:focus-visible { outline: 3px solid rgba(51,99,255,.5); outline-offset: 2px; }
.mas .kpis { padding: 0 16px 16px; }
.curso { margin: 0; font-size: 14px; color: var(--ink2); font-weight: 500; }

/* gráficos */
.chrow { display: flex; align-items: flex-start; margin-top: 4px; }
.cha { flex: none; display: block; }
.chs { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.chp { position: relative; }
svg.chart, .cha { overflow: visible; }
svg.chart { width: auto; height: auto; max-width: none; display: block; }
svg.chart text, .cha text { font: 600 12px var(--font); fill: var(--ink3); }
.cha .axs { font-size: 12px; }
svg.chart .band { fill: var(--soft); }
svg.chart .gap { fill: #F2F5FB; stroke: #E1E7F3; stroke-width: 1; stroke-dasharray: 3 3; }
svg.chart .gapt { fill: #55627C; font-weight: 600; }
svg.chart .p0 { fill: var(--c0); stroke: #fff; stroke-width: 1.5; } svg.chart .p1 { fill: var(--c1); stroke: #fff; stroke-width: 1.5; }
svg.chart .p0.hol { fill: #fff; stroke: var(--c0); stroke-width: 2; } svg.chart .p1.hol { fill: #fff; stroke: var(--c1); stroke-width: 2; }
svg.chart .vol { fill: #C9D2E6; } svg.chart .vol.on { fill: var(--blue); }
svg.chart .bajo { fill: var(--bad); font-weight: 700; font-size: 12px; }
svg.chart .metaT { fill: #55627C; font-weight: 700; font-size: 12px; stroke: none; }
svg.chart .meta { stroke: #55627C; stroke-width: 1.5; stroke-dasharray: 6 5; }
svg.chart .val { fill: var(--ink2); font-weight: 700; font-size: 12px; }
svg.chart .b0 { fill: var(--c0); } svg.chart .b1 { fill: var(--bar1); } svg.chart .b2 { fill: var(--bar2); }
.dhit { position: absolute; appearance: none; border: 0; background: transparent; padding: 0; margin: 0; cursor: pointer; border-radius:var(--r-1); }
.dhit:hover { background: rgba(0,50,160,.05); }
.dhit:disabled { cursor: default; }
.dhit:focus-visible { outline: 3px solid rgba(51,99,255,.7); outline-offset: -2px; }
.dhit.on { box-shadow: inset 0 0 0 1.5px var(--blue); }
.tt { position: absolute; z-index: 5; transform: translate(-50%, 0); background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4; padding: 8px 12px; border-radius:var(--r-1); width: max-content; max-width: min(300px, 80vw); pointer-events: none; text-align: left; }
.tt[hidden] { display: none; }
.legend { gap: 6px 16px; font-size: 13px; }
.legend i.dash { border-top: 2px dashed var(--meta); width: 18px; } .legend i.sq { height: 11px; width: 11px; }
.eje { color: #55627C; font-weight: 600; }
.ch3 { margin: 22px 0 6px !important; font-size: 16px !important; color: var(--navy) !important; }

/* detalle */
.per { font-weight: 600; color: var(--ink2); font-size: 16px; }
.cov { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 8px 12px; border-radius:var(--r-1); background: var(--line2); color: #3B4660; font-size: 13px; font-weight: 600; width: fit-content; max-width: 100%; }
.cov.low { background: #FFF0CF; color: #7A4300; } .cov svg { flex: none; margin-top: 1px; }
.cov b { font-weight: 800; }
.note { font-size: 13px; color: var(--ink2); }
.notasint { margin-top: 4px; border: 1px dashed #B8C2D9; border-radius:var(--r-2); background: #fff; }
.notasint summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-weight: 700; font-size: 14px; color: var(--ink2); list-style: none; }
.notasint summary::-webkit-details-marker { display: none; }
.chipg { font-size: 12px; font-weight: 700; background: var(--line2); color: #3B4660; border-radius:999px; padding: 2px 10px; }
.notasint ul { margin: 0; padding: 0 16px 14px 34px; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.foot { font-size: 13px; color: var(--ink3); }
table.t th { font-size: 12px; color: var(--ink3); }
.tone-success svg, .tone-warning svg, .tone-danger svg { vertical-align: -3px; margin-right: 4px; width: 14px; height: 14px; }
.tone-warning { color: #7A4300; }

/* pestañas */
.tabs { padding-top: 16px; padding-left: 24px; padding-right: 24px; }
.tab { font-size: 14px; }
.tab:hover { background: var(--soft); }
.tabs-in { box-shadow: none; }

/* contraste en componentes antiguos */
.fk, .prec span, .prow dt { color: var(--ink3); }
.prow dt { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.prow > div { grid-template-columns: 96px minmax(0, 1fr); }
.prow .coord { font-size: 12px; color: #566178; }
.gal { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.thumb img { object-fit: cover; object-position: center 30%; }
.thumb { background: #fff; }
.cd { font-size: 12px; padding: 4px 10px 4px 8px; }
.faviso { min-height: 48px; }

/* táctil y movimiento */
@media (pointer: coarse) { .btn, .btn.sm { min-height: 44px; } .pw .link { height: 44px; width: 44px; top: 0; right: 0; } .hclose { width: 44px; height: 44px; } }
.pw .link { min-width: 44px; height: 44px; top: 0; right: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 900px) {
  .tit { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px; }
  .tit-c { border-left: 0; padding-left: 0; border-top: 1px solid var(--line2); padding-top: 12px; }
  .kpis.k3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-in { padding: 0 16px; height: 56px; }
  .who span { display: none; }
  .intro-in { padding: 12px 16px 10px; gap: 6px; }
  .intro h1 { font-size: 22px; } .intro .sub { display: none; }
  .upd { font-size: 13px; gap: 4px 10px; }
  .wrap { padding: 8px 16px calc(40px + env(safe-area-inset-bottom)); gap: 12px; }
  .tabs { padding: 10px 12px 0; }
  .tabs-in { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; } .tabs-in::-webkit-scrollbar { display: none; }
  .tab { flex: 1 0 auto; min-width: 96px; scroll-snap-align: center; padding: 10px 12px; font-size: 14px; }
  .range { grid-template-columns: 1fr 1fr; } .range .quick { display: none; } .range .preset { display: flex; grid-column: 1 / -1; }
  .card { padding: 16px; }
  .tv { font-size: 40px; }
  .t1 { font-size: 16px; }
  .tit { padding: 16px; gap: 10px; }
  .ctx-in { padding: 0 12px; }
  .kpi .kv { font-size: 22px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .chs { scroll-snap-type: x proximity; }
}

/* PDF / impresión de Cumplimiento */
@media print {
  @page { size: A4; margin: 14mm 12mm 16mm; @bottom-center { content: "Página " counter(page) " de " counter(pages) " · Confidencial · Recibelo × Blue Express"; font: 8pt Montserrat, sans-serif; color: #566178; } }
  #reporte, #reporte * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #ctx, #stale, #live { display: none !important; }
}
#reporte h1 { font-size: 20pt; font-weight: 800; margin: 8px 0 4px; }
#reporte .meta { font-size: 9pt; color: #3B4660; line-height: 1.45; margin-bottom: 10px; }
#reporte .hl { display: flex; gap: 22px; align-items: center; border: 1px solid #cfd6e4; border-left: 6px solid #9aa5bd; border-radius:var(--r-1); padding: 10px 14px; break-inside: avoid; }
#reporte .hl.ok { border-left-color: #0B7D45; } #reporte .hl.warn { border-left-color: #B45309; } #reporte .hl.bad { border-left-color: #B42318; }
#reporte .hl span { font-size: 9pt; color: #3B4660; display: block; } #reporte .hl b { font-size: 30pt; color: #032266; line-height: 1.1; display: block; }
#reporte .hl p { margin: 0 0 2px; font-size: 10pt; } #reporte .hl .a { font-weight: 800; font-size: 11pt; }
#reporte .fr { font-size: 10.5pt; margin: 8px 0; line-height: 1.45; }
#reporte .como { font-size: 10pt; line-height: 1.5; background: #EDF1F8; border-radius:var(--r-1); padding: 8px 12px; margin: 8px 0 10px; break-inside: avoid; }
#reporte .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 8.5pt; color: #3B4660; margin-bottom: 4px; }
#reporte .legend .sq { width: 8px; height: 8px; display: inline-block; margin-right: 4px; border-radius:2px; }
#reporte svg.chart { width: 100%; height: auto; max-height: 75mm; }
#reporte svg.chart text { font-size: 12px; fill: #3B4660; }
#reporte .kp { grid-template-columns: repeat(3, 1fr); }
#reporte .kp .none { border-left-color: #9aa5bd; }
#reporte .pie { font-size: 9pt; color: #3B4660; }

.range2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 10px; }
/* v8: cabecera de actualización, un solo componente. Escritorio: grupo visible (próxima + botón). Celular: plegado tras "Actualización · Próxima HH:MM" (gap fijo de 4px). */
.updt { display: none; } .updx { display: contents; }
.updt { cursor: pointer; font: inherit; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 0; min-height: 32px; align-items: center; gap: 4px; }
.updt b { color: var(--blue); }
.updt::after { content: ""; width: 6px; height: 6px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); margin-left: 4px; transition: transform .2s; flex: none; }
.upd.abierto .updt::after { transform: translateY(2px) rotate(-135deg); }
.updt:focus-visible { outline: 3px solid rgba(51,99,255,.5); outline-offset: 2px; border-radius:var(--r-1); }
@media (max-width: 640px) {
  .updt { display: inline-flex; }
  .updx { display: none; }
  .upd.abierto .updx { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; width: 100%; padding: 4px 0 6px; }
}
.prow2 { display: flex; gap: 10px; align-items: center; } .prow2 .preset { flex: 1; min-width: 0; } .prow2 .actions { margin: 0; padding: 0; border: 0; flex: none; }
.fechas summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--blue); min-height: 40px; display: flex; align-items: center; }
@media (max-width: 640px) {
  .card.compact { padding: 10px 12px; }
  .prow2 .actions .btn { padding: 0 12px; min-width: 44px; }
  .h2s { font-size: 16px; margin-bottom: 4px; }
  .upd { gap: 2px 10px; } .upd .fr { order: -1; }
  .intro-in { align-items: flex-start; }
}

@media (max-width: 640px) { .h2s .rt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .h2s { margin: 0; min-height: 0; } .h2s:not(:has(.fchip)) { display: contents; } .blk { gap: 10px; } .tit-c { padding-top: 8px; } .tdet { margin-top: 2px; } }

.dhead h2 { display: block; } .dhead h2 .per { display: inline; }

/* ===== Casos v2 ===== */
.cs-total { background: #fff; border: 1px solid var(--line); border-radius:var(--r-3); box-shadow: var(--sh-1); padding: 22px 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.cs-eye { font-size: 13px; font-weight: 600; color: #5B6475; }
.cs-big { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -2px; margin: 4px 0 6px; color: #032266; font-variant-numeric: tabular-nums; }
.cs-sub { margin: 0 0 12px; font-size: 16px; color: var(--ink2); font-weight: 500; }
.cs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-chip { display: inline-flex; align-items: center; gap: 6px; background: #EEF1F6; color: #4A5468; border-radius:999px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.cs-chip.viejo { background: #FFF4D6; color: #8A5A00; }
.cs-bar { display: flex; gap: 2px; height: 12px; }
.cs-seg { appearance: none; border: 0; padding: 0; min-width: 6px; height: 12px; border-radius:var(--r-1); cursor: pointer; position: relative; }
.cs-seg::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; bottom: -16px; }
.cs-seg:hover { filter: brightness(.88); } .cs-seg:focus-visible, .cs-lk:focus-visible, .cs-ex:focus-visible, .cs-mas:focus-visible { outline: 3px solid rgba(51,99,255,.5); outline-offset: 2px; }
.cs-leg { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 10px; }
.cs-lk { appearance: none; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink2); display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 8px; border-radius:var(--r-1); cursor: pointer; }
.cs-lk:hover { background: var(--soft); color: var(--blue); } .cs-lk i { width: 10px; height: 10px; border-radius:3px; display: inline-block; } .cs-lk b { color: var(--navy); }
.cs-ok { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 800; color: #0B7D45; }
.cs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: 16px; }
.cs-card { scroll-margin-top: 120px; }
.cs-card.flash { animation: csflash 1.2s ease-out; } @keyframes csflash { from { box-shadow: 0 0 0 4px rgba(0,50,160,.35); } to { box-shadow: var(--sh-1); } }
.cs-desc { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 13px; color: var(--ink2); }
.cs-desc > span { flex: 0 1 auto; min-width: 0; }
.cs-cero { margin: 14px 4px 0; font-size: 13px; color: #5B6475; font-weight: 500; }
.cs-lista { margin-top: 2px; border-top: 1px solid var(--line2); }
.cs-it { border-bottom: 1px solid var(--line2); padding: 8px 0 8px; position: relative; }
.cs-l1 { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-right: 0; flex-wrap: nowrap; }
.cs-hb { padding: 6px 0; margin: 0; min-height: 44px; font-size: 16px; } .cs-hb span { white-space: nowrap; }
.idint { font-size: 12px; color: #5B6475; font-style: normal; }
.cs-age { margin-left: auto; font-size: 12px; font-weight: 600; border-radius:999px; padding: 3px 9px; white-space: nowrap; background: #EEF1F6; color: #4A5468; }
.cs-age.s1 { background: #FFF4D6; color: #8A5A00; } .cs-age.s2 { background: #FDE8EF; color: #B0124F; }
.cs-l1 .cs-hb + .cs-ex { margin-left: auto; }
.cs-ex { appearance: none; border: 0; background: none; width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--ink3); border-radius:var(--r-2); cursor: pointer; margin-right: -10px; }
.cs-ex:hover { background: var(--soft); color: var(--blue); } .cs-ex svg { transition: transform .2s; } .cs-it.open .cs-ex svg { transform: rotate(180deg); }
.cs-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: -4px; font-size: 13px; color: var(--ink2); font-weight: 500; line-height: 1.5; padding-right: 4px; }
.cs-sep { color: #8A94A8; }
.cs-est { display: inline; background: none; padding: 0; border-radius:0; font-size: 13px; font-weight: 600; color: var(--ink); }
.cs-est.nr { display: inline-block; background: #FDE8EF; color: #B0124F; border-radius:999px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.cs-det2 { padding: 10px 0 2px; } .cs-det2[hidden] { display: none; }
.cs-x { padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-x dt { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #5B6475; }
.cs-nt { background: #F4F7FD; }
.cs-ab { margin-top: 10px; min-height: 44px; font-size: 13px; }
.cs-mas { margin-top: 10px; width: 100%; min-height: 44px; }
.cs-evx { font-size: 12px; font-weight: 700; color: #5B6475; background: #EEF1F6; border-radius:999px; padding: 1px 8px; }
.cs-evd { margin: 2px 0 0; font-size: 12px; color: #5B6475; }
.cs-ev.nota .cs-evs { border: 1px solid #CBD5EA; font-style: normal; color: var(--navy); background: #F4F7FD; }
.cs-evn { background: none; padding: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.cs-mk { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #5B6475; }
.cs-md { transition: transform .2s ease-out; }
.cs-ml { min-height: 44px; }
@media (max-width: 900px) { .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-total { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 640px) { .cs-grid { grid-template-columns: 1fr; gap: 12px; } .cs-total { padding: 18px 16px; } .cs-big { font-size: 56px; } .cs-card { scroll-margin-top: 150px; } .cs-x { grid-template-columns: 1fr; } }
.tab[aria-selected="true"], .tab[aria-selected="true"]:hover { background: #0032A0; color: #fff; }
.pill.fest.ok { color: #0B7D45; background: #E7F6EC; } .pill.fest.ok::before { content: "✓"; font-weight: 800; } .pill.fest.bad::before { content: "✕"; font-weight: 800; }

.who .perfil { font-size: 12px; font-weight: 600; color: #C9D4F0; white-space: nowrap; }
.who .perfil[hidden] { display: none; }
@media (max-width: 640px) { .who { gap: 8px; } .who .perfil { display: inline; } }
.cs-tg { appearance: none; border: 0; background: none; font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; padding: 6px 0 4px; border-radius:var(--r-1); display: block; min-height: 44px; }
.cs-tg:hover { background: #F7F9FD; } .cs-tg:focus-visible { outline: 3px solid rgba(51,99,255,.5); outline-offset: 2px; }
.cs-tg .cs-l1 { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.cs-tg .cs-cd { font-weight: 800; color: var(--navy); font-size: 16px; white-space: nowrap; }
.cs-tg .cs-chev { margin-left: 8px; flex: none; color: var(--ink3); transition: transform .2s; } .cs-it.open .cs-chev { transform: rotate(180deg); }
.cs-tg .cs-age { margin-left: auto; } .cs-tg .cs-l2 { margin-top: 0; padding-right: 26px; }
.cs-it .cs-hb { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0 0 8px; padding: 6px 12px; background: #F4F7FD; border-radius:var(--r-1); font-weight: 600; text-align: left; }
.cs-hb .cs-hl { font-size: 12px; font-weight: 600; color: #5B6475; } .cs-hb .cs-hc { font-weight: 800; color: var(--navy); font-size: 16px; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; overflow-wrap: anywhere; } .cs-hb .cs-hv { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.cs-hb span { text-decoration: none; }
.cs-hb .cs-hc { text-decoration: underline dotted; }
.cs-ab { text-decoration: none; }
body[data-tab="casos"] .upd-t:has(#genCum) { display: none; }
@media print { #reporte h2, #reporte h3, #reporte .legend { break-after: avoid; page-break-after: avoid; } #reporte svg, #reporte table, #reporte .kp, #reporte .hl { break-inside: avoid; page-break-inside: avoid; } #reporte tr { break-inside: avoid; } }
.sel-preset, #preset { min-width: 0; }
.prow2 select { padding: 0 30px 0 12px; font-size: 14px; background-position: right 11px center; text-overflow: ellipsis; }
.prow2 .actions { gap: 6px; } .prow2 .actions .btn { padding: 0 10px; gap: 4px; }

/* Casos v3: categorías por cantidad en columnas tipo masonry; datos de la ficha con separador que salta junto al dato */
.cs-grid { display: block; columns: 340px 3; column-gap: 24px; }
.cs-grid > .cs-card { break-inside: avoid; page-break-inside: avoid; margin-bottom: 24px; display: block; }
.cs-grid.fantasma { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cs-grid.fantasma > .cs-card { margin-bottom: 0; }
.cs-l2 { display: block; }
.cs-l2 .cs-d { white-space: nowrap; }
.cs-l2 .cs-d + .cs-d::before { content: "·"; margin: 0 6px; color: #8A94A8; }
.cs-sep { display: none; }
@media (max-width: 900px) { .cs-grid { grid-template-columns: none; } }
.cs-tg .cs-l2 { padding-right: 0; }
.cs-est.nr { padding: 1px 8px; }

/* v6: degradado blanco de 24 px en el borde con más contenido + aviso de scroll (solo celular con scroll; en escritorio no hay desborde) */
.chw { position: relative; flex: 1; min-width: 0; display: flex; }
.chw > .chs { flex: 1; }
.chf { position: absolute; top: 0; bottom: 0; width: 24px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.chf-l { left: 0; background: linear-gradient(90deg, #FFFFFF, rgba(255,255,255,0)); }
.chf-r { right: 0; background: linear-gradient(270deg, #FFFFFF, rgba(255,255,255,0)); }
.chw.mas-l > .chf-l, .chw.mas-r > .chf-r { opacity: 1; }
.chhint { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: #5B6475; font-weight: 500; }
.legend svg { flex: none; } #reporte .legend span { display: inline-flex; align-items: center; gap: 5px; } #reporte .legend svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* v7: esqueleto de Casos (sin texto) */
.cs-sk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; columns: auto; }
@media (max-width: 900px) { .cs-sk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cs-sk { grid-template-columns: 1fr; gap: 12px; } }
.cs-skc { padding: 14px 16px 16px; margin: 0; display: block; min-height: 0; }
.cs-skc > .sk-bar { margin-top: 14px; } .cs-skc > .sk-l3 { margin-top: 12px; }
.cs-skh { display: flex; align-items: center; gap: 12px; } .cs-skt { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk { display: block; background: #EEF1F6; border-radius:var(--r-1); animation: skpulso 1.3s ease-in-out infinite; }
.sk-ico { width: 36px; height: 36px; border-radius:var(--r-1); flex: none; } .sk-l1 { height: 14px; width: 62%; } .sk-l2 { height: 11px; width: 38%; } .sk-n { width: 30px; height: 22px; flex: none; }
.sk-bar { height: 6px; width: 100%; border-radius:var(--r-1); } .sk-l3 { height: 11px; width: 72%; }
@keyframes skpulso { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none !important; } }

/* v8: tarjetas de muestra del estado vacío de Casos: 3 columnas, 2 hasta 900 px y 1 bajo 640 px */
@media (max-width: 900px) { .cs-grid.fantasma { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cs-grid.fantasma { grid-template-columns: 1fr; gap: 12px; } }

/* v8: primer render de Casos (esqueleto en el HTML inicial, antes de que cargue el JS) */
html.pre-casos #app[hidden], html.pre-casos #casos[hidden] { display: block !important; }
html.pre-casos #main, html.pre-casos .intro-t, html.pre-casos #bar { visibility: hidden; }

/* v9: rótulo de la vista previa del estado vacío de Casos */
.cs-vp { margin: 18px 0 8px; font-size: 12px; font-weight: 600; color: #5B6475; }

/* v10: espera restante (largo/corto) y estado "actualizando" sin contador */
.btn .bs { display: none; }
@media (max-width: 640px) { .btn .bl { display: none; } .btn .bs { display: inline; } }
.refmsg.wait { color: #5B6475; }


/* ===== v11 · B1 logos: tamaño óptico y línea base común ===== */
.duo{display:flex;align-items:flex-end;gap:16px;min-width:0;transform:translateY(-1px)}
.duo .lg-rb{height:34px;width:auto;display:block}
.duo .lg-bx{height:28px;width:auto;display:block;margin:0 0 -1.61px} /* v13: base de Blue («express») = base de la R de Recibelo (viewBox recortado al contorno) */
.duo .x{font-size:0;position:relative;flex:none;width:10px;height:10px;margin-bottom:6.16px;color:var(--ink3)}
.duo.light .x{color:rgba(255,255,255,.7)}
.duo .x::before,.duo .x::after{content:"";position:absolute;left:-1px;top:4.25px;width:12px;height:1.5px;border-radius:1px;background:currentColor;transform:rotate(45deg)}
.duo .x::after{transform:rotate(-45deg)}
.login-card .duo .lg-rb{height:40px}.login-card .duo .lg-bx{height:33px;margin-bottom:-1.89px}.login-card .duo .x{margin-bottom:8.13px}
@media (max-width:640px){
  .duo{gap:12px}.duo .lg-rb{height:30px}.duo .lg-bx{height:25px;margin-bottom:-1.44px}.duo .x{margin-bottom:4.85px}
  .login-card .duo .lg-rb{height:34px}.login-card .duo .lg-bx{height:28px;margin-bottom:-1.61px}.login-card .duo .x{margin-bottom:6.16px}
  .who .btn{height:34px;min-height:34px;position:relative}.who .btn::after{content:"";position:absolute;inset:-5px 0} /* zona táctil 44 px */
}

/* v11 · A2/A3: "Actualizando datos…" solo en el botón (en celular plegado, donde el botón no se ve, queda el aviso); sin "Próxima actualización" repetida al expandir */
.refmsg.wait { display: none; }
@media (max-width: 640px) { .upd:not(.abierto) .refmsg.wait { display: block; } .upd-t .nx { display: none; } }

/* ===== v11 · B5 ayuda ⓘ: se abre hacia arriba (si no cabe, a la derecha del ícono, nunca sobre el número) ===== */
.tipt { top: auto; bottom: calc(100% + 8px); width: min(280px, 76vw); font-size: 13px; font-weight: 500; line-height: 1.45; padding: 10px 12px; border-radius: var(--r-2); background: #032266; box-shadow: var(--sh-2); }
.tipw.abajo .tipt { bottom: auto; top: -6px; left: calc(100% + 8px); transform: none; }

/* ===== v11 · B7 jerarquía: subpestañas como texto con subrayado, KPI con línea superior, "Peor día" al pie del titular ===== */
.anc { gap: 20px; margin: 0 -4px; padding: 0 4px 1px; border-bottom: 1px solid #E1E7F3; }
.anc a { height: 44px; padding: 0; border: 0; border-radius: 0; background: none; position: relative; color: #4A5876; font-size: 14px; font-weight: 700; }
.anc a.on { background: none; color: #032266; }
.anc a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: #0032A0; border-radius: 3px 3px 0 0; }
.kpi { border: 1px solid #E1E7F3; border-radius: var(--r-3); padding: 16px 18px; }
.kpi::before { display: none; }
.kpi.ok { border-top: 3px solid #0B7D45; } .kpi.warn { border-top: 3px solid #B45309; } .kpi.bad { border-top: 3px solid #B42318; }
.kpi:hover { border-color: #3363FF; }
.kpi.ok:hover, .kpi.ok[aria-pressed="true"] { border-top-color: #0B7D45; } .kpi.warn:hover, .kpi.warn[aria-pressed="true"] { border-top-color: #B45309; } .kpi.bad:hover, .kpi.bad[aria-pressed="true"] { border-top-color: #B42318; }
@media (max-width: 640px) { .kpi { padding: 14px 14px; } }
.tit { border-radius: var(--r-3); }
.tit .frase { grid-column: 1 / -1; max-width: none; border-top: 1px solid #EDF1F8; margin-top: 14px; padding-top: 10px; font: 500 13px/1.5 var(--font); color: #4A5876; }
@media (max-width: 640px) { input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; } }

/* ===== v11 · B2/B3 gráficos: franja fija de lectura, guía vertical, rótulo de fallas ===== */
.tt { display: none !important; }
.chread { margin-top: 8px; min-height: 44px; padding: 10px 16px; background: #F4F7FD; border: 1px solid #E1E7F3; border-radius: var(--r-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 13px; line-height: 1.4; font-weight: 500; color: #4A5876; }
.chread b { font-size: 13px; font-weight: 800; color: #032266; }
.chread b.d { font-size: 14px; font-weight: 800; color: #032266; }
.chread b.fa { color: #C2185B; }
.chread .mk { display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: 0; }
.chread .mk.ac { background: #0032A0; border-radius: 50%; }
.chread .mk.aj { background: #E6166A; transform: rotate(45deg) scale(.86); }
.chread .mk.sq { border-radius: 2px; } .chread .mk.b1 { background: var(--bar1); } .chread .mk.b2 { background: var(--bar2); }
.chread.vacia { color: #566178; }
@media (max-width: 640px) { .chread { min-height: 56px; padding: 10px 12px; } }
.dhit::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: #032266; opacity: 0; pointer-events: none; }
.dhit:hover::after, .dhit:focus-visible::after { opacity: .45; }
.dhit:hover { background: rgba(0,50,160,.06); }
svg.chart text.act { font-weight: 800; fill: #032266; }
svg.chart rect.dim { opacity: .6; }
svg.chart .fal { fill: #C2185B; font-weight: 700; font-size: 12px; }

/* v11 · extra: el subtítulo de la cabecera heredaba el borde superior de `.sub` (separador de las subsecciones de Causas): era la línea corta bajo el título */
.intro .sub { border-top: 0; padding-top: 0; }

/* ===== v11 · B4 «Ver historial» con fotos de cada pinchazo ===== */
.lb { z-index: 80; }
.lb-top .btn { min-height: 44px; }
.cs-ph { display: flex; gap: 8px; margin-top: 10px; align-items: flex-start; }
.cs-tc { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; flex: none; }
.cs-ft { appearance: none; padding: 0; width: 72px; height: 72px; border: 1px solid #E1E7F3; border-radius: var(--r-1); background: #EEF1F6; overflow: hidden; cursor: pointer; display: block; position: relative; }
.cs-ft img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-ft:focus-visible { outline: 3px solid rgba(51,99,255,.7); outline-offset: 1px; }
i.cs-ft { cursor: default; }
.cs-thh { font-size: 12px; font-weight: 600; color: #566178; text-align: center; }
.cs-sf { width: 72px; height: 72px; border: 1.5px dashed #B8C2D9; border-radius: var(--r-1); background: #FBFCFE; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #566178; text-align: center; }
.cs-ft.cs-plus { background: #EEF1F6; font-size: 16px; font-weight: 800; color: #032266; border: 1px solid #E1E7F3; }
.cs-ferr { margin: 0 0 10px; padding: 10px 12px; border: 1px solid #E1E7F3; border-radius: var(--r-2); background: #F4F7FD; color: #4A5876; font-size: 13px; font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-ferr .btn { min-height: 44px; }

/* ===== v12 (revisión de diseño de la v11) ===== */
/* 1 · globos ⓘ: el ajuste de 12 px a los bordes lo hace el JS con marginLeft; aquí solo el rótulo visible del ⓘ del encabezado (celular) */
.tipr { display: none; }
@media (max-width: 640px) {
  .tipb.tipl { width: auto; min-height: 32px; padding: 0 8px 0 4px; gap: 6px; border-radius: 999px; display: inline-flex; align-items: center; }
  .tipb.tipl .tipr { display: inline; font-size: 13px; font-weight: 600; color: var(--blue); }
}
/* 2 · barra de contexto: una sola fila, sin scroll visible; el chip de día mide 32 px con área táctil de 44 px */
.ctx-in { white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.ctx-in::-webkit-scrollbar { display: none; }
.ctx-in .rchip, .ctx-in .fchip { flex: 0 0 auto; }
.vc { display: none; }
@media (max-width: 640px) {
  .vl { display: none; } .vc { display: inline; }
  .fchip { height: 32px; } .fchip::after { inset: -6px -4px; }
}
/* 3 · subnavegación: gap 16 px y fundido de 32 px a la derecha mientras quede contenido; el filete no sobresale de las tarjetas */
.anc { margin: 0; padding: 0 0 1px; }
@media (max-width: 640px) {
  .anc { gap: 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .anc.fin { -webkit-mask-image: none; mask-image: none; }
}
/* 4 · flechas del visor */
.lb-nav { width: 44px; height: 56px; background: rgba(3,18,64,.62); color: #fff; backdrop-filter: none; }
.lb-nav:hover { background: rgba(3,18,64,.8); }
@media (max-width: 640px) { .lb-nav { width: 44px; height: 56px; } }
/* 5 · historial: «Sin foto» como línea de 20 px; las miniaturas solo cuando hay fotos; fade-in y error de carga */
.cs-ph.sf { margin-top: 4px; min-height: 20px; align-items: center; }
.cs-sf { width: auto; height: 20px; border: 0; border-radius: 0; background: none; display: block; place-items: unset; font-size: 12px; font-weight: 600; line-height: 20px; color: #566178; text-align: left; }
.cs-skl { width: 96px; height: 20px; border-radius: var(--r-1); }
.cs-ft img { opacity: 0; transition: opacity .15s ease; }
.cs-ft img.ok { opacity: 1; }
.cs-ft.err { background: #F4F7FD; color: #566178; font-size: 12px; font-weight: 600; line-height: 1.25; padding: 6px; display: grid; place-items: center; text-align: center; cursor: default; }
@media (prefers-reduced-motion: reduce) { .cs-ft img { transition: none; } }
/* 6 · franja de lectura: el día que abre por defecto lleva la guía tenue (.25); al pasar o enfocar otro, la guía normal */
.dhit.def::after { opacity: .25; }
.dhit:hover::after, .dhit:focus-visible::after { opacity: .45; }
/* 7 · aclaración del sombreado en el subtítulo de los gráficos */
.cap .somb { color: #55627C; font-size: 13px; font-weight: 500; }
/* 8 · Casos: sin salto de ancho entre pestañas, columnas fijas y «Ver historial ›» sin recorte */
html { scrollbar-gutter: stable; }
.cs-grid.cs-cols { display: flex; columns: auto; column-gap: 0; gap: 24px; align-items: flex-start; }
.cs-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cs-col > .cs-card { display: block; margin: 0; break-inside: auto; }
@media (max-width: 640px) { .cs-grid.cs-cols { gap: 12px; } .cs-col { gap: 12px; } }
.cs-hb, .cs-it .cs-hb { padding-right: 8px; }
.cs-hb:focus-visible { outline-offset: -2px; }
/* menores */
#btnRef[disabled] { opacity: 1; color: #4A5876; background: #F4F7FD; }
@media (max-width: 640px) { .tipw.abajo .tipt { top: calc(100% + 8px); bottom: auto; left: 50%; transform: translateX(-50%); } }

/* ===== v14 ===== */
/* 3 · «Ver historial ›»: más aire a la derecha (antes 8 px, ahora 14) para que la flecha no toque el borde ni el anillo de foco */
.cs-it .cs-hb { padding: 6px 14px 6px 12px; gap: 8px; }
.cs-hb .cs-hv { flex: none; }
.cs-hb .cs-hc { min-width: 0; }
/* si en la grilla de 3 columnas el código no cabe, el rótulo pasa de «Código Blue» a «Blue» */
.cs-det2 { container-type: inline-size; }
@container (max-width: 320px) { .cs-hb .hl-l { display: none; } }
/* 5 · flechas del visor en desktop: borde visible sobre el fondo oscuro y sobre fotos claras */
.lb-nav { border: 1px solid rgba(255,255,255,.45); }
.lb-nav:hover { border-color: #fff; }

/* v15 · miniaturas de «Otras fotos del paquete»: fecha y hora (12px/600 #566178); si no cabe en 72 px, «13 oct» arriba y «20:17» abajo */
.cs-thh.fh { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; width: 72px; line-height: 1.25; }
.cs-thh.fh span { white-space: nowrap; }
.cs-thh.fh.w .fh-s { display: none; }
.cs-thh.fh.w .fh-d, .cs-thh.fh.w .fh-h { flex: 0 0 100%; text-align: center; }

/* ===== v17 · filtro por CP ===== */
.cprow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line2); }
.cplab { font-size: 13px; font-weight: 700; color: var(--ink2); }
.cpnota { font-size: 13px; color: var(--ink3); font-weight: 500; }
.cpwrap { position: relative; display: inline-block; }
.cpbtn { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: min(360px, 100%); padding: 6px 12px 6px 14px; background: #fff; border: 1px solid #CBD5EA; border-radius: 12px; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.cpbtn b { font-weight: 700; color: var(--blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpbtn .cpl { font-size: 12px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .6px; }
.cpbtn:hover, .cpwrap.open .cpbtn { border-color: var(--blue); }
.cpbtn:focus-visible, .cpq:focus-visible, .cpit:focus-within, .cpall:focus-within, .cptabs button:focus-visible, .cpsolo:focus-visible, .ord:focus-visible, .cpx:focus-visible { outline: 3px solid var(--blue2); outline-offset: 2px; }
.cpback { display: none; }
.cppop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(380px, 92vw); background: #fff; border: 1px solid #CBD5EA; border-radius: 14px; box-shadow: var(--sh-2); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cph { display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: var(--ink); }
.cpx { appearance: none; border: 0; background: var(--line2); color: var(--ink2); width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cpq { width: 100%; min-height: 42px; border: 1px solid #CBD5EA; border-radius: 10px; padding: 8px 12px; font: 500 14px var(--font); color: var(--ink); }
.cpall, .cpit { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cpall { background: var(--soft); }
.cpit:hover { background: #F4F7FE; }
.cpall input, .cpit input { width: 18px; height: 18px; accent-color: var(--blue); flex: 0 0 auto; }
.cpn { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.cpc { font-size: 12px; font-weight: 600; color: var(--ink3); font-variant-numeric: tabular-nums; }
.cptabs { display: flex; gap: 6px; }
.cptabs button { appearance: none; flex: 1; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 13px var(--font); color: var(--ink2); cursor: pointer; }
.cptabs button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.cplist { max-height: 268px; overflow-y: auto; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 4px 0; }
.cpvacio { margin: 12px 8px; color: var(--ink3); font-size: 13px; }
.cpf { display: flex; justify-content: space-between; gap: 8px; }
.cpchip { background: #E1EBFF; color: #0A2C86; }
.cpchip.inh { margin-left: 8px; }
.cptabla th .ord { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.cptabla th .ord i { font-style: normal; font-size: 10px; opacity: .55; }
.cptabla th .ord.on { color: var(--blue); } .cptabla th .ord.on i { opacity: 1; }
.cptabla th.r { text-align: right; } .cptabla th.r .ord { justify-content: flex-end; }
.cptabla td { font-variant-numeric: tabular-nums; }
.cptabla td.cpnom { font-weight: 600; overflow-wrap: anywhere; }
.cptabla tfoot td { border-top: 2px solid var(--line); font-weight: 700; background: #FAFBFE; }
.cpsolo { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--blue); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: #B7C6EA; text-underline-offset: 3px; }
.dif { display: inline-block; font-weight: 700; padding: 2px 8px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.dif.ok { color: var(--ok); background: var(--ok-soft); } .dif.warn { color: var(--warn); background: var(--warn-soft); } .dif.bad { color: var(--bad); background: var(--bad-soft); }
.cpmas { margin-top: 12px; }
@media (max-width: 640px) {
  .cprow { margin-top: 10px; padding-top: 10px; }
  .cpwrap { display: block; width: 100%; } .cpbtn { width: 100%; max-width: none; justify-content: flex-start; } .cpbtn b { flex: 1; text-align: left; }
  .cpback { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(3,34,102,.45); }
  .cppop { position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 86vh; border-radius: 18px 18px 0 0; border: 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cplist { max-height: 38vh; }
  table.t.cptabla td { font-size: 13px; } table.t.cptabla th { font-size: 11px; letter-spacing: .3px; }
  .dif { font-size: 12px; padding: 2px 6px; }
}
.cpall, .cpit { flex-direction: row; letter-spacing: 0; }
.cpall input, .cpit input { width: 18px; height: 18px; padding: 0; border-radius: 4px; }
.cpq { height: 42px; font-weight: 500; }
.cptabla td.cpnom { overflow-wrap: break-word; word-break: normal; min-width: 0; }
.cptabla th, .cptabla td.r { white-space: nowrap; }
@media (max-width: 640px) {
  .cptabla { table-layout: auto; } .cptabla th:first-child, .cptabla td.cpnom { width: 100%; min-width: 68px; }
  table.t.cptabla th, table.t.cptabla td { padding: 9px 5px; } table.t.cptabla th:first-child, table.t.cptabla td:first-child { padding-left: 2px; } table.t.cptabla th:last-child, table.t.cptabla td:last-child { padding-right: 2px; }
  .cptabla th { font-size: 10.5px; }
  #porcp .tscroll { margin: 0; padding: 0; overflow-x: auto; }
  .cptabla th { white-space: normal; line-height: 1.2; vertical-align: bottom; } .cptabla th .ord { text-align: right; }
  .cptabla td.cpnom { font-size: 13px; }
}
.cpaviso { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: #7A4A00; background: #FFF4DB; border-radius: 999px; padding: 4px 12px; line-height: 1.3; }
@media (max-width: 640px) { .cpaviso { border-radius: 12px; } }

/* ===== v17c · ronda rápida de Lupa UX ===== */
.cppop { padding: 16px; gap: 8px; }
.cph b { font-size: 16px; }
.cpayuda { margin: -4px 0 0; font-size: 13px; color: var(--ink3); font-weight: 500; }
.cpmeta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; font-size: 12px; color: var(--ink3); font-weight: 500; }
.cplink { appearance: none; border: 0; background: none; padding: 4px 0; font: 700 13px var(--font); color: var(--blue); cursor: pointer; text-align: right; }
.cplink[hidden] { display: none; }
.cpsinf { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink2); background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.cpsinf[hidden] { display: none; }
.cptabs { gap: 8px; }
.cptabs button[aria-pressed="true"] { background: #E1EBFF; border-color: var(--blue); color: #0A2C86; }
.cplist { max-height: 360px; padding: 0; }
.cpit { gap: 12px; padding: 8px; }
.cpn { overflow-wrap: break-word; word-break: normal; }
.cpc { white-space: nowrap; }
.cpvacio { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 8px; font-size: 14px; color: var(--ink2); font-weight: 600; }
.cpvacio p { margin: 0; }
.cpcamb { margin: 0; min-height: 16px; font-size: 12px; color: var(--ink3); font-weight: 600; }
.cpf .btn:disabled { opacity: .45; cursor: default; }
.cpx.desc { width: auto; border-radius: 999px; padding: 0 12px; font: 700 12px var(--font); background: #FDE8EF; color: #8F0F47; }
/* chip único con cuerpo (abre el selector) y X (quita) */
.fchip.cpchip { padding: 0; gap: 0; height: 32px; max-width: 260px; min-width: 0; background: #E1EBFF; color: #0A2C86; cursor: default; }
.fchip.cpchip::after { display: none; }
.cpc-b, .cpc-x { appearance: none; border: 0; background: none; color: inherit; font: 700 13px var(--font); cursor: pointer; height: 32px; position: relative; }
.cpc-b { padding: 0 6px 0 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.cpc-b .vl, .cpc-b .vc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpc-x { padding: 0 10px 0 4px; display: inline-flex; align-items: center; flex: none; }
.cpc-b::after { content: ""; position: absolute; inset: -6px 0; } .cpc-x::after { content: ""; position: absolute; inset: -6px -4px; }
.cpc-b:focus-visible, .cpc-x:focus-visible { outline: 3px solid var(--blue2); outline-offset: 1px; border-radius: 999px; }
.ctx-in .fchip.cpchip { flex: 0 1 auto; }
/* tabla por CP */
table.t.cptabla td.cpnom { overflow-wrap: break-word; word-break: normal; min-width: 150px; }
.cppq { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--ink3); }
table.t.cptabla tr.cppoc td { background: #F4F7FE; color: var(--ink3); font-weight: 500; }
table.t.cptabla tr.cppoc td b { font-weight: 600; }
table.t.cptabla tr.cppoc .cpsolo { font-weight: 500; }
.difm { display: none; }
@media (min-width: 641px) { .cptabla th .ord i { opacity: .8; color: #4A5876; font-size: 11px; } }
@media (max-width: 640px) {
  .cppop { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 86dvh; gap: 8px; }
  .cpx { width: 44px; height: 44px; margin: -6px -6px -6px 0; } .cpx svg { width: 20px; height: 20px; }
  .cpit { min-height: 44px; padding: 8px; }
  .cpit input { width: 22px; height: 22px; }
  .cptabs button, .cpq, .cpf .btn { min-height: 44px; }
  .cpq { height: 44px; }
  .cpbtn { min-height: 44px; }
  .cplist { max-height: min(48dvh, 360px); }
  .cplink { min-height: 44px; display: inline-flex; align-items: center; }
  .cpc-b, .cpc-x { height: 32px; }
  .fchip.cpchip { max-width: min(100%, 260px); }
  .cpsolo { display: inline-flex; min-height: 44px; align-items: center; }
  table.t.cptabla th .ord { min-height: 44px; padding: 0 4px; }
  table.t.cptabla .cdif { display: none; }
  table.t.cptabla .difm { display: block; margin-top: 4px; }
  table.t.cptabla td.cpnom, table.t.cptabla th:first-child { min-width: 132px; width: 100%; }
  table.t.cptabla th .ord i { opacity: .8; color: #4A5876; font-size: 11px; }
  .prow2 .preset { flex: 1 1 120px; }
}
@media (max-width: 640px) {
  table.t.cptabla th, table.t.cptabla td { padding-left: 3px; padding-right: 3px; }
  table.t.cptabla th:first-child, table.t.cptabla td:first-child { padding-left: 2px; }
  table.t.cptabla th .ord { flex-direction: column; align-items: flex-end; gap: 0; justify-content: center; line-height: 1.1; }
  table.t.cptabla th:first-child .ord { align-items: flex-start; }
  table.t.cptabla th .ord i { line-height: 1; }
}
@media (max-width: 640px) { table.t.cptabla th { font-size: 10px; letter-spacing: 0; } table.t.cptabla th .ord { padding: 0 2px; } }
.cpc-b .vl { display: block; } .cpc-b .vc { display: none; }
@media (max-width: 640px) { .cpc-b .vl { display: none; } .cpc-b .vc { display: block; } }

/* v18: tabla «Por CP» con ácido y ajustado, cada uno con su desviación */
.dif.none { color: var(--ink2); background: #EEF1F7; font-weight: 600; }
.cpnd { color: var(--ink2); font-weight: 600; }
table.t.cptabla tr.cpgrp th { border-bottom: 0; padding-bottom: 0; text-align: center; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--ink2); }
table.t.cptabla tr.cpgrp th.gr { border-bottom: 2px solid var(--line); }
table.t.cptabla .mo { display: none; }
table.t.cptabla tfoot td .dif, table.t.cptabla td .dif { vertical-align: middle; }
@media (max-width: 640px) {
  table.t.cptabla tr.cpgrp { display: none; }
  table.t.cptabla .dk { display: none; } table.t.cptabla .mo { display: inline; }
  table.t.cptabla td.cpnom, table.t.cptabla th:first-child { min-width: 96px; }
}
@media (max-width: 640px) { /* v18: cinco columnas caben en 390 px sin scroll horizontal */
  table.t.cptabla th { font-size: 10px; letter-spacing: 0; }
  table.t.cptabla th, table.t.cptabla td { padding-left: 2px; padding-right: 2px; }
  table.t.cptabla th .ord { padding: 0 1px; }
  table.t.cptabla td.cpnom, table.t.cptabla th:first-child { min-width: 70px; width: auto; }
  table.t.cptabla td { font-size: 12.5px; }
  table.t.cptabla td .dif, table.t.cptabla th .dif { font-size: 11px; padding: 2px 5px; }
  table.t.cptabla .cpsolo { font-size: 12.5px; }
}
@media (max-width: 640px) { table.t.cptabla th .ord { white-space: normal; text-align: right; } table.t.cptabla th:first-child .ord { text-align: left; } }
.falm { display: none; }
@media (max-width: 640px) { table.t.cptabla .cfal { display: none; } table.t.cptabla .falm { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--ink2); white-space: nowrap; } }

/* v18b */
.cpcap { font-size: 13px; font-weight: 500; color: #4A5876; }
.cpaprox { margin: 8px 0 12px; font-size: 13px; font-weight: 500; color: #4A5876; line-height: 1.45; }
.cpaprox.corta { font-size: 12px; margin: 10px 0 0; }
.dif.none { background: #EEF1F7; color: #4A5876; }
.pill.bad { color: #B42318; }
.ap { font-style: normal; margin-right: 4px; }
table.t.cptabla td.cpmuy b { color: #566178; font-weight: 500; }
@media (max-width: 640px) {
  table.t.cptabla th, table.t.cptabla td { padding-left: 4px; padding-right: 4px; }
  table.t.cptabla th { font-size: 11px; }
  table.t.cptabla td .dif, table.t.cptabla th .dif { font-size: 12px; padding: 2px 6px; }
  table.t.cptabla th .ord { min-width: 44px; }
  .ap { margin-right: 0; }
  table.t.cptabla th:first-child, table.t.cptabla td:first-child { padding-left: 4px; }
  .cpaprox { font-size: 13px; }
}
@media (max-width: 640px) { table.t.cptabla th { text-transform: none; font-size: 11px; letter-spacing: 0; } table.t.cptabla th .ord { min-width: 44px; } }

/* v18c: Ácido (blanco) y Ajustado (#F4F7FE) se distinguen; encabezado pegajoso bajo la barra fija y las pestañas */
:root { --cpanc: 0px; --cpgh: 0px; }
#porcp { --cpstk: calc(var(--ctxh) + env(safe-area-inset-top) + var(--cpanc)); }
@media (min-width: 900px), (max-width: 640px) { #porcp .tscroll { overflow: visible; } } /* 641–899 px sigue con scroll horizontal (sin sticky) */
table.t.cptabla thead th { background: #fff; }
table.t.cptabla thead tr:not(.cpgrp) th:nth-child(n+6),
table.t.cptabla thead tr.cpgrp th:nth-child(5),
table.t.cptabla tbody td:nth-child(n+6),
table.t.cptabla tfoot td:nth-child(n+6) { background: #F4F7FE; }
table.t.cptabla tfoot td:not(:nth-child(n+6)) { background: #fff; }
table.t.cptabla tr.cppoc td { background: transparent; }
table.t.cptabla tr.cppoc td:nth-child(n+6) { background: #F4F7FE; }
table.t.cptabla tbody tr:hover td:not(:nth-child(n+6)) { background: #F7F9FE; }
table.t.cptabla thead tr:not(.cpgrp) th:nth-child(6),
table.t.cptabla thead tr.cpgrp th:nth-child(5),
table.t.cptabla tbody td:nth-child(6),
table.t.cptabla tfoot td:nth-child(6) { border-left: 2px solid #D5DCEA; }
table.t.cptabla thead th { position: sticky; z-index: 5; box-shadow: 0 1px 0 var(--line); }
table.t.cptabla thead tr.cpgrp th { top: var(--cpstk); z-index: 6; box-shadow: none; }
table.t.cptabla thead tr:not(.cpgrp) th { top: calc(var(--cpstk) + var(--cpgh)); }
table.t.cptabla tbody td:nth-child(n+6) .dif.none, table.t.cptabla tfoot td:nth-child(n+6) .dif.none { background: #E3E8F2; color: #4A5876; }
@media (max-width: 640px) {
  table.t.cptabla td.cpnom, table.t.cptabla th:first-child { min-width: 88px; overflow-wrap: break-word; }
  table.t.cptabla .cpsolo { font-size: 12px; overflow-wrap: break-word; hyphens: auto; }
  #porcp .tscroll { margin: 0 -8px; } /* la tabla gana 16 px sobre el relleno de la tarjeta: a 390 px caben las cinco columnas sin partir «ImaginoCuentos» */
}
