/* CertWatch · © 2026 Bianca Tortore. Todos los derechos reservados. */
/* CertWatch — una sola columna tipo app; estados con los colores de las luces de navegación. */
:root {
  --bg: #EEF3F2; --surface: #FFFFFF; --surface-2: #F5F8F8; --ink: #0D2730; --muted: #55707A; --line: #D3DEDD;
  --accent: #0F6E74; --accent-ink: #FFFFFF; --accent-soft: #DCEEEE;
  --crit: #C4262E; --crit-soft: #FBE6E5; --warn: #A86400; --warn-soft: #FCEFD8;
  --watch: #2F5FB3; --watch-soft: #E3EBFA; --ok: #1D7F49; --ok-soft: #DDF1E5; --none: #7A8A90;
  --shadow: 0 1px 2px rgba(13, 39, 48, .06), 0 6px 18px rgba(13, 39, 48, .06);
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 10px; --tab-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1A1F; --surface: #10262E; --surface-2: #0D2027; --ink: #E2EDEE; --muted: #8FA7AD; --line: #21414B;
    --accent: #52B9BD; --accent-ink: #052529; --accent-soft: #143A40;
    --crit: #FF6F6A; --crit-soft: #3A1A1C; --warn: #F2B24C; --warn-soft: #3A2C12;
    --watch: #86A9F4; --watch-soft: #1A2A47; --ok: #52CC8C; --ok-soft: #133826; --none: #8A9BA0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1A1F; --surface: #10262E; --surface-2: #0D2027; --ink: #E2EDEE; --muted: #8FA7AD; --line: #21414B;
  --accent: #52B9BD; --accent-ink: #052529; --accent-soft: #143A40;
  --crit: #FF6F6A; --crit-soft: #3A1A1C; --warn: #F2B24C; --warn-soft: #3A2C12;
  --watch: #86A9F4; --watch-soft: #1A2A47; --ok: #52CC8C; --ok-soft: #133826; --none: #8A9BA0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 16px);
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .92em; letter-spacing: .01em; }
.muted { color: var(--muted); }
h1, h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: .01em; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; }
.lede { color: var(--muted); max-width: 60ch; margin: 0; }
.hint { color: var(--muted); font-size: .88rem; margin: 0; }

