/* Piezas compartidas: captura armada del CRM de viajes y ventana de detalle. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
img.entera { object-fit: contain !important; background: #0E0B18; }
a { color: inherit; }

.mk { width: 100%; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; font-family: Inter, system-ui, sans-serif; font-size: 11px; }
.mk-app { display: flex; background: #F7F6FB; color: #1A1530; }
.mk-app aside { width: 15%; background: #1A1530; padding: 12px 8px; display: flex; flex-direction: column; gap: 9px; }
.mk-app aside i { height: 8px; border-radius: 4px; background: #9B6BFF; }
.mk-main { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px; }
.mk-kpis b { background: #fff; border-radius: 6px; padding: 8px; box-shadow: 0 1px 2px #0001; font-size: 11px; }
.mk-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 6px; padding: 6px 8px; }
.mk-row em { font-style: normal; color: #fff; font-size: 9px; padding: 2px 7px; border-radius: 9px; }
.mk-kanban { flex-direction: row; }
.mk-kanban > div { flex: 1; background: #ECEAF4; border-radius: 6px; padding: 6px; }
.mk-kanban h6 { margin: 0 0 6px; font-size: 10px; color: #6D3DF0; }
.mk-kanban p { margin: 0 0 6px; background: #fff; border-radius: 5px; padding: 7px; display: flex; flex-direction: column; }
.mk-kanban small { opacity: .6; }


.detalle { border: 0; padding: 0; border-radius: 16px; width: min(880px, calc(100% - 32px)); max-height: calc(100% - 32px);
  display: grid; grid-template-columns: 1.4fr 1fr; background: #fff; color: #1A1530; font-family: Inter, system-ui, sans-serif; }
.detalle:not([open]) { display: none; }
.detalle::backdrop { background: #0b0a14cc; backdrop-filter: blur(4px); }
.det-vis { background: #12101F; padding: 24px; display: grid; place-items: center; }
.det-vis img { border-radius: 10px; max-height: 60vh; }
.det-txt { padding: 32px 28px; }
.det-txt small { color: #6D3DF0; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.det-txt h3 { font: 700 26px Sora, sans-serif; margin: 8px 0 12px; }
.det-txt p { line-height: 1.6; }
.det-txt .nota { font-size: 13px; opacity: .55; }
.cerrar { position: absolute; top: 10px; right: 12px; border: 0; background: #0002; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
@media (max-width: 700px) { .detalle { grid-template-columns: 1fr; } }
.det-vis { position: relative; }
.puntos { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.puntos button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #ffffff55; cursor: pointer; }
.puntos button.on { background: #9B6BFF; }
.det-link { display: inline-block; margin-top: 4px; font-weight: 600; color: #6D3DF0; }
[data-trabajo]:focus-visible { outline: 2px solid #9B6BFF; outline-offset: 3px; }
