/* ==================================================================
   CRM Campaña — base
   Blanco y neutros FRÍOS (nada de cremas). Azul GoodCall hace el
   trabajo, rojo Merced solo cuando duele, dorado reservado al
   aterrizaje. Ningún fondo negro: el carril es claro y se pliega.
   Tipos: Fraunces (títulos) · IBM Plex Sans (texto) · IBM Plex Mono (cifras)
   ================================================================== */

:root {
  /* neutros fríos */
  --ground:     #F3F6FA;
  --surface:    #FFFFFF;
  --surface-2:  #F8FAFD;
  --ink:        #111826;
  --ink-2:      #5A6577;
  --ink-3:      #8792A4;
  --line:       #E3E8EF;
  --line-soft:  #EFF3F8;
  --wash:       #EDF1F7;

  /* azul GoodCall */
  --azul:       #2F7BE0;
  --azul-hon:   #1B5FBF;
  --azul-mas:   #14498F;
  --azul-sua:   #EAF2FD;

  /* rojo Merced */
  --rojo:       #C8102E;
  --rojo-hon:   #9B0C23;
  --rojo-sua:   #FDECEF;
  --rojo-linea: #F7CCD4;

  /* dorado, reservado */
  --oro:        #A8812A;
  --oro-luz:    #D4AF37;
  --oro-sua:    #FAF3E1;

  /* estados */
  --verde:      #116B44;
  --verde-sua:  #E7F6EE;
  --vivo:       #16A34A;

  --sans:  'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --r-sm: 8px; --r-md: 11px; --r-lg: 14px;
  --sombra: 0 1px 2px rgba(17,24,38,.04), 0 6px 20px rgba(17,24,38,.05);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0; font-family: var(--sans);
  background: var(--ground); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--azul-hon); text-decoration: none; }
