:root { --fondo:#111; --panel:#1c1c1c; --linea:#2c2c2c; --texto:#f2f2f2; --suave:#9a9a9a; --oro:#ddbe87; --rojo:#e5776b; --verde:#8fcf9b; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); font: 16px/1.4 -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif; }
body { padding: env(safe-area-inset-top) 16px calc(env(safe-area-inset-bottom) + 24px); max-width: 640px; margin: 0 auto; }
header { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; }
h1 { font: 300 24px "Helvetica Neue", Helvetica, sans-serif; margin: 0; letter-spacing: .5px; }
h1 span { font-family: Didot, "Bodoni 72", serif; font-style: italic; color: var(--oro); }
h2 { font-size: 15px; font-weight: 500; color: var(--suave); text-transform: uppercase; letter-spacing: 1px; margin: 22px 0 8px; }
button, .boton { font: inherit; border: 0; border-radius: 12px; padding: 13px 16px; background: var(--oro); color: #111; font-weight: 600; width: 100%; text-align: center; text-decoration: none; display: block; cursor: pointer; }
button:disabled { opacity: .45; }
.sec { background: var(--panel); color: var(--texto); font-weight: 500; border: 1px solid var(--linea); }
.sutil { background: none; color: var(--suave); width: auto; padding: 6px 0; font-weight: 400; }
.fila { display: flex; gap: 10px; } .fila > * { flex: 1; }
input, select { font: inherit; width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--linea); background: var(--panel); color: var(--texto); margin: 4px 0 12px; }
label { font-size: 14px; color: var(--suave); }
.tarjeta { background: var(--panel); border: 1px solid var(--linea); border-radius: 14px; padding: 12px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.tarjeta .info { flex: 1; min-width: 0; } .tarjeta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.tarjeta small { color: var(--suave); }
.mini { width: 54px; height: 96px; border-radius: 8px; background: #000 center/cover; flex: none; }
.clip.elegido { border-color: var(--oro); }
.orden { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--linea); display: grid; place-items: center; flex: none; color: var(--suave); }
.clip.elegido .orden { background: var(--oro); color: #111; border-color: var(--oro); font-weight: 700; }
.estado { font-size: 13px; padding: 3px 9px; border-radius: 20px; background: #2a2a2a; white-space: nowrap; }
.estado.listo { color: var(--verde); } .estado.error { color: var(--rojo); } .estado.editando, .estado.en_cola { color: var(--oro); }
.aviso { background: #2a2416; border: 1px solid #5a4a2a; border-radius: 12px; padding: 12px; margin: 12px 0; }
.error { color: var(--rojo); }
.centro { text-align: center; color: var(--suave); }
.barra { height: 6px; background: var(--linea); border-radius: 3px; overflow: hidden; margin-top: 6px; } .barra i { display: block; height: 100%; background: var(--oro); width: 0; }
.grande { width: 100%; max-width: 280px; aspect-ratio: 9/16; border-radius: 14px; background: #000 center/cover; margin: 8px auto 14px; display: block; }
.pila > * + * { margin-top: 10px; }
