/* Detalle del revisor de verificaciones (spec 2026-09-23 §9.3). Hoja GLOBAL con
   prefijo vd- porque el detalle se partió en componentes y el bundle de Tailwind
   está purgado. Colores solo por variables: html.dark los redefine. La fuente es
   la de la app (no se declara font-family salvo el monoespaciado). */

.vd-root {
    --vd-fondo: #f4f6fa;
    --vd-superficie: #ffffff;
    --vd-superficie-2: #f8fafc;
    --vd-superficie-3: #fbfcfe;
    --vd-borde: #e6eaf0;
    --vd-borde-2: #eef1f5;
    --vd-borde-fuerte: #d5dbe5;
    --vd-texto-1: #0f172a;
    --vd-texto-2: #334155;
    --vd-texto-3: #64748b;
    --vd-texto-4: #94a3b8;
    --vd-primario: rgb(70 105 250);
    --vd-primario-suave: #eef1fe;
    --vd-primario-borde: #dce2fb;
    --vd-ok: #067647;       --vd-ok-bg: #ecfdf3;      --vd-ok-dot: #17b26a;
    --vd-warn: #b54708;     --vd-warn-bg: #fffaeb;    --vd-warn-dot: #fdb022;
    --vd-err: #b42318;      --vd-err-bg: #fef3f2;     --vd-err-dot: #f04438;
    --vd-info: rgb(70 105 250); --vd-info-bg: #eef1fe; --vd-info-dot: rgb(70 105 250);
    --vd-neutral: #475467;  --vd-neutral-bg: #f2f4f7; --vd-neutral-dot: #98a2b3;
    --vd-sombra: 0 12px 32px rgba(15, 23, 42, .12);
    --vd-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--vd-texto-2);
}

html.dark .vd-root {
    --vd-fondo: #0b1220;
    --vd-superficie: #1e293b;
    --vd-superficie-2: #172033;
    --vd-superficie-3: #1a2436;
    --vd-borde: #334155;
    --vd-borde-2: #2b3648;
    --vd-borde-fuerte: #475569;
    --vd-texto-1: #f1f5f9;
    --vd-texto-2: #cbd5e1;
    --vd-texto-3: #94a3b8;
    --vd-texto-4: #64748b;
    --vd-primario-suave: rgba(70, 105, 250, .18);
    --vd-primario-borde: rgba(70, 105, 250, .35);
    --vd-ok: #75e0a7;       --vd-ok-bg: rgba(23, 178, 106, .16);
    --vd-warn: #fec84b;     --vd-warn-bg: rgba(253, 176, 34, .14);
    --vd-err: #fda29b;      --vd-err-bg: rgba(240, 68, 56, .16);
    --vd-info: #a4bcfd;     --vd-info-bg: rgba(70, 105, 250, .18);
    --vd-neutral: #cbd5e1;  --vd-neutral-bg: rgba(148, 163, 184, .14);
    --vd-sombra: 0 12px 32px rgba(0, 0, 0, .45);
}

/* ---------- tarjetas y encabezados de sección ---------- */
.vd-card { background: var(--vd-superficie); border: 1px solid var(--vd-borde); border-radius: 14px; }
.vd-card--pad { padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.vd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vd-card-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 700; color: var(--vd-texto-1); }
.vd-card-title iconify-icon { color: var(--vd-primario); font-size: 18px; }
.vd-sub { font-size: 14px; color: var(--vd-texto-3); }
.vd-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vd-texto-4); }
.vd-inner { border: 1px solid var(--vd-borde); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vd-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.vd-span-2 { grid-column: span 2; }
@media (max-width: 767px) { .vd-span-2 { grid-column: auto; } .vd-card--pad { padding: 18px 16px; } }

/* ---------- chips ---------- */
.vd-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.vd-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.vd-chip--sin-punto::before { display: none; }
.vd-tono-ok { background: var(--vd-ok-bg); color: var(--vd-ok); }
.vd-tono-warn { background: var(--vd-warn-bg); color: var(--vd-warn); }
.vd-tono-err { background: var(--vd-err-bg); color: var(--vd-err); }
.vd-tono-info { background: var(--vd-info-bg); color: var(--vd-info); }
.vd-tono-neutral { background: var(--vd-neutral-bg); color: var(--vd-neutral); }

/* ---------- botones (complemento del patrón Tailwind acordado) ---------- */
.vd-root button[disabled], .vd-root a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.vd-root .vd-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: .375rem; border: 1px solid var(--vd-borde-fuerte); background: var(--vd-superficie); color: var(--vd-texto-2); }
.vd-link-btn { border: none; background: transparent; color: var(--vd-texto-3); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px; text-transform: none; }
.vd-link-btn:hover { color: var(--vd-primario); }
.vd-copy { border: none; background: transparent; color: var(--vd-texto-4); cursor: pointer; padding: 4px; display: inline-flex; }
.vd-copy:hover { color: var(--vd-primario); }

