:root {
  --bg: #f4f5f7; --card: #fff; --text: #1d2330; --muted: #6b7280; --line: #e2e5ea;
  --brand: #0f3b66; --brand2: #f28c28; --ok: #16794a; --err: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; }
header.top { background: var(--brand); color: #fff; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand { font-weight: 800; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 44px; height: 44px; border-radius: 8px; display: block; }
.brand span { font-weight: 400; letter-spacing: 0; opacity: .85; }
nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
nav a, nav button.link { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 6px; background: none; border: 0; font: inherit; cursor: pointer; }
nav a:hover, nav button.link:hover { background: rgba(255,255,255,.15); }
main { max-width: 980px; margin: 24px auto; padding: 0 16px; }
main.wide { max-width: 1280px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }
h1 { font-size: 24px; margin: 0 0 16px; }
h1 small { font-weight: 400; color: var(--muted); font-size: 16px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 18px; overflow-x: auto; }
.titlebar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.titlebar h1 { margin-bottom: 8px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
label small { font-weight: 400; color: var(--muted); }
label.req { position: relative; }
label.req::before { content: "*"; color: var(--err); position: absolute; left: -10px; top: 0; }
input, select, textarea { font: inherit; padding: 9px 10px; border: 1px solid #c9ced6; border-radius: 7px; background: #fff; color: var(--text); width: 100%; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand2); border-color: transparent; }
form.inline input { width: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; align-items: end; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 8px; padding: 14px 0 0 10px; }
legend { font-weight: 700; font-size: 16px; color: var(--brand); padding-right: 8px; margin-left: -10px; }
button, .btn { display: inline-block; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 7px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; }
button.primary, .btn.primary { background: var(--brand2); border-color: var(--brand2); }
button.secondary, .btn.secondary { background: #fff; color: var(--brand); }
button.danger, .btn.danger { background: #fff; color: var(--err); border-color: var(--err); }
button.small, .btn.small { padding: 5px 10px; font-size: 13px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 16px; }
.actions button { padding: 12px 22px; font-size: 16px; }
.actionsbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.note { color: var(--muted); font-size: 13px; }
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; background: #e8f2fc; border: 1px solid #b6d4f2; }
.flash.error { background: #fdecea; border-color: #f5c2bd; color: var(--err); }
.flash.ok { background: #e7f6ee; border-color: #b4e2c8; color: var(--text); }
.flash ul { margin: 6px 0; }
code.pw { font-size: 18px; background: #fff; padding: 2px 8px; border-radius: 4px; border: 1px dashed var(--ok); }
table { border-collapse: collapse; width: 100%; }
table.list th, table.list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: 13px; color: var(--muted); font-weight: 600; }
td.right { text-align: right; white-space: nowrap; }
tr.muted td { color: var(--muted); }
tr.late td { background: #fff6e5; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
table.kv caption { text-align: left; font-weight: 700; color: var(--brand); padding-bottom: 6px; }
table.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 10px 4px 0; width: 40%; vertical-align: top; }
table.kv td { padding: 4px 0; }
ul.events { list-style: none; padding: 0; margin: 0; }
ul.events li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
ul.events span { color: var(--muted); font-size: 13px; margin-right: 6px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; vertical-align: middle; }
.badge.gris { background: #eceef1; color: #4b5563; }
.badge.amarillo { background: #fff3d6; color: #8a5a00; }
.badge.azul { background: #e1edfb; color: #0f3b66; }
.badge.morado { background: #efe7fb; color: #5b2ea6; }
.badge.verde { background: #e2f5ea; color: var(--ok); }
.badge.rojo { background: #fdecea; color: var(--err); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.filters label { margin: 0; min-width: 160px; }
.filters label:first-child { flex: 1 1 280px; }
.login { max-width: 420px; margin: 40px auto; }
.login button { width: 100%; padding: 12px; }
@media (max-width: 640px) {
  .actions button { width: 100%; }
  header.top { padding: 10px 12px; }
}
.star { color: var(--err); }
.hero { text-align: center; padding: 32px 18px; }
.hero p { max-width: 560px; margin: 0 auto 20px; }
.hero .actionsbar { justify-content: center; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
label.check input { width: auto; }

.opiniones { text-align: center; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 14px 0; text-align: left; }
.tarjeta { margin: 0; padding: 16px; border: 1px solid #e6d9a8; border-radius: 12px; background: #fffbea; }
.tarjeta p { margin: 6px 0 10px; }
.tarjeta footer { font-size: .85rem; color: #6b5b1f; }
.estrellas { color: #b8860b; letter-spacing: 2px; }
.invita { margin: 16px 0 10px; }
textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; }
