:root {
  --fondo: #0b1a28;
  --fondo2: #0f2436;
  --tarjeta: #12293d;
  --borde: #22425c;
  --texto: #e8f1f7;
  --tenue: #9db3c4;
  --acento: #4cc3d9;
  --acento-osc: #1d7f93;
  --ok: #3ddc97;
  --pend: #f5b843;
  --mal: #ff6b6b;
  --radio: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #15405a 0%, transparent 60%), var(--fondo);
  color: var(--texto);
  line-height: 1.45;
  min-height: 100vh;
}
button { font: inherit; cursor: pointer; }

.barra {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; max-width: 1180px; margin: 0 auto;
}
.marca { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.insignia {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--acento);
  border: 1px solid var(--acento-osc); border-radius: 999px; padding: 4px 10px;
}

.contenedor { max-width: 1180px; margin: 0 auto; padding: 0 16px 32px; }
.hero { padding: 8px 0 18px; }
.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); }
h1 { margin: 0 0 8px; font-size: clamp(28px, 6vw, 46px); line-height: 1.08; }
h1 em { font-style: normal; color: var(--acento); }
.intro { margin: 0; color: var(--tenue); max-width: 640px; }
h2 { margin: 0 0 4px; font-size: 19px; }
.sub { margin: 0 0 14px; color: var(--tenue); font-size: 13px; }
.centro { text-align: center; margin-top: 10px; }

.rejilla { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .rejilla { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .visor-tarjeta { position: sticky; top: 12px; }
}
.columna { display: grid; gap: 16px; }

.tarjeta {
  background: linear-gradient(180deg, var(--tarjeta), var(--fondo2));
  border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px;
}

.pestanas { display: inline-flex; background: #0a1c2b; border-radius: 999px; padding: 4px; margin-bottom: 10px; }
.pestana {
  border: 0; background: transparent; color: var(--tenue); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.pestana.activa { background: var(--acento); color: #06202a; }

model-viewer {
  width: 100%; height: min(62vh, 520px); min-height: 320px;
  background: linear-gradient(180deg, #1a3a52 0%, #0e2232 100%);
  border-radius: 12px; --poster-color: transparent;
}
.chip-version {
  position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700;
  background: rgba(8, 22, 33, .85); color: var(--texto); padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--borde);
}
.chip-version.corregida { color: var(--ok); border-color: #2a7d5d; }
.boton-ar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 11px 20px; font-weight: 700; color: #06202a; background: var(--acento);
  box-shadow: 0 6px 20px rgba(76, 195, 217, .35);
}
.cargando { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; }
.cargando span { display: block; height: 100%; width: 0; background: var(--acento); transition: width .2s; }

.nota { margin: 10px 2px 0; font-size: 12.5px; color: var(--tenue); }
.version-alterna { margin-top: 10px; }

.pasos { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: paso; display: grid; gap: 8px; }
.pasos li {
  counter-increment: paso; position: relative; padding: 10px 12px 10px 48px;
  background: #0d2131; border: 1px solid var(--borde); border-radius: 12px; font-size: 13px;
}
.pasos li::before {
  content: counter(paso); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--acento-osc); color: #fff; font-weight: 700; font-size: 13px;
}
.pasos b { display: block; }
.pasos span { color: var(--tenue); }

.qr-tarjeta { display: flex; gap: 16px; align-items: center; }
.qr { background: #fff; border-radius: 12px; padding: 8px; line-height: 0; flex: none; }
.qr svg { width: 132px; height: 132px; }
.qr-tarjeta p { margin: 0; color: var(--tenue); font-size: 13px; }
@media (pointer: coarse) and (max-width: 900px) { .qr-tarjeta { display: none; } }

.lista { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.lista label {
  display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px;
  background: #0d2131; border: 1px solid var(--borde); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lista input { appearance: none; width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid #4b6a82; display: grid; place-items: center; margin: 0; }
.lista input:checked { background: var(--acento); border-color: var(--acento); }
.lista input:checked::after { content: ""; width: 6px; height: 11px; border: solid #06202a; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.lista label:has(input:checked) { border-color: var(--acento-osc); background: #0f2c3d; }
.lista input:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.lista.bloqueada label { cursor: default; }

.boton-primario, .boton-secundario {
  display: block; width: 100%; border-radius: 999px; padding: 12px 16px; font-weight: 700; font-size: 14px;
}
.boton-primario { border: 0; background: var(--acento); color: #06202a; }
.boton-secundario { border: 1px solid var(--borde); background: #0d2131; color: var(--texto); margin-top: 8px; }
.boton-primario:disabled { opacity: .5; cursor: default; }

.marcador { text-align: center; background: #0d2131; border: 1px solid var(--borde); border-radius: 14px; padding: 18px 12px; margin: 10px 0 14px; }
.anillo {
  --p: 0; width: 110px; height: 110px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--acento) calc(var(--p) * 1%), #23415a 0);
  position: relative; font-size: 34px; font-weight: 800; grid-template-columns: auto auto; align-content: center; justify-content: center;
}
.anillo::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #0d2131; }
.anillo span, .anillo small { position: relative; }
.anillo small { font-size: 14px; color: var(--tenue); align-self: end; margin-bottom: 8px; }
.marcador h3 { margin: 0 0 4px; font-size: 20px; }
.marcador p { margin: 0 0 10px; color: var(--tenue); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.chip.ok { color: var(--ok); border-color: #2a7d5d; }
.chip.pend { color: var(--pend); border-color: #8a6a2a; }
.chip.mal { color: var(--mal); border-color: #8a3a3a; }

.item {
  margin-top: 10px; padding: 12px; border-radius: 12px; background: #0d2131; border: 1px solid var(--borde);
  border-left: 4px solid var(--ok); font-size: 13px;
}
.item.pend { border-left-color: var(--pend); }
.item.mal { border-left-color: var(--mal); }
.item .estado { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--ok); }
.item.pend .estado { color: var(--pend); }
.item.mal .estado { color: var(--mal); }
.item h4 { margin: 2px 0 4px; font-size: 15px; }
.item p { margin: 4px 0; color: var(--tenue); }
.item p b { color: var(--texto); }
.item .ref { font-size: 11.5px; color: #7f9db2; }

.punto {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; padding: 0;
  font-size: 12px; font-weight: 800; color: #06202a; background: var(--ok);
  box-shadow: 0 2px 8px rgba(0,0,0,.4); display: grid; place-items: center;
}
.punto.pend { background: var(--pend); }
.punto[data-visible="false"] { opacity: .35; }

.pie { text-align: center; color: #6f8ca0; font-size: 12px; padding: 0 16px 28px; }
