:root {
  color-scheme: light;
  /* Hoja de levantamiento: una columna de 680px con una ficha por pregunta,
     avance arriba y navegación fija abajo. Ámbar solo para avance y marcas «Clave». */
  --bg: #EDF0F3;
  --sup: #FFFFFF;
  --campo: #F8FAFB;
  --tinta: #111A24;
  --tinta-2: #344150;
  --suave: #5F6B7A;
  --tenue: #8C97A4;
  --linea: #DAE0E6;
  --linea-2: #C2CAD3;
  --relleno: #E4E8ED;
  --sol: #F2A007;
  --sol-suave: #FFF1D1;
  --sol-tinta: #7A4C00;
  --ok: #1F7A4D;
  --ok-suave: #DDF2E6;
  --error: #B42318;
  --radio: 16px;
  --sombra: 0 1px 2px rgba(17, 26, 36, .05), 0 8px 24px -14px rgba(17, 26, 36, .18);
  --f-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
  --lado-izq: max(16px, env(safe-area-inset-left, 0px));
  --lado-der: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tinta);
  font: 16px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
input, textarea { font: inherit; color: inherit; }
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

/* ---------- Barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(237, 240, 243, .9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.barra-in {
  max-width: 680px; margin: 0 auto; padding-block: 10px; padding-left: var(--lado-izq); padding-right: var(--lado-der);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.marca { display: flex; align-items: baseline; gap: 8px; background: none; border: 0; padding: 0; text-align: left; }
.marca-t { font-weight: 800; font-stretch: 118%; letter-spacing: .03em; font-size: 15px; }
.marca-t em { font-style: normal; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--suave); }
.btn-sec {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--linea-2); background: var(--sup);
  border-radius: 999px; padding: 7px 12px 7px 14px; font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.btn-sec svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.progreso { height: 3px; background: var(--linea); }
.progreso i { display: block; height: 100%; width: 0; background: var(--sol); transition: width .35s ease; }

/* ---------- Contenido ---------- */
.app {
  max-width: 680px; margin: 0 auto; outline: none;
  padding-top: 8px; padding-bottom: calc(120px + var(--seguro-abajo));
  padding-left: var(--lado-izq); padding-right: var(--lado-der);
}

.sec-num, .eti {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--suave); margin: 0 0 8px;
}
.sec-cab { padding: 26px 2px 18px; }
.sec-cab h1 {
  font-size: clamp(28px, 7.4vw, 40px); line-height: 1.04; font-weight: 800; font-stretch: 112%;
  letter-spacing: -.015em; margin: 0 0 10px;
}
.sec-cab p:not(.sec-num) { margin: 0; color: var(--tinta-2); font-size: 16px; max-width: 56ch; }

.subt {
  display: flex; align-items: center; gap: 12px; margin: 28px 2px 12px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-2);
}
.subt::after { content: ''; flex: 1; height: 1px; background: var(--linea-2); }
.sec-cab + .subt { margin-top: 4px; }

