:root { --azul: #1f3a5f; --azul2: #2d5286; --verde: #1e7a3c; --rojo: #b0283f; --ambar: #8a6100; --gris: #667085; --borde: #d9dee7; --fondo: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--fondo); color: #1d2433; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
.cab { background: var(--azul); color: #fff; } .cab-in { max-width: 860px; margin: 0 auto; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 12px; } .logo { width: 38px; height: 38px; border-radius: 9px; background: #fff; color: var(--azul); font-weight: 800; font-size: 22px; display: grid; place-items: center; }
.marca .t { font-weight: 800; letter-spacing: .5px; } .marca .s { font-size: 12.5px; opacity: .85; }
.usuario { font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .usuario button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 12.5px; }
.contenedor { width: 100%; max-width: 860px; margin: 0 auto; padding: 22px 18px 40px; flex: 1; }
.pie { text-align: center; font-size: 12px; color: var(--gris); padding: 18px; }
h1 { font-size: 22px; margin: 0 0 6px; } h2 { font-size: 17px; margin: 24px 0 10px; } h3 { font-size: 15px; margin: 0 0 4px; }
.sub { color: var(--gris); font-size: 14px; margin: 0 0 16px; }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.estrecha { max-width: 440px; margin: 28px auto; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select { width: 100%; padding: 11px 12px; border: 1px solid var(--borde); border-radius: 8px; font-size: 16px; font-family: inherit; background: #fff; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(45,82,134,.35); outline-offset: 1px; }
input[type=file] { width: 100%; padding: 10px; border: 1px dashed var(--azul2); border-radius: 8px; background: #f8faff; font-size: 14px; }
button.principal, a.principal { display: inline-block; background: var(--azul); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
button.principal:hover { background: var(--azul2); } button.principal[disabled] { opacity: .55; cursor: wait; }
button.sec { background: #fff; color: var(--azul); border: 1px solid var(--azul2); border-radius: 8px; padding: 9px 14px; font-size: 14px; cursor: pointer; }
button.link { background: none; border: 0; color: var(--azul2); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 4px 0; }
.fila { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .fila > .crece { flex: 1; min-width: 200px; }
.acciones { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lic { display: grid; gap: 14px; grid-template-columns: 1fr; } @media (min-width: 700px) { .lic.dos { grid-template-columns: 1fr 1fr; } }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.b-ok { background: #e3f4ea; color: var(--verde); } .b-warn { background: #fff3d6; color: var(--ambar); } .b-mal { background: #fde9ec; color: var(--rojo); } .b-info { background: #e8eefb; color: var(--azul2); }
.fecha { font-size: 24px; font-weight: 800; margin: 6px 0 2px; } .gris { color: var(--gris); font-size: 13.5px; }
.aviso { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin: 12px 0; } .a-info { background: #eaf1fb; color: #1d3f72; } .a-ok { background: #e3f4ea; color: #14532d; } .a-mal { background: #fde9ec; color: #7a1427; } .a-warn { background: #fff6e0; color: #6b4a00; }
.ref { font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 800; letter-spacing: 1px; background: #f0f4fb; border: 1px dashed var(--azul2); border-radius: 8px; padding: 8px 14px; display: inline-block; }
.banco { white-space: pre-wrap; background: #f8faff; border: 1px solid var(--borde); border-radius: 8px; padding: 12px 14px; font-size: 14.5px; margin: 8px 0; }
.pasos { counter-reset: p; list-style: none; padding: 0; margin: 0; } .pasos > li { counter-increment: p; position: relative; padding: 0 0 18px 42px; } .pasos > li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
table.hist { width: 100%; border-collapse: collapse; font-size: 14px; } table.hist td, table.hist th { padding: 8px 6px; border-bottom: 1px solid var(--borde); text-align: left; } table.hist th { font-size: 12px; color: var(--gris); text-transform: uppercase; }
.linea { border-left: 3px solid var(--borde); padding: 2px 0 2px 12px; margin: 6px 0; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(30px); background: #1d2433; color: #fff; padding: 11px 18px; border-radius: 10px; opacity: 0; transition: .25s; pointer-events: none; max-width: 92vw; font-size: 14px; z-index: 10; } .toast.v { opacity: 1; transform: translateX(-50%); } .toast.e { background: var(--rojo); }
.cargando { color: var(--gris); text-align: center; padding: 40px 0; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
