/* Portal de autofactura — marca CodeRaccoon: tinta #1B1D21, ámbar #FFB020, fondo #F6F5F1. */
:root {
  --tinta: #1B1D21; --ambar: #FFB020; --fondo: #F6F5F1; --gris: #B9BDC4; --suave: #ecebe5;
  --texto2: #4a4d54; --error: #b3261e; --ok: #2e7d32;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: var(--tinta); }
body { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
.barra { background: var(--tinta); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.logo { width: 30px; height: 30px; border-radius: 50%; background: var(--ambar); color: var(--tinta); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.tarjeta { width: 100%; max-width: 520px; margin: 20px auto; padding: 0 16px; flex: 1; }
h1 { font-size: 24px; line-height: 1.2; margin: 8px 0; }
.lead { color: var(--texto2); margin: 0 0 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--texto2); margin: 14px 0 4px; }
input, select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--gris); border-radius: 8px; background: #fff; font: inherit; color: var(--tinta); }
input:focus, select:focus { outline: 3px solid rgba(255, 176, 32, .45); border-color: var(--tinta); }
input.codigo { font-family: Consolas, ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; font-size: 18px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 3px; }
.btn { display: block; width: 100%; margin-top: 18px; padding: 13px; border: 0; border-radius: 8px; background: var(--ambar); color: var(--tinta); font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; border: 1.5px solid var(--tinta); }
.btn:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.resumen { background: #fff; border: 1px solid var(--suave); border-radius: 10px; padding: 14px; margin-bottom: 8px; }
.grande { font-size: 20px; font-weight: 700; }
.pista { font-size: 13px; color: var(--texto2); margin-top: 4px; }
.error { background: #fbe9e7; color: var(--error); border-radius: 8px; padding: 10px 12px; margin-top: 16px; }
.pie { text-align: center; font-size: 12px; color: #6b6f77; padding: 16px; }
[hidden] { display: none !important; }

/* Fase S5: la marca del negocio en su dominio. */
.logo img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.barra .aviso { margin-left: auto; color: #fff; font-size: 13px; opacity: .85; }