.q {
  background: var(--sup); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 18px 16px; margin: 0 0 12px; box-shadow: var(--sombra);
  scroll-margin-top: 80px; transition: border-color .2s;
}
.q.falta { border-color: var(--error); }
.q-tit { display: block; font-size: 17px; line-height: 1.35; font-weight: 700; margin: 0 0 4px; }
.q-tit .req { color: var(--error); margin-left: 2px; }
.clave {
  display: inline-block; vertical-align: 2px; margin-left: 2px;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
  color: var(--sol-tinta); background: var(--sol-suave); border-radius: 6px; padding: 1px 6px;
}
.q-ayuda { margin: 0 0 4px; color: var(--suave); font-size: 14.5px; }
.q-cuerpo { margin-top: 12px; }
.q-error { color: var(--error); font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.contador { font-size: 13px; color: var(--suave); font-weight: 600; margin: 10px 0 0; }

/* Campos de texto */
.campo {
  width: 100%; border: 1px solid var(--linea-2); background: var(--campo); border-radius: 12px;
  padding: 13px 14px; font-size: 16px; line-height: 1.4; transition: border-color .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.campo::placeholder { color: var(--tenue); }
.campo:focus { outline: none; border-color: var(--tinta); background: var(--sup); }
textarea.campo { min-height: 104px; resize: none; overflow: hidden; }
.tres { display: grid; gap: 8px; }
.tres label { display: flex; align-items: center; gap: 10px; }
.tres b { width: 26px; height: 26px; border-radius: 50%; background: var(--relleno); display: grid; place-items: center; font-size: 13px; flex: none; font-family: var(--f-mono); }
.otro-campo { margin-top: 10px; }

/* Varios datos cortos */
.campos { display: grid; gap: 12px; }
.cmp { display: grid; gap: 6px; min-width: 0; }
.cmp span { font-size: 14px; font-weight: 600; color: var(--tinta-2); line-height: 1.3; }
.cmp .campo { padding: 11px 13px; }
.campos-num { grid-template-columns: 1fr 1fr; align-items: end; }

/* Chips (opciones cortas) */
.ops-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.op {
  display: inline-flex; align-items: center; gap: 8px; text-align: left;
  border: 1px solid var(--linea-2); background: var(--sup); border-radius: 999px;
  padding: 10px 15px; min-height: 44px; font-size: 15px; font-weight: 600; line-height: 1.25;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.op:active { transform: scale(.97); }
.op[aria-checked="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.op[disabled] { opacity: .38; cursor: not-allowed; }
.op .ico { width: 16px; height: 16px; flex: none; }
.op .ico path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.op:not([aria-checked="true"]) .ico { display: none; }
.op .punto { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(17, 26, 36, .18); flex: none; }

/* Lista (opciones largas) */
.ops-lista { display: grid; gap: 8px; }
.ops-lista .op { border-radius: 14px; width: 100%; padding: 12px 14px; }
.ops-lista .op::before {
  content: ''; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--linea-2); background: var(--sup);
}
.ops-lista .op[role="radio"]::before { border-radius: 50%; }
.ops-lista .op[role="checkbox"]::before { border-radius: 6px; }
.ops-lista .op[aria-checked="true"]::before { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 4px var(--tinta); }
.ops-lista .op .ico { display: none; }

/* Tarjetas */
.tarjetas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tarjetas.texto { grid-template-columns: 1fr; }
.tarjeta {
  position: relative; display: flex; flex-direction: column; text-align: left; gap: 2px;
  border: 1px solid var(--linea-2); background: var(--sup); border-radius: 14px; padding: 10px;
  transition: border-color .15s, box-shadow .15s, transform .1s; min-width: 0;
}
.tarjeta:active { transform: scale(.985); }
.tarjeta[aria-checked="true"] { border-color: var(--tinta); box-shadow: 0 0 0 1.5px var(--tinta); }
.tarjeta[disabled] { opacity: .4; cursor: not-allowed; }
.tarjeta .vis {
  height: 92px; border-radius: 10px; background: var(--relleno); display: grid; place-items: center;
  margin-bottom: 8px; overflow: hidden; color: var(--tinta);
}
.tarjeta .vis svg { width: 100%; height: 100%; }
.tarjeta .t-tit { font-weight: 700; font-size: 15px; line-height: 1.25; padding-right: 22px; }
.tarjeta .t-desc { font-size: 13.5px; color: var(--suave); line-height: 1.35; }
.tarjetas.texto .tarjeta { padding: 14px 44px 14px 14px; }
.tarjetas.texto .t-tit { font-size: 16px; }
.tarjetas.texto .t-desc { font-size: 14.5px; }
.marca-check {
  position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--linea-2); background: var(--sup); display: grid; place-items: center;
}
.tarjetas:not(.texto) .marca-check { top: 16px; right: 16px; }
.marca-check svg { width: 14px; height: 14px; opacity: 0; }
.marca-check path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta[aria-checked="true"] .marca-check { background: var(--tinta); border-color: var(--tinta); }
.tarjeta[aria-checked="true"] .marca-check svg { opacity: 1; }
.vis.fuente span { font-size: calc(30px * var(--z, 1)); line-height: 1; color: var(--tinta); letter-spacing: .02em; white-space: nowrap; }
.vis.paleta { display: flex; padding: 0; background: none; border: 1px solid var(--linea); }
.vis.paleta i { flex: 1; height: 100%; }
.vis.paleta i:first-child { flex: 1.6; }
.vis.paleta.vacia { display: grid; background: repeating-linear-gradient(135deg, var(--campo) 0 10px, var(--relleno) 10px 20px); }
.vis.paleta.vacia span { font-size: 26px; font-weight: 800; color: var(--suave); }

/* Escalas */
.escalas { display: grid; gap: 18px; }
.escala-etq { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--tinta-2); margin-bottom: 8px; }
.escala-etq span:last-child { text-align: right; }
.escala-pts { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.escala-pts::before { content: ''; position: absolute; left: 22px; right: 22px; top: 50%; height: 2px; background: var(--linea); transform: translateY(-50%); }
.pt {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; padding: 0;
  display: grid; place-items: center;
}
.pt i { width: 22px; height: 22px; border-radius: 50%; background: var(--sup); border: 2px solid var(--linea-2); transition: all .15s; }
.pt:nth-child(1) i, .pt:nth-child(5) i { width: 28px; height: 28px; }
.pt:nth-child(3) i { width: 16px; height: 16px; }
.pt[aria-checked="true"] i { background: var(--tinta); border-color: var(--tinta); box-shadow: 0 0 0 4px rgba(17, 26, 36, .12); }

/* Prioridades */
.prio { display: grid; }
.prio-fila { padding: 12px 0; border-top: 1px solid var(--linea); }
.prio-fila:first-child { border-top: 0; padding-top: 2px; }
.prio-txt { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--relleno); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button {
  border: 0; background: none; border-radius: 9px; padding: 8px 4px; min-height: 38px;
  font-size: 13px; font-weight: 700; color: var(--tinta-2); line-height: 1.15;
}
.seg button[aria-checked="true"] { background: var(--sup); color: var(--tinta); box-shadow: 0 1px 3px rgba(17, 26, 36, .14); }
.seg button[aria-checked="true"][data-n="2"] { background: var(--tinta); color: #fff; }

/* Reparto entre dos opciones */
.reparto { --p: 50%; }
.rep-etq { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; color: var(--tinta-2); }
.rep-etq b { font-family: var(--f-mono); font-weight: 600; color: var(--tinta); font-variant-numeric: tabular-nums; }
.reparto.sin .rep-etq b { color: var(--tenue); }
.rep-rango { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; }
.rep-rango:focus { outline: none; }
.rep-rango::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: linear-gradient(to right, var(--sol) 0 var(--p), var(--tinta) var(--p) 100%); }
.rep-rango::-moz-range-track { height: 12px; border-radius: 6px; background: linear-gradient(to right, var(--sol) 0 var(--p), var(--tinta) var(--p) 100%); }
.reparto.sin .rep-rango::-webkit-slider-runnable-track { background: var(--relleno); }
.reparto.sin .rep-rango::-moz-range-track { background: var(--relleno); }
.rep-rango::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -9px; border-radius: 50%;
  background: var(--sup); border: 2px solid var(--tinta); box-shadow: 0 2px 6px rgba(17, 26, 36, .25);
}
.rep-rango::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--sup); border: 2px solid var(--tinta); box-shadow: 0 2px 6px rgba(17, 26, 36, .25); }
.rep-rango:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--tinta); outline-offset: 3px; }
.rep-nota { font-size: 13px; color: var(--suave); margin: 0; }
.rep-nota:empty { display: none; }

