/* Portal de marketing Waitry · identidad de la Estrategia 360, navegación a la izquierda */

:root {
  --red:      #ff3c25;   /* rojo del logo */
  --red-dark: #e22d17;
  --red-soft: #fff1ee;
  --ink:      #16181d;
  --ink-2:    #4b5058;
  --ink-3:    #868d98;
  --bg:       #f6f7f9;
  --surface:  #ffffff;
  --line:     #e7e9ed;
  --line-2:   #d7dbe1;
  --ok:       #12a15f;
  --warn:     #d98315;
  --a-motion: #2f6fd0;
  --b-motion: #7b53c9;
  --r:        14px;
  --r-sm:     10px;
  --font:     'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow:   0 2px 4px rgba(22,24,29,.04), 0 12px 32px rgba(22,24,29,.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.62 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4 { margin: 0; line-height: 1.22; font-weight: 500; letter-spacing: -.02em; }
::selection { background: var(--red); color: #fff; }

/* ───────── Marca ───────── */
.brand__logo { display: block; width: 132px; height: auto; }
.brand__sub { font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin: 10px 0 0 2px; }
.brand__logo--gate { width: 150px; margin: 0 auto 22px; }

/* ───────── Puerta de PIN ───────── */
.gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.gate__card { width: 100%; max-width: 390px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px 28px; box-shadow: var(--shadow); }
.gate__title { font-size: 25px; text-align: center; font-weight: 500; }
.gate__sub { color: var(--ink-3); font-size: 13.5px; margin: 6px 0 26px; text-align: center; }
.gate__error { color: var(--red-dark); font-size: 13px; margin: 14px 0 0; text-align: center; }

/* ───────── Campos y botones ───────── */
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 11.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field__hint { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input, .select { width: 100%; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 10px 12px; outline: none; transition: .12s; }
.input:focus, .select:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.input--area { resize: vertical; min-height: 88px; line-height: 1.55; }
.select { appearance: none; cursor: pointer; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 53%, calc(100% - 11px) 53%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check--block { display: flex; margin: 2px 0 18px; }
.check input { accent-color: var(--red); width: 15px; height: 15px; }

.btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; font-weight: 500; transition: .12s; }
.btn:hover { border-color: var(--ink-3); }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn--quiet:hover { background: var(--bg); color: var(--ink); border-color: transparent; }
.btn--block { width: 100%; margin-top: 8px; }
.btn--sm { padding: 5px 12px; font-size: 13px; }

/* ───────── Estructura ───────── */
.shell { height: 100%; display: flex; }
.sidebar { width: 262px; flex: 0 0 262px; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; }
.sidebar__brand { padding: 22px 22px 16px; }
.nav { flex: 1 1 auto; overflow-y: auto; padding: 6px 12px 28px; }
.sidebar__foot { border-top: 1px solid var(--line); padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.whoami { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.whoami__name { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.storage { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--warn);
  font-weight: 600; cursor: help; }

.nav__group { margin-bottom: 4px; }
.nav__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3); font-weight: 600; padding: 16px 12px 6px; }
.nav__item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: transparent; border: 0; padding: 9px 12px; border-radius: var(--r-sm);
  cursor: pointer; color: var(--ink-2); font-weight: 500; transition: .12s; }
.nav__item:hover { background: var(--bg); color: var(--ink); }
.nav__item.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.nav__item.is-active .nav__n { color: rgba(255,255,255,.6); }
.nav__n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; width: 12px; }
.nav__chev { margin-left: auto; font-size: 10px; color: var(--ink-3); transition: transform .15s; }
.nav__item.is-open .nav__chev { transform: rotate(90deg); }
.nav__badge { margin-left: auto; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--warn); font-weight: 600; }
.nav__sub { list-style: none; margin: 2px 0 6px; padding: 0 0 0 10px; }
.nav__sub button { display: block; width: 100%; text-align: left; background: transparent; border: 0;
  padding: 7px 12px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; transition: .12s; }
