/* Colores y letra aprobados: LOS-001 §14. No hay color de error aprobado: los avisos van en tinta. */
@font-face { font-family: Inter; src: url(/fonts/InterVariable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --blue: #0E63D6; --cyan: #16D0F0; --sky: #EAF8FF; --white: #fff; --ink: #0A1A30; --cloud: #F4F7FB; --green: #18B98A; --ink2: rgb(10 26 48 / .72); --rule: rgb(10 26 48 / .14); color-scheme: light; }
* { box-sizing: border-box; margin: 0; }
/* Lo que se enfoca no queda debajo de la barra de abajo. */
html { scroll-padding: 16px 0 92px; }
html, body { height: 100%; }
body { font: 1rem/1.45 Inter, system-ui, sans-serif; color: var(--ink); background: var(--white); font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
[hidden] { display: none !important; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2 { letter-spacing: -.02em; line-height: 1.2; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#app { min-height: 100%; }

/* ---- móvil ---- */
.page { max-width: 480px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: var(--white); position: relative; }
.pbar { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: max(14px, env(safe-area-inset-top)) 22px 8px; }
.slot { font-size: .7rem; font-weight: 600; letter-spacing: .06em; color: var(--ink2); border: 1.5px dashed var(--ink2); border-radius: 6px; padding: 5px 9px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 750; letter-spacing: -.03em; color: var(--ink); } .brand img { width: 28px; height: 28px; flex: none; }
.who { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: .95rem; }
.pane, .hold { display: contents; }
main { flex: 1; padding: 14px 22px 18px; display: flex; flex-direction: column; gap: 14px; }
main h1 { font-size: 1.6rem; }
.state { display: flex; gap: 9px; align-items: center; font-weight: 600; margin-top: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.work { background: var(--green); } .dot.rest { background: var(--cyan); } .dot.idle { border: 2.5px solid var(--ink2); }
.clock { font-size: clamp(2.6rem, 15.5vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-top: 4px; white-space: nowrap; }
.sub { color: var(--ink2); margin-top: -6px; }
.big { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 68px; width: 100%; padding: 8px 16px; border-radius: 18px; background: var(--blue); color: var(--white); font-size: 1.18rem; font-weight: 600; transition: transform .12s; }
.big:active:not(:disabled), .huge2:active:not(:disabled), .pad button:active { transform: scale(.98); }
.big.soft { background: var(--sky); color: var(--ink); }
.big.low { min-height: 52px; font-size: 1.06rem; border-radius: 15px; }
.line { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; width: 100%; padding: 6px 14px; border-radius: 14px; border: 1.5px solid var(--rule); font-weight: 600; background: var(--white); }
.seg { display: flex; background: var(--cloud); border-radius: 14px; padding: 4px; }
.seg button { flex: 1; display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 46px; padding: 4px 8px; border-radius: 11px; font-size: .95rem; font-weight: 500; color: var(--ink2); }
.seg [aria-pressed="true"] { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgb(10 26 48 / .14); }
.foot { margin-top: auto; font-size: .88rem; color: var(--ink2); text-align: center; text-wrap: balance; }
.foot.keep { margin-top: 0; text-align: left; }
.link { color: var(--blue); font-weight: 500; min-height: 44px; padding: 4px 8px; }
button.foot.link { color: var(--blue); align-self: center; }
.list { list-style: none; padding: 0; }
.list li { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--rule); }
.list time { font-weight: 600; min-width: 48px; } .list div { flex: 1; } .list b { display: block; font-weight: 600; line-height: 1.3; } .list small { color: var(--ink2); font-size: .85rem; }
.tag { font-size: .75rem; font-weight: 600; background: var(--sky); border-radius: 99px; padding: 4px 9px; white-space: nowrap; }
.list li.miss { background: var(--cloud); border: 1.5px dashed var(--ink2); border-radius: 12px; padding: 11px 12px; margin-top: 4px; }
.done { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 34px; }
.ok { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--green); margin-bottom: 10px; animation: pop .28s ease-out; }
.done h1 { font-size: 1.6rem; } .done p { color: var(--ink2); }
.card { background: var(--sky); border-radius: 16px; padding: 15px 16px; display: grid; gap: 4px; }
.card small, .two small { color: var(--ink2); font-size: .85rem; } .card b { font-size: 1.12rem; } .card p { font-size: .9rem; color: var(--ink2); margin-bottom: 8px; }
.two { display: flex; gap: 10px; } .two div { flex: 1; background: var(--sky); border-radius: 16px; padding: 13px 14px; display: grid; } .two b { font-size: 1.18rem; letter-spacing: -.03em; white-space: nowrap; }
main .left { font-size: 1.3rem; margin-top: 6px; }
.cam { position: relative; display: grid; place-items: center; height: 290px; border-radius: 22px; background: var(--ink); overflow: hidden; }
.cam video { width: 100%; height: 100%; object-fit: cover; }
.corner { position: absolute; color: var(--cyan); display: grid; } .corner svg { stroke-width: .7; }
.shade { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; background: rgb(10 26 48 / .35); display: flex; align-items: flex-end; z-index: 2; animation: fade .16s; }
.sheet { width: 100%; background: var(--white); border-radius: 26px 26px 0 0; padding: 26px 22px max(24px, env(safe-area-inset-bottom)); display: grid; gap: 12px; animation: rise .2s ease-out; max-height: 100%; overflow-y: auto; }
.sheet h2 { font-size: 1.4rem; } .sheet p { color: var(--ink2); }
.band { display: flex; gap: 11px; background: var(--ink); color: var(--white); border-radius: 16px; padding: 13px 15px; font-size: .9rem; } .band b { display: block; font-size: .95rem; }
.band.light { background: var(--cloud); color: var(--ink); } .band .link { color: inherit; text-decoration: underline; padding-left: 0; } .links { display: flex; gap: 14px; flex-wrap: wrap; }
.tabs { display: flex; border-top: 1px solid var(--rule); position: sticky; bottom: 0; background: var(--white); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; text-align: center; min-height: 60px; font-weight: 500; color: var(--ink2); } .tabs [aria-current] { color: var(--blue); font-weight: 700; box-shadow: inset 0 3px var(--blue); }
.pick { display: flex; justify-content: space-between; align-items: center; } .pick h1, .pick h2 { font-size: 1.12rem; letter-spacing: -.01em; } .pick button { display: grid; place-items: center; width: 44px; height: 44px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; } th { font-weight: 500; color: var(--ink2); font-size: .85rem; text-align: left; padding-bottom: 6px; }
td { padding: 2px 0; border-top: 1px solid var(--rule); height: 44px; } td:last-child, th:last-child { text-align: right; font-weight: 600; } td .link { padding: 0; color: inherit; text-align: left; } tr.miss td { font-weight: 600; background: var(--cloud); }
td u { text-decoration: underline dashed; text-underline-offset: 4px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; } .field input { min-height: 56px; border-radius: 14px; border: 1.5px solid rgb(10 26 48 / .5); padding: 8px 16px; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; background: var(--white); width: 100%; }
.error { font-weight: 600; min-height: 1.45em; }

.card .error:empty { display: none; } .hole { width: 44px; } .pick h1:focus, .pick h2:focus { outline: none; } .card.in { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--rule); } .list li.gone { color: var(--ink2); }
.field.plain input, .field.plain select, .edit input { min-height: 52px; border-radius: 14px; border: 1.5px solid rgb(10 26 48 / .5); padding: 8px 14px; font-size: 1.06rem; letter-spacing: 0; text-transform: none; background: var(--white); width: 100%; }
.box { border: 1.5px solid var(--rule); border-radius: 16px; padding: 14px; display: grid; gap: 12px; min-width: 0; } .box legend { font-weight: 600; padding: 0 6px; } .check { display: flex; gap: 10px; align-items: center; min-height: 44px; } .check input { width: 22px; height: 22px; accent-color: var(--blue); }
.edit { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; } .edit input { width: 124px; min-height: 46px; } .chip { min-height: 46px; padding: 6px 14px; border-radius: 12px; background: var(--sky); font-weight: 600; font-size: .92rem; }
.link.plain { color: inherit; font-weight: 600; text-align: left; padding: 0; } button.tag { min-height: 44px; align-self: center; font-size: .85rem; padding: 4px 14px; background: var(--blue); color: var(--white); }

/* ---- aparato fijo ---- */
.tablet { height: 100dvh; min-height: 480px; display: flex; background: var(--white); overflow: hidden; }
.side { overflow-y: auto; }
h1:focus { outline: none; }
.side { width: 40%; background: var(--sky); padding: clamp(20px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 20px; }
.huge { font-size: clamp(3.4rem, 10vw, 7.5rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; } .huge.pin { letter-spacing: .08em; }
.side p { font-size: clamp(1rem, 1.9vw, 1.4rem); margin-top: 6px; } .muted { color: var(--ink2); }
.qrbox { display: flex; gap: 16px; align-items: center; } .qr { width: clamp(120px, 17vw, 210px); background: var(--white); border-radius: 12px; flex: none; } .qr path { fill: var(--ink); } .qrbox p { margin: 0; font-weight: 500; font-size: clamp(.9rem, 1.5vw, 1.1rem); }
.keys { flex: 1; padding: clamp(16px, 2.6vw, 34px); display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6vh, 18px); min-width: 0; }
.keys h1 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.dots { display: flex; gap: 16px; padding: 4px 0; } .dots i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--ink2); } .dots .on { background: var(--ink); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 440px; flex: 1; min-height: 0; } .pad button { display: grid; place-items: center; background: var(--cloud); border-radius: 18px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; min-height: 52px; } .pad .t { background: none; font-size: 1.05rem; font-weight: 500; color: var(--ink2); }
.full { flex: 1; overflow-y: auto; padding: clamp(22px, 4.4vw, 60px); display: flex; flex-direction: column; gap: clamp(14px, 3vh, 30px); justify-content: space-between; min-width: 0; } .full header, .full footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; } .full h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); letter-spacing: -.03em; }
.full.narrow { max-width: 560px; margin: 0 auto; justify-content: center; }
/* Su registro en la tableta: lo mismo que en el móvil, en una columna. */
.tablet.wide .full { justify-content: flex-start; } .minehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .minehead h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.minebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .minebar .line { width: auto; min-width: 120px; }
.mine { width: 100%; max-width: 640px; margin: 0 auto; display: grid; gap: 14px; } .tablet .mine h1, .tablet .mine h2 { font-size: 1.4rem; letter-spacing: -.02em; }
.tablet .shade { max-width: none; justify-content: center; } .tablet .sheet { max-width: 640px; } .tablet .sheet .pad { max-width: 440px; justify-self: center; min-height: 300px; }
@media print { html[data-kind="fixed"] body { display: none !important; } }
.state.lg { font-size: clamp(1.1rem, 2.4vw, 1.7rem); }
.ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 5px solid var(--sky); border-top-color: var(--blue); font-weight: 700; font-size: 1.35rem; }
.pair { display: flex; gap: 18px; flex: 1 0 auto; min-height: 120px; } .pair.four { display: grid; grid-template-columns: 1fr 1fr; }
.huge2 { flex: 1; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; border-radius: 24px; background: var(--blue); color: var(--white); font-size: clamp(1.2rem, 2.8vw, 2rem); font-weight: 600; padding: 14px; transition: transform .12s; } .huge2.soft { background: var(--sky); color: var(--ink); }
.done.lg { margin: auto; padding: 0; max-width: 720px; } .done.lg .ok { width: 124px; height: 124px; }
.keys.stack { justify-content: center; align-items: stretch; } .mini { background: var(--cloud); border-radius: 20px; padding: 26px; display: flex; gap: 16px; align-items: flex-start; } .mini h1 { font-size: 1.4rem; } .mini p { color: var(--ink2); font-size: 1.1rem; margin-top: 4px; }
@media (max-width: 640px) { .tablet { flex-direction: column; height: auto; min-height: 100dvh; } .side { width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; } .pair { flex-direction: column; } .pad { min-height: 320px; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } } @keyframes rise { from { transform: translateY(40px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .pbar, .tabs, .seg, .pick button, .line, .band { display: none !important; } .paper { display: block !important; font-weight: 600; } .page { max-width: none; } }
.paper { display: none; }
button[data-guard]:disabled { opacity: 1; }
/* Con los colores del sistema: lo que se pulsa tiene borde, y lo elegido y lo tecleado se distinguen. */
@media (forced-colors: active) {
  button, .tag, .band, .card, .two div, .sheet, .mini, .pad button { border: 1.5px solid ButtonText; }
  button.link, .pick button, .tabs button { border-color: transparent; }
  .seg [aria-pressed="true"], .tabs [aria-current] { outline: 3px solid Highlight; outline-offset: -4px; }
  .dots .on { background: Highlight; forced-color-adjust: none; } .dot.work, .dot.rest { forced-color-adjust: none; } .qr { forced-color-adjust: none; }
}