/* ---------- menú "más acciones" ---------- */
.vd-menu-wrap { position: relative; }
.vd-menu { position: absolute; top: 46px; right: 0; min-width: 220px; z-index: 30; background: var(--vd-superficie); border: 1px solid var(--vd-borde); border-radius: 10px; box-shadow: var(--vd-sombra); padding: 6px; }
.vd-menu button { width: 100%; text-align: left; border: none; background: transparent; padding: 9px 10px; border-radius: 6px; font-size: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--vd-texto-2); text-transform: none; }
.vd-menu button.vd-peligro { color: var(--vd-err); }
.vd-menu button:hover { background: var(--vd-superficie-2); }
.vd-menu-velo { position: fixed; inset: 0; z-index: 29; }

/* ---------- encabezado ---------- */
.vd-head-top { padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.vd-folio { margin: 0; font-size: 22px; font-weight: 700; color: var(--vd-texto-1); letter-spacing: -.01em; }
.vd-id { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 5px; border: 1px solid var(--vd-primario-borde); border-radius: 10px; background: var(--vd-primario-suave); width: max-content; max-width: 100%; }
.vd-id-tag { height: 28px; padding: 0 10px; border-radius: 7px; display: flex; align-items: center; background: var(--vd-primario); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.vd-id-valor { font-size: 16px; font-weight: 700; color: var(--vd-texto-1); font-variant-numeric: tabular-nums; }
.vd-head-cols { border-top: 1px solid var(--vd-borde-2); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.vd-head-cols > div { padding: 20px 28px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--vd-borde-2); }
.vd-head-cols > div:last-child { border-right: none; }
.vd-kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.vd-kv dt { color: var(--vd-texto-3); }
.vd-kv dd { margin: 0; color: var(--vd-texto-1); font-weight: 500; }
.vd-head-foot { border-top: 1px solid var(--vd-borde-2); padding: 20px 28px 22px; background: var(--vd-superficie-3); border-radius: 0 0 14px 14px; }
.vd-dictamen-banda { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; border: 1px solid transparent; }
.vd-dictamen-banda .vd-icono { width: 36px; height: 36px; border-radius: 10px; background: var(--vd-superficie); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }

/* ---------- ciclo de vida ---------- */
.vd-ciclo { display: grid; grid-template-columns: repeat(var(--vd-pasos, 6), minmax(0, 1fr)); }
.vd-paso { display: flex; flex-direction: column; gap: 8px; }
.vd-paso-linea { display: flex; align-items: center; }
.vd-paso-punto { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.vd-paso-barra { flex: 1; height: 2px; margin: 0 6px; background: var(--vd-borde-fuerte); }
.vd-paso--hecho .vd-paso-punto { background: var(--vd-primario); border: 2px solid var(--vd-primario); }
.vd-paso--hecho .vd-paso-barra { background: var(--vd-primario); }
.vd-paso--pendiente .vd-paso-punto, .vd-paso--futuro .vd-paso-punto { background: var(--vd-superficie); border: 2px dashed var(--vd-borde-fuerte); }
.vd-paso--error .vd-paso-punto { background: var(--vd-err-dot); border: 2px solid var(--vd-err-dot); }
.vd-paso--aviso .vd-paso-punto { background: var(--vd-warn-dot); border: 2px solid var(--vd-warn-dot); }
.vd-paso:last-child .vd-paso-barra { background: transparent; }
.vd-paso-texto { display: flex; flex-direction: column; gap: 2px; padding-right: 8px; }
.vd-paso-texto b { font-size: 14px; font-weight: 600; color: var(--vd-texto-1); }
.vd-paso--pendiente b, .vd-paso--futuro b { color: var(--vd-texto-3); }
.vd-paso-texto span { font-size: 13px; color: var(--vd-texto-3); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .vd-ciclo { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } }

/* ---------- geo ---------- */
.vd-distancia { font-size: 32px; font-weight: 700; color: var(--vd-texto-1); letter-spacing: -.02em; line-height: 1; }
.vd-barra { display: grid; gap: 3px; height: 8px; position: relative; }
.vd-barra span:nth-child(1) { background: var(--vd-ok-dot); border-radius: 4px 0 0 4px; }
.vd-barra span:nth-child(2) { background: var(--vd-warn-dot); }
.vd-barra span:nth-child(3) { background: var(--vd-err-dot); border-radius: 0 4px 4px 0; }
.vd-barra-marca { position: absolute; top: -5px; width: 4px; height: 18px; border-radius: 2px; background: var(--vd-texto-1); transform: translateX(-2px); }
/* Escala por fronteras bajo la barra: la marca (tick) va en el punto exacto; la
   etiqueta intermedia se centra en él pero se acota a los bordes (VerifBarraGeo).
   Es contenedor (cqw) para que la etiqueta de "Parcial hasta" sepa si se sale. */
.vd-barra-escala { position: relative; container-type: inline-size; height: 22px; font-size: 12px; line-height: 16px; color: var(--vd-texto-3); font-variant-numeric: tabular-nums; }
.vd-barra-tick { position: absolute; top: -4px; width: 1px; height: 7px; background: var(--vd-texto-4); transform: translateX(-.5px); }
.vd-barra-etq { position: absolute; top: 5px; white-space: nowrap; }
.vd-barra-etq--centro { transform: translateX(-50%); }
.vd-barra-etq--fin { transform: translateX(-100%); }
.vd-aviso { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; background: var(--vd-warn-bg); color: var(--vd-warn); }
.vd-aviso--info { background: var(--vd-info-bg); color: var(--vd-info); }
.vd-aviso--ok { background: var(--vd-ok-bg); color: var(--vd-ok); }

/* ---------- biometría ---------- */
.vd-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--vd-superficie-2); border: 1px solid var(--vd-borde); }
.vd-dl { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.vd-dl div { display: flex; justify-content: space-between; gap: 16px; }
.vd-dl dt { color: var(--vd-texto-3); }
.vd-dl dd { margin: 0; color: var(--vd-texto-1); font-weight: 500; text-align: right; }
.vd-evid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.vd-evid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vd-evid img, .vd-evid video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--vd-borde); background: #0f172a; }
.vd-evid figcaption { font-size: 14px; font-weight: 500; color: var(--vd-texto-2); }
.vd-evid .vd-no-disp { aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--vd-borde); background: var(--vd-superficie-2); }

