body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, .18), transparent 28%),
    radial-gradient(circle at 82% 84%, rgba(37, 99, 235, .24), transparent 32%),
    #07111f;
  color: #e2e8f0;
  font-family: "Segoe UI", sans-serif;
}
main {
  width: min(440px, 100%);
}
.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.marca img { width: 52px; height: 52px; border-radius: 14px; }
.marca strong { letter-spacing: .16em; color: #7dd3fc; font-size: 13px; }
h1 { margin: 0; font-size: 28px; }
.lead { margin: 8px 0 18px; color: #bae6fd; line-height: 1.5; }
form, .panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  background: #0c1426;
  border: 1px solid rgba(34, 211, 238, .35);
}
label { display: grid; gap: 6px; font-size: 13px; color: #bae6fd; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: #07111f;
  color: #f8fafc;
}
input:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .2); }
.terminos { display: flex; gap: 8px; align-items: flex-start; color: #e2e8f0; }
.trampa {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
button, .boton {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  cursor: pointer;
}
button:disabled { opacity: .7; cursor: wait; }
.secundario {
  color: #e0f2fe;
  background: transparent;
  border: 1px solid rgba(125, 211, 252, .45);
}
.enlaces { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.enlaces a { color: #7dd3fc; }
.aviso { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.aviso.error { background: #3f1d24; color: #fecdd3; }
.aviso.ok { background: #052e2b; color: #99f6e4; }
.aviso.pendiente { background: #3b2f14; color: #fde68a; }
.enlace-local { word-break: break-all; color: #7dd3fc; }
ul { margin: 0; padding-left: 18px; color: #cbd5e1; }
li { margin: 6px 0; }

.progreso { display: flex; gap: 6px; margin: 0 0 16px; }
.progreso span { flex: 1; height: 4px; border-radius: 999px; background: rgba(125, 211, 252, .25); }
.progreso span.activo { background: #22d3ee; }
.pasos { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; color: #7dd3fc; }
.paso { display: none; gap: 12px; }
.paso.visible { display: grid; }
.fila { display: flex; gap: 8px; }
.fila > * { flex: 1; }
.logo-previa { width: 88px; height: 88px; object-fit: contain; border-radius: 16px; background: #07111f; border: 1px solid rgba(34, 211, 238, .35); }
.chequeos { display: grid; gap: 6px; }
.chequeos label { display: flex; gap: 8px; align-items: center; }
.resumen { display: grid; gap: 6px; font-size: 14px; }
.resumen div { display: flex; justify-content: space-between; gap: 12px; }
.resumen span { color: #94a3b8; }
.bienvenida-empresa { text-align: center; }
.bienvenida-empresa img { width: 96px; height: 96px; border-radius: 24px; object-fit: contain; }
select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: #07111f;
  color: #f8fafc;
}

body.asistente [hidden] { display: none !important; }
body.asistente {
  display: block;
  padding: 28px 20px 48px;
  background:
    radial-gradient(circle at 12% 0%, rgba(79, 70, 229, .28), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(34, 211, 238, .16), transparent 28%),
    #0A0F1F;
  color: #e2e8f0;
}
body.asistente main { width: min(1080px, 100%); margin: 0 auto; }
body.asistente .cabecera-asistente { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
body.asistente h1 { font-size: 32px; letter-spacing: -.03em; }
body.asistente .lead { max-width: 62ch; color: #cbd5e1; }
body.asistente .lienzo { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
body.asistente .riel, body.asistente .panel-asistente {
  border: 1px solid rgba(139, 92, 246, .28);
  background: rgba(30, 41, 59, .72);
  box-shadow: 0 18px 50px rgba(2, 6, 23, .35);
}
body.asistente .riel { border-radius: 22px; padding: 16px; position: sticky; top: 16px; }
body.asistente .pasos { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.asistente .pasos li {
  display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; color: #cbd5e1; cursor: pointer;
}
body.asistente .pasos li span {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px;
  background: #0A0F1F; color: #94a3b8; font-size: 13px; font-weight: 700;
}
body.asistente .pasos li div { display: grid; }
body.asistente .pasos li strong { font-size: 14px; }
body.asistente .pasos li small, body.asistente .ayuda, body.asistente .intro { color: #94a3b8; }
body.asistente .pasos li.activo { background: linear-gradient(90deg, rgba(79, 70, 229, .45), rgba(34, 211, 238, .16)); }
body.asistente .pasos li.activo span, body.asistente .pasos li.listo span { background: #4F46E5; color: white; }
body.asistente .panel-asistente { border-radius: 24px; padding: 22px; }
body.asistente form { display: grid; gap: 16px; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.asistente .progreso span.activo { background: linear-gradient(90deg, #4F46E5, #22D3EE); }
body.asistente .paso h2 { margin: 0; font-size: 22px; }
body.asistente .intro { margin: 0; }
body.asistente .paso.visible { animation: matselEntrar .42s cubic-bezier(.22, 1, .36, 1); }
@keyframes matselEntrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.asistente .campo { gap: 7px; }
body.asistente .campo em { margin-left: 6px; font-style: normal; font-size: 11px; color: #22D3EE; }
body.asistente .campo em.opcional { color: #94a3b8; }
body.asistente input, body.asistente select, body.asistente textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .35); background: #0A0F1F; color: #f8fafc; font: inherit;
}
body.asistente textarea { resize: vertical; min-height: 96px; }
body.asistente input:hover, body.asistente select:hover, body.asistente textarea:hover { border-color: rgba(34, 211, 238, .55); }
body.asistente input:focus, body.asistente select:focus, body.asistente textarea:focus {
  outline: none; border-color: #8B5CF6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .25);
}
body.asistente .campo.correcto input, body.asistente .campo.correcto select, body.asistente .campo.correcto textarea { border-color: #22D3EE; }
body.asistente .campo.invalido input, body.asistente .campo.invalido select, body.asistente .campo.invalido textarea { border-color: #fb7185; }
body.asistente .rejilla-2, body.asistente .rejilla-3, body.asistente .rejilla-nit { display: grid; gap: 12px; }
body.asistente .rejilla-2 { grid-template-columns: 1fr 1fr; }
body.asistente .rejilla-nit { grid-template-columns: 1.4fr .6fr; }
body.asistente .rejilla-3 { grid-template-columns: repeat(3, 1fr); }
body.asistente .soltar {
  display: grid; justify-items: center; gap: 8px; padding: 22px; text-align: center;
  border-radius: 18px; border: 1px dashed rgba(34, 211, 238, .55); background: rgba(10, 15, 31, .65);
}
body.asistente .soltar.sobre { border-color: #8B5CF6; box-shadow: inset 0 0 0 1px #8B5CF6; }
body.asistente .soltar strong { display: block; }
body.asistente .soltar-acciones { display: flex; gap: 8px; }
body.asistente .soltar-acciones button, body.asistente #quitarFactura { width: auto; padding: 8px 12px; }
body.asistente .logo-previa { width: 92px; height: 92px; }
body.asistente .chequeos { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
body.asistente .tarjeta-check {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .28); background: #0A0F1F;
}
body.asistente .tarjeta-check span { display: grid; }
body.asistente .tarjeta-check:has(input:checked) { border-color: #22D3EE; box-shadow: 0 0 0 1px rgba(34, 211, 238, .35); }
body.asistente .grupo-titulo { margin: 0; color: #e2e8f0; font-weight: 700; }
body.asistente .factura-previa, body.asistente .futuro, body.asistente .ficha {
  padding: 16px; border-radius: 18px; background: #0A0F1F; border: 1px solid rgba(34, 211, 238, .28);
}
body.asistente .factura-previa { display: flex; gap: 14px; align-items: center; }
body.asistente .futuro, body.asistente .ficha { display: grid; gap: 12px; }
body.asistente .futuro h3, body.asistente .ficha h3 { margin: 0; }
body.asistente .futuro p, body.asistente .ficha p, body.asistente #vistaDatosFactura, body.asistente #vistaPieFactura { margin: 0; color: #94a3b8; }
body.asistente .ficha header { display: flex; gap: 14px; align-items: center; }
body.asistente .ficha img { width: 72px; height: 72px; border-radius: 16px; object-fit: contain; background: #1E293B; }
body.asistente .bloque { display: grid; gap: 6px; }
body.asistente .bloque button { width: auto; justify-self: start; }
body.asistente .acciones { display: flex; gap: 12px; }
body.asistente .acciones button { flex: 1; }
body.asistente .bienvenida-empresa { display: grid; justify-items: center; gap: 8px; padding: 28px 8px; text-align: center; }
body.asistente .bienvenida-empresa .boton { max-width: 280px; }
body.asistente .listo-etiqueta { margin: 0; color: #22D3EE; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
body.asistente .lienzo.terminado .riel,
body.asistente .lienzo.terminado .progreso,
body.asistente .lienzo.terminado form { display: none; }
@media (max-width: 860px) {
  body.asistente .lienzo, body.asistente .rejilla-3 { grid-template-columns: 1fr; }
  body.asistente .riel { position: static; }
  body.asistente .pasos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.asistente .pasos li div { display: none; }
  body.asistente .pasos li { justify-content: center; }
}
@media (max-width: 640px) {
  body.asistente { padding: 16px 12px 32px; }
  body.asistente h1 { font-size: 26px; }
  body.asistente .cabecera-asistente { display: grid; }
  body.asistente .rejilla-2, body.asistente .rejilla-nit, body.asistente .acciones { grid-template-columns: 1fr; }
}

body.asistente, body.asistente *, body.asistente *::before, body.asistente *::after { box-sizing: border-box; }
body.asistente .lienzo > * { min-width: 0; }
body.asistente .riel { width: 100%; }
body.asistente label.campo { display: block; }
body.asistente label.campo em { float: right; margin: 2px 0 0 8px; }
body.asistente label.campo input,
body.asistente label.campo select,
body.asistente label.campo textarea { margin-top: 6px; }
body.asistente label.campo small { display: block; clear: both; margin-top: 6px; }
body.asistente .rejilla-2 > *,
body.asistente .rejilla-3 > *,
body.asistente .rejilla-nit > * { min-width: 0; }
body.asistente .acciones button,
body.asistente .bienvenida-empresa .boton,
body.asistente .bloque button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.asistente .resumen div { min-width: 0; }
body.asistente .ficha-cuerpo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body.asistente .bloque > div {
  display: grid;
  grid-template-columns: minmax(88px, 46%) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, .16);
}
body.asistente .bloque > div span { color: #94a3b8; }
body.asistente .bloque > div strong { text-align: right; overflow-wrap: anywhere; }
body.asistente .bloque button {
  width: auto;
  min-height: 36px;
  margin-top: 10px;
  padding: 6px 14px;
  justify-self: start;
}
body.asistente .lienzo.terminado {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
body.asistente .lienzo.terminado #avisoEmpresa { display: none !important; }
body.asistente .lienzo.terminado .panel-asistente {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 36px 32px 28px;
}
body.asistente .bienvenida-empresa {
  width: 100%;
  justify-items: center;
  text-align: center;
  padding: 8px 0 0;
  gap: 10px;
}
body.asistente .bienvenida-empresa h2 { margin: 0; font-size: 30px; }
body.asistente .bienvenida-empresa p { margin: 0; max-width: 36ch; }
body.asistente .bienvenida-empresa .boton { width: 100%; max-width: none; margin-top: 8px; }
body.asistente.empresa-lista .cabecera-asistente {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
body.asistente.empresa-lista .cabecera-asistente > div { display: grid; justify-items: center; }
body.asistente.empresa-lista .lead { display: none; }
body.asistente.empresa-lista main { width: min(560px, 100%); }
body.asistente.empresa-lista .enlaces { justify-content: center; gap: 28px; }
@media (max-width: 1200px) {
  body.asistente .ficha-cuerpo { grid-template-columns: 1fr; }
}

body.asistente .pasos li,
body.asistente .pasos li span,
body.asistente .progreso span,
body.asistente .tarjeta-check,
body.asistente .soltar,
body.asistente .aviso,
body.asistente button,
body.asistente .boton {
  transition: background .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease, transform .22s ease, filter .22s ease, opacity .28s ease;
}
body.asistente input,
body.asistente select,
body.asistente textarea {
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
body.asistente .pasos li:hover:not(.activo) { background: rgba(34, 211, 238, .08); }
body.asistente button:hover:not(:disabled),
body.asistente .boton:hover { transform: translateY(-1px); filter: brightness(1.05); }
body.asistente button:active:not(:disabled),
body.asistente .boton:active { transform: translateY(0); filter: none; }
body.asistente .bienvenida-empresa,
body.asistente .aviso:not([hidden]),
body.asistente .logo-previa:not([hidden]),
body.asistente .ficha { animation: matselEntrar .42s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  body.asistente *,
  body.asistente *::before,
  body.asistente *::after {
    animation: none !important;
    transition: none !important;
  }
}
