/* Expediente visual del coche (fotos + mapa de daños) */
.vc { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; color: #e8edf5;
  background: radial-gradient(1200px 700px at 20% -10%, #24324d 0%, rgba(11, 18, 32, 0) 60%), radial-gradient(900px 600px at 100% 110%, #2a1d52 0%, rgba(11, 18, 32, 0) 55%), #0b1220;
  font-family: inherit; animation: vc-entra .22s ease-out; }
@keyframes vc-entra { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

.vc-cab { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); flex-wrap: wrap; }
.vc-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vc-placa { display: inline-flex; align-items: stretch; border: 2px solid #1b1f27; border-radius: 7px; background: var(--o-surface,#fff); color: var(--o-heading,#11151c); overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); flex: none; }
.vc-placa i { background: #0b47a8; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 6px; display: grid; place-items: end center; }
.vc-placa b { font: 700 21px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 1.5px; padding: 6px 12px; }
.vc-modelo { display: grid; min-width: 0; }
.vc-modelo strong { font-size: 17px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-modelo small { color: #8da0bd; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.vc-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 200px; }
.vc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #cdd7e6; }
.vc-chip.ok { background: rgba(52, 211, 153, .15); border-color: rgba(52, 211, 153, .4); color: #6ee7b7; }
.vc-chip.leve { background: rgba(34, 197, 94, .15); border-color: rgba(34, 197, 94, .4); color: #86efac; }
.vc-chip.moderado { background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .45); color: #fcd34d; }
.vc-chip.grave, .vc-chip.muygrave { background: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .5); color: #fca5a5; }
.vc-acciones { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.vc-btn { border: 1px solid rgba(255, 255, 255, .2); background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; }
.vc-btn:hover { filter: brightness(1.12); }
.vc-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.vc-x:hover { background: rgba(239, 68, 68, .35); }

.vc-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 14px; padding: 14px; }
.vc-izq { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.vc-der { min-height: 0; overflow-y: auto; display: grid; gap: 12px; align-content: start; padding-right: 2px; }

/* escenario de la foto */
.vc-escena { position: relative; flex: 1; min-height: 240px; border-radius: 16px; overflow: hidden; background: #05080f; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .03); touch-action: none; cursor: zoom-in; user-select: none; }
.vc-escena.zoom { cursor: grab; } .vc-escena.arrastrando { cursor: grabbing; }
.vc-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; animation: vc-foto .28s ease-out; will-change: transform; }
@keyframes vc-foto { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.vc-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 16, 28, .55); backdrop-filter: blur(6px); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; transition: background .15s, transform .15s; }
.vc-flecha:hover { background: rgba(124, 58, 237, .7); transform: translateY(-50%) scale(1.08); }
.vc-flecha.izq { left: 12px; } .vc-flecha.der { right: 12px; }
.vc-pie-foto { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 26px 14px 10px; background: linear-gradient(0deg, rgba(5, 8, 15, .88), rgba(5, 8, 15, 0)); pointer-events: none; }
.vc-pie-foto span { display: grid; } .vc-pie-foto b { font-size: 14px; } .vc-pie-foto small { color: #9fb0cb; font-size: 12px; }
.vc-tools { display: flex !important; align-items: center; gap: 12px; pointer-events: auto; }
.vc-tools a { color: #fff; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.vc-pista { opacity: .75; }
.vc-ficha-dano { position: absolute; top: 12px; left: 12px; display: flex; gap: 10px; align-items: center; max-width: min(420px, calc(100% - 24px)); padding: 10px 14px; border-radius: 12px; background: rgba(10, 16, 28, .72); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .16); animation: vc-foto .3s ease-out; pointer-events: none; }
.vc-ficha-dano b { display: block; font-size: 14px; } .vc-ficha-dano small { color: #b6c4db; font-size: 12px; }
.vc-ficha-dano .vc-sev { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); }
.vc-vacio { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; color: #9fb0cb; }
.vc-vacio b { color: #e8edf5; font-size: 16px; } .vc-vacio small { max-width: 340px; }

.vc-tira { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.vc-mini { position: relative; flex: none; width: 92px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #0f1626; cursor: pointer; opacity: .66; transition: opacity .15s, transform .15s, border-color .15s; }
.vc-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-mini:hover { opacity: 1; transform: translateY(-2px); }
.vc-mini.on { opacity: 1; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .3); }
.vc-punto { position: absolute; top: 5px; right: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #0b1220; }
.vc-pre { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* tarjetas laterales */
.vc-card { border-radius: 16px; padding: 12px 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.vc-card-t { display: grid; gap: 2px; margin-bottom: 8px; } .vc-card-t small { color: #8da0bd; font-size: 11.5px; }
.vc-svg { overflow: visible; display: block; width: 100%; max-height: 52vh; height: auto; margin: 0 auto; }
.vc-carroceria { fill: url(#vcCuerpo); stroke: rgba(255, 255, 255, .5); stroke-width: 1.4; }
.vc-rueda { fill: #0a0d13; stroke: #3b4558; stroke-width: 1; }
.vc-espejo { fill: color-mix(in srgb, var(--vc-carro) 70%, #000); stroke: rgba(255, 255, 255, .3); stroke-width: 1; }
.vc-linea { stroke: rgba(0, 0, 0, .35); stroke-width: 1.2; fill: none; }
.vc-frente { fill: #6f819f; font-size: 9px; letter-spacing: 3px; font-weight: 700; }
.vc-zona { cursor: pointer; }
.vc-zona path { fill: rgba(167, 139, 250, 0); stroke: rgba(167, 139, 250, 0); stroke-width: 1.5; stroke-dasharray: 4 3; transition: fill .15s, stroke .15s; }
.vc-zona:hover path { fill: rgba(167, 139, 250, .18); stroke: rgba(167, 139, 250, .7); }
.vc-zona.on path { fill: rgba(167, 139, 250, .28); stroke: #c4b5fd; }
.vc-cam circle { fill: #0b1220; stroke: #c4b5fd; stroke-width: 1.5; } .vc-cam text { fill: #fff; font-size: 10px; font-weight: 700; }
.vc-pin { cursor: pointer; }
.vc-pin .punto { stroke: #fff; stroke-width: 2; transition: r .15s; } .vc-pin text { fill: #fff; font-size: 10.5px; font-weight: 800; pointer-events: none; }
.vc-pin .onda { fill: none; stroke-width: 2; opacity: .75; animation: vc-onda 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.vc-pin.on .punto { r: 12; } .vc-pin.on .onda { animation-duration: 1.1s; }
@keyframes vc-onda { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.vc-pin.vsev-Leve .punto, .vc-dano.vsev-Leve .vc-num, .vsev-Leve i { fill: #22c55e; background: #22c55e; }
.vc-pin.vsev-Moderado .punto, .vc-dano.vsev-Moderado .vc-num, .vsev-Moderado i { fill: #f59e0b; background: #f59e0b; }
.vc-pin.vsev-Grave .punto, .vc-dano.vsev-Grave .vc-num, .vsev-Grave i { fill: #ef4444; background: #ef4444; }
.vc-pin.vsev-MuyGrave .punto, .vc-dano.vsev-MuyGrave .vc-num, .vsev-MuyGrave i { fill: #b91c1c; background: #b91c1c; }
.vc-pin.vsev-Leve .onda { stroke: #22c55e; } .vc-pin.vsev-Moderado .onda { stroke: #f59e0b; } .vc-pin.vsev-Grave .onda { stroke: #ef4444; } .vc-pin.vsev-MuyGrave .onda { stroke: #ef4444; }
.vc-punto.vsev-Leve, .vc-ficha-dano.vsev-Leve .vc-sev { background: #22c55e; } .vc-punto.vsev-Moderado, .vc-ficha-dano.vsev-Moderado .vc-sev { background: #f59e0b; }
.vc-punto.vsev-Grave, .vc-ficha-dano.vsev-Grave .vc-sev { background: #ef4444; } .vc-punto.vsev-MuyGrave, .vc-ficha-dano.vsev-MuyGrave .vc-sev { background: #b91c1c; }

.vc-zonas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vc-zonas button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #cdd7e6; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.vc-zonas button small { color: #8da0bd; } .vc-zonas button.on { background: rgba(124, 58, 237, .45); border-color: #a78bfa; color: #fff; }
.vc-badge-d { font-style: normal; background: #ef4444; color: #fff; border-radius: 999px; font-size: 10px; padding: 0 6px; font-weight: 700; }

.vc-dano { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.vc-dano:hover { background: rgba(255, 255, 255, .09); } .vc-dano.on { border-color: #a78bfa; background: rgba(124, 58, 237, .22); }
.vc-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; }
.vc-dano-t { display: grid; min-width: 0; flex: 1; } .vc-dano-t b { font-size: 13.5px; } .vc-dano-t small { color: #9fb0cb; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.vc-tiene-foto { color: #a78bfa; display: grid; }
.vc-ok { display: flex; gap: 8px; align-items: center; color: #6ee7b7; margin: 4px 0 8px; font-size: 13px; }
.vc-leyenda { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; color: #8da0bd; font-size: 11.5px; }
.vc-leyenda i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }

@media (max-width: 900px) {
  .vc-cuerpo { grid-template-columns: 1fr; grid-auto-rows: min-content; overflow-y: auto; padding: 10px; gap: 10px; }
  .vc-izq { min-height: 0; } .vc-escena { flex: none; height: 52vh; min-height: 260px; }
  .vc-der { overflow: visible; }
  .vc-svg { max-height: 60vh; width: min(100%, 300px); }
  .vc-cab { gap: 8px; padding: 10px 12px; } .vc-placa b { font-size: 18px; padding: 5px 9px; }
  .vc-pista { display: none; } .vc-flecha { width: 40px; height: 40px; }
  .vc-acciones { order: 2; }
}
@media (prefers-reduced-motion: reduce) { .vc, .vc-foto, .vc-ficha-dano, .vc-pin .onda { animation: none; } }