.nav__sub button:hover { background: var(--bg); color: var(--ink); }
.nav__sub button.is-active { background: var(--red-soft); color: var(--red-dark); font-weight: 600; }
.nav__sections { list-style: none; margin: 2px 0 6px; padding: 0 0 0 22px; }
.nav__sections a { display: block; color: var(--ink-3); text-decoration: none; font-size: 12.5px; padding: 4px 0; }
.nav__sections a:hover { color: var(--red); }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 26px 36px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pagehead__kicker { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--red); font-weight: 700; margin-bottom: 7px; }
.pagehead__title { font-size: 32px; font-weight: 500; letter-spacing: -.025em; }
.pagehead__sub { color: var(--ink-2); margin: 6px 0 0; font-size: 15px; }
.sync { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sync.is-saving { color: var(--warn); }
.sync.is-ok { color: var(--ok); }
.sync.is-err { color: var(--red-dark); }
.pagebody { flex: 1 1 auto; overflow-y: auto; padding: 28px 36px 110px; }
.view { display: none; }
.view.is-active { display: block; }

/* ───────── Lectura de estrategia ───────── */
.reader { max-width: 830px; }
.reader h2 { font-size: 23px; margin: 42px 0 4px; font-weight: 500; }
.reader h3 { font-size: 15.5px; margin: 26px 0 8px; font-weight: 600; letter-spacing: 0; }
.reader p { color: var(--ink-2); }
.reader ul { color: var(--ink-2); padding-left: 20px; }
.reader li { margin: 7px 0; }
.subtle { color: var(--ink-3); font-size: 13.5px; }
.section { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 38px; scroll-margin-top: 16px; }
.section__ref { font-size: 10.5px; color: var(--red); letter-spacing: .12em; font-weight: 700; }

.callout { background: var(--red-soft); border-radius: var(--r); padding: 16px 18px;
  margin: 20px 0; color: #8a2a14; font-size: 14.5px; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 18px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card__name { font-weight: 500; margin-bottom: 6px; font-size: 15px; }
.card__text { color: var(--ink-2); font-size: 13.5px; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
td { color: var(--ink-2); }
.table-wrap { overflow-x: auto; }

.motions { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); margin: 22px 0; }
.motion { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.motion--A { border-top: 3px solid var(--a-motion); }
.motion--B { border-top: 3px solid var(--b-motion); }
.motion__key { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.motion__name { font-size: 19px; margin: 5px 0 2px; }
.motion__kicker { color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.motion dl { display: grid; grid-template-columns: 132px 1fr; gap: 7px 12px; margin: 0; font-size: 13.5px; }
.motion dt { color: var(--ink-3); }
.motion dd { margin: 0; color: var(--ink-2); }
.ladder { display: grid; gap: 10px; margin: 18px 0; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.step__n { color: var(--red); font-weight: 700; }
.step__tag { font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 600; }

/* ───────── Objetivos ───────── */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 20px; min-width: 118px; }
.stat--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat--dark .stat__l { color: rgba(255,255,255,.62); }
.stat__n { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat__l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 600; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar__title { font-weight: 600; font-size: 15px; min-width: 210px; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.filters .select { width: auto; border-radius: 999px; }

.pgroup { margin-bottom: 34px; }
.pgroup__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.pgroup__num { color: var(--red); font-weight: 700; }
.pgroup__name { font-size: 18px; font-weight: 600; }
.pgroup__tag { color: var(--ink-3); font-size: 13px; }

.obj { display: grid; grid-template-columns: 10px 1fr 200px 84px 62px; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 18px; margin-bottom: 9px; cursor: pointer; transition: .12s; text-align: left; width: 100%; }
.obj:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.obj[draggable="true"] { cursor: grab; }
.obj.is-dragging { opacity: .45; }
.obj.is-over { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.obj__main { min-width: 0; }
.drag-hint { margin: -8px 0 16px; }
.obj__title { font-weight: 500; margin-bottom: 5px; }
.obj__meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-3); }
.obj__target { font-size: 13px; color: var(--ink); font-weight: 500; }
.obj__metric { font-size: 11.5px; color: var(--ink-3); }
.obj__hz { font-size: 12px; color: var(--ink-2); font-weight: 600; text-align: center;
  background: var(--bg); border-radius: 999px; padding: 4px 0; }
.obj__pct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.prio { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 10px; }
.prio--alta   { background: #e5342a; }
.prio--media  { background: #f0b429; }
.prio--normal { background: #22a06b; }

.pill { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; font-weight: 600;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; color: var(--ink-3); }
.pill--A { color: var(--a-motion); border-color: color-mix(in srgb, var(--a-motion) 35%, transparent); background: color-mix(in srgb, var(--a-motion) 7%, transparent); }
.pill--B { color: var(--b-motion); border-color: color-mix(in srgb, var(--b-motion) 35%, transparent); background: color-mix(in srgb, var(--b-motion) 7%, transparent); }
.pill--macro { color: var(--red-dark); border-color: color-mix(in srgb, var(--red) 35%, transparent); background: var(--red-soft); }
.pill--hyp { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.pill--block { color: #b03a1a; border-color: #f0c9bd; background: #fdf0ec; }
.pill--parked { border-style: dashed; }
.meter { height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-top: 10px; }
.meter__fill { height: 100%; background: var(--red); border-radius: 999px; transition: width .2s; }
.meter__fill.is-done { background: var(--ok); }
.meter__fill.is-blocked { background: #b03a1a; }
.status { font-size: 11.5px; font-weight: 500; }
.status--en_curso { color: var(--warn); }
.status--hecho { color: var(--ok); }
.status--bloqueado { color: #b03a1a; }
.status--descartado { color: var(--ink-3); text-decoration: line-through; }

.goal { display: grid; grid-template-columns: 10px 1fr 150px 62px; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; margin-bottom: 9px; cursor: pointer; transition: .12s; text-align: left; width: 100%; }
.goal:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.goal__title { font-weight: 500; margin-bottom: 4px; }
.goal__meta { font-size: 12.5px; color: var(--ink-3); }
.goal__num { text-align: right; font-variant-numeric: tabular-nums; }
.goal__num b { font-size: 20px; font-weight: 700; }
.goal__num span { color: var(--ink-3); }
.goal__unit { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.goal__pending { font-size: 11.5px; color: var(--warn); font-weight: 600; }
.goal__pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.outscope { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 24px; }
.outscope ul { list-style: none; padding: 0; margin: 14px 0 0; }
.outscope li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
.outscope b { color: var(--ink); font-weight: 600; }

/* ───────── Destacado ───────── */
.obj.is-hl, .kcard.is-hl, .tcard.is-hl {
  background: var(--red); border-color: var(--red); color: #fff; }
.obj.is-hl .obj__metric, .obj.is-hl .obj__meta, .obj.is-hl .status,
.kcard.is-hl .kcard__m, .tcard.is-hl .tcard__m { color: rgba(255,255,255,.82); }
.obj.is-hl .obj__target { color: #fff; }
.obj.is-hl .obj__hz { background: rgba(255,255,255,.2); color: #fff; }
.obj.is-hl .meter, .kcard.is-hl .meter, .tcard.is-hl .meter { background: rgba(255,255,255,.25); }
.obj.is-hl .meter__fill, .kcard.is-hl .meter__fill { background: #fff; }
.obj.is-hl .pill, .kcard.is-hl .pill, .tcard.is-hl .pill {
  color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); }
.obj.is-hl .prio, .kcard.is-hl .prio, .tcard.is-hl .prio { box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.tcard.is-hl { border-left-color: #fff; }

/* ───────── Interruptor ───────── */
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 4px 0 18px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2);
  position: relative; transition: .16s; flex: 0 0 38px; }
.switch__dot { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: .16s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .switch__track { background: var(--red); }
.switch input:checked + .switch__track .switch__dot { transform: translateX(16px); }
.switch__label { font-size: 13.5px; color: var(--ink-2); }

/* ───────── Conmutador de vista y kanban ───────── */
.viewswitch { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.viewswitch__btn { background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--ink-2); transition: .12s; }
.viewswitch__btn:hover { border-color: var(--ink-3); }
.viewswitch__btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.viewswitch .drag-hint { margin: 0 0 0 6px; }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.kcol { background: #f1f2f5; border-radius: var(--r); padding: 12px; min-height: 220px; transition: .12s; }
.kcol.is-over { background: var(--red-soft); box-shadow: inset 0 0 0 2px var(--red); }
.kcol__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 6px 12px; }
.kcol__label { font-size: 13px; font-weight: 600; }
.kcol__n { font-size: 11px; font-weight: 600; background: var(--surface); border-radius: 999px;
  padding: 1px 8px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.kcol__note { width: 100%; font-size: 11.5px; color: var(--ink-3); }
.kcol--alta   .kcol__label::before { content: ''; display: inline-block; width: 9px; height: 9px;
  border-radius: 50%; background: #e5342a; margin-right: 7px; }
.kcol--media  .kcol__label::before { content: ''; display: inline-block; width: 9px; height: 9px;
  border-radius: 50%; background: #f0b429; margin-right: 7px; }
.kcol--normal .kcol__label::before { content: ''; display: inline-block; width: 9px; height: 9px;
  border-radius: 50%; background: #22a06b; margin-right: 7px; }
.kcol__empty { font-size: 12.5px; color: var(--ink-3); padding: 8px 6px; margin: 0; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 13px; margin-bottom: 8px; cursor: grab; transition: .12s; }
.kcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.kcard.is-dragging { opacity: .4; }
.kcard__t { font-size: 13.5px; line-height: 1.4; font-weight: 500; }
.kcard__m { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px;
  font-size: 11px; color: var(--ink-3); }
.kcard__hz { font-weight: 600; }
.kcard__pct { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ───────── Calendario de contenido ───────── */
.week { display: grid; grid-template-columns: repeat(7, minmax(138px, 1fr)); gap: 10px; align-items: stretch; overflow-x: auto; padding-bottom: 6px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; min-height: 190px; display: flex; flex-direction: column; }
.day.is-today { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.day.is-weekend { background: #fbfbfc; }
.day__head { margin-bottom: 10px; }
.day__name { font-size: 12px; font-weight: 600; }
.day__date { font-size: 11px; color: var(--ink-3); }
.day__items { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.piece { border: 1px solid var(--line); border-left: 3px solid var(--ink-3); border-radius: 8px;
  padding: 8px 9px; cursor: pointer; transition: .12s; background: var(--surface); }
.piece:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.piece--por_hacer { border-left-color: var(--ink-3); }
.piece--en_curso  { border-left-color: var(--warn); }
.piece--listo     { border-left-color: var(--a-motion); }
.piece--publicado { border-left-color: var(--ok); }
.piece__ch { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.piece__t { font-size: 12.5px; font-weight: 500; line-height: 1.35; margin: 3px 0; }
.piece__m { font-size: 11px; color: var(--ink-3); }
.day__add { margin-top: 10px; background: transparent; border: 1px dashed var(--line-2); border-radius: 8px;
  padding: 6px; font-size: 12px; color: var(--ink-3); cursor: pointer; transition: .12s; }
.day__add:hover { border-color: var(--red); color: var(--red); }

/* ───────── Cumplimiento ───────── */
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 18px; color: var(--ink-2); font-size: 13.5px; margin-bottom: 24px; }
.notice strong { color: var(--ink); }
.kbd { display: inline-block; border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px;
  font-size: 11px; background: var(--bg); }
.timeline { display: grid; grid-template-columns: repeat(8, minmax(208px, 1fr)); gap: 14px; align-items: start;
  overflow-x: auto; padding-bottom: 8px; }
.month { min-width: 0; }
.month__head { padding-bottom: 12px; }
.month__chip { display: flex; align-items: center; gap: 8px; background: var(--red); color: #fff;
  border-radius: var(--r-sm); padding: 9px 12px; }
.month__n { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.month__count { margin-left: auto; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.22);
  border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.month__note { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; padding-left: 2px; }
.lane__label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); font-weight: 600; margin: 12px 0 7px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; margin-bottom: 8px; cursor: pointer; font-size: 13px; transition: .12s; }
.tcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.tcard--macro { border-left: 3px solid var(--red); }
.tcard--block { border-left: 3px solid #e79a80; }
.tcard { position: relative; padding-left: 24px; }
.tcard .prio { position: absolute; left: 9px; top: 14px; }
.tcard__t { line-height: 1.38; font-weight: 500; }
.tcard__m { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; margin-top: 8px;
  font-size: 11px; color: var(--ink-3); }
.tcard__pct { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.tmove { display: flex; gap: 5px; margin-top: 8px; }
.tmove button { background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 8px; font-size: 11px; cursor: pointer; color: var(--ink-3); }
.tmove button:hover { color: var(--ink); border-color: var(--line-2); }
.parked { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; }
.parked-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 14px; }
.parked .tcard { opacity: .74; }
.legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.dot--macro { background: var(--red); }
.dot--block { background: #e79a80; }
.dot--hyp { background: var(--warn); }

/* ───────── Panel lateral ───────── */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 452px; max-width: 92vw;
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(22,24,29,.12); display: flex; flex-direction: column; z-index: 40; }
.drawer__head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.drawer__ref { font-size: 10.5px; letter-spacing: .12em; color: var(--red); font-weight: 700; margin-bottom: 5px; }
.drawer__title { font-size: 18px; font-weight: 600; }
.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 22px 24px; }
.progress-box { background: var(--bg); border-radius: var(--r); padding: 16px 18px; margin-bottom: 22px; }
.progress-box__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.progress-box__label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.progress-box__value { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.progress-box__value::after { content: '%'; font-size: 15px; color: var(--ink-3); margin-left: 1px; }
.range { width: 100%; accent-color: var(--red); }
.quick { display: flex; gap: 6px; margin-top: 12px; }
.quick button { flex: 1; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 4px 0; font-size: 12px; cursor: pointer; color: var(--ink-3); }
.quick button:hover { color: var(--ink); border-color: var(--ink-3); }
.drawer__meta { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.meta-block { font-size: 12.5px; color: var(--ink-2); margin-bottom: 16px; }
.meta-block b { display: block; color: var(--ink-3); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; font-weight: 600; }
.meta-block a { display: block; color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.meta-block a:hover { color: var(--red); }
.drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 24px; border-top: 1px solid var(--line); }
.drawer__saved { font-size: 12px; color: var(--ink-3); }
.scrim { position: fixed; inset: 0; background: rgba(22,24,29,.28); z-index: 30; }

@media (max-width: 1000px) {
  .sidebar { display: none; }
  .pagehead { padding: 20px; }
  .pagebody { padding: 20px 20px 90px; }
  .obj { grid-template-columns: 10px 1fr 62px; }
  .kanban { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(7, 74vw); }
  .goal { grid-template-columns: 10px 1fr 62px; }
  .goal__num { display: none; }
  .obj__target-cell, .obj__hz { display: none; }
  .timeline { grid-template-columns: repeat(8, 78vw); }
}

/* ───────── Comunicación · estrategia de blogs ───────── */
.pill--AB { background: #eef1f5; color: var(--ink-2); }

.lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 4px 0 26px; }
.lane-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; border-top: 3px solid var(--tone); box-shadow: var(--shadow); }
.lane-card--A { --tone: var(--red); }
.lane-card--B { --tone: var(--ok); }
.lane-card--C { --tone: var(--a-motion); }
.lane-card__tag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tone); }
.lane-card p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.lane-card__m { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

.ukbrief { margin: 28px 0 6px; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); }
.ukstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden; margin: 14px 0 18px; }
.ukstat { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ukstat b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--red);
  font-variant-numeric: tabular-nums; }
.ukstat span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }

.market { margin-top: 34px; }
.market > h2 { font-size: 22px; }

.lanehd { display: flex; align-items: center; gap: 11px; margin: 26px 0 12px; }
.lanehd--A { --tone: var(--red); }
.lanehd--B { --tone: var(--ok); }
.lanehd--C { --tone: var(--a-motion); }
.lanehd__code { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--tone);
  padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.lanehd h3 { font-size: 16px; font-weight: 600; }
.lanehd__m { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.idea { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow); }
.idea--A { --tone: var(--red); }
.idea--B { --tone: var(--ok); }
.idea--C { --tone: var(--a-motion); }
.idea:hover { border-color: var(--tone); }
.idea__top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.idea__id { font-size: 11.5px; font-weight: 700; color: var(--tone); letter-spacing: .04em; }
.idea__lang, .idea__fmt { font-size: 11px; color: var(--ink-3); }
.idea__fmt { margin-left: auto; }
.idea h4 { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.idea__desc { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.idea__rows { margin: 0; padding-top: 9px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 72px 1fr; gap: 4px 10px; }
.idea__rows dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 700; padding-top: 2px; }
.idea__rows dd { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.idea__cta { align-self: flex-start; margin-top: auto; padding-left: 0; }

/* ───────── Comunicación · redacción ───────── */

/* ───────── Calificadores 1–5 y cierre ───────── */
.score { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--bg); color: var(--ink-3); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.score--1, .score--2 { background: #fdf0ec; color: #b03a1a; border-color: #f0c9bd; }
.score--3 { background: #fdf3e3; color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.score--4, .score--5 { background: #e6f6ee; color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.post__avg { font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  font-variant-numeric: tabular-nums; margin-left: 2px; }
.post__nocta { font-size: 11px; font-weight: 600; color: var(--red-dark);
  background: var(--red-soft); border-radius: 6px; padding: 2px 7px; }

.scorebox { border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 15px; margin-bottom: 18px; background: var(--bg); }
.scorebox__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.scorebox__title { font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-2); }
.scorebox__avg { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scorerow { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.scorerow__label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; flex: 1; }
.scorerow__label em { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.scorerow__hint { margin: 4px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.stars { display: flex; gap: 4px; }
.stars button { width: 26px; height: 26px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; transition: .12s; }
.stars button:hover { border-color: var(--ink-3); }
.stars button.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.stars button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.scorelegend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--ink-3); }
.scorelegend b { color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 18px; }
.chip { font-size: 11.5px; padding: 5px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); transition: .12s; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ───────── Taller de redacción ───────── */
.studio { display: grid; grid-template-columns: 316px minmax(0, 1fr); gap: 18px; align-items: start; }
.studio__side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; }
.studio__filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.select--sm, .input--sm { padding: 7px 10px; font-size: 13px; border-radius: 9px; }
.studio__count { font-size: 12px; color: var(--ink-3); padding: 0 2px; }
.studio__list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 250px); overflow: auto; padding-right: 2px; }

.pcard { text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 13px; cursor: pointer; display: flex;
  flex-direction: column; gap: 7px; transition: .12s; }
.pcard:hover { border-color: var(--line-2); }
.pcard.is-open { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.pcard__top { display: flex; align-items: center; gap: 7px; }
.pcard__mk { font-size: 11px; color: var(--ink-3); margin-left: auto; }
.pcard__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.pcard__scores { display: flex; align-items: center; gap: 4px; }
.pcard__w { font-size: 11px; color: var(--ink-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.pcard__ref { font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: var(--bg);
  border-radius: 5px; padding: 2px 7px; }

.studio__main { min-width: 0; }
.empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 60px 30px; text-align: center; }
.empty h3 { font-size: 18px; margin-bottom: 8px; }
.empty p { color: var(--ink-3); font-size: 14px; margin: 0; }

.editor { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.editor__head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.editor__title { flex: 1; min-width: 0; border: none; background: transparent; font-size: 20px;
  font-weight: 600; letter-spacing: -.02em; padding: 4px 0; }
.editor__title:focus { outline: none; border-bottom: 2px solid var(--red); }
.editor__act { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.editor__saved { font-size: 12px; color: var(--ok); }
.editor__sub { display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  border-bottom: 1px solid var(--line); background: var(--bg); font-size: 12.5px; }
.editor__avg { margin-left: auto; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.editor__body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.editor__doc { border-right: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.tabs { display: flex; gap: 2px; padding: 12px 20px 0; }
.tabs__b { background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 7px 12px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.tabs__b:hover { color: var(--ink); }
.tabs__b.is-on { color: var(--ink); border-bottom-color: var(--red); font-weight: 600; }
.paper { margin: 14px 20px 20px; min-height: 560px; border-radius: var(--r-sm); resize: vertical;
  font-size: 14.5px; line-height: 1.75; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

.preview { padding: 18px 30px 34px; max-width: 68ch; }
.preview h2 { font-size: 26px; margin: 0 0 14px; }
.preview h3 { font-size: 19px; margin: 26px 0 8px; }
.preview h4 { font-size: 16px; margin: 20px 0 6px; }
.preview p { margin: 0 0 13px; color: var(--ink-2); }
.preview ul, .preview ol { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); }
.preview li { margin-bottom: 5px; }
.preview strong { color: var(--ink); }
.preview .tbl { overflow-x: auto; margin-bottom: 16px; }
.preview table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.preview th, .preview td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
.preview th { background: var(--bg); font-weight: 700; font-size: 12.5px; }
.preview__cta { margin-top: 22px; border-left: 3px solid var(--ok); background: #e6f6ee;
  padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.preview__cta b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ok); }
.preview__cta p { margin: 5px 0 0; }

.ficha { padding: 14px; display: flex; flex-direction: column; gap: 12px;
  max-height: calc(100vh - 210px); overflow: auto; background: var(--bg); }
.ficha__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; }
.ficha__box h4 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-3); margin-bottom: 10px; }
.ficha__box .field { margin-bottom: 9px; }
.ficha__row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ficha__box--quiet p { font-size: 12.5px; color: var(--ink-2); margin: 0 0 7px; }
.ficha .chips { margin: 8px 0 0; }
.field__hint.is-warn { color: var(--warn); }

.axis { border-top: 1px solid var(--line); padding-top: 11px; margin-top: 11px; }
.axis:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.axis__head { display: flex; align-items: center; gap: 7px; }
.axis__name { font-size: 13px; font-weight: 700; }
.axis__auto { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.axis__auto--man { border-style: dashed; }
.axis__head .score { margin-left: auto; }
.axis__head .score em { font-style: normal; opacity: .6; font-weight: 400; }
.axis__head .stars { margin-left: auto; }
.axis__hint { margin: 7px 0 0; font-size: 11px; color: var(--ink-3); line-height: 1.45; }
.axis__checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.axis__checks li { display: flex; gap: 7px; font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.axis__checks li.is-ok { color: var(--ink-2); }
.axis__mark { color: var(--line-2); font-weight: 700; width: 10px; flex-shrink: 0; }
.axis__checks li.is-ok .axis__mark { color: var(--ok); }
.axis__checks em { display: block; font-style: normal; color: var(--warn); margin-top: 2px; }

@media (max-width: 1180px) {
  .studio { grid-template-columns: 1fr; }
  .studio__side { position: static; }
  .studio__list { max-height: 260px; }
  .editor__body { grid-template-columns: 1fr; }
  .editor__doc { border-right: none; border-bottom: 1px solid var(--line); }
  .ficha { max-height: none; }
}
