/* Manrope (SIL Open Font License, ver fuentes/OFL-Manrope.txt), servida desde nuestro dominio. */
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fuentes/manrope-latin-wght-normal.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: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fuentes/manrope-latin-ext-wght-normal.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; }
:root {
  --fondo: #071828; --tarjeta: #0c2236; --borde: #17344f; --cian: #03ebf7; --texto: #eaf6fb;
  --suave: #8fb0c4; --error: #ff6b6b; --ok: #3ee08f; --radio: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--fondo) radial-gradient(120% 600px at 50% -120px, #0e3350 0%, var(--fondo) 70%) no-repeat; }
body { margin: 0;
  color: var(--texto); font: 16px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; align-items: center; padding: 32px 16px 48px;
}
main { width: 100%; max-width: 440px; }
main.ancho { max-width: 760px; }
.logo { display: block; width: 120px; margin: 8px auto 28px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 18px; margin: 0 0 12px; }
p { margin: 0 0 16px; color: var(--suave); }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; margin-bottom: 16px; }
.boton {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px;
  border: 0; border-radius: 14px; background: var(--cian); color: #04202f; font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1; cursor: pointer;
}
.boton:disabled { opacity: .55; cursor: progress; }
.boton.secundario { background: transparent; color: var(--texto); border: 1px solid var(--borde); min-height: 48px; font-size: 15px; }
.estado { min-height: 24px; margin-top: 14px; font-size: 15px; text-align: center; }
.estado.error { color: var(--error); }
.estado.ok { color: var(--ok); }
.pie { margin-top: 24px; font-size: 13px; color: var(--suave); text-align: center; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--borde); color: var(--suave); }
.chip.activo { color: var(--ok); border-color: #1d5b40; }
.chip.invitado { color: #ffc861; border-color: #5b4a1d; }
label { display: block; font-size: 13px; color: var(--suave); margin: 12px 0 6px; }
input, select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--borde);
  background: #081b2c; color: var(--texto); font: inherit;
}
input:focus, select:focus { outline: 2px solid var(--cian); outline-offset: 1px; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--borde); }
.lista li:first-child { border-top: 0; }
.lista .quien { min-width: 0; }
.lista .quien b { display: block; overflow-wrap: anywhere; }
.lista .quien span { font-size: 13px; color: var(--suave); }
.mini { min-height: 36px; padding: 0 12px; width: auto; font-size: 13px; border-radius: 10px; }
.enlace { word-break: break-all; font-size: 13px; background: #081b2c; border: 1px dashed var(--borde); border-radius: 12px; padding: 12px; margin-top: 12px; }
.oculto { display: none !important; }
.cabecera { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.cabecera .logo { margin: 0; width: 84px; }
@media (max-width: 480px) { .fila { grid-template-columns: 1fr; } h1 { font-size: 23px; } }
.hueco { height: 16px; }
/* Fichar */
.lugar { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--cian); margin-bottom: 10px; }
.botones { display: grid; gap: 12px; margin-top: 8px; }
.boton.salida { background: transparent; color: var(--cian); border: 2px solid var(--cian); }
.hecho { text-align: center; padding: 36px 24px; }
.tick { width: 132px; height: 132px; margin: 0 auto 20px; }
.tick svg { width: 100%; height: 100%; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { fill: rgba(62, 224, 143, .12); stroke-dasharray: 151; stroke-dashoffset: 151; animation: trazo .5s ease-out forwards; }
.tick path { stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: trazo .35s .4s ease-out forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .tick circle, .tick path { animation: none; stroke-dashoffset: 0; } }
.hora { font-size: 44px; font-weight: 800; color: var(--texto); letter-spacing: -.02em; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
/* Panel */
.cabecera .quien-soy { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cabecera .quien-soy span { font-size: 13px; color: var(--suave); }
.pestanas { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding: 4px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; position: sticky; top: 8px; z-index: 5; scrollbar-width: none; }
.pestanas::-webkit-scrollbar { display: none; }
.pestana { flex: 1 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--suave); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; position: relative; }
.pestana.activa { background: var(--cian); color: #04202f; }
.pestana[data-cuenta]:not([data-cuenta=""])::after { content: attr(data-cuenta); position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--error); color: #fff; font-size: 11px; line-height: 18px; }
.titulo-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.suave { color: var(--suave); font-size: 13px; }
.chip.alerta { color: var(--error); border-color: #6b2a2a; }
.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.filtros label { margin-top: 0; }
.acciones { display: flex; gap: 8px; }
.acciones .boton { flex: 1; min-height: 46px; text-decoration: none; }
.tabla-envuelta { overflow-x: auto; margin: 0 -8px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabla th { text-align: left; font-size: 12px; font-weight: 600; color: var(--suave); padding: 8px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla td { padding: 10px 8px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla tr.clic { cursor: pointer; }
.tabla tr.clic:hover td { background: #0f2a42; }
.dif.mas { color: var(--ok); }
.dif.menos { color: #ff9b6b; }
.lista li.tachado .quien b { text-decoration: line-through; color: var(--suave); }
.acciones-alerta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.alerta-item.seguridad .quien b { color: #ff9b9b; }
.lista .quien span { display: block; }
.interruptor { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--texto); cursor: pointer; }
.interruptor input { width: 20px; height: 20px; min-height: 0; accent-color: var(--cian); }
.dias { display: grid; gap: 10px; }
.dia { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.dia input[type=time] { min-width: 0; padding: 8px 10px; }
.dia input[type=time]:disabled { opacity: .35; }
.resumen-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.resumen-cifras div { background: #081b2c; border: 1px solid var(--borde); border-radius: 12px; padding: 12px; text-align: center; }
.resumen-cifras b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.resumen-cifras span { font-size: 12px; color: var(--suave); }
.cifra { text-align: right; font-variant-numeric: tabular-nums; }
.cifra b { display: block; }
.cifra .dif { font-size: 13px; }
@media (max-width: 480px) { .resumen-cifras b { font-size: 16px; } .dia { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dia .interruptor { grid-column: 1 / -1; } }
/* Verificación de documentos */
.datos { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0 0; font-size: 14px; }
.datos dt { color: var(--suave); }
.datos dd { margin: 0; overflow-wrap: anywhere; }
label.boton { margin: 0; color: #04202f; font-size: 17px; }
.veredicto { margin-top: 16px; padding: 16px; border-radius: 14px; font-weight: 700; text-align: center; }
.veredicto.ok { background: rgba(62, 224, 143, .12); color: var(--ok); border: 1px solid #1d5b40; }
.veredicto.mal { background: rgba(255, 107, 107, .12); color: var(--error); border: 1px solid #6b2a2a; }