a:hover { color: var(--azul-mas); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.spacer { flex-grow: 1; }

/* ==================== carril claro y plegable ==================== */

.app { display: flex; min-height: 100vh; }

.rail {
  width: 236px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 0; height: 100vh;
  transition: width .18s ease, padding .18s ease;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--azul), var(--azul-mas));
  display: flex; align-items: center; justify-content: center;
}
.brand-name { display: block; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.brand-sub { font-size: 9.5px; color: var(--ink-3); letter-spacing: .08em; font-weight: 700; }

.rail-toggle {
  margin-left: auto; width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.rail-toggle:hover { background: var(--wash); color: var(--ink); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; border-radius: var(--r-md);
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
}
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--azul-sua); color: var(--azul-mas); font-weight: 700; }
.nav a .txt { flex-grow: 1; }
.nav-count {
  background: var(--wash); color: var(--ink-2); font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 99px; font-family: var(--mono);
}
.nav a[aria-current="page"] .nav-count { background: var(--azul); color: #FFFFFF; }

.rail-gap { flex-grow: 1; }
.rail-foot { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }

.punch { display: flex; flex-direction: column; gap: 7px; }
.punch-k { font-size: 9.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .07em; text-transform: uppercase; }
.punch-btn {
  width: 100%; border: 0; border-radius: var(--r-md); padding: 10px 0;
  background: linear-gradient(135deg, var(--azul), var(--azul-hon)); color: #FFFFFF;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.punch-btn:hover { filter: brightness(1.08); }
.punch-btn.out { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.punch-btn.out:hover { background: var(--wash); filter: none; }
.punch-btn[disabled] { background: var(--wash); color: var(--ink-3); cursor: default; filter: none; }
.punch-log { display: flex; justify-content: space-between; font-size: 10.5px; font-family: var(--mono); color: var(--ink-2); }
.punch-log b { color: var(--ink-3); font-weight: 400; }

.me { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.me-av {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--azul-sua); color: var(--azul-mas);
  display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700;
}
.me-name { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.me-role { font-size: 10.5px; color: var(--ink-3); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vivo); flex-shrink: 0; display: inline-block; }

/* plegado a 66 px */
body.rail-min .rail { width: 66px; padding: 18px 9px; }
body.rail-min .brand-text,
body.rail-min .rail .txt,
body.rail-min .nav-count,
body.rail-min .punch-k,
body.rail-min .punch-log,
body.rail-min .me-text { display: none; }
body.rail-min .brand { justify-content: center; padding: 0; }
body.rail-min .brand-mark { display: none; }
body.rail-min .rail-toggle { margin: 0; }
body.rail-min .nav a { justify-content: center; padding: 11px 0; gap: 0; }
body.rail-min .me { justify-content: center; padding: 0; }

/* ==================== estructura ==================== */

.main { flex-grow: 1; min-width: 0; padding: 26px 30px; display: flex; flex-direction: column; gap: 18px; }

.head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.head-txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
h1 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: -.015em; }
.sub { margin: 0; font-size: 13px; color: var(--ink-2); }
h2.ttl { margin: 0; font-size: 15px; font-weight: 700; }
.ttl-sub { font-size: 12px; color: var(--ink-2); }
h2.eyebrow { margin: 0; font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .07em; text-transform: uppercase; }

.rolebar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 13px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
}
.rolebar .tagline {
  font-size: 9.5px; font-weight: 700; color: var(--azul-mas); letter-spacing: .07em;
  text-transform: uppercase; background: var(--azul-sua); padding: 3px 8px; border-radius: 5px;
}
.rolebar select {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.rolebar .note { font-size: 12px; color: var(--ink-2); }

.clocks { display: flex; gap: 8px; }
.clock {
  display: flex; flex-direction: column; gap: 1px; padding: 7px 13px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); min-width: 94px;
}
.clock .z { font-size: 9.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .07em; }
.clock .t { font-family: var(--mono); font-size: 16px; font-weight: 600; line-height: 1.1; }
.clock.here { background: linear-gradient(135deg, var(--azul), var(--azul-mas)); border-color: transparent; }
.clock.here .z { color: rgba(255,255,255,.78); }
.clock.here .t { color: #FFFFFF; }
.clock.shut { background: var(--rojo-sua); border-color: var(--rojo-linea); }
.clock.shut .z { color: var(--rojo); }
.clock.shut .t { color: var(--rojo-hon); }

/* ==================== tarjetas ==================== */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 17px 19px; box-shadow: var(--sombra); }
.stack { display: flex; flex-direction: column; gap: 14px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.tile { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; }
.tile-k { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.tile-v { font-family: var(--mono); font-size: 29px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.tile-s { font-size: 11px; color: var(--ink-3); }
.tile-s.warn { color: var(--rojo); font-weight: 600; }

.alert {
  display: flex; align-items: center; gap: 13px; padding: 12px 16px;
  border-radius: var(--r-md); background: var(--rojo-sua); border: 1px solid var(--rojo-linea);
}
.alert p { margin: 0; flex-grow: 1; font-size: 13px; color: var(--rojo-hon); font-weight: 500; }
.alert a {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: var(--rojo); color: #FFFFFF; font-size: 13px; font-weight: 600;
  padding: 9px 15px; border-radius: var(--r-sm);
}
.alert a:hover { background: var(--rojo-hon); color: #FFFFFF; }

/* ==================== controles ==================== */

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.segmented { display: flex; gap: 3px; padding: 3px; background: var(--wash); border-radius: var(--r-md); }
.seg { border: 0; background: transparent; color: var(--ink-2); font-size: 12.5px; font-weight: 500; padding: 7px 13px; border-radius: var(--r-sm); cursor: pointer; }
.seg:hover { color: var(--ink); }
.seg[aria-pressed="true"] { background: var(--surface); color: var(--azul-mas); font-weight: 700; box-shadow: 0 1px 2px rgba(17,24,38,.09); }

.field { font-family: inherit; font-size: 13px; color: var(--ink); padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.field::placeholder { color: var(--ink-3); }
textarea.field { resize: none; line-height: 1.5; background: var(--surface-2); min-height: 62px; }
.lbl { font-size: 12.5px; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 10px 15px; border-radius: var(--r-sm); cursor: pointer;
}
.btn:hover { background: var(--wash); }
.btn-go { border: 0; background: linear-gradient(135deg, var(--azul), var(--azul-hon)); color: #FFFFFF; }
.btn-go:hover { filter: brightness(1.08); }
.btn-lg { height: 44px; font-size: 14px; border-radius: var(--r-md); }

.badge { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px; letter-spacing: .04em; white-space: nowrap; }
.b-es { background: var(--azul-sua); color: var(--azul-mas); }
.b-meta { background: var(--oro-sua); color: var(--oro); }

.pill { display: block; text-align: center; font-size: 12px; font-weight: 600; padding: 5px 0; border-radius: 7px; }
.p-warm { background: var(--rojo-sua); color: var(--rojo-hon); }
.p-calm { background: var(--azul-sua); color: var(--azul-mas); }
.p-blue { background: var(--verde-sua); color: var(--verde); }
.p-mute { background: var(--wash); color: var(--ink-2); }

/* ==================== bandeja ==================== */

.leads { flex-grow: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sombra); }
.lrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) 138px 158px 84px 116px 92px; align-items: center; gap: 15px; padding: 0 18px; }
.lhead { height: 40px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.lbody { height: 62px; border-bottom: 1px solid var(--line-soft); }
.lbody:last-child { border-bottom: 0; }
.lbody:hover { background: var(--surface-2); }
.lbody.sla { background: #FFF7F8; }
.lname { display: block; font-size: 14px; font-weight: 600; }
.lad { font-size: 12px; color: var(--ink-2); }
.ltel { font-family: var(--mono); font-size: 13px; }
.lwait { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lbody.sla .lwait { color: var(--rojo); }
.av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.av-es { background: var(--azul-sua); color: var(--azul-mas); }
.call {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px;
  background: linear-gradient(135deg, var(--azul), var(--azul-hon)); color: #FFFFFF;
  font-size: 12.5px; font-weight: 600; border-radius: var(--r-sm);
}
.call:hover { filter: brightness(1.08); color: #FFFFFF; }

/* ==================== pantalla de llamada ==================== */

.split { flex-grow: 1; display: flex; gap: 18px; align-items: flex-start; }
.col-l { width: 660px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.col-r { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.pair { display: flex; flex-direction: column; gap: 3px; }
.pair dt { font-size: 12px; color: var(--ink-2); }
.pair dd { margin: 0; font-size: 14px; font-weight: 600; }
.kv { display: flex; align-items: center; gap: 12px; }
.kv-k { width: 86px; flex-shrink: 0; font-size: 12px; color: var(--ink-2); }
.kv-v { font-size: 13px; font-weight: 600; }

/* el softphone: azul GoodCall profundo, nunca negro */
.phone {
  background: linear-gradient(150deg, var(--azul-hon), var(--azul-mas) 68%, #0F3A72);
  border-radius: var(--r-lg); padding: 21px 23px;
  display: flex; flex-direction: column; gap: 17px;
  box-shadow: 0 8px 28px rgba(20,73,143,.28);
}
.phone-top { display: flex; align-items: center; gap: 9px; }
.phone-top .t { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.88); letter-spacing: .06em; text-transform: uppercase; flex-grow: 1; }
.phone-top .m { font-size: 11px; color: rgba(255,255,255,.62); font-family: var(--mono); }
.timer { font-family: var(--mono); font-size: 44px; font-weight: 500; color: #FFFFFF; line-height: 1; letter-spacing: -.025em; }
.wave { flex-grow: 1; display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.wave i { flex-grow: 1; max-width: 5px; border-radius: 2px; background: rgba(255,255,255,.28); display: block; }
.wave i.on { background: #86DCB2; }
.cid { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: var(--r-md); background: rgba(255,255,255,.13); }
.cid .k { font-size: 11.5px; color: rgba(255,255,255,.72); }
.cid .v { font-size: 12px; color: #FFFFFF; font-weight: 600; font-family: var(--mono); flex-grow: 1; }
.keys { display: flex; gap: 9px; }
.key {
  flex-grow: 1; flex-basis: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 0; border: 0; border-radius: var(--r-md);
  background: rgba(255,255,255,.14); color: #FFFFFF; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.key:hover { background: rgba(255,255,255,.24); }
.key.hang, .key.muted { background: var(--rojo); }
.key.hang:hover, .key.muted:hover { background: var(--rojo-hon); }

.tips { display: flex; flex-direction: column; gap: 6px; }
.tip { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); cursor: pointer; }
.tip:hover { background: var(--surface-2); }
.tip input { width: 17px; height: 17px; accent-color: var(--azul); flex-shrink: 0; margin: 0; }
.tip-t { flex-grow: 1; font-size: 14px; font-weight: 600; }
.tip-h { font-size: 12px; color: var(--ink-2); }
.tip:has(input:checked) { border-color: var(--azul); background: var(--azul-sua); }

/* ==================== asistencias ==================== */

.att-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 100px 100px 110px 130px; align-items: center; gap: 14px; padding: 0 18px; }
.att-head { height: 40px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.att-body { height: 56px; border-bottom: 1px solid var(--line-soft); }
.att-body:last-child { border-bottom: 0; }
.att-body:hover { background: var(--surface-2); }
.chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.chip-in { background: var(--verde-sua); color: var(--verde); }
.chip-late { background: var(--oro-sua); color: var(--oro); }
.chip-out { background: var(--wash); color: var(--ink-2); }
.chip-no { background: var(--rojo-sua); color: var(--rojo-hon); }

/* ==================== panel de campaña ==================== */

.panels { display: flex; gap: 15px; }
.panel-wide { width: 716px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 19px 22px; }
.panel-side { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 19px 21px; }

.legend { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.legend span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; display: block; }

.plot { display: flex; height: 196px; flex-shrink: 0; }
.yaxis { width: 34px; height: 170px; padding-right: 8px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.yaxis span { font-size: 11px; color: var(--ink-3); font-family: var(--mono); line-height: 1; }
.plotarea { flex-grow: 1; position: relative; min-width: 0; }
.grid { position: absolute; inset: 0 0 auto 0; height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.grid i { height: 1px; background: var(--line-soft); display: block; }
.grid i:last-child { background: var(--line); }
.bars { position: absolute; inset: 0 0 auto 0; height: 170px; display: flex; gap: 14px; align-items: flex-end; }
.bgroup { flex-grow: 1; flex-basis: 0; height: 170px; display: flex; gap: 2px; align-items: flex-end; justify-content: center; border-radius: 5px 5px 0 0; }
.bgroup:hover { background: var(--surface-2); }
.bslot { flex-grow: 1; flex-basis: 0; height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.bslot b { font-size: 11px; font-weight: 600; color: var(--ink-2); font-family: var(--mono); line-height: 1; }
.bar { width: 100%; border-radius: 4px 4px 0 0; display: block; }
.xaxis { position: absolute; left: 0; right: 0; top: 176px; display: flex; gap: 14px; }
.xaxis span { flex-grow: 1; flex-basis: 0; text-align: center; font-size: 11px; color: var(--ink-3); font-family: var(--mono); }

.tip-chart {
  position: absolute; top: 4px; transform: translateX(-50%);
  background: var(--ink); border-radius: var(--r-sm); padding: 9px 12px;
  display: none; flex-direction: column; gap: 5px; pointer-events: none; white-space: nowrap; z-index: 2;
}
.tip-chart.on { display: flex; }
.tip-chart .d { font-size: 11px; color: rgba(255,255,255,.66); font-family: var(--mono); }
.tip-chart .r { display: flex; align-items: center; gap: 7px; }
.tip-chart .r span { font-size: 12px; color: #FFFFFF; flex-grow: 1; }
.tip-chart .r b { font-size: 12px; color: #FFFFFF; font-weight: 600; font-family: var(--mono); }
.tip-chart .sq { width: 8px; height: 8px; border-radius: 2px; flex-grow: 0 !important; }

details.data { font-size: 12px; color: var(--ink-2); }
details.data summary { cursor: pointer; padding: 4px 0; font-weight: 500; }
details.data table { border-collapse: collapse; margin-top: 8px; font-size: 11px; font-family: var(--mono); }
details.data caption { text-align: left; padding-bottom: 6px; color: var(--ink-2); font-family: var(--sans); }
details.data th, details.data td { padding: 3px 12px 3px 0; text-align: right; color: var(--ink); font-weight: 400; }
details.data th:first-child { text-align: left; }
details.data thead th { color: var(--ink-2); font-weight: 600; }

.funnel { display: flex; flex-direction: column; gap: 8px; }
.frow { display: flex; align-items: center; gap: 12px; }
.frow-k { width: 96px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1px; }
.frow-k .n { font-size: 13px; font-weight: 600; line-height: 1.2; }
.frow-k .p { font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.frow-bar { flex-grow: 1; min-width: 0; display: flex; align-items: center; }
.frow-bar i { height: 22px; border-radius: 4px; display: block; }
.frow-v { width: 52px; flex-shrink: 0; text-align: right; font-size: 14px; font-weight: 600; font-family: var(--mono); }

table.grid-tbl { width: 100%; border-collapse: collapse; }
table.grid-tbl th, table.grid-tbl td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
table.grid-tbl thead th { padding: 0 0 9px 0; font-size: 10.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); text-align: right; }
table.grid-tbl thead th:first-child, table.grid-tbl thead th:nth-child(2) { text-align: left; }
table.grid-tbl tbody th { text-align: left; font-weight: 400; }
table.grid-tbl td { text-align: right; font-size: 13px; font-family: var(--mono); }
table.grid-tbl td.left { text-align: left; }
table.grid-tbl .who { display: flex; align-items: center; gap: 10px; }
table.grid-tbl .who i { width: 27px; height: 27px; border-radius: 50%; background: var(--azul-sua); color: var(--azul-mas); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; font-style: normal; flex-shrink: 0; }
table.grid-tbl .who b { font-size: 13px; font-weight: 600; }
td.slow { color: var(--rojo); font-weight: 600; }

/* ==================== entrada ==================== */

.gate-page {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 16% -12%, #E4EEFB 0%, rgba(228,238,251,0) 62%),
    radial-gradient(900px 560px at 96% 6%, #FBE7EB 0%, rgba(251,231,235,0) 58%),
    var(--ground);
  display: flex; align-items: center; justify-content: center; padding: 44px 24px;
}
.gate-box { width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 32px; }
.gate-brand { display: flex; align-items: center; gap: 15px; }
.gate-brand h1 { margin: 0; font-size: 35px; }
.gate-brand p { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }
.gate-mark {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--azul), var(--azul-mas));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(27,95,191,.3);
}
.gate-q { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }

.posts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.post {
  display: flex; flex-direction: column; gap: 11px; padding: 20px 17px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); cursor: pointer; font-family: inherit; box-shadow: var(--sombra);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.post:hover { transform: translateY(-3px); border-color: var(--azul); box-shadow: 0 10px 26px rgba(27,95,191,.17); }
.post-ico {
  width: 40px; height: 40px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--azul-sua); color: var(--azul-mas);
  display: flex; align-items: center; justify-content: center;
  transition: background .14s ease, color .14s ease;
}
.post:hover .post-ico { background: linear-gradient(135deg, var(--azul), var(--azul-mas)); color: #FFFFFF; }
.post b { font-size: 15px; font-weight: 700; }
.post span { font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.gate-foot { font-size: 12px; color: var(--ink-3); }

@media (max-width: 980px)  { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
