/* ÓNIX · Documentos Vivos: estilos propios sobre servicio-vivo.css.
   Solo transform/opacity en movimiento; todo completo en reposo sin JS o con movimiento reducido. */

/* ── Tipos de archivo (insignias, no logotipos) ─────────────── */
.ft { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 20px; padding: 0 .4rem; border-radius: 5px; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1; border: 1px solid transparent; white-space: nowrap; justify-self: start; }
.ft--pdf { color: #A33232; background: #FDF1F1; border-color: #F3D9D9; }
.ft--docx { color: #2F5A92; background: #EEF3FB; border-color: #D8E3F3; }
.ft--mail { color: var(--accent-ink); background: var(--accent-wash); border-color: var(--accent-line); }
.ft--scan { color: #8A5A16; background: var(--estado-rev-wash); border-color: #F1E1CB; }

/* Píldoras de dominio */
.dpill { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 500; padding: .2rem .55rem; border-radius: 999px; background: var(--accent-wash); color: var(--accent-ink); white-space: nowrap; }
.dpill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dpill--op { background: #EEF3FB; color: #2F5A92; }
.dpill--pe { background: var(--estado-ok-wash); color: var(--estado-ok); }
.dpill--cl { background: var(--estado-rev-wash); color: #8A5A16; }

/* Cita de fuente */
.cite { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .6rem .3rem .3rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .75rem; font-weight: 500; color: var(--ink); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cite .ft { height: 18px; font-size: .58rem; }

/* ── 1 · Hero: documentos que vuelan a una respuesta citada ── */
.dvh { position: relative; width: 100%; container-type: inline-size; aspect-ratio: 1 / 1.04; }
.dvh__halo { position: absolute; left: 8%; right: 8%; top: 48%; bottom: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,58,237,.14), rgba(124,58,237,0)); filter: blur(10px); }
.dvh-doc { position: absolute; left: var(--x); top: var(--y); width: 40cqw; display: flex; flex-direction: column; gap: 1.5cqw; padding: 3cqw 3.2cqw 3.4cqw; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(38,38,44,.05), 0 24px 40px -26px rgba(38,38,44,.35); transform: rotate(var(--r)); }
.dvh-doc__top { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.dvh-doc__top em { font-style: normal; font-family: var(--mono); font-size: max(10px, 2.3cqw); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dvh-doc strong { font-size: max(12px, 3.3cqw); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.dvh-doc i { display: block; height: 1.5cqw; min-height: 5px; border-radius: 4px; background: var(--paper-2); }
.dvh-doc i.s { width: 62%; }
.dvh-doc i.hl { background: var(--accent-line); }
.dvh-doc--scan { background: #FBF9F4; }
.dvh-doc--scan i { background: #ECE7DB; }
.dvh-sign { position: absolute; right: 3cqw; bottom: 1.6cqw; width: 15cqw; height: auto; color: #3D5A80; opacity: .7; }

.dvh-ans { position: absolute; left: 3%; right: 3%; top: 55cqw; display: flex; flex-direction: column; gap: 2.2cqw; padding: 3.6cqw 4cqw 4cqw; border-radius: 20px; background: #fff; border: 1px solid var(--accent-line); box-shadow: 0 1px 2px rgba(38,38,44,.05), 0 40px 70px -36px rgba(76,29,149,.38); }
.dvh-ans__q { align-self: flex-end; max-width: 88%; padding: .55rem .8rem; border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--on-dark); font-size: max(12px, 3cqw); line-height: 1.35; }
.dvh-ans__body { display: grid; }
.dvh-ans__body > * { grid-area: 1 / 1; }
.dvh-ans__a { font-size: max(13px, 3.4cqw); line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.dvh-typing { display: none; align-self: start; gap: 4px; padding: .6rem .75rem; border-radius: 12px; background: var(--paper-2); width: max-content; }
.dvh-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.dvh-ans__src { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 900px) { .dvh { max-width: 460px; margin-inline: auto; } }

@media (prefers-reduced-motion: no-preference) {
  .dvh-doc { animation: dvh-fly 8s var(--ease) infinite both; animation-delay: var(--d); }
  .dvh-typing { display: inline-flex; animation: dvh-wait 8s linear infinite both; }
  .dvh-typing i { animation: sv-dot 1.2s ease-in-out infinite; }
  .dvh-typing i:nth-child(2) { animation-delay: .15s; } .dvh-typing i:nth-child(3) { animation-delay: .3s; }
  .dvh-ans__a, .dvh-ans__src .cite { animation: dvh-show 8s var(--ease) infinite both; }
  .dvh-ans__src .cite:nth-child(1) { animation-delay: .25s; }
  .dvh-ans__src .cite:nth-child(2) { animation-delay: .5s; }
  .dvh-ans { animation: dvh-glow 8s var(--ease) infinite both; }
  @keyframes dvh-fly {
    0%, 4% { opacity: 1; transform: translate(0, 0) rotate(var(--r)); }
    30% { opacity: 1; transform: translate(0, -5px) rotate(var(--r)); }
    46% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(0deg) scale(.3); }
    70% { opacity: 0; transform: translate(0, 16px) rotate(var(--r)); }
    80%, 100% { opacity: 1; transform: translate(0, 0) rotate(var(--r)); }
  }
  @keyframes dvh-wait { 0% { opacity: 0; } 4%, 44% { opacity: 1; } 48%, 100% { opacity: 0; } }
  @keyframes dvh-show {
    0%, 47% { opacity: 0; transform: translateY(6px); }
    54%, 95% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: none; }
  }
  @keyframes dvh-glow {
    0%, 45% { transform: none; }
    50% { transform: scale(1.015); }
    58%, 100% { transform: none; }
  }
  @keyframes sv-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
}

/* ── 2 · El problema: archivos regados ─────────────────────── */
.dv-mess { position: relative; min-height: 540px; }
.mfile { position: absolute; left: var(--x); top: var(--y); width: min(300px, 76%); display: flex; flex-direction: column; gap: .55rem; padding: .9rem 1rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sombra); transform: rotate(var(--r, 0deg)); }
.mfile__top { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.mfile__top strong { font-size: .875rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfile p { font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.mfile__state { align-self: flex-start; font-size: .72rem; font-family: var(--mono); letter-spacing: .04em; padding: .2rem .5rem; border-radius: 999px; background: var(--estado-alto-wash); color: var(--estado-alto); }
.mfile__state--wait { background: var(--estado-rev-wash); color: var(--estado-rev); }
.mfile--scan { background: #FBF9F4; }
.mfile--scan p { color: var(--muted); }
.mfile--note { width: min(250px, 66%); background: #FFF8DB; border-color: #F1E6B8; }
.mfile--note p { font-size: 1rem; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
@media (max-width: 900px) {
  .dv-mess { min-height: 0; display: flex; flex-direction: column; gap: .9rem; }
  .mfile, .mfile--note { position: relative; left: auto; top: auto; width: 100%; transform: none; }
  .mfile:nth-child(n+4) { display: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
    .mfile { animation: dv-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes dv-drift { from { translate: 0 calc(var(--p, 1) * 70px); } to { translate: 0 calc(var(--p, 1) * -70px); } }
  }
}

/* ── 3 · Escenas del panel ─────────────────────────────────── */
.scene .inrow { grid-template-columns: 4.2rem minmax(0, 1fr) auto; }
.scene .inrow .ft { justify-self: start; }
.dv-merge .ft { height: 18px; font-size: .56rem; }
.dv-merge b { margin-left: auto; }
.dv-merge__t { display: none; }

/* Escena 2: dominios */
.dv-doms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.dv-dom { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .85rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; min-height: 10.5rem; }
.dv-dom b { font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }
.dv-dom small { font-size: .75rem; color: var(--muted); margin-top: -.25rem; }
.dv-dom small + .dv-file { margin-top: auto; }
.dv-dom::before { content: ""; width: 30px; height: 22px; margin-bottom: .2rem; border-radius: 4px 8px 6px 6px; background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 46% 5px no-repeat, var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-line); }
.dv-dom:nth-child(2)::before { background: linear-gradient(#D8E3F3, #D8E3F3) 0 0 / 46% 5px no-repeat, #EEF3FB; box-shadow: inset 0 0 0 1px #D8E3F3; }
.dv-dom:nth-child(3)::before { background: linear-gradient(#CDE8DC, #CDE8DC) 0 0 / 46% 5px no-repeat, var(--estado-ok-wash); box-shadow: inset 0 0 0 1px #CDE8DC; }
.dv-dom:nth-child(4)::before { background: linear-gradient(#F1E1CB, #F1E1CB) 0 0 / 46% 5px no-repeat, var(--estado-rev-wash); box-shadow: inset 0 0 0 1px #F1E1CB; }
.dv-dom--on { border-color: var(--accent-line); background: #FDFBFF; }
.dv-file { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; padding: .3rem .55rem .3rem .3rem; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: .8125rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 2px rgba(38,38,44,.04); }
.dv-file .ft { height: 18px; font-size: .56rem; }
.dv-note { display: flex; gap: .6rem; align-items: flex-start; margin-top: auto; padding: .75rem .85rem; border-radius: 12px; background: var(--paper-2); font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }
.dv-note--ac { background: var(--accent-wash); color: var(--ink); }
.dv-note svg { flex: none; color: var(--accent-ink); margin-top: .1rem; }

/* Escena 3: entidad conectada */
.dv-ent { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.dv-ent__head { display: flex; align-items: center; gap: .75rem; }
.dv-ent__head strong { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -.015em; }
.dv-ent__head small { display: block; font-size: .8125rem; color: var(--muted); }
.dv-ent__av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 600; box-shadow: 0 0 0 6px rgba(124,58,237,.12); }
.dv-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.dv-links li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.dv-links li:last-child { border-bottom: 0; padding-bottom: 0; }
.dv-links strong { display: block; font-size: .875rem; font-weight: 600; }
.dv-links small { display: block; font-size: .75rem; color: var(--muted); }
.dv-links li.is-new strong::after { content: "Conectado"; margin-left: .5rem; font-size: .66rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; background: var(--accent); color: #fff; vertical-align: .1em; }

/* Escena 4: ficha consolidada */
.dv-card { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.dv-card .dv-ent__head { padding: 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.dv-sheet { display: flex; flex-direction: column; }
.dv-sheet > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) auto; gap: .75rem; align-items: center; padding: .95rem 1rem; border-bottom: 1px solid var(--line); }
.dv-sheet > div:last-child { border-bottom: 0; }
.dv-sheet dt { font-size: .68rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dv-sheet dd { font-size: .9rem; font-weight: 500; }
.src { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .7rem; color: var(--ink-2); white-space: nowrap; }
.src .ft { height: 18px; font-size: .56rem; }

/* Escena 5: pregunta y respuesta */
.dv-ask { gap: .8rem; padding: 1.1rem; }
.scene--5 .guard { margin-top: auto; }
.dv-reply.dv-reply--none { background: var(--estado-rev-wash); border-color: #F1E1CB; box-shadow: none; }
.dv-reply.dv-reply--none p { display: flex; gap: .5rem; align-items: flex-start; }
.dv-reply.dv-reply--none svg { flex: none; color: var(--estado-rev); margin-top: .15rem; }
.dv-reply { align-self: flex-start; max-width: 94%; display: flex; flex-direction: column; gap: .6rem; padding: .85rem .95rem; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 24px -20px rgba(38,38,44,.3); }
.dv-reply p { font-size: .9rem; line-height: 1.5; }
.dv-reply__path { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .72rem; color: var(--muted); font-family: var(--mono); }
.dv-reply__src { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Escalonado de entrada para contenedores propios */
@media (prefers-reduced-motion: no-preference) {
  .sv-js .dv-doms > *, .sv-js .dv-links > *, .sv-js .dv-sheet > *, .sv-js .dv-reply > * { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .sv-js .panel[data-step="2"] .scene--2 .dv-doms > *,
  .sv-js .panel[data-step="3"] .scene--3 .dv-links > *,
  .sv-js .panel[data-step="4"] .scene--4 .dv-sheet > *,
  .sv-js .panel[data-step="5"] .scene--5 .dv-reply > * { opacity: 1; transform: none; }
  .sv-js .dv-doms > *:nth-child(2), .sv-js .dv-links > *:nth-child(2), .sv-js .dv-sheet > *:nth-child(2) { transition-delay: .3s; }
  .sv-js .dv-doms > *:nth-child(3), .sv-js .dv-links > *:nth-child(3), .sv-js .dv-sheet > *:nth-child(3) { transition-delay: .55s; }
  .sv-js .dv-doms > *:nth-child(4), .sv-js .dv-sheet > *:nth-child(4) { transition-delay: .8s; }
  .sv-js .panel[data-step="5"] .scene--5 .bubbles > * { opacity: 1; transform: none; }
  .sv-js .scene--5 .bubbles > *:nth-child(2) { transition-delay: .35s; }
  .sv-js .scene--5 .bubbles > *:nth-child(3) { transition-delay: .9s; }
  .sv-js .scene--5 .bubbles > *:nth-child(4) { transition-delay: 1.2s; }
  .sv-js .dv-reply > *:nth-child(1) { transition-delay: .5s; }
  .sv-js .dv-reply > *:nth-child(2) { transition-delay: .75s; }
  .sv-js .dv-reply > *:nth-child(3) { transition-delay: 1s; }
  .sv-js .scene--3 > .dv-note, .sv-js .scene--4 > .dv-note { transition-delay: 1.1s; }
  .sv-js .scene--5 > .guard { transition-delay: 1.3s; }
  .sv-js .panel[data-step="3"] .dv-links li.is-new { animation: dv-flash 1.6s var(--ease) .7s both; }
  @keyframes dv-flash { 0% { background: transparent; } 35% { background: var(--accent-wash); } 100% { background: transparent; } }
}

/* Móvil: panel compacto */
@media (max-width: 900px) {
  .scene .inrow { grid-template-columns: 4.4rem minmax(0, 1fr); padding: .55rem .7rem; }
  .dv-merge .ft { display: none; }
  .dv-merge__t { display: inline; }
  .dv-card .dv-ent__head { display: none !important; }
  .dv-doms { grid-template-columns: 1fr; grid-auto-rows: auto; flex: none; gap: .45rem; }
  .dv-dom { min-height: 0; padding: .6rem .7rem; flex-direction: row; align-items: center; justify-content: space-between; gap: .6rem; }
  .dv-dom small + .dv-file { margin-top: 0; }
  .dv-dom::before { display: none; }
  .dv-card .dv-ent__head { padding: .6rem .75rem; }
  .dv-card .dv-ent__head small { display: none; }
  .dv-card .dv-ent__av { width: 32px; height: 32px; font-size: .7rem; box-shadow: none; }
  .dv-dom small { display: none; }
  .dv-dom .dv-file:nth-of-type(2) { display: none; }
  .scene--2 .dv-note { display: none; }
  .dv-ent { padding: .8rem; gap: .5rem; }
  .dv-links li { grid-template-columns: 4.4rem minmax(0, 1fr); padding: .45rem 0; }
  .dv-links .dpill { display: none; }
  .dv-links small { display: none; }
  .dv-sheet > div { grid-template-columns: minmax(0, 1fr) auto; padding: .55rem .75rem; gap: .15rem .5rem; }
  .dv-sheet dt { grid-column: 1 / -1; }
  .scene--4 .dv-note { display: none; }
  .dv-ask { padding: .75rem; gap: .5rem; }
  .dv-reply { padding: .7rem .8rem; max-width: 100%; }
  .dv-reply p { font-size: .84rem; }
  .dv-reply__src .cite:nth-child(n+2) { display: none; }
  .scene--5 .guard { display: none; }
  .dv-ask > :nth-child(n+3) { display: none; }
}

/* ── 4 · Pruébalo ─────────────────────────────────────────── */
.dvq-picks { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.dvq-pick { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 22px; gap: .75rem; align-items: center; width: 100%; min-height: 64px; padding: .8rem .25rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 1rem; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); border-radius: 0; }
.dvq-pick::after { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.dvq-pick:hover { background: rgba(255,255,255,.6); }
.dvq-pick__n { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.dvq-pick[aria-pressed="true"] { font-weight: 600; }
.dvq-pick[aria-pressed="true"] .dvq-pick__n { color: var(--accent-ink); }
.dvq-pick[aria-pressed="true"]::after { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fff; }
.dvq-pick:focus-visible { outline-offset: 2px; }

.dvq { position: relative; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: 0 40px 80px -48px rgba(38,38,44,.3); overflow: hidden; }
.dvq__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.dvq__bar strong { font-size: .9375rem; }
.dvq__bar > span:last-child { margin-left: auto; font-size: .8125rem; color: var(--muted); }
.dvq__body { padding: clamp(1rem, 2.4vw, 1.75rem); display: flex; flex-direction: column; gap: 2rem; }
.dvq__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .85rem 1.1rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }

.dvq-a { display: flex; flex-direction: column; gap: 1rem; }
.dvq-a + .dvq-a { padding-top: 2rem; border-top: 1px solid var(--line); }
.dvq-a__q { align-self: flex-end; max-width: 85%; padding: .65rem .95rem; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--on-dark); font-size: .9875rem; line-height: 1.4; }
.dvq-trace { display: flex; flex-direction: column; gap: .5rem; padding: .85rem 1rem; border-radius: 14px; background: var(--paper-2); }
.dvq-trace li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .65rem; align-items: start; font-size: .8125rem; color: var(--ink-2); }
.dvq-trace b { font-weight: 600; color: var(--ink); }
.dvq-dot { width: 18px; height: 18px; border-radius: 50%; margin-top: .05rem; background: var(--estado-ok); box-shadow: inset 0 0 0 5px var(--estado-ok-wash); }
.dvq-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.chip { font-family: var(--mono); font-size: .7rem; padding: .2rem .5rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.dvq-r { display: flex; flex-direction: column; gap: .85rem; padding: 1rem 1.1rem; border-radius: 16px 16px 16px 4px; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 30px -24px rgba(38,38,44,.35); }
.dvq-r > p { font-size: 1.0625rem; line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }
.dvq-src { display: flex; flex-direction: column; gap: .4rem; }
.dvq-src li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .6rem; align-items: center; padding: .55rem .7rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.dvq-src .ft { justify-self: start; }
.dvq-src strong { display: block; font-size: .875rem; font-weight: 600; }
.dvq-src small { display: block; font-size: .75rem; color: var(--muted); }
.dvq-a--none .dvq-dot { background: var(--estado-rev); box-shadow: inset 0 0 0 5px var(--estado-rev-wash); }
.dvq-a--none .dvq-trace li:first-child .dvq-dot { background: var(--estado-ok); box-shadow: inset 0 0 0 5px var(--estado-ok-wash); }
.dvq-a--none .dvq-r { background: var(--estado-rev-wash); border-color: #F1E1CB; }
.dvq-a--none .dvq-r > p:first-child { display: flex; gap: .6rem; align-items: flex-start; }
.dvq-a--none .dvq-r svg { flex: none; color: var(--estado-rev); margin-top: .2rem; }
.dvq-r__hint { font-size: .875rem !important; color: var(--ink-2) !important; }

/* Con JS: una respuesta a la vez, con su rastro paso a paso */
.dvq-js .dvq-a { display: none; }
.dvq-js .dvq-a.is-on { display: flex; }
.dvq-js .dvq-a + .dvq-a { padding-top: 0; border-top: 0; }
.dvq-js .dvq__body { min-height: 30rem; }
@media (max-width: 600px) { .dvq-js .dvq__body { min-height: 32rem; } }
@media (prefers-reduced-motion: no-preference) {
  .dvq-js .dvq-a__q, .dvq-js .dvq-trace li, .dvq-js .dvq-r { transition: opacity .45s var(--ease), transform .55s var(--ease); }
  .dvq-js .is-run .dvq-a__q, .dvq-js .is-run .dvq-trace li, .dvq-js .is-run .dvq-r { opacity: 0; transform: translateY(8px); }
  .dvq-js .is-run .dvq-a__q.on, .dvq-js .is-run .dvq-trace li.on, .dvq-js .is-run .dvq-r.on { opacity: 1; transform: none; }
  .dvq-js .is-run .dvq-trace li.on.busy .dvq-dot { background: var(--accent); box-shadow: inset 0 0 0 5px var(--accent-wash); animation: dvq-pulse 1s ease-in-out infinite; }
  @keyframes dvq-pulse { 50% { transform: scale(.82); } }
}

/* ── 5 · Micro-visuales del bento ─────────────────────────── */
.v-scan { display: flex; align-items: center; gap: 1rem; }
.v-scan__page { position: relative; display: flex; flex-direction: column; gap: .45rem; width: 9.5rem; padding: .85rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sombra); }
.v-scan__page i { display: block; height: 7px; border-radius: 4px; background: var(--paper-2); }
.v-scan__page i.s { width: 60%; }
.v-scan__page i.hl { background: var(--accent-line); }
.v-scan__page .ft { align-self: flex-start; margin-bottom: .2rem; }
.v-scan__page--old { background: #F3EFE4; transform: rotate(-4deg); filter: blur(.4px); box-shadow: none; }
.v-scan__page--old i { background: #DDD6C6; }
.v-arrow { color: var(--muted); flex: none; }
.v-doms { display: flex; flex-wrap: wrap; gap: .45rem; }
.v-doms .dpill { font-size: .8125rem; padding: .35rem .7rem; }
.v-keys { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.v-keys span { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .7rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .8125rem; }
.v-keys em { font-style: normal; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.v-perm { display: flex; flex-direction: column; gap: .45rem; }
.v-perm > span { display: flex; align-items: center; justify-content: space-between; padding: .5rem .7rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); max-width: 14rem; }
.v-perm .v-ok { color: var(--estado-ok); }
.v-perm .v-lock { color: var(--muted); }
.v-ver { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.v-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.v-seg span { font-size: .8125rem; font-weight: 500; padding: .4rem .9rem; border-radius: 999px; color: var(--muted); }
.v-seg span.on { background: var(--ink); color: var(--on-dark); }
.v-ver__line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.v-ver__old { font-size: .8125rem; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(113,110,120,.5); }
.v-ver__new { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; background: var(--estado-ok-wash); color: var(--estado-ok); }
.v-ver__new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 600px) { .v-scan__page { width: 7.5rem; } }
