:root{font:16px/1.55 system-ui,sans-serif;color:#152432;background:#edf2f5;--navy:#102635;--blue:#0e6184;--line:#d9e3e9}
*{box-sizing:border-box}body{margin:0}header{background:var(--navy);color:#fff}.head{max-width:70rem;margin:auto;padding:1rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.logo{font-size:1.45rem;font-weight:800;white-space:nowrap;color:white;text-decoration:none}.logo span{color:#6ad5ff}.logo small{display:block;letter-spacing:.13em;font-size:.63rem;color:#c4d6df}nav{display:flex;align-items:center;gap:.9rem}nav a{color:white}main{max-width:70rem;margin:auto;padding:1.35rem 1rem 3rem;min-height:75vh}footer{padding:1rem;text-align:center;color:#455c6b}.intro,.row{display:flex;gap:.7rem;justify-content:space-between;align-items:center}.intro{margin-bottom:1rem}.eyebrow,.number{color:#356073;text-transform:uppercase;font-size:.85rem;font-weight:750;letter-spacing:.06em;margin:0}.me{text-align:right;color:#405967;margin-bottom:.8rem}.me span{font-size:.9rem;border:1px solid var(--line);padding:.1rem .45rem;border-radius:.3rem}h1,h2,p{margin:0 0 .65rem}h1{font-size:clamp(1.85rem,4vw,2.55rem);line-height:1.2}h2{font-size:1.2rem}a{color:#065679}button,.button{display:inline-block;border:0;border-radius:.45rem;padding:.7rem 1rem;background:var(--blue);color:#fff;text-decoration:none;font:inherit;font-weight:650;cursor:pointer;min-height:44px}button:hover,.button:hover{background:#084862}.subtle{background:#dcedf4;color:#153b4c}.subtle:hover{background:#cbdfeb}.panel,.card,.welcome,.filters{background:#fff;border:1px solid var(--line);border-radius:.7rem;padding:1.15rem}.welcome{max-width:32rem;margin:2rem auto}.filters{display:flex;gap:.8rem;align-items:end;margin-bottom:1rem}.filters label:first-child{flex:1}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,18rem),1fr));gap:.8rem}.card h2{margin-top:.6rem}.meta,.back{font-size:.94rem;color:#405967}.back{display:inline-block;margin-bottom:.8rem}.status{font-weight:700;font-size:.9rem;border-radius:1rem;padding:.22rem .65rem;background:#dfedf5;color:#17465c;white-space:nowrap}.s-doing{background:#ede6fb;color:#492b73}.s-waiting{background:#fff0cd;color:#654411}.s-done{background:#dcefe3;color:#20513c}.s-canceled{background:#f0e5e7;color:#673740}.stack{display:grid;gap:.8rem;align-items:start}.stack button{justify-self:start}.panel{margin-bottom:1rem}.cols,.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.detailmeta{justify-content:start;flex-wrap:wrap;margin-bottom:1rem}.timeline{margin:0;padding-left:1.2rem}.timeline li{border-top:1px solid var(--line);padding-top:.7rem;margin-top:.7rem}.timeline .meta{display:block}.note,.timeline p{white-space:pre-wrap;overflow-wrap:anywhere}dt{font-weight:700}dd{margin:0 0 .6rem}input,textarea,select{display:block;width:100%;padding:.65rem .65rem;border:1px solid #a8bac6;border-radius:.4rem;background:white;color:#152432;font:inherit;min-height:44px}label{display:block;font-weight:650}label>input,label>textarea,label>select{margin-top:.2rem}.alert,.empty{border-left:4px solid #4789a4;background:#fff;padding:.75rem;margin-bottom:1rem}.toast{position:fixed;z-index:2;bottom:1.25rem;right:1rem;background:#102635;color:#fff;padding:.9rem 1rem;border-radius:.6rem;box-shadow:0 0 1rem #0004;max-width:calc(100% - 2rem)}.toast a{color:#a1e9ff}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #3ea4d4;outline-offset:2px}@media(max-width:650px){.intro,.filters{display:grid;justify-content:stretch}.intro .button{justify-self:start}.cols,.two{grid-template-columns:1fr;gap:.6rem}nav a{display:none}.head{padding:.8rem}.card p{overflow-wrap:anywhere}}
.urg{display:inline-flex;align-items:center;gap:.38rem;border:1px solid currentColor;border-radius:1rem;padding:.16rem .56rem;font-size:.86rem;font-weight:750;white-space:nowrap}.urg i{width:.62rem;height:.62rem;border-radius:50%;background:currentColor}.u-red{color:#9c2531;background:#ffeaed}.u-yellow{color:#725200;background:#fff3ce}.u-green{color:#166342;background:#e3f5e9}.card>.urg{margin-top:.6rem}.overdue{color:#a31d34;margin-left:.35rem}
.u-soon i{animation:urgency-pulse 2.6s ease-in-out infinite}@keyframes urgency-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.42;transform:scale(.84)}}@media(prefers-reduced-motion:reduce){.u-soon i{animation:none}}
.quick,.counts{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin:.5rem 0 .85rem}.chip,.counts>*{padding:.26rem .6rem;border:1px solid #a8bac6;border-radius:.42rem;background:#fff;color:#153b4c}.chip{min-height:36px;display:inline-flex;align-items:center;text-decoration:none}.chip.chosen{background:#0e6184;color:#fff}.counts>*{font-size:.88rem;background:#eff5f8}
.inline-check{width:1.25rem;min-height:1.25rem;margin:0 .45rem 0 0;display:inline-block;flex:none;accent-color:#0c6c67}.checklist{list-style:none;padding:0;margin:.7rem 0}.checklist li{margin:.4rem 0}.attention-form{margin-top:1rem;border-top:1px solid var(--line);padding-top:1rem}.context-box>form{margin-top:.6rem}.toolbar-links{display:flex;flex-wrap:wrap;gap:.55rem}.field-note{font-size:.9rem;color:#465e68}.task-flags:empty{display:none}.context-box.attention{border-color:#a32b40}
/* Smart&Co. Tareas Internas — visual layer. Load after the pilot stylesheet. */
:root {
  color-scheme: light;
  color: #17243a;
  background: #f1f5fa;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --navy: #101d34;
  --blue: #174eeb;
  --sc-blue-hover: #103cc3;
  --sc-ink: #17243a;
  --sc-text: #34445d;
  --sc-muted: #536580;
  --line: #d9e2ee;
  --sc-focus: #2157df;
  --sc-surface: #fff;
  --sc-shadow: 0 1px 2px #101d340a, 0 8px 26px #14274d0a;
  --sc-radius: 1rem;
}
body { min-height: 100vh; }
body > header {
  background: linear-gradient(112deg, #101d34, #18345c);
  border-bottom: 3px solid #3971ff;
}
.head { max-width: 76rem; min-height: 73px; padding: .8rem clamp(1rem, 3.6vw, 2rem); }
.logo { color: #fff; letter-spacing: -.045em; font-weight: 850; }
.logo span { color: #79b1ff; }
.logo small { color: #d6e4ff; letter-spacing: .14em; margin-top: .12rem; font-size: .62rem; }
.head nav { flex-wrap: wrap; gap: .4rem .95rem; justify-content: end; }
.head nav :is(a, button) { min-height: 44px; }
.head nav a { display: inline-flex; align-items: center; font-weight: 700; color: #edf3ff; text-underline-offset: .22em; }
.head nav form { margin: 0; }
.head nav button.subtle { color: #fff; background: #ffffff16; border: 1px solid #ffffff50; }
.head nav button.subtle:hover { background: #ffffff2b; }
main { max-width: 76rem; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3.6vw, 2rem) 3rem; }
main > h1, .intro > *, .card h2, .panel { min-width: 0; overflow-wrap: anywhere; }
h1 { margin-bottom: .4rem; font-size: clamp(2.05rem, 5vw, 3.45rem); line-height: 1.05; letter-spacing: -.047em; }
h2 { font-size: 1.13rem; line-height: 1.28; letter-spacing: -.02em; margin-bottom: .65rem; }
h3 { line-height: 1.3; }
a { color: #1746bf; text-underline-offset: .18em; }
footer { color: var(--sc-muted); font-size: .875rem; }
.me { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .45rem; color: var(--sc-muted); margin: 0 0 .9rem; font-size: .89rem; }
.me span { padding: .1rem .55rem; border-color: #c7d7f1; color: #234784; background: #e8f0ff; border-radius: 999px; font-size: .77rem; font-weight: 750; }
.eyebrow, .number { font-size: .73rem; letter-spacing: .1em; color: #375682; }
.eyebrow { margin-bottom: .55rem; }
.number { font-variant-numeric: tabular-nums; letter-spacing: .075em; }
.intro {
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: clamp(1.05rem, 3.1vw, 2.1rem);
  border: 1px solid #cddcf6;
  border-radius: 1.3rem;
  background: radial-gradient(ellipse at 100% 0, #e0ebff, transparent 66%), linear-gradient(115deg, white 24%, #f4f8ff);
  box-shadow: var(--sc-shadow);
}
.intro p:not(.eyebrow) { color: var(--sc-muted); margin-bottom: 0; }
.intro .button { flex: none; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: .65rem;
  min-height: 44px;
  padding: .62rem .95rem;
  line-height: 1.32;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  text-align: center;
}
button:hover, .button:hover { background: var(--sc-blue-hover); }
button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: .65; }
.subtle { background: #edf3ff; color: #244580; border-color: #ceddf6; }
.subtle:hover { background: #dfeaff; color: #1d3c73; }
.panel, .card, .welcome, .filters {
  padding: clamp(.95rem, 2.1vw, 1.4rem);
  border: 1px solid var(--line); border-radius: var(--sc-radius);
  background: var(--sc-surface); box-shadow: var(--sc-shadow);
}
.welcome { margin: clamp(1.4rem, 6vw, 4rem) auto; max-width: 31rem; padding: clamp(1.1rem, 4vw, 2.15rem); border-top: 4px solid var(--blue); }
.welcome > p:not(.eyebrow) { color: var(--sc-muted); }
.welcome .stack { margin-top: 1.25rem; }
.welcome .stack > button { justify-self: stretch; }
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .75rem; margin: 0 0 1.15rem; }
.stat {
  min-width: 0;
  padding: .88rem 1rem;
  border: 1px solid #d6e2f4;
  border-radius: .85rem;
  box-shadow: var(--sc-shadow);
  background: #fff;
  color: var(--sc-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.stat :is(strong, .stat-value) { display: block; color: var(--sc-ink); font-size: clamp(1.35rem, 4vw, 1.95rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.stat:is(.stat-attention, .stat-danger, .is-overdue) { border-left: 4px solid #bf3a52; background: #fff8f9; }
.stat:is(.stat-attention, .stat-danger, .is-overdue) :is(strong, .stat-value) { color: #8e2540; }
.stat .meta, .stat small { color: var(--sc-muted); }
:is(a.stat, button.stat):hover { background: #f3f7ff; border-color: #9fb8e8; }
.filters {
  display: grid;
  grid-template-columns: minmax(11rem, 2fr) repeat(2, minmax(7.5rem, 1fr)) auto;
  gap: .75rem;
  align-items: end;
  margin-bottom: 1.2rem;
}
.filters :is(label, input, select) { min-width: 0; }
.filters button { align-self: end; }
.stack { gap: .95rem; }
input:not([type=checkbox]):not([type=radio]), textarea, select {
  border: 1px solid #a4b5ce;
  border-radius: .62rem;
  background: #fbfdff;
  color: var(--sc-ink);
}
input:not([type=checkbox]):not([type=radio]):hover, textarea:hover, select:hover { border-color: #829abc; }
input::placeholder, textarea::placeholder { color: #61728c; opacity: 1; }
input[type=checkbox], input[type=radio] { display: inline-block; width: 1.125rem; height: 1.125rem; min-height: auto; margin: 0; accent-color: var(--blue); }
textarea { min-height: 6rem; resize: vertical; }
label { color: var(--sc-text); font-size: .9rem; font-weight: 730; }
label > :is(input, select, textarea) { margin-top: .32rem; }
.quick, .counts, .tabs, .toolbar-links, .task-flags { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.quick, .tabs { margin: .6rem 0 .9rem; }
.toolbar { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .75rem; margin: .8rem 0; }
.toolbar-links a { font-weight: 700; }
.toolbar-links .button { white-space: nowrap; }
.chip, .tabs > a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: .43rem .78rem; border: 1px solid #c5d3e8; border-radius: 999px;
  background: white; color: #29476f; font-size: .88rem; font-weight: 700; text-decoration: none;
}
.chip:hover, .tabs > a:hover { border-color: #9cb7e8; background: #eaf1ff; }
.chip.chosen, .chip[aria-current="page"], .tabs > a[aria-current="page"], .tabs > a.chosen {
  background: #174eeb; border-color: #174eeb; color: #fff;
}
.counts > *, .pill {
  display: inline-flex; align-items: center; gap: .25rem;
  border: 1px solid #d0dced; border-radius: 999px;
  background: #edf3fc; color: #374e70;
  padding: .24rem .57rem;
  font-size: .82rem; line-height: 1.4; font-weight: 650;
}
.pill-attention { color: #764407; border-color: #efce88; background: #fff5dc; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .9rem; align-items: stretch; }
.card { display: flex; flex-direction: column; min-width: 0; position: relative; border-inline-start: 3px solid #d9e2ee; }
.card:has(.u-red) { border-inline-start-color: #c14156; }
.card:has(.u-yellow) { border-inline-start-color: #c18019; }
.card:has(.u-green) { border-inline-start-color: #2d9369; }
.card:has(.overdue) { border-inline-start-color: #c14156; background: #fffcfd; }
.card:has(.s-done, .s-canceled):not(:has(.overdue)) { border-inline-start-color: #c6d3e3; }
.card:hover { border-block-color: #b1c5e9; border-inline-end-color: #b1c5e9; box-shadow: 0 8px 28px #172d5918; }
.card > .row:first-child { align-items: center; flex-wrap: wrap; }
.card > .urg, .card > .task-flags { margin-top: .72rem; align-self: start; }
.card h2 { margin: .72rem 0 .3rem; font-size: 1.18rem; }
.card h2 a { color: var(--sc-ink); text-decoration-color: #9cafd0; }
.card h2 a:hover { color: #1649cb; text-decoration-color: currentColor; }
.card > p { margin-bottom: 1rem; color: var(--sc-muted); overflow-wrap: anywhere; }
.card .row.meta { margin-top: auto; padding-top: .65rem; border-top: 1px solid #e3eaf5; align-items: flex-start; flex-wrap: wrap; }
.card .meta > *, .detailmeta > *, .toolbar > * { min-width: 0; overflow-wrap: anywhere; }
.meta, .back, .field-note, .subhead { color: var(--sc-muted); }
.back { color: #234b9f; font-weight: 700; min-height: 44px; align-items: center; display: inline-flex; }
.status, .urg { font-size: .78rem; font-weight: 750; line-height: 1.4; }
.status { padding: .28rem .62rem; background: #e6effe; color: #254a8b; }
.s-doing { background: #eee8ff; color: #563398; }
.s-waiting { background: #fff1cf; color: #734509; }
.s-done { background: #e2f4e9; color: #1c6346; }
.s-canceled { background: #eceff5; color: #45546a; }
.urg { border-color: #a7b8cf; padding: .22rem .55rem; max-width: 100%; white-space: normal; }
.urg i { flex: 0 0 .5rem; width: .5rem; height: .5rem; }
.u-red, .overdue { background: #ffe9ee; color: #942540; border-color: #e8b9c4; }
.u-yellow { background: #fff5d9; color: #79500c; border-color: #e8ce9c; }
.u-green { background: #e5f6ed; color: #175b41; border-color: #b9ddcb; }
.overdue { display: inline-block; margin: .18rem 0 0 .18rem; padding: .12rem .38rem; border-radius: .36rem; font-size: .76rem; line-height: 1.35; }
.u-soon i { animation: none; }
.two { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 1rem; }
.cols { gap: .85rem; }
.detailmeta { margin: .85rem 0 1.1rem; }
.panel-title, .section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .45rem; }
.subhead, .field-note { font-size: .875rem; }
.task-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem;
  padding: .65rem .75rem;
  border: 1px solid #dce6f2;
  border-radius: .65rem;
  background: #fafcff;
  color: var(--sc-text);
  overflow-wrap: anywhere;
}
.task-row :is(input[type=checkbox], input[type=radio]) { flex: 0 0 1.125rem; align-self: center; }
.task-row + .task-row { margin-top: .45rem; }
.context-box, .danger-zone {
  border: 1px solid #d4e2f6; border-radius: .7rem;
  background: #f4f8ff; padding: .75rem .85rem;
  overflow-wrap: anywhere;
}
.context-box p:last-child, .danger-zone p:last-child { margin-bottom: 0; }
.danger-zone { background: #fff8f9; border-color: #ecc5cf; }
.danger-zone h2 { color: #7b2c43; }
.spark { color: #2356d7; }
.timeline { list-style: none; padding-left: .75rem; border-inline-start: 2px solid #dce6f6; }
.timeline li { position: relative; border: 0; margin: .65rem 0; padding: 0 0 .6rem .4rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -1.05rem; top: .42rem; width: .5rem; height: .5rem; background: #4779ee; border: 2px solid #fff; border-radius: 50%; }
.timeline li + li { border-top: 1px solid #e4ebf5; padding-top: .65rem; }
.timeline li + li::before { top: 1.08rem; }
.timeline p { margin-top: .28rem; }
dt { color: var(--sc-text); }
.alert, .empty {
  border: 1px solid #cddcef; border-inline-start: 4px solid #3b6be0;
  border-radius: .72rem; background: #f7faff; color: #304965; padding: .8rem .95rem;
}
.cards > .empty { grid-column: 1 / -1; margin: 0; }
.toast { background: #182c4f; box-shadow: 0 12px 36px #10254444; border-radius: .75rem; }
.toast a { color: #c2daff; }
:is(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--sc-focus); outline-offset: 3px; }
.head :is(a, button):focus-visible, .toast :is(a, button):focus-visible { outline-color: #9dc2ff; }
@media (max-width: 760px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters label:first-of-type { grid-column: 1 / -1; }
  .filters button { grid-column: 1 / -1; justify-self: start; }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .intro { display: grid; grid-template-columns: minmax(0, 1fr); }
  .intro .button { justify-self: start; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .stat { padding: .65rem .72rem; }
  .head { min-height: 64px; gap: .5rem; }
  .head nav { gap: .55rem; }
  .logo { font-size: 1.25rem; }
  .logo small { font-size: .54rem; }
}
@media (max-width: 350px) {
  .head nav a { display: none; } /* The brand remains a task-home link. */
  .filters { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .urg i, .spark, .card, .toast, .chip, button, .button { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .card:has(.overdue) { border-inline-start: 4px solid LinkText; }
  .urg i, .timeline li::before { background: CanvasText; }
  .status, .urg, .pill, .overdue { border: 1px solid ButtonText; }
}