/* Fotos y archivos */
.fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.foto { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--relleno); max-width: 100%; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.doc { display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; background: var(--campo); border: 1px solid var(--linea); }
.foto.doc .ext {
  position: absolute; top: 10px; left: 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em;
  background: var(--tinta); color: #fff; border-radius: 5px; padding: 2px 6px;
}
.foto.doc .nom {
  font-size: 12px; font-weight: 600; line-height: 1.25; word-break: break-word; color: var(--tinta-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.foto .quitar {
  position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(17, 26, 36, .78); display: grid; place-items: center; z-index: 1;
}
.foto .quitar svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.foto .estado {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(237, 240, 243, .72);
  font-size: 12px; font-weight: 700; color: var(--tinta);
}
.foto .estado.error { background: rgba(180, 35, 24, .85); color: #fff; padding: 6px; text-align: center; }
.girando { width: 22px; height: 22px; border: 2.5px solid var(--linea-2); border-top-color: var(--tinta); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.agregar-foto {
  aspect-ratio: 1; border: 1.5px dashed var(--linea-2); border-radius: 12px; background: var(--campo);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 6px;
  font-size: 13px; font-weight: 700; color: var(--tinta-2); position: relative; cursor: pointer;
}
.agregar-foto svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.agregar-foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.agregar-foto:focus-within { outline: 2px solid var(--tinta); outline-offset: 2px; }

/* ---------- Pie con navegación ---------- */
.pie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(237, 240, 243, .93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--linea);
}
.pie-in {
  max-width: 680px; margin: 0 auto; padding-top: 10px; padding-bottom: calc(10px + var(--seguro-abajo));
  padding-left: var(--lado-izq); padding-right: var(--lado-der);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.guardado { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--suave); text-align: center; flex: 1; min-width: 0; }
.btn {
  border-radius: 14px; padding: 13px 20px; font-weight: 700; font-size: 16px; min-height: 50px;
  border: 1px solid var(--linea-2); background: var(--sup); transition: transform .1s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn-pri { background: var(--tinta); border-color: var(--tinta); color: #fff; min-width: 132px; }
.btn-pri:disabled { opacity: .6; }
.btn-ancho { width: 100%; }

/* ---------- Portada y final ---------- */
.portada { padding: 40px 2px 0; }
.portada h1 {
  font-size: clamp(34px, 9.6vw, 54px); line-height: 1; font-weight: 800; font-stretch: 115%;
  letter-spacing: -.02em; margin: 0 0 16px;
}
.portada .lead { font-size: 17.5px; color: var(--tinta-2); margin: 0 0 26px; max-width: 46ch; }
.placa { border: 1.5px solid var(--tinta); border-radius: 12px; background: var(--sup); overflow: hidden; margin: 0 0 26px; }
.placa-cab {
  display: flex; justify-content: space-between; gap: 12px; background: var(--tinta); color: #fff;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 9px 14px;
}
.placa-cab span:last-child { color: var(--sol); text-align: right; }
.placa dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.placa dl div { padding: 12px 14px; border-top: 1px solid var(--linea); min-width: 0; }
.placa dl div:nth-child(odd) { border-right: 1px solid var(--linea); }
.placa dl div:nth-child(-n+2) { border-top: 0; }
.placa dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); margin: 0 0 2px; }
.placa dd { margin: 0; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.portada .acciones { display: grid; gap: 10px; }
.enlace { margin-top: 18px; padding: 14px; border: 1px dashed var(--linea-2); border-radius: 14px; }
.enlace p { margin: 0 0 10px; font-size: 14.5px; color: var(--tinta-2); }
.portada .nota { font-size: 13.5px; color: var(--suave); margin: 18px 0 0; text-align: center; }

.final { padding: 48px 2px 0; text-align: center; }
.final .ok {
  width: 72px; height: 72px; border-radius: 50%; background: var(--tinta); margin: 0 auto 24px; display: grid; place-items: center;
}
.final .ok svg { width: 34px; height: 34px; fill: none; stroke: var(--sol); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.final h1 { font-size: clamp(30px, 8vw, 42px); line-height: 1.05; font-stretch: 112%; letter-spacing: -.02em; margin: 0 0 14px; }
.final p { color: var(--tinta-2); font-size: 17px; margin: 0 auto 14px; max-width: 42ch; }
.folio {
  display: inline-block; margin: 8px 0 26px; padding: 14px 22px; border-radius: 14px; background: var(--sup);
  border: 1.5px solid var(--tinta); font-family: var(--f-mono); font-weight: 600; font-size: 22px; letter-spacing: .06em;
}
.folio small { display: block; font-size: 11px; letter-spacing: .1em; color: var(--suave); font-weight: 500; text-transform: uppercase; }
.final .acciones, .final .enlace { max-width: 360px; margin-left: auto; margin-right: auto; }
.final .acciones { display: grid; gap: 10px; }
.final .enlace { text-align: left; }

/* ---------- Hoja de secciones ---------- */
.hoja { position: fixed; inset: 0; z-index: 40; }
.hoja-fondo { position: absolute; inset: 0; background: rgba(17, 26, 36, .42); animation: aparece .2s ease; }
.hoja-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto;
  background: var(--bg); border-radius: 22px 22px 0 0;
  padding-top: 8px; padding-bottom: calc(18px + var(--seguro-abajo)); padding-left: var(--lado-izq); padding-right: var(--lado-der);
  max-width: 680px; margin: 0 auto; animation: sube .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes aparece { from { opacity: 0; } }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; }
.hoja-cab h2 { margin: 0; font-size: 20px; font-stretch: 112%; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea-2); background: var(--sup); display: grid; place-items: center; }
.x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hoja-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hoja-lista button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--linea);
  background: var(--sup); border-radius: 14px; padding: 12px 14px;
}
.hoja-lista .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--relleno); display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 600; font-size: 13px; flex: none;
}
.hoja-lista .lleno .n { background: var(--tinta); color: #fff; }
.hoja-lista .actual { border-color: var(--tinta); }
.hoja-lista .tt { flex: 1; font-weight: 700; min-width: 0; }
.hoja-lista .tt small { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--suave); letter-spacing: .04em; }
.hoja-lista .cc { font-family: var(--f-mono); font-size: 12.5px; color: var(--suave); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Aviso ---------- */
.aviso {
  position: fixed; left: 50%; bottom: calc(86px + var(--seguro-abajo)); transform: translateX(-50%); z-index: 50;
  background: var(--tinta); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  max-width: calc(100% - 32px); overflow-wrap: anywhere; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); animation: aparece .2s ease;
}

@media (min-width: 560px) {
  .q { padding: 22px; }
  .campos { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .tarjetas.texto { grid-template-columns: 1fr 1fr; }
  .tarjetas:not(.texto) { grid-template-columns: repeat(3, 1fr); }
  .tarjetas.tarjetas-arq { grid-template-columns: 1fr 1fr; }
  .tarjetas.tarjetas-fuente { grid-template-columns: repeat(4, 1fr); }
  .fotos { grid-template-columns: repeat(4, 1fr); }
  .prio-fila { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: center; }
  .prio-txt { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