/* ---------- evidencia no disponible (imagen/video que no cargó) ---------- */
.vd-no-disp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; color: var(--vd-texto-4); text-align: center; padding: 8px; }
.vd-no-disp iconify-icon { font-size: 26px; }
.vd-no-disp > div { font-size: 12px; font-weight: 600; line-height: 1.3; }
.vd-no-disp--mini iconify-icon { font-size: 18px; }
.vd-no-disp--mini > div { display: none; }
.vd-avatar.vd-no-disp { padding: 0; }
.vd-sesion { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; }
.vd-sesion span { display: block; font-size: 12px; color: var(--vd-texto-3); }
.vd-sesion b { display: block; font-size: 14px; font-weight: 500; color: var(--vd-texto-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- mapa ---------- */
/* El mapa es la pieza clave del detalle: crece con la ventana (tope 720 px) y en
   móvil no baja de 320 px. Google Maps se reencuadra al cambiar de tamaño (verif-detalle.js). */
.vd-mapa { position: relative; height: clamp(420px, 58vh, 720px); border-radius: 12px; overflow: hidden; border: 1px solid var(--vd-borde); background: var(--vd-superficie-2); }
@media (max-width: 767px) { .vd-mapa { height: clamp(320px, 52vh, 480px); } }
/* Por alto y no por inset: Google Maps le pone position:relative en línea a su contenedor. */
.vd-mapa-lienzo { width: 100%; height: 100%; }
/* "Cargando mapa…" / "Mapa no disponible" encima del lienzo: no mueve la página al quitarse. */
.vd-mapa-estado { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--vd-texto-3); pointer-events: none; }
.vd-leyenda { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--vd-texto-2); flex-wrap: wrap; }
.vd-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
/* "Ver lecturas" (spec 2026-10-12 §D.1): interruptor dentro de la leyenda, con el mismo punto que pinta el mapa. */
.vd-mapa-lecturas { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; margin: 0; }
.vd-mapa-lecturas input { width: 14px; height: 14px; margin: 0; accent-color: var(--vd-primario); cursor: pointer; }
.vd-mapa-lecturas i { margin-right: 0; }
/* Geocerca bajo el mapa: muestras con el mismo trazo/relleno que los anillos. */
.vd-mapa-geocerca { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; margin-top: -8px; font-size: 12px; color: var(--vd-texto-3); font-variant-numeric: tabular-nums; }
.vd-mapa-geocerca i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid; margin-right: 6px; vertical-align: -2px; }
.vd-mapa-geocerca i.vd-geocerca-ok { border-color: var(--vd-ok-dot); background: rgba(23, 178, 106, .12); }
.vd-mapa-geocerca i.vd-geocerca-warn { border-color: var(--vd-warn-dot); background: rgba(253, 176, 34, .08); }