/* barra superior y pestañas */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 20; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner, .view, .tabbar-inner {
  max-width: 720px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.brand span { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; }
.lang { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; cursor: pointer; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar-inner { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tab-h); }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: .72rem; font-weight: 500; letter-spacing: .02em; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[aria-current="page"] { color: var(--accent); }
.tabbar .tab-add svg { background: var(--accent); color: var(--accent-ink); border-radius: 999px; width: 34px; height: 34px; padding: 6px; stroke-width: 2.4; }
.tabbar .tab-add[aria-current="page"] { color: var(--ink); }

/* vista */
main { outline: none; }
.view { display: flex; flex-direction: column; gap: 16px; padding-block: 20px 8px; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.danger { background: var(--crit); color: #fff; }
.btn.text-danger { background: none; color: var(--crit); padding: 0; min-height: 36px; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.stack { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; }
.stack-row { display: flex; flex-wrap: wrap; gap: 10px; }
.back { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-weight: 500; }

/* avisos */
.banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-radius: var(--r); font-size: .9rem; }
.banner.alert { background: var(--crit-soft); color: var(--ink); border-left: 4px solid var(--crit); flex-direction: column; gap: 2px; }
.banner.alert strong { color: var(--crit); }
.banner.demo { background: var(--watch-soft); justify-content: space-between; }
.banner.warn-b { background: var(--warn-soft); border-left: 4px solid var(--warn); }

/* resumen de estados */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sum { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; min-width: 0; }
.sum-n { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.sum-l { font-size: .74rem; color: var(--muted); font-weight: 500; letter-spacing: .01em; line-height: 1.2; max-width: 100%; }
.s-expired .sum-n { color: var(--crit); } .s-crit .sum-n { color: var(--warn); } .s-warn .sum-n { color: var(--watch); } .s-ok .sum-n { color: var(--ok); }
.sum[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 380px) { .summary { grid-template-columns: repeat(2, 1fr); } }

.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools .search { flex: 1 1 220px; }
.tools input, .tools select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 12px; }
.tools select { flex: 0 1 220px; width: auto; }
.filter-note { margin: 0; font-size: .85rem; color: var(--muted); }

/* lista de certificados */
.cert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cert { display: grid; grid-template-columns: 5px 1fr auto; gap: 0 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 12px 0; text-decoration: none; color: inherit; overflow: hidden; transition: border-color .15s; }
.cert:hover { border-color: var(--accent); }
.stripe { align-self: stretch; margin: -12px 0; background: var(--none); }
.st-expired .stripe { background: var(--crit); } .st-crit .stripe { background: var(--warn); } .st-warn .stripe { background: var(--watch); } .st-ok .stripe { background: var(--ok); }
.cert-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cert-name { font-weight: 600; line-height: 1.3; }
.cert-title { font-size: .85rem; color: var(--muted); }
.cert-meta { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.cert-exp { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 1px; }
.exp-date { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.exp-rel { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.st-expired .exp-rel, .st-expired .exp-date { color: var(--crit); }
.st-crit .exp-rel { color: var(--warn); font-weight: 600; }
.tag { display: inline-block; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--watch-soft); color: var(--watch); vertical-align: 2px; }
.none-match { padding: 24px; text-align: center; color: var(--muted); }
@media (max-width: 420px) {
  .cert { grid-template-columns: 5px 1fr; }
  .cert-exp { grid-column: 2; flex-direction: row; align-items: baseline; gap: 8px; margin-top: 6px; }
}

/* estado vacío */
.empty { align-items: center; text-align: center; padding-top: 40px; }
.empty-art svg { width: 150px; height: auto; }
.ea-paper { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.ea-paper2 { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.ea-line { stroke: var(--line); stroke-width: 3; stroke-linecap: round; fill: none; }
.ea-seal { fill: var(--accent); }
.ea-check { stroke: var(--accent-ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* agregar */
.drop { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 36px 20px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { width: 52px; height: 52px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.drop-t { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; }
.drop-h { color: var(--muted); font-size: .86rem; max-width: 40ch; }
.reading { align-items: stretch; }
.scan-prev { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; max-height: 50vh; }
.scan-prev img { display: block; width: 100%; height: auto; max-height: 50vh; object-fit: contain; }
.scanline { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: scan 1.8s ease-in-out infinite alternate; }
@keyframes scan { to { top: calc(100% - 3px); } }
@media (prefers-reduced-motion: reduce) { .scanline { animation: none; top: 50%; } }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* formulario */
.form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.field input[type=text], .field input[type=date], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.field textarea { resize: vertical; }
.field input:disabled { opacity: .5; }
.is-detected { border-color: var(--accent) !important; background: var(--accent-soft) !important; }
.is-estimated { border-color: var(--warn) !important; background: var(--warn-soft) !important; }
.det { display: inline-block; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .7rem; padding: 0 6px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); margin-left: 4px; }
.det.est { background: var(--warn); color: var(--surface); }
.est-hint { color: var(--warn); margin-top: -6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.file-field { align-items: flex-start; }
.file-btn { cursor: pointer; }
.file-prev { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: inherit; max-width: 100%; }
.file-prev img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: #fff; }
.pdf-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 6px; background: var(--crit-soft); color: var(--crit); font-family: var(--f-display); font-weight: 700; }
.file-name { display: flex; flex-direction: column; font-size: .85rem; overflow-wrap: anywhere; min-width: 0; }
.file-open { color: var(--accent); font-weight: 600; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.form-actions .btn.primary { flex: 1 1 160px; }

/* detalle */
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--none); }
.detail-head.st-expired { border-top-color: var(--crit); } .detail-head.st-crit { border-top-color: var(--warn); } .detail-head.st-warn { border-top-color: var(--watch); } .detail-head.st-ok { border-top-color: var(--ok); }
.detail-head > div:first-child { min-width: 0; flex: 1 1 240px; }
.eyebrow { margin: 0 0 4px; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.sub { margin: 6px 0 0; color: var(--muted); }
.detail-exp { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.big-date { font-family: var(--f-display); font-weight: 700; font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.p-expired { background: var(--crit-soft); color: var(--crit); } .p-crit { background: var(--warn-soft); color: var(--warn); }
.p-warn { background: var(--watch-soft); color: var(--watch); } .p-ok { background: var(--ok-soft); color: var(--ok); } .p-none { background: var(--surface-2); color: var(--none); }
.danger-zone { padding-top: 8px; border-top: 1px solid var(--line); }
.confirm { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--crit-soft); }
.confirm p { margin: 0; }

/* embarque */
.ready-form { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ready-sum { padding: 14px 16px; border-radius: var(--r); font-weight: 600; }
.ready-sum.is-ok { background: var(--ok-soft); color: var(--ok); }
.ready-sum.is-bad { background: var(--crit-soft); color: var(--crit); }
.ready-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.rq { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.rq:first-child { border-top: 0; }
.rq-dot { width: 12px; height: 12px; border-radius: 99px; background: var(--ok); }
.rq-missing .rq-dot { background: transparent; border: 2px solid var(--crit); }
.rq-expired .rq-dot { background: var(--crit); }
.rq-expires .rq-dot { background: var(--warn); }
.rq-main { display: flex; flex-direction: column; min-width: 0; }
.rq-name { font-weight: 600; line-height: 1.3; }
.rq-meta { font-size: .8rem; color: var(--muted); }
.rq-missing .rq-meta, .rq-expired .rq-meta { color: var(--crit); }
.rq-expires .rq-meta { color: var(--warn); }
.lvl { font-weight: 600; }
.lvl-rec { color: var(--muted); }
.disclaimer { font-size: .8rem; }

/* perfil */
.panel { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.panel .form { margin-top: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; align-self: flex-start; }
.seg button { border: 0; background: var(--surface); padding: 8px 16px; cursor: pointer; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 14px); z-index: 30; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

.file-acts { margin-top: 8px; }
.credit { margin: 8px 0 0; text-align: center; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

/* tira de páginas */
.pages { display: flex; flex-direction: column; gap: 10px; }
.page-strip { list-style: none; margin: 0; padding: 2px 2px 4px; display: flex; gap: 10px; overflow-x: auto; }
.page { position: relative; flex: 0 0 auto; }
.page-thumb { display: grid; place-items: center; width: 78px; height: 100px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2) center / cover no-repeat; text-decoration: none; }
.page-kind { font-family: var(--f-display); font-weight: 700; color: var(--crit); }
.page-n { position: absolute; left: 6px; bottom: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; pointer-events: none; }
.page-x { position: absolute; top: -6px; right: -6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--crit); font-weight: 700; cursor: pointer; line-height: 1; font-size: .9rem; }
.page-x.armed { background: var(--crit); color: #fff; border-color: var(--crit); font-size: .7rem; }
.page-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 78px; height: 100px; border-radius: 8px; border: 2px dashed var(--line); background: var(--surface); cursor: pointer; text-align: center; color: var(--accent); }
.page-add:hover { border-color: var(--accent); background: var(--accent-soft); }
.page-plus { font-size: 1.6rem; line-height: 1; font-weight: 300; }
.page-add-l { font-size: .7rem; font-weight: 600; line-height: 1.2; padding: 0 4px; }
.pd-block { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.pd-block:first-child { border-top: 0; }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
@media (max-width: 520px) { .covers { grid-template-columns: 1fr; } }
.is-detected-box { padding: 10px; border-radius: var(--r); background: var(--accent-soft); }
.cert-covers { font-size: .8rem; color: var(--accent); font-weight: 500; }

/* documentos personales y adjuntos */
.pd-list, .slot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.pd-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.pd-row:first-child { border-top: 0; }
.pd-thumb { width: 48px; height: 48px; border-radius: 6px; background: var(--surface-2); border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; font-family: var(--f-display); font-weight: 700; font-size: .8rem; color: var(--crit); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:not(:empty) { border-style: solid; }
.pd-main { display: flex; flex-direction: column; min-width: 0; }
.pd-name { font-weight: 600; line-height: 1.3; }
.pd-state { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.pd-open { color: var(--accent); font-weight: 600; text-decoration: none; }
.pd-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pd-actions label { cursor: pointer; }
@media (max-width: 420px) { .pd-row { grid-template-columns: 48px 1fr; } .pd-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* embarcos */
.sea-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); }
.sea-n { font-family: var(--f-display); font-weight: 700; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.sea-l { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; }
.sea-d { flex-basis: 100%; color: var(--muted); font-size: .9rem; }
.voy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.voy { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; }
.voy:hover { border-color: var(--accent); }
.voy-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.voy-ship { font-weight: 600; }
.voy-meta, .voy-dates { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.voy-days { display: flex; flex-direction: column; align-items: flex-end; }
.voy-n { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.voy-u { font-size: .72rem; color: var(--muted); }
.brk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .brk-grid { grid-template-columns: 1fr; } }
.brk ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.brk li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: .88rem; }
.brk-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.brk-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* resumen imprimible */
#print-sheet { display: none; }
@media print {
  @page { size: A4 landscape; margin: 14mm; }
  body { background: #fff; color: #000; padding: 0; }
  body::before, .topbar, .tabbar, #app, .toast { display: none !important; }
  #print-sheet { display: block; font: 10pt/1.35 var(--f-body); color: #000; }
  .ps-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 10px; }
  .ps-head h1 { font-size: 20pt; }
  .ps-photo { width: 28mm; height: 35mm; object-fit: cover; border: 1px solid #999; margin-right: 6mm; }
  .ps-who { flex: 1; }
  .ps-h2 { font-size: 13pt; margin: 8mm 0 3mm; }
  .ps-total td { font-weight: 700; border-top: 1px solid #000; }
  .ps-head p { margin: 2px 0 0; }
  .ps-name { font-size: 13pt; font-weight: 600; }
  .ps-gen { font-size: 9pt; color: #444; }
  #print-sheet table { width: 100%; border-collapse: collapse; }
  #print-sheet th { text-align: left; font-size: 8pt; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #000; padding: 4px 6px; }
  #print-sheet td { border-bottom: 1px solid #ccc; padding: 5px 6px; vertical-align: top; }
  #print-sheet tr { break-inside: avoid; }
  .ps-st { font-weight: 600; }
  .ps-expired { color: #B00020; } .ps-crit { color: #9A5A00; }
  .ps-foot { margin-top: 10px; font-size: 8pt; color: #666; }
}
