/* Solo los colores del logo: negro, rojo y crema. */
@font-face { font-family: Murecho; src: url(/murecho.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: light-dark(#fcfaf5, #161513); --soft: light-dark(#f3eee3, #211f1c); --line: light-dark(#e0d8c8, #38342e); --edge: light-dark(#8f8676, #79716a);
  --ink: light-dark(#1d1b18, #f0ebe1); --muted: light-dark(#5d584f, #aaa293);
  --red: light-dark(#c13b22, #e8664a); --on-red: light-dark(#fff, #1d0e09); --red-text: light-dark(#a8321c, #f08468);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Murecho, system-ui, sans-serif; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 700; } h2 { font-size: 1.05rem; font-weight: 600; } h3 { font-size: .92rem; font-weight: 600; }
a { color: inherit; } .muted { color: var(--muted); } small, .small { font-size: .85rem; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
.btn { border: 1px solid var(--line); border-radius: 6px; background: none; padding: 6px 14px; min-height: 40px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: var(--soft); } .btn:disabled { opacity: .5; cursor: wait; }
.btn.main { background: var(--red); border-color: var(--red); color: var(--on-red); font-weight: 600; } .btn.main:hover { filter: brightness(1.08); }
.btn.sm { min-height: 34px; padding: 2px 10px; font-size: .85rem; } .btn.danger { color: var(--red-text); }
.link { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; } .link:hover { text-decoration: underline; }
.row { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack, .part { display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); } .pre { white-space: pre-wrap; }
label { display: grid; gap: 4px; font-size: .9rem; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--edge); background: var(--bg); border-radius: 6px; }
textarea { min-height: 100px; resize: vertical; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; } .login form { width: min(100%, 340px); display: grid; gap: 16px; }
.logo { background: #f5f1e8; padding: 4px; display: block; }
.error { color: var(--red-text); } .error:empty { display: none; }
.top { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding: 12px clamp(16px, 4vw, 32px); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; text-decoration: none; }
.top nav { display: flex; gap: 20px; } .top nav a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; } .top nav a.on { color: var(--ink); border-color: var(--red); }
.me { margin-left: auto; gap: 18px; color: var(--muted); font-size: .9rem; } .me .link { padding: 6px 0; }
main { width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(22px, 4vw, 40px) clamp(16px, 4vw, 32px) 64px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 10px; align-content: start; text-decoration: none; }
a.card:hover, button.card:hover { border-color: var(--red); } button.card { text-align: left; cursor: pointer; width: 100%; background: var(--bg); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--red); } .stack:has(> .bar) { gap: 6px; }
.tag { font-size: .8rem; color: var(--muted); white-space: nowrap; } .t-bad { color: var(--red-text); font-weight: 600; }
.who { display: inline-flex; gap: 8px; align-items: center; } .who b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: .72rem; font-weight: 600; position: relative; flex: none; }
.who.on b::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; background: var(--red); border: 2px solid var(--bg); border-radius: 50%; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-top: -12px; } .tabs a { padding: 8px 0; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; } .tabs a.on { color: var(--ink); border-color: var(--red); }
.board { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(200px, 1fr)); overflow-x: auto; } .col { background: var(--soft); border-radius: 8px; padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 160px; } .col .card { padding: 12px; gap: 6px; }
.col.over, .drop.over { outline: 2px dashed var(--red); outline-offset: -2px; }
.list > * { padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; } .list > :last-child { border-bottom: 1px solid var(--line); } .list > a:hover { color: var(--red-text); }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .gallery button { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; } .gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--soft); border-radius: 6px; } .gallery span { display: block; padding: 4px 0; font-size: .82rem; }
.list .link + small { display: block; }
.empty { color: var(--muted); } .drop > .empty { border: 1px dashed var(--edge); border-radius: 8px; padding: 32px 16px; text-align: center; }
summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
dialog { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: inherit; padding: 24px; width: min(94vw, 520px); max-height: 92vh; overflow: auto; } dialog::backdrop { background: #1d1b1899; } dialog.wide { width: min(96vw, 1100px); } dialog img, dialog video { max-width: 100%; max-height: 70vh; display: block; margin: auto; }
#avisos { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 9; max-width: min(380px, 92vw); } #avisos div { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; }
code.pass { font-size: 1.15rem; background: var(--soft); padding: 10px; border-radius: 6px; user-select: all; text-align: center; }
@media (max-width: 560px) { .top nav { order: 3; width: 100%; } .me { gap: 14px; } }
@media (max-width: 560px) { .list > .row > .link.grow, .list > .row > a.grow { flex-basis: 100%; } .list > .row > small { flex: 1; } }
.who b img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.big { gap: 18px; } .big .who b { width: 76px; height: 76px; font-size: 1.4rem; } .big .who.on b::after { width: 16px; height: 16px; right: 2px; bottom: 2px; }
.label { width: 96px; } .me a { text-decoration: none; } .me a.on { color: var(--ink); }
@media (max-width: 560px) { .big > .grow { flex-basis: 60%; } }
.people { border: 1px solid var(--edge); border-radius: 6px; padding: 4px 11px; margin: 0; max-height: 230px; overflow: auto; } .people legend { font-size: .9rem; padding: 0 4px; margin-left: -4px; }
.people label { padding: 6px 0; cursor: pointer; } .people input { width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--red); flex: none; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--line); color: var(--ink); font-size: .76rem; font-weight: 600; } .badge.new { background: var(--red); color: var(--on-red); }
.list > .row > a.grow.task { flex: 1 1 0; }
.task { display: grid; text-decoration: none; } .task:hover > span { color: var(--red-text); text-decoration: underline; }
@media (max-width: 560px) { .list > .row > a.grow.task { flex-basis: 0; } .list > a.row > .grow { flex-basis: 60%; } }
.none { display: none; } .cap::first-letter { text-transform: uppercase; } .top nav .link { color: var(--muted); padding: 6px 0; } .top nav { white-space: nowrap; }
.money { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } .money > div { display: grid; } .money b { font-size: 1.2rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); } .cal .head { padding: 6px 8px; font-size: .82rem; color: var(--muted); } .cal > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day { min-height: 96px; padding: 6px; display: grid; gap: 4px; align-content: start; } .day .num { font-size: .84rem; color: var(--muted); } .day.now .num { color: var(--red-text); font-weight: 700; } .day .wd { display: none; } .day.pad { background: var(--soft); }
.ev { font-size: .8rem; line-height: 1.3; padding: 2px 6px; border-left: 3px solid var(--edge); background: var(--soft); text-decoration: none; overflow: hidden; } .ev.reunion { border-color: var(--ink); } .ev.entrega { border-color: var(--red); color: var(--red-text); font-weight: 600; } .ev.done { text-decoration: line-through; color: var(--muted); } .legend { display: flex; gap: 10px; flex-wrap: wrap; }
.results { max-height: 55vh; overflow: auto; } .results > * { width: 100%; }
@media (max-width: 700px) { .cal { display: block; border-left: 0; } .cal .head, .day.pad, .day.bare:not(.now) { display: none; } .day { min-height: 0; border-right: 0 !important; padding: 10px 0; } .day .wd { display: inline; } .ev { padding: 6px 8px; font-size: .9rem; } .top nav { overflow-x: auto; gap: 16px; } }
.top nav, .tabs { scrollbar-width: none; }
.day { cursor: pointer; } .day:hover { background: var(--soft); } .day.out { background: var(--soft); } .day.out .num, .day.out .ev { opacity: .75; } .day .ev:hover { text-decoration: underline; } .day .num { justify-self: start; padding: 2px 4px; }
@media (max-width: 700px) { .day.out { background: none; } }
.undo { margin-left: 14px; font-weight: 700; text-decoration: underline; min-height: 32px; }
