/* Jaime.Lab · herramientas: estilos comunes de las páginas de cada herramienta (sobre el kit JAIME.AI v3).
   Cada herramienta usa estas clases (h-*) y las del kit (.btn, .pill, .campo, .inp, .sel, .tarjeta, .aviso). */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ja-cream); color: var(--ja-navy); font-family: var(--font-sans); }
.h-pagina { max-width: 1040px; margin: 0 auto; padding: 22px 24px 60px; min-height: 100dvh; display: flex; flex-direction: column; }
.h-barra { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 34px; }
.h-marca { font-weight: 900; letter-spacing: -0.03em; font-size: 20px; color: var(--ja-navy); text-decoration: none; }
.h-marca i { font-style: normal; color: var(--ja-blue-action); }
.h-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.h-nav a { color: var(--ja-navy-70); text-decoration: none; padding: 8px 12px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.h-nav a:hover { color: var(--ja-navy); }
.h-cab h1 { font-size: clamp(28px, 4.6vw, 42px); text-transform: uppercase; margin: 0 0 10px; }
.h-cab p { margin: 0; max-width: 720px; font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--text-muted); }
.h-cuerpo { margin-top: 28px; display: grid; gap: 18px; flex: 1; align-content: start; }
.h-panel { background: var(--ja-white); border: 1px solid var(--border-subtle); padding: 20px; display: grid; gap: 14px; }
.h-panel h2 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.h-zona { border: 2px dashed var(--ja-navy-20); background: var(--ja-cream); padding: 30px 18px; text-align: center; display: grid; gap: 10px; justify-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.h-zona:hover, .h-zona[data-sobre="si"] { border-color: var(--ja-blue-action); background: var(--ja-blue-08, rgba(37, 99, 235, .06)); }
.h-zona b { font-size: 15px; }
.h-zona span { font-size: 13px; color: var(--text-muted); }
.h-zona input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.h-lista { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.h-fila { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--ja-cream); border: 1px solid var(--border-subtle); min-width: 0; }
.h-fila .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.h-fila .m { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.h-fila button { min-width: 44px; min-height: 44px; }
.h-opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.h-acciones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.h-progreso { height: 6px; background: var(--ja-navy-10, rgba(0, 0, 80, .1)); overflow: hidden; }
.h-progreso > i { display: block; height: 100%; width: 0; background: var(--ja-blue-action); transition: width .2s; }
.h-estado { font-size: 13px; color: var(--text-muted); min-height: 1.4em; }
.h-resultado { display: grid; gap: 10px; }
.h-nota { font-size: 12.5px; line-height: 1.55; color: var(--ja-navy-70); border-left: 2px solid var(--ja-blue-action); padding: 8px 12px; background: var(--ja-cream); }
.h-pie { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--ja-navy-55); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.h-pie img { height: 10px; width: auto; opacity: .45; display: block; }
.h-central { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.h-central .caja { max-width: 440px; display: grid; gap: 14px; justify-items: start; }
.h-central h1 { text-transform: uppercase; font-size: clamp(26px, 6vw, 34px); margin: 0; }
.h-central p { margin: 0; color: var(--text-muted); font-weight: 300; line-height: 1.6; }
@media (max-width: 700px) { .h-pagina { padding: 16px 16px 48px; } .h-panel { padding: 16px; } .h-barra { margin-bottom: 22px; } .h-opciones { grid-template-columns: 1fr; } }
@media (max-width: 900px) { input, select, textarea, .inp, .sel, .area { font-size: 16px; } }
@media print { .h-barra, .h-pie, .h-no-imprimir { display: none !important; } body { background: #fff; } .h-pagina { padding: 0; max-width: none; } }
