:root {
  --fondo: #f4f6fa;
  --tarjeta: #ffffff;
  --texto: #1b2333;
  --suave: #5c6780;
  --borde: #dfe4ee;
  --primario: #1f6feb;
  --verde: #1a7f37;
  --rojo: #cf222e;
  --azul: #0969da;
  --gris: #6e7781;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0f141c;
    --tarjeta: #171e29;
    --texto: #e6ebf3;
    --suave: #9aa6ba;
    --borde: #2a3445;
    --primario: #4c8dff;
    --verde: #3fb950;
    --rojo: #ff6b6b;
    --azul: #58a6ff;
    --gris: #8b949e;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fondo); color: var(--texto); }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; }
a { color: var(--primario); }
code { font-size: 13px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 16px; margin: 22px 0 10px; }
h2:first-child { margin-top: 0; }
.barra { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--tarjeta); border-bottom: 1px solid var(--borde); }
.barra form { margin: 0; }
.marca { font-weight: 700; text-decoration: none; color: var(--texto); }
.titulo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.boton, button { display: inline-block; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--primario); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.boton.secundario { background: transparent; color: var(--primario); border: 1px solid var(--borde); }
button.enlace, .enlace { background: none; color: var(--primario); padding: 0; font-weight: 500; border: 0; cursor: pointer; text-decoration: none; }
label { display: block; margin-bottom: 14px; font-weight: 600; }
input[type=text], input[type=url], input[type=password], input[type=number], input[type=tel], input[type=email], input[type=search], input:not([type]), select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--borde); border-radius: 9px; background: var(--fondo); color: var(--texto); font: inherit; }
input[type=file] { display: block; margin-top: 6px; font-weight: 400; max-width: 100%; }
input[type=color] { display: block; margin-top: 4px; width: 64px; height: 36px; border: 1px solid var(--borde); border-radius: 8px; background: none; }
input[readonly] { opacity: .7; }
.ayuda, .error { display: block; font-weight: 400; font-size: 13px; color: var(--suave); margin-top: 3px; }
.error, .con-error { color: var(--rojo); }
.con-error input { border-color: var(--rojo); }
.aviso { padding: 10px 14px; border-radius: 10px; border: 1px solid; }
.aviso.rojo { color: var(--rojo); border-color: var(--rojo); }
.aviso.verde { color: var(--verde); border-color: var(--verde); }
.aviso.ambar { color: #9a6700; border-color: #d4a72c; }
.huella code { overflow-wrap: anywhere; }
details summary { cursor: pointer; font-weight: 600; color: var(--primario); margin: 8px 0; }
.form-firma { max-width: 460px; margin-top: 10px; }
.form-firma .check { margin-bottom: 14px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--borde); color: var(--gris); }
.chip.verde { color: var(--verde); border-color: var(--verde); }
.chip.rojo { color: var(--rojo); border-color: var(--rojo); }
.chip.azul { color: var(--azul); border-color: var(--azul); }
.login { max-width: 380px; margin: 60px auto; }
.vacio { color: var(--suave); }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cliente { display: flex; gap: 14px; text-decoration: none; color: inherit; margin: 0; }
.cliente:hover { border-color: var(--primario); }
.cliente img, .sin-icono { width: 64px; height: 64px; border-radius: 15px; flex: none; object-fit: cover; }
.sin-icono { display: grid; place-items: center; background: var(--fondo); color: var(--suave); font-size: 24px; }
.cliente small { display: block; color: var(--suave); overflow-wrap: anywhere; }
.chips { margin-top: 6px; font-size: 13px; color: var(--suave); }
.cliente-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px; align-items: start; }
@media (max-width: 900px) { .cliente-grid { grid-template-columns: 1fr; } }
.vista-previa { position: sticky; top: 12px; }
.pantallas { display: flex; gap: 14px; justify-content: center; }
.telefono { margin: 0; text-align: center; color: var(--suave); font-size: 12px; }
.inicio { width: 160px; height: 120px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(160deg, #3a6ea5, #8e5aa8); }
.android .inicio { background: linear-gradient(160deg, #2f6b4f, #2b4c7e); }
.app { display: grid; justify-items: center; gap: 6px; width: 90px; }
.app .nombre-app { color: #fff; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.5); max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icono-ios, .icono-android { width: 60px; height: 60px; overflow: hidden; display: grid; place-items: center; background: #fff; }
.icono-ios { border-radius: 14px; }
.icono-android { border-radius: 50%; }
.icono-ios img { width: 100%; height: 100%; object-fit: cover; }
.icono-android img { width: 68%; height: 68%; object-fit: contain; }
.notificacion { display: flex; gap: 10px; align-items: center; margin: 16px 0 8px; padding: 10px 12px; border-radius: 14px; background: #2b2f36; color: #fff; }
.notificacion canvas { width: 24px; height: 24px; flex: none; }
.notificacion span { display: block; font-size: 13px; opacity: .85; }
.web { border: 6px solid #111; border-radius: 22px; overflow: hidden; height: 360px; background: #fff; }
.web iframe { width: 100%; height: 100%; border: 0; }
.abrir-servidor { display: inline-block; margin-top: 8px; font-size: 13px; }
.compilar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 16px; }
.check { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; }
.trabajos { width: 100%; border-collapse: collapse; font-size: 14px; }
.trabajos th, .trabajos td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--borde); vertical-align: top; }
.trabajos form { display: inline; }
.trabajos small { display: block; }
.registro { background: #0d1117; color: #c9d1d9; padding: 14px; border-radius: 12px; overflow: auto; max-height: 70vh; font-size: 12px; white-space: pre-wrap; }
.descarga { max-width: 460px; margin: 40px auto; text-align: center; display: grid; gap: 10px; }
.icono-grande { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; }

textarea { resize: vertical; font: inherit; }
select { appearance: auto; }
.suave { color: var(--suave); }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.boton.pequeno { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.resumen .tarjeta { margin: 0; padding: 14px 16px; }
.resumen strong { display: block; font-size: 26px; line-height: 1.1; }
.resumen span { color: var(--suave); font-size: 13px; }
.buscar { margin: 0 0 12px !important; }
.tabla-ancha { overflow-x: auto; }
.trabajos small { color: var(--suave); }
.trabajos small.error { color: var(--rojo); }
.app-fila { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; min-width: 200px; }
.app-fila img, .app-fila .sin-icono { width: 40px; height: 40px; border-radius: 10px; flex: none; object-fit: cover; font-size: 16px; }
.app-fila strong { color: var(--primario); }
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .dos-columnas { grid-template-columns: 1fr; } }
.form-compilar .check { margin-bottom: 8px; }
.notas { white-space: pre-wrap; margin-top: 4px; color: var(--texto) !important; }
.archivos { margin-top: 4px; }
.acciones-fila { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.acciones-fila form { display: inline; }
.actividad { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.actividad li { padding: 7px 0 7px 14px; border-left: 3px solid var(--borde); margin-left: 4px; font-size: 14px; }
.actividad li time { display: block; font-size: 12px; color: var(--suave); }
.actividad .tipo-listo { border-left-color: var(--verde); }
.actividad .tipo-error { border-left-color: var(--rojo); }
.actividad .tipo-compilacion { border-left-color: var(--azul); }
.actividad .tipo-firma { border-left-color: #d4a72c; }
.acciones { align-items: center; }