/* ---------- galería ---------- */
.vd-tabs { display: flex; gap: 4px; background: var(--vd-superficie-2); padding: 4px; border-radius: 9px; flex-wrap: wrap; }
.vd-tabs button { height: 30px; padding: 0 12px; border-radius: 6px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; background: transparent; color: var(--vd-texto-3); text-transform: none; }
.vd-tabs button.vd-activa { background: var(--vd-superficie); color: var(--vd-texto-1); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.vd-tabs small { font-size: 12px; color: var(--vd-texto-4); font-weight: 500; }
.vd-gal { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.vd-visor { flex: 3 1 420px; min-width: 0; position: relative; border-radius: 12px; overflow: hidden; background: #0f172a; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.vd-visor img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s; cursor: zoom-in; }
.vd-visor video { width: 100%; height: 100%; background: #000; }
/* Mientras baja el medio en turno (DetGaleria: @key por medio): brillo sobre el
   fondo del visor, que es oscuro en ambos temas. */
.vd-visor.vd-cargando { background: linear-gradient(100deg, #0f172a 35%, #1e293b 50%, #0f172a 65%) 0 0 / 300% 100%; animation: vd-brillo 1.3s linear infinite; }
.vd-visor.vd-cargando video { background: transparent; }
@keyframes vd-brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .vd-visor.vd-cargando { animation: none; } }
.vd-visor-hueco { color: #cbd5e1; font-size: 14px; text-align: center; padding: 24px; }
.vd-visor-tl, .vd-visor-tr { position: absolute; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.vd-visor-tl { left: 12px; } .vd-visor-tr { right: 12px; }
.vd-pill-osc { height: 30px; padding: 0 10px; border-radius: 7px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; text-transform: none; text-decoration: none; }
.vd-pill-osc:hover { background: rgba(15, 23, 42, .9); color: #fff; }
.vd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .92); color: #0f172a; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); z-index: 2; }
.vd-nav--izq { left: 12px; } .vd-nav--der { right: 12px; }
.vd-panel { flex: 1 1 260px; max-width: 100%; }
.vd-tira { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.vd-tira button { flex-shrink: 0; width: 120px; display: flex; flex-direction: column; gap: 6px; padding: 0; border: none; background: transparent; cursor: pointer; text-align: left; text-transform: none; }
.vd-tira .vd-mini { width: 120px; height: 80px; border-radius: 9px; position: relative; overflow: hidden; background: #1e293b; display: flex; align-items: center; justify-content: center; color: #fff; outline: 2px solid transparent; outline-offset: 2px; }
.vd-tira .vd-mini img { width: 100%; height: 100%; object-fit: cover; }
.vd-tira button.vd-activa .vd-mini { outline-color: var(--vd-primario); }
.vd-tira .vd-mini i { position: absolute; bottom: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.vd-tira small { font-size: 12px; color: var(--vd-texto-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-punto-ok { background: var(--vd-ok-dot); } .vd-punto-warn { background: var(--vd-warn-dot); } .vd-punto-err { background: var(--vd-err-dot); } .vd-punto-neutral { background: var(--vd-neutral-dot); }

/* ---------- visor ampliado ---------- */
.vd-lb { position: fixed; inset: 0; z-index: 1100; background: rgba(8, 12, 22, .94); display: flex; flex-direction: column; color: #fff; }
.vd-lb-top { height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; }
.vd-lb-lienzo { flex: 1; min-height: 0; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; user-select: none; cursor: zoom-in; }
.vd-lb-lienzo img { max-width: 92%; max-height: 92%; object-fit: contain; transform-origin: center center; will-change: transform; }
.vd-lb-lienzo video { max-width: 92%; max-height: 92%; }
.vd-lb-ayuda { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #94a3b8; background: rgba(0, 0, 0, .4); padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.vd-lb-btn { width: 40px; height: 40px; border: none; border-radius: 9px; background: rgba(255, 255, 255, .08); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.vd-lb-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
/* "safe center": centrada si cabe; si desborda (móvil) arranca a la izquierda y no esconde las primeras. */
.vd-lb-tira { flex-shrink: 0; display: flex; gap: 8px; justify-content: center; justify-content: safe center; padding: 12px 20px 18px; overflow-x: auto; }
.vd-lb-tira button { flex-shrink: 0; width: 72px; height: 50px; border-radius: 7px; border: none; padding: 0; overflow: hidden; cursor: pointer; background: #1e293b; outline: 2px solid transparent; outline-offset: 2px; opacity: .8; }
.vd-lb-tira button.vd-activa { outline-color: var(--vd-primario); opacity: 1; }
.vd-lb-tira img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- formulario ---------- */
.vd-sec { border: 1px solid var(--vd-borde); border-radius: 12px; overflow: hidden; }
.vd-sec-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--vd-superficie-2); border-bottom: 1px solid var(--vd-borde-2); }
.vd-sec-num { width: 26px; height: 26px; border-radius: 7px; background: var(--vd-primario-suave); color: var(--vd-primario); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.vd-sec-head b { font-size: 14px; color: var(--vd-texto-1); }
.vd-sec-head small { margin-left: auto; font-size: 13px; color: var(--vd-texto-3); }
.vd-preg { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 8px 24px; padding: 16px 20px; border-top: 1px solid var(--vd-borde-2); }
.vd-preg:first-of-type { border-top: none; }
.vd-preg--nivel2 { padding-left: 44px; background: var(--vd-superficie-3); }
@media (max-width: 767px) { .vd-preg { grid-template-columns: 1fr; } }
.vd-preg-label { font-size: 14px; font-weight: 600; color: var(--vd-texto-1); }
.vd-preg-tipo { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--vd-texto-3); }
.vd-valor { font-size: 14px; color: var(--vd-texto-1); line-height: 1.45; word-break: break-word; }
.vd-opcion { height: 28px; padding: 0 10px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; border: 1px solid var(--vd-borde); color: var(--vd-texto-4); background: var(--vd-superficie); }
.vd-opcion--elegida { background: var(--vd-primario-suave); color: var(--vd-texto-1); border-color: var(--vd-primario-borde); font-weight: 600; }
.vd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.vd-thumb { width: 132px; height: 96px; border-radius: 9px; border: 1px solid var(--vd-borde); overflow: hidden; position: relative; padding: 0; cursor: pointer; background: var(--vd-superficie-2); }
.vd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-thumb span { position: absolute; top: 6px; right: 6px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(15, 23, 42, .6); padding: 1px 6px; border-radius: 5px; }
.vd-archivo { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--vd-borde); font-size: 13px; color: var(--vd-texto-2); text-decoration: none; }

/* ---------- línea de tiempo ---------- */
.vd-dia { font-size: 12px; font-weight: 700; color: var(--vd-texto-3); letter-spacing: .06em; padding: 4px 0 10px; }
.vd-ev { display: grid; grid-template-columns: 76px 32px minmax(0, 1fr); gap: 0 14px; }
.vd-ev-hora { font-size: 13px; color: var(--vd-texto-3); font-variant-numeric: tabular-nums; padding-top: 6px; text-align: right; }
.vd-ev-eje { display: flex; flex-direction: column; align-items: center; }
.vd-ev-icono { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.vd-ev-eje::after { content: ""; flex: 1; width: 2px; background: var(--vd-borde-2); min-height: 12px; }
.vd-ev-cuerpo { padding: 5px 0 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vd-ev-cuerpo b { font-size: 14px; font-weight: 600; color: var(--vd-texto-1); }
.vd-ev-cuerpo p { margin: 0; font-size: 14px; color: var(--vd-texto-2); line-height: 1.45; }
.vd-ev-cuerpo small { font-size: 12px; color: var(--vd-texto-4); font-variant-numeric: tabular-nums; }
.vd-ev-veces { font-size: 12px; font-weight: 700; color: var(--vd-texto-2); background: var(--vd-superficie-2); border-radius: 5px; padding: 1px 7px; margin-left: 8px; }

/* ---------- modal ---------- */
.vd-modal-velo { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1050; }
.vd-modal { width: 100%; max-width: 680px; background: var(--vd-superficie); border-radius: 16px; box-shadow: 0 24px 64px rgba(15, 23, 42, .25); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 48px); color: var(--vd-texto-2); }
.vd-modal-head { padding: 22px 24px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vd-modal-head b { font-size: 16px; font-weight: 700; color: var(--vd-texto-1); }
.vd-modal-body { padding: 0 24px 20px; display: flex; flex-direction: column; gap: 18px; overflow: auto; }
.vd-modal-foot { padding: 14px 24px; border-top: 1px solid var(--vd-borde-2); background: var(--vd-superficie-3); display: flex; justify-content: flex-end; gap: 10px; }
.vd-contexto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--vd-borde); border-radius: 10px; background: var(--vd-superficie-3); }
.vd-contexto > div { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--vd-borde-2); }
.vd-contexto > div:last-child { border-right: none; }
.vd-contexto span { font-size: 12px; color: var(--vd-texto-3); }
.vd-contexto b { font-size: 14px; font-weight: 600; }
.vd-opciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .vd-opciones, .vd-contexto { grid-template-columns: 1fr; } .vd-contexto > div { border-right: none; border-bottom: 1px solid var(--vd-borde-2); } }
.vd-opc { text-align: left; padding: 16px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; background: var(--vd-superficie); border: 1.5px solid var(--vd-borde); text-transform: none; color: var(--vd-texto-2); }
.vd-opc b { font-size: 14px; color: var(--vd-texto-1); }
.vd-opc span { font-size: 13px; color: var(--vd-texto-3); line-height: 1.4; }
.vd-opc-icono { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.vd-opc--elegida.vd-tono-ok { border-color: var(--vd-ok-dot); box-shadow: 0 0 0 3px var(--vd-ok-bg); }
.vd-opc--elegida.vd-tono-err { border-color: var(--vd-err-dot); box-shadow: 0 0 0 3px var(--vd-err-bg); }
.vd-opc--elegida.vd-tono-warn { border-color: var(--vd-warn-dot); box-shadow: 0 0 0 3px var(--vd-warn-bg); }
.vd-opc.vd-tono-ok, .vd-opc.vd-tono-err, .vd-opc.vd-tono-warn { background: var(--vd-superficie); }
.vd-opc--elegida.vd-tono-ok { background: var(--vd-ok-bg); } .vd-opc--elegida.vd-tono-err { background: var(--vd-err-bg); } .vd-opc--elegida.vd-tono-warn { background: var(--vd-warn-bg); }
.vd-textarea { width: 100%; resize: vertical; border: 1px solid var(--vd-borde-fuerte); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--vd-texto-1); background: var(--vd-superficie); }
.vd-textarea:focus { outline: none; border-color: var(--vd-primario); box-shadow: 0 0 0 3px var(--vd-primario-suave); }
.vd-error { font-size: 13px; color: var(--vd-err); }
.vd-mono { font-family: var(--vd-mono); }
