/* INSIDE — sistema de diseño
   Fuente de identidad: logotipo oficial Inside.svg (#4ab6ff) y Portafolio SraLola 2026.
   Base del portafolio: negro/azul noche #010414 con resplandores violeta #400050 y azul #004166,
   blancos y grises #c9caca/#a8a8a8, acentos azul #4ab6ff, verde #00cf7b y rosa #ff94bd; marino #064680
   en las láminas claras. Tipografía: Maison Neue (Extended para titulares), usada solo si está instalada
   en el equipo (local()); no se distribuye el archivo. Rojo y amarillo del semáforo son colores de estado,
   no de marca. Todos los pares texto/fondo verificados ≥ 4.5:1. */
@font-face { font-family: "Inside Display"; font-weight: 800 900; src: local("MaisonNeue-ExtendedBlack"), local("Maison Neue Extended Black"); }
@font-face { font-family: "Inside Display"; font-weight: 700; src: local("MaisonNeue-ExtendedExtraBold"), local("Maison Neue Extended ExtraBold"); }
@font-face { font-family: "Inside Display"; font-weight: 600; src: local("MaisonNeue-ExtendedBold"), local("Maison Neue Extended Bold"); }
@font-face { font-family: "Inside Display"; font-weight: 400 500; src: local("MaisonNeue-ExtendedMedium"), local("Maison Neue Extended Medium"); }
@font-face { font-family: "Inside Text"; font-weight: 400; src: local("MaisonNeue-Book"), local("Maison Neue Book"); }
@font-face { font-family: "Inside Text"; font-weight: 500; src: local("MaisonNeue-Medium"), local("Maison Neue Medium"); }
@font-face { font-family: "Inside Text"; font-weight: 600; src: local("MaisonNeue-DemiBold"), local("Maison Neue DemiBold"); }
@font-face { font-family: "Inside Text"; font-weight: 700 800; src: local("MaisonNeue-Bold"), local("Maison Neue Bold"); }

:root {
  color-scheme: dark;
  /* marca (originales) */
  --brand-blue: #4ab6ff;
  --brand-green: #00cf7b;
  --brand-pink: #ff94bd;
  --brand-navy: #064680;
  --brand-night: #010414;
  --brand-violet-glow: #400050;
  --brand-blue-glow: #004166;
  /* superficies (tema oscuro: base de marca) */
  --bg: #010414;
  --surface: #0b0e20;
  --surface-2: #13172b;
  --surface-3: #1d2238;
  --border: #20253d;
  --border-strong: #343a57;
  --text: #ffffff;
  --text-2: #c9caca;
  --text-3: #a8a8a8;
  --brand-ink: #4ab6ff;        /* acción primaria */
  --brand-ink-text: #010414;
  --link: #4ab6ff;
  --focus: #4ab6ff;
  --accent: #00cf7b;
  --series-1: #4ab6ff;
  --series-2: #ff94bd;
  --series-3: #00cf7b;
  --st-blue: #4ab6ff;  --st-blue-bg: #0c2740;
  --st-green: #00cf7b; --st-green-bg: #04291d;
  --st-yellow: #fab219; --st-yellow-bg: #33270a;
  --st-red: #ff6b6b;   --st-red-bg: #3a1418;
  --st-none: #a8a8a8;  --st-none-bg: #1d2238;
  --st-yellow-ink: #fab219;
  --grid: #1a1e33;
  --shadow: none;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inside Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inside Display", "Inside Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sidebar: 256px;
  --side-bg: #000000;
}
/* Tema claro opcional (láminas claras del portafolio: blanco, grises y marino) */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f8; --surface: #ffffff; --surface-2: #eef0f5; --surface-3: #e2e5ee;
  --border: #dfe2ea; --border-strong: #c6cbd8;
  --text: #1d1d1b; --text-2: #494949; --text-3: #5e5e5e;
  --brand-ink: #064680; --brand-ink-text: #ffffff; --link: #1d6f99; --focus: #1d6f99; --accent: #064680;
  --series-1: #1d6f99; --series-2: #2b317f; --series-3: #045878;
  --st-blue: #1d6f99; --st-blue-bg: #e3eff7;
  --st-green: #0a7d4f; --st-green-bg: #e1f4ec;
  --st-yellow: #fab219; --st-yellow-bg: #fff4dc; --st-yellow-ink: #8a5a00;
  --st-red: #d03b3b; --st-red-bg: #fbe6e6;
  --st-none: #5e5e5e; --st-none-bg: #eef0f5;
  --grid: #e7e9ef;
  --shadow: 0 1px 2px rgba(1,4,20,.05), 0 6px 20px rgba(1,4,20,.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.005em; }
h1 { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 600; }
.logo { display: block; height: auto; max-width: 100%; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.i { width: 18px; height: 18px; flex: none; }
.faint .i, .tag .i, .page-head a.faint .i { width: 14px; height: 14px; vertical-align: -2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid #14182c;
  /* siempre sobre la base negra de marca, con el resplandor del portafolio */
  --text: #ffffff; --text-2: #c9caca; --text-3: #a8a8a8; --surface-2: #11152a; --border: #20253d; color: #ffffff;
  background: radial-gradient(120% 40% at 0% 100%, rgba(64,0,80,.55), transparent 70%), #000000;
  padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.wordmark { display: block; padding: 6px 10px 22px; color: inherit; }
.wordmark:hover { text-decoration: none; }
.wordmark .logo { width: 132px; }
.wordmark span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.top-logo { display: none; background: #010414; border-radius: 10px; padding: 7px 10px; flex: none; }
.top-logo .logo { width: 82px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 14px 10px 6px; font-weight: 600; }
.nav a, .nav .soon { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; font-size: 14px; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--surface-2); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand-blue); }
.nav a.active .i { color: var(--brand-blue); }
.nav .soon { color: var(--text-3); cursor: default; }
.nav .soon small { margin-left: auto; font-size: 11px; border: 1px solid var(--border); border-radius: 99px; padding: 0 7px; }
.nav svg, .bottom-nav svg { width: 18px; height: 18px; flex: none; }
.sidebar .spacer { flex: 1; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .title { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; color: var(--text-2); }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.badge-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--st-red);
  color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.content { padding: 24px 28px 48px; max-width: 1320px; width: 100%; }
.banner { margin: 0 28px; margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.banner .close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 16px; padding: 0 4px; min-width: 28px; min-height: 28px; }
.banner.demo { background: var(--st-yellow-bg); color: var(--st-yellow-ink); border: 1px solid color-mix(in srgb, var(--st-yellow) 40%, transparent); }
.banner.offline { background: var(--surface-3); color: var(--text); }
.bottom-nav { display: none; }

/* ---------- layout primitives ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card > header .faint { margin: 0; }
.empty { padding: 22px; text-align: center; color: var(--text-3); font-size: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 560; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--text-3); text-decoration: none; }
.btn.primary { background: var(--brand-ink); color: var(--brand-ink-text); border-color: var(--brand-ink); }
.btn.primary:hover { opacity: .9; }
.btn.danger { color: var(--st-red); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 560; color: var(--text-2); min-width: 0; }
label.field small { font-weight: 400; color: var(--text-3); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); width: 100%; min-width: 0; }
textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filters label.field { min-width: 150px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; padding: 3px; background: var(--surface); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 560; color: var(--text-2); }
.seg button[aria-pressed=true] { background: var(--surface-3); color: var(--text); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 12px; color: var(--text-2); font-weight: 560; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--text); }
.error-msg { color: var(--st-red); font-size: 13px; min-height: 18px; }

/* ---------- status (siempre ícono + texto, nunca solo color) ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pill.azul { background: var(--st-blue-bg); color: var(--st-blue); }
.pill.verde { background: var(--st-green-bg); color: var(--st-green); }
.pill.amarillo { background: var(--st-yellow-bg); color: var(--st-yellow-ink); }
.pill.rojo { background: var(--st-red-bg); color: var(--st-red); }
.pill.sin_dato, .pill.neutral { background: var(--st-none-bg); color: var(--text-2); }
.pill.neutral::before, .tag::before { display: none; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 560; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.tag.lock { color: var(--st-red); }
.tag.demo { background: var(--st-yellow-bg); color: var(--st-yellow-ink); border-color: transparent; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- metrics ---------- */
.hero { display: flex; gap: 22px; align-items: center; }
.hero .big { font-family: var(--font-display); font-size: 52px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.tile .label { font-size: 13px; color: var(--text-2); font-weight: 520; }
.tile .value { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.01em; margin-top: 6px; }
.tile .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.bar { position: relative; height: 8px; background: var(--surface-3); border-radius: 99px; overflow: visible; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--series-1); }
.bar > i.azul { background: var(--st-blue); } .bar > i.verde { background: var(--st-green); }
.bar > i.amarillo { background: var(--st-yellow); } .bar > i.rojo { background: var(--st-red); } .bar > i.sin_dato { background: transparent; }
.bar > b { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--text); border-radius: 1px; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list > .item { display: flex; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--border); min-width: 0; }
.list > .item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 560; overflow: hidden; text-overflow: ellipsis; }
.item .s { font-size: 13px; color: var(--text-2); }
a.item { color: inherit; } a.item:hover { text-decoration: none; background: var(--surface-2); }
.kpi-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 110px; gap: 14px; align-items: center; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text, .chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--border-strong); stroke-width: 1; }
.tooltip { position: absolute; pointer-events: none; z-index: 5; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 8px 10px; font-size: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); min-width: 140px; color: var(--text); }
.tooltip .tt-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tooltip .tt-row span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--text-3) 0 4px, transparent 4px 7px) !important; }
.ring { position: relative; flex: none; }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { font-family: var(--font-display); font-size: 24px; font-weight: 800; display: block; line-height: 1; }
.ring .lbl small { font-size: 11px; color: var(--text-3); }

/* ---------- OKR ---------- */
.obj { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px; }
.obj + .obj { margin-top: 10px; }
.obj.l-area { margin-left: 22px; }
.obj.l-individual { margin-left: 44px; }
.obj .lvl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; }
.kr { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.align-line { font-size: 12px; color: var(--text-3); }

/* ---------- compromisos y solicitudes ---------- */
.t-red { color: var(--st-red); } .t-yellow { color: var(--st-yellow-ink); }
.show-m { display: none; }
.tag.prio-urgente { background: var(--st-red-bg); color: var(--st-red); border-color: transparent; }
.tag.prio-alta { background: var(--st-yellow-bg); color: var(--st-yellow-ink); border-color: transparent; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.kcol { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.kcol > header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; }
.kcol.over { outline: 2px dashed var(--focus); outline-offset: -2px; }
.kcol.no { opacity: .55; }
.kdrop { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kcard { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; color: inherit; box-shadow: var(--shadow); }
.kcard:hover { text-decoration: none; border-color: var(--border-strong); }
.kcard[draggable=true] { cursor: grab; }
.kcard.dragging { opacity: .5; }
.kcard .t { font-weight: 560; font-size: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cal-h { font-size: 12px; font-weight: 600; color: var(--text-2); padding: 6px 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cal-d { min-height: 104px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-d.out { background: var(--surface-2); }
.cal-d.past .n { color: var(--text-3); }
.cal-d .n { font-size: 12px; font-weight: 600; color: var(--text-2); }
.cal-d.today .n { background: var(--brand-ink); color: var(--brand-ink-text); border-radius: 99px; padding: 0 7px; align-self: flex-start; }
.cchip { display: block; font-size: 12px; line-height: 1.35; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 3px solid currentColor; background: var(--st-none-bg); color: var(--text-2); }
.cchip:hover { text-decoration: none; filter: brightness(.97); }
.cchip.azul { background: var(--st-blue-bg); color: var(--st-blue); } .cchip.verde { background: var(--st-green-bg); color: var(--st-green); }
.cchip.amarillo { background: var(--st-yellow-bg); color: var(--st-yellow-ink); } .cchip.rojo { background: var(--st-red-bg); color: var(--st-red); }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stepper li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.stepper li:last-child { border-bottom: 0; }
.stepper .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 13px; background: var(--surface-3); color: var(--text-2); flex: none; }
.stepper li.aprobado .n { background: var(--st-green-bg); color: var(--st-green); }
.stepper li.actual .n { background: var(--st-blue-bg); color: var(--st-blue); }
.stepper li.rechazado .n { background: var(--st-red-bg); color: var(--st-red); }
.stepper .t { font-weight: 560; } .stepper .s { font-size: 13px; color: var(--text-2); }

/* ---------- bienestar, comunicaciones, directorio ---------- */
.likert { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; }
.likert legend { font-weight: 560; padding: 0 4px; }
.lk { position: relative; cursor: pointer; }
.lk input { position: absolute; opacity: 0; inset: 0; }
.lk span { display: grid; place-items: center; width: 44px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); font-weight: 600; }
.lk input:checked + span { background: var(--brand-ink); color: var(--brand-ink-text); border-color: var(--brand-ink); }
.lk input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.an-card { display: block; color: inherit; }
.an-card:hover { text-decoration: none; border-color: var(--border-strong); }
.an-body { white-space: pre-wrap; line-height: 1.6; }
.person { display: flex; gap: 14px; align-items: flex-start; }
.person .t { font-weight: 600; } .person .s { color: var(--text-2); font-size: 14px; }
.person a { overflow-wrap: anywhere; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; font-weight: 650; flex: none; }

/* ---------- modal / toast ---------- */
dialog { border: 1px solid var(--border); border-radius: 16px; padding: 0; background: var(--surface); color: var(--text); width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); box-shadow: 0 24px 64px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(10,10,10,.45); }
dialog .dlg { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
dialog .dlg > header { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; }
dialog .dlg > .body { padding: 16px 20px; overflow-y: auto; }
dialog .dlg > footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 360px; }
.toast.err { background: var(--st-red); color: #fff; }
.timeline { border-left: 2px solid var(--border); padding-left: 14px; display: flex; flex-direction: column; gap: 10px; margin-left: 4px; }
.timeline div { font-size: 13px; }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px;
  color-scheme: dark; --text: #ffffff; --text-2: #c9caca; --text-3: #a8a8a8; --surface: rgba(11,14,32,.82); --border: #262b45; --border-strong: #3a4060;
  --brand-ink: #4ab6ff; --brand-ink-text: #010414; --link: #4ab6ff; --focus: #4ab6ff; color: #ffffff;
  background: radial-gradient(70% 60% at 0% 100%, rgba(139,0,148,.55), transparent 70%),
              radial-gradient(60% 60% at 100% 100%, rgba(0,65,102,.75), transparent 70%), #000000; }
.auth .card { width: min(420px, 100%); padding: 32px; backdrop-filter: blur(6px); }
.auth input { background: rgba(1,4,20,.6); }
.auth h1 { font-size: 22px; margin-bottom: 4px; }
.auth-brand { margin: 0 0 18px; } .auth-brand .logo { width: 210px; }
.auth-foot { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #a8a8a8; }
.auth-foot b { color: #ffffff; font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; }
.policy { max-height: 46vh; overflow-y: auto; font-size: 14px; color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.policy h3 { color: var(--text); margin: 10px 0 4px; }

/* ---------- responsive: móvil diseñado, no reducido ---------- */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  body { font-size: 15px; }
  .app { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .top-logo { display: block; }
  .topbar .title { visibility: hidden; }   /* en móvil el título ya está en la página; el logo ocupa su lugar */
  .banner.demo { padding: 6px 10px; font-size: 12px; }
  .banner.demo .demo-long { display: none; }
  .content { padding: 16px 16px calc(92px + env(safe-area-inset-bottom)); }
  .banner { margin: 10px 16px 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .g-4.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: auto; }
  .g-4.keep-2 > .span-2 { grid-column: 1 / -1; }   /* la tarjeta principal ocupa toda la fila en móvil */
  .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .hero .big { font-size: 44px; }
  .card { padding: 16px; border-radius: 12px; }
  .kpi-row { grid-template-columns: minmax(0, 1fr) auto; }
  .kpi-row .kpi-bar { grid-column: 1 / -1; grid-row: 2; }
  .kr { grid-template-columns: 1fr; gap: 8px; }
  .obj.l-area { margin-left: 10px; } .obj.l-individual { margin-left: 20px; }
  .filters label.field { min-width: 0; flex: 1 1 140px; }
  .btn { height: 42px; }
  .hide-m { display: none !important; }
  .show-m { display: block; }
  .kanban { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 0 16px 6px; }
  .kcol { scroll-snap-align: start; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg button { white-space: nowrap; }
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr { padding: 10px 12px; border-bottom: 1px solid var(--border); }
  table.cards td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.cards td::before { content: attr(data-l); color: var(--text-3); font-size: 12px; text-align: left; }
  table.cards td.first { font-weight: 600; text-align: left; display: block; }
  table.cards td.first::before { display: none; }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 11px; font-weight: 560;
    color: var(--text-3); background: none; border: 0; cursor: pointer; min-height: 48px; }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav svg { width: 22px; height: 22px; }
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92vh; }
  dialog .dlg { max-height: 92vh; }
  .toasts { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* experiencia simplificada */
.section-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: -6px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.section-tabs > span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.section-tabs a { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 560; color: var(--text-2); text-decoration: none; }
.section-tabs a:hover { background: var(--surface-2); color: var(--text); }
.section-tabs a.active { background: var(--surface-3); color: var(--text); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.badge, .nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 700;
  background: var(--brand-green); color: #010414; }
.nav-badge { margin-left: auto; }
.wsteps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 10px 20px 0; flex-wrap: wrap; }
.wsteps li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--surface-2); }
.wsteps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--surface-3); }
.wsteps li.on { color: var(--text); } .wsteps li.on span { background: var(--focus); color: #010414; }
.wsteps li.done span { background: var(--brand-green); color: #010414; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.note.warn { border-color: var(--st-yellow, #e0b100); }
@media (max-width: 820px) { .wsteps { padding: 8px 16px 0; } .wsteps li { font-size: 12px; } .section-tabs { overflow-x: auto; flex-wrap: nowrap; } .section-tabs a { white-space: nowrap; } }
/* Mi desempeño */
.mp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mp-head h1 { margin: 0; }
.mp-head p { margin: 4px 0 0; }
.pbar.compact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pbar.compact .seg button.now { box-shadow: inset 0 -2px 0 var(--brand-green); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.mp-head h1 { font-size: 30px; }
.mp-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, 280px); align-items: center; gap: 28px; padding: 24px 28px; margin-bottom: 14px;
  background: var(--surface); border-color: var(--border); position: relative; overflow: hidden; }
.mp-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--brand-green), var(--brand-blue)); }
.mp-hero h2 { margin: 2px 0 6px; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.mp-hero p { margin: 0; font-size: 14px; }
.mp-actions { margin-top: 16px; flex-wrap: wrap; gap: 8px; }
.mp-kpis { margin: 0; display: grid; gap: 0; border-left: 1px solid var(--border); padding-left: 24px; align-self: stretch; align-content: center; }
.mp-kpis > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mp-kpis > div:last-child { border-bottom: 0; }
.mp-kpis dt { font-size: 13px; color: var(--text-2); }
.mp-kpis dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.mp-kpis dd small { font-size: 13px; color: var(--text-3); font-weight: 500; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 22px; }
.todo { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 104px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.todo:hover { border-color: var(--border-strong); background: var(--surface-2); text-decoration: none; }
.todo-l { font-size: 13px; font-weight: 600; color: var(--text-2); }
.todo b { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.todo-s { font-size: 13px; color: var(--text-3); margin-top: auto; padding-right: 22px; }
.todo-go { position: absolute; right: 16px; bottom: 14px; color: var(--text-3); font-size: 16px; transition: transform .15s, color .15s; }
.todo:hover .todo-go { transform: translateX(3px); color: var(--text); }
.todo.hot { border-color: color-mix(in srgb, var(--brand-green) 55%, var(--border)); }
.todo.hot b { color: var(--brand-green); }
.mp-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 0; }
.mp-sec h2 { margin: 0; }
.okr-card { padding: 20px 22px; }
.okr-card h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.3; }
.okr-top { display: flex; gap: 16px; align-items: flex-start; }
.okr-score { text-align: right; flex: none; }
.okr-pct { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.okr-pct.none { color: var(--text-3); } .okr-pct.verde { color: var(--st-green); } .okr-pct.amarillo { color: var(--st-yellow); }
.okr-pct.rojo { color: var(--st-red); } .okr-pct.azul { color: var(--st-blue); }
.okr-bar { height: 6px; margin: 14px 0 6px; }
.kr-list { display: grid; }
.kr-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 92px; gap: 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.kr-row:first-child { border-top: 0; }
.kr-name { font-size: 14px; font-weight: 560; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; line-height: 1.35; }
.kr-src { width: 100%; font-size: 12px; font-weight: 400; color: var(--text-3); }
.kr-bar { display: grid; gap: 6px; } .kr-bar .bar { height: 6px; }
.kr-val { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.kr-act { justify-self: end; }
.act-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.35; }
.act-line:hover { text-decoration: none; color: var(--link); }
.act-line:last-child { border-bottom: 0; }
.act-line .when { flex: none; min-width: 70px; text-align: center; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; }
.act-line.late .when { background: var(--st-red-bg); color: var(--st-red); }
.mp-empty { text-align: center; padding: 40px 24px; } .mp-empty h1, .mp-empty h2 { margin: 6px 0 8px; }
.mp-empty p { max-width: 520px; margin: 0 auto 16px; }
@media (max-width: 1100px) {
  .mp-hero { grid-template-columns: auto minmax(0, 1fr); }
  .mp-kpis { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--border); grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 14px; }
  .mp-kpis > div { flex-direction: column-reverse; align-items: flex-start; border-bottom: 0; padding: 0; gap: 2px; }
}
@media (max-width: 820px) {
  .mp-head h1 { font-size: 26px; } .mp-hero h2 { font-size: 20px; }
  .mp-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px 18px; gap: 16px; }
  .mp-hero::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 3px; background: linear-gradient(90deg, var(--brand-green), var(--brand-blue)); }
  .mp-actions { justify-content: center; }
  .mp-kpis { width: 100%; } .mp-kpis > div { align-items: center; text-align: center; }
  .mp-kpis dt { font-size: 12px; }
  .todo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .todo { min-height: 96px; padding: 14px; }
  .kr-row { grid-template-columns: 1fr; gap: 8px; } .kr-act { justify-self: start; }
}
/* proyección mensual */
.pbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; }
.pb { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; font-size: 11px; color: var(--text-3); }
.pbv { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.pbv i { display: block; width: 70%; background: var(--focus); border-radius: 4px 4px 0 0; }
.pbv i.future { opacity: .4; }
.pbv b { position: absolute; bottom: 0; width: 30%; background: var(--brand-green); border-radius: 3px 3px 0 0; }
/* Desempeño de SraLola */
.qbar { display: grid; grid-template-columns: 28px 1fr 48px; align-items: center; gap: 8px; font-size: 13px; }
.qbar .bar { margin: 0; }
.persp .label { text-align: center; font-weight: 650; }
/* selector de periodo: año · vista · trimestre o mes */
.pbar { display: grid; gap: 8px; margin: 2px 0 14px; }
.pbar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pbar-year { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 3px; background: var(--surface); }
.pbar-year select { width: auto; border: 0; background: transparent; font-weight: 650; font-size: 14px; padding: 4px 6px; color: var(--text); }
.pbar-year .icon-btn { width: 30px; height: 30px; padding: 0; font-size: 18px; line-height: 1; }
.pbar-year .icon-btn[disabled] { opacity: .35; cursor: default; }
.pchips { display: grid; gap: 6px; }
.pchips.q { grid-template-columns: repeat(4, minmax(0, 120px)); }
.pchips.m { grid-template-columns: repeat(12, minmax(0, 64px)); }
.pchip { position: relative; display: grid; justify-items: center; gap: 1px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface);
  color: var(--text-2); padding: 6px 4px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pchip small { font-size: 11px; font-weight: 500; color: var(--text-3); }
.pchip:hover { border-color: var(--border-strong); color: var(--text); }
.pchip.future { opacity: .62; }
.pchip.now::after { content: ""; position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); }
.pchip[aria-pressed=true] { background: var(--surface-3); color: var(--text); border-color: var(--focus); opacity: 1; }
.pbar-sum { font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 820px) {
  .pchips.q { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pchips.m { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pbar-top .seg { flex: 1 1 auto; }
  .pbar-top .seg button { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .sidebar, .topbar, .bottom-nav, .banner.offline, .btn { display: none !important; } .app { display: block; } .card { break-inside: avoid; box-shadow: none; } }

/* =====================================================================
   Sistema editorial (Bienestar + Comunicaciones)
   Regla: las piezas gráficas se muestran completas y con su proporción original por defecto.
   ===================================================================== */
.pic { position: relative; width: 100%; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.pic.full { background: transparent; }
.pic.full img { display: block; width: 100%; height: auto; object-fit: contain; }
.pic.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-missing { padding: 24px; text-align: center; color: var(--text-3); background: var(--surface-2); border-radius: 12px; font-size: 13px; }
.rp { display: block; width: 100%; }
.rp img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar-d); border-radius: 14px; }
.rp.completa img { object-fit: contain; }
.rp.cobertura img { object-fit: cover; }
@media (max-width: 820px) { .rp img { aspect-ratio: var(--ar-m); } }

.carousel { position: relative; margin-bottom: 18px; border-radius: 16px; }
.carousel .slide { display: none; position: relative; }
.carousel .slide.on { display: block; animation: slidein .45s ease; }
@keyframes slidein { from { opacity: 0; transform: scale(.995); } to { opacity: 1; transform: none; } }
.carousel .slide-link { display: block; border-radius: 14px; }
.carousel .slide-link:focus-visible { outline-offset: 4px; }
.slide-text { position: absolute; inset: auto 0 0 0; padding: 28px; border-radius: 0 0 14px 14px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.25) 70%, transparent); }
.slide-text h2 { font-family: var(--font-display); font-size: clamp(20px, 3vw, 32px); font-weight: 800; margin: 6px 0; }
.slide-text p { margin: 0 0 12px; max-width: 60ch; color: rgba(255,255,255,.9); }
.slide-text .tag { background: rgba(255,255,255,.18); color: #fff; border-color: transparent; }
.slide-text .btn.primary { background: #fff; color: #0b0b0b; border-color: #fff; }
.slide-demo { position: absolute; top: 12px; left: 12px; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: #0b0b0b; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.18); opacity: 0; transition: opacity .2s; }
.car-nav { opacity: .9; }
.carousel:hover .car-nav, .car-nav:focus-visible { opacity: 1; }
.car-nav.prev { left: 12px; } .car-nav.next { right: 12px; } .car-nav.next .i { transform: rotate(180deg); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
/* el punto se ve de 8 px pero el área táctil es de 28 px */
.dots button[data-dot] { position: relative; width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; }
.dots button[data-dot]::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%);
  border-radius: 99px; background: var(--border-strong); transition: width .25s, background .25s; }
.dots button[data-dot][aria-current="true"]::before { width: 22px; background: var(--text); }
.dots { gap: 0 !important; }

.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.ed-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.ed-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.08); border-color: var(--border-strong); }
.ed-card .ed-media .pic { border-radius: 0; }
.ed-card .ed-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.ed-card h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; margin-top: 4px; }
.ed-card p { margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ed-card.compact h3 { font-size: 15px; }
.ed-card.official { border-color: color-mix(in srgb, var(--st-blue) 45%, var(--border)); }
.official-tag { background: var(--st-blue-bg); color: var(--st-blue); border-color: transparent; font-weight: 650; }
.ed-featured .ed-card { flex-direction: row; }
.ed-featured .ed-card .ed-media { flex: 1.3; }
.ed-featured .ed-card .ed-body { flex: 1; justify-content: center; padding: 24px; }
.ed-featured .ed-card h3 { font-size: 24px; }
.thumb { width: 48px; height: 48px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.thumb .pic { border-radius: 0; height: 100%; }
.tag.on { background: var(--text); color: var(--bg); }

.post { max-width: 1100px; }
.post-hero { margin-bottom: 18px; }
.post-head { max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.post-head h1 { font-size: clamp(24px, 3.2vw, 36px); }
.lead { font-size: 18px; color: var(--text-2); margin: 0; }
.post-cover { margin-top: 18px; }
.post.official .post-head { border-left: 4px solid var(--st-blue); padding-left: 16px; }
.ack-card { border-color: var(--st-yellow); }
.ed-content { display: flex; flex-direction: column; gap: 18px; }
.ed-content figure { margin: 0; }
.ed-content figcaption { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.rich { font-size: 16px; line-height: 1.7; max-width: 72ch; }
.rich h3 { font-size: 20px; margin: 10px 0 4px; } .rich h4 { font-size: 17px; margin: 8px 0 2px; }
.rich p { margin: 0 0 10px; } .rich ul, .rich ol { margin: 0 0 10px; padding-left: 22px; }
.rich blockquote { margin: 0; padding: 8px 14px; border-left: 3px solid var(--border-strong); color: var(--text-2); font-style: italic; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-link { display: inline-flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; color: inherit; }
.doc-link:hover { text-decoration: none; border-color: var(--text-3); }
.doc-link span { display: flex; flex-direction: column; } .doc-link small { color: var(--text-3); }
.gallery-block.carrusel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(70%, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.gallery-block.carrusel .g-item { scroll-snap-align: start; }
.gallery-block.reticula { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.g-item { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.masonry { columns: 3 260px; column-gap: 14px; }
.m-item { break-inside: avoid; display: block; width: 100%; margin: 0 0 14px; border: 0; padding: 0; background: var(--surface); border-radius: 14px; overflow: hidden;
  cursor: zoom-in; text-align: left; border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.m-item:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.m-item .pic { border-radius: 0; }
.m-cap { display: flex; gap: 8px; align-items: center; padding: 10px 12px; font-size: 14px; color: var(--text); }
.m-cap small { color: var(--text-3); margin-left: auto; }
.lb-dialog { width: min(1100px, calc(100vw - 32px)) !important; }
.lightbox .pic.full img { max-height: 72vh; width: auto; max-width: 100%; margin: 0 auto; }

.camp-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 18px; }
.camp-info { display: flex; flex-direction: column; gap: 10px; }
.camp-info h1 { font-size: clamp(24px, 3.2vw, 38px); }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.preview-pane { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
.preview-frame { border: 1px dashed var(--border-strong); border-radius: 16px; padding: 16px; background: var(--bg); transition: max-width .25s; margin: 0 auto; }
.preview-frame.mob { max-width: 390px; }
.preview-frame .post-head h1 { font-size: 26px; }
.preview-frame.mob .post-head h1 { font-size: 22px; }
.preview-frame.mob .rp img { aspect-ratio: auto; }
.sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 12px 0; backdrop-filter: blur(6px); z-index: 2; }
.asset-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 560; color: var(--text-2); }
.asset-prev { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.asset-prev .pic { max-height: 180px; } .asset-prev .pic img { max-height: 180px; width: auto; max-width: 100%; margin: 0 auto; }
.blk { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.blk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.blk .tb { margin-bottom: 6px; }
.blk-thumb { width: 56px; flex: none; }
.gal-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.gal-it { display: flex; flex-direction: column; gap: 6px; } .gal-it input { height: 32px; font-size: 13px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 56vh; overflow-y: auto; padding: 2px; }
.media-grid.big { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); max-height: none; gap: 14px; }
.media-tile { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; color: var(--text); }
.media-tile span { font-size: 13px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-tile small { font-size: 11px; color: var(--text-3); }
.media-tile.sel { outline: 2px solid var(--focus); border-color: transparent; }
.media-tile:hover { border-color: var(--border-strong); }
.doc-tile { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--surface-2); border-radius: 10px; color: var(--text-3); }
.doc-tile.big { aspect-ratio: auto; padding: 40px; gap: 8px; }
.drop { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 18px; text-align: center; color: var(--text-3); margin-bottom: 16px; font-size: 14px; }
.drop.on { border-color: var(--focus); color: var(--text); background: var(--surface-2); }
input[type=range] { flex: 1; accent-color: var(--text); }
input[type=datetime-local] { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); width: 100%; }

@media (max-width: 1100px) { .editor-layout { grid-template-columns: 1fr; } .preview-pane { position: static; max-height: none; } }
@media (max-width: 820px) {
  .car-nav { width: 34px; height: 34px; }
  .ed-featured .ed-card { flex-direction: column; }
  .camp-hero { grid-template-columns: 1fr; }
  .slide-text { position: static; color: var(--text); background: none; padding: 12px 2px 0; }
  .slide-text p { color: var(--text-2); }
  .slide-text .tag { background: var(--surface-2); color: var(--text-2); }
  .slide-text .btn.primary { background: var(--brand-ink); color: var(--brand-ink-text); border-color: var(--brand-ink); }
  .ed-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .m-item { margin-bottom: 10px; }
  .gallery-block.carrusel { grid-auto-columns: 86%; }
  .sticky-actions { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .carousel .slide.on { animation: none; } .ed-card, .m-item { transition: none; } }
/* vista previa móvil dentro del editor (emula el diseño de teléfono aunque la pantalla sea de escritorio) */
.preview-frame.mob .slide-text { position: static; color: var(--text); background: none; padding: 12px 2px 0; }
.preview-frame.mob .slide-text p { color: var(--text-2); }
.preview-frame.mob .slide-text .btn.primary { background: var(--brand-ink); color: var(--brand-ink-text); border-color: var(--brand-ink); }
.preview-frame.mob .ed-grid { grid-template-columns: 1fr; }
.preview-frame.mob .gallery-block.carrusel { grid-auto-columns: 86%; }

/* ---------- portadas modulares ---------- */
.portal { display: flex; flex-direction: column; gap: 30px; margin-top: 8px; }
.portal-section .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.portal-section .sec-head h2 { font-size: 21px; font-weight: 800; }
.car-pause { width: 32px; height: 28px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font-size: 9px; cursor: pointer; margin-left: 6px; display: grid; place-items: center; }
.dots { align-items: center; }
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px 2px 8px; scrollbar-width: thin; }
.h-scroll > * { scroll-snap-align: start; }
.date-badge { width: 52px; height: 56px; flex: none; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date-badge b { font-size: 20px; line-height: 1; } .date-badge small { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.celebrate { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.celebrate .i { width: 40px; height: 40px; }
.survey-call { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--border-strong); background: var(--surface); margin-top: 12px; flex-wrap: wrap; }
.sec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sec-row.off { opacity: .55; }
.sec-row.dragging { opacity: .4; } .sec-row.drop-target { border-color: var(--focus); }
.sec-row .grip { cursor: grab; color: var(--text-3); letter-spacing: -2px; user-select: none; }
.sec-row .grow { flex: 1 1 220px; min-width: 0; }
.sec-ctl { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap; }
.sec-form { flex-basis: 100%; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.b-thumb { width: 96px; flex: none; }
.switch { position: relative; display: inline-flex; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: background .2s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--st-green); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 821px) { .hide-d { display: none !important; } }
@media (max-width: 820px) {
  .portal { gap: 24px; }
  .portal-section .sec-head h2 { font-size: 19px; }
  .ed-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
  .h-scroll { grid-auto-columns: 78%; }
  .b-thumb { width: 64px; }
}
.preview-frame.mob .hide-m { display: none !important; }
.preview-frame:not(.mob) .hide-d { display: none !important; }
.preview-frame.mob .h-scroll { grid-auto-columns: 78%; }
.create-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.create-opt { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); }
.create-opt:hover { text-decoration: none; border-color: var(--text-3); }
.create-opt small { color: var(--text-3); }
.tag-check { padding: 6px 10px; border: 1px solid var(--border); border-radius: 99px; font-size: 13px; }
.act-cover { margin: -16px -16px 12px; }
.act-cover .pic { border-radius: 14px 14px 0 0; }

/* ---------- Arquitectura estratégica ---------- */
.tree { display: flex; flex-direction: column; gap: 12px; }
.node > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.node > summary::-webkit-details-marker { display: none; }
.node > summary::before { content: "▸"; color: var(--text-3); transition: transform .15s; }
.node[open] > summary::before { transform: rotate(90deg); }
.node.lvl0 { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 14px); padding: 14px 16px; }
.node.lvl0 > summary b { font-size: 15px; }
.node.lvl1 { margin: 10px 0 0 14px; padding: 10px 12px; border-left: 2px solid var(--border-strong); background: var(--surface-2, transparent); border-radius: 0 10px 10px 0; }
.node.lvl2 { margin: 8px 0 0 18px; padding: 6px 10px; border-left: 2px solid var(--border); font-size: 14px; }
.node.leaf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.node.leaf::before { content: none; }
.node-meta { flex-basis: 100%; font-size: 13px; color: var(--text-2); }
.node-empty { margin: 8px 0 0 14px; font-size: 13px; color: var(--text-3); }
.code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
.resp { padding: 10px 0; border-top: 1px solid var(--border); }
.resp:first-of-type { border-top: 0; }
.act-row { padding: 8px 0 8px 12px; border-left: 2px solid var(--border); margin-top: 6px; flex-wrap: wrap; }
.w-row { gap: 10px; }
@media (max-width: 720px) { .node.lvl1 { margin-left: 4px; } .node.lvl2 { margin-left: 8px; } .w-row input { width: 90px !important; } }
td.num, th.r { white-space: nowrap; }
/* Plan Estratégico */
table.plan-t td.first { min-width: 240px; }
table.plan-t th, table.plan-t td { vertical-align: top; }
@media (max-width: 720px) { table.plan-t td.first { min-width: 0; } }
.tag.wrap { white-space: normal; text-align: left; height: auto; min-height: 22px; padding: 2px 8px; }
.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc-row .s { min-width: 0; } .calc-row b { flex: none; white-space: nowrap; font-size: 13px; }
/* Pulido general (v18): ritmo, jerarquía y estados de interacción más claros, sin iconos decorativos */
h1 { font-size: 28px; letter-spacing: -.015em; }
.card { padding: 20px; }
.card > header h2 { font-size: 16px; }
.card > header a.faint:hover { color: var(--text); }
.list > a.item { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; transition: background .12s; color: var(--text); }
.list > a.item:hover { background: var(--surface-2); text-decoration: none; }
.empty { border-style: solid; border-color: var(--border); background: var(--surface-2); color: var(--text-2); }
.tile { transition: border-color .15s; }
a.tile:hover { border-color: var(--border-strong); text-decoration: none; }
.btn { font-weight: 600; transition: background .12s, border-color .12s, opacity .12s; }
.pill { font-weight: 600; letter-spacing: .005em; }
.pill::before { width: 6px; height: 6px; }
/* v19 · registro automático: tipos de resultado, confirmación con lo actualizado, bitácora y reglas */
.top-cta { margin-right: 4px; height: 34px; padding: 0 14px; border-radius: 999px; }
.top-cta svg { width: 15px; height: 15px; }
@media (max-width: 820px) { .top-cta { width: 36px; padding: 0; } .top-cta span { display: none; } }
.reg-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.reg-types.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.reg-type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px 16px; min-height: 84px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit;
  transition: border-color .15s, background .15s; }
.reg-type:hover, .reg-type:focus-visible { border-color: var(--focus); background: var(--surface-3); outline: none; }
.reg-type b { font-size: 15px; } .reg-type span { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.outcome { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); }
.outcome.ok { background: var(--st-green-bg); border-color: color-mix(in srgb, var(--st-green) 40%, transparent); }
.outcome.ok b { color: var(--st-green); }
.outcome.warn { background: var(--st-yellow-bg); border-color: color-mix(in srgb, var(--st-yellow) 40%, transparent); }
.outcome.warn b { color: var(--st-yellow-ink); }
.outcome span { font-size: 13px; color: var(--text-2); }
.aff-group { margin-top: 10px; }
.aff { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.aff:last-child { border-bottom: 0; } .aff .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
details.ev { border-bottom: 1px solid var(--border); }
details.ev:last-child { border-bottom: 0; }
details.ev > summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 12px 0; font-size: 14px; }
details.ev > summary::-webkit-details-marker { display: none; }
.ev-when { flex: none; width: 92px; font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; line-height: 1.2; }
.ev-when small { color: var(--text-3); }
.ev-body { padding: 0 0 14px 106px; display: grid; gap: 2px; }
@media (max-width: 820px) { .ev-body { padding-left: 0; } .ev-when { width: 64px; } }
details.rule > summary { list-style: none; cursor: pointer; }
details.rule > summary::-webkit-details-marker { display: none; }
.rule-head { display: flex; align-items: center; gap: 14px; }
.rule-head h3 { margin: 0 0 2px; font-size: 16px; }
.rswitch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.rswitch input { appearance: none; width: 36px; height: 20px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.rswitch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-2); transition: transform .15s, background .15s; }
.rswitch input:checked { background: var(--st-green-bg); border-color: var(--st-green); }
.rswitch input:checked::after { transform: translateX(16px); background: var(--st-green); }
.chain { display: flex; align-items: stretch; gap: 10px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; }
.chain-step { flex: 1 1 0; min-width: 180px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); display: grid; gap: 4px; align-content: start; }
.chain-arrow { align-self: center; color: var(--text-3); font-size: 18px; }
@media (max-width: 820px) { .chain { flex-direction: column; } .chain-arrow { transform: rotate(90deg); align-self: center; } .rule-head { flex-wrap: wrap; } }
.reg-type:disabled { opacity: .5; cursor: not-allowed; border-style: dashed; background: transparent; }
.rswitch input { flex: none; width: 36px !important; min-width: 36px; height: 20px !important; padding: 0 !important; }
.ev-when { width: 128px; } .ev-body { padding-left: 142px; }
@media (max-width: 820px) { .ev-when { width: 84px; } .ev-body { padding-left: 0; } }
.aff .grow, .rule-head .grow, details.ev > summary .grow { flex: 1; min-width: 0; }
@media (max-width: 820px) { .rule-head .grow { flex-basis: 100%; } }
/* v20 · Gestión Estratégica (sección vacía tras el reinicio) */
.strat-empty { text-align: center; padding: 56px 24px; display: grid; justify-items: center; gap: 10px; }
.strat-empty h2 { font-size: 22px; max-width: 560px; margin: 6px 0 0; line-height: 1.3; }
.strat-empty p { max-width: 480px; margin: 0; }
.strat-mark { width: 56px; height: 56px; border-radius: 50%; border: 2px dashed var(--border-strong); position: relative; }
.strat-mark::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-green), var(--brand-blue)); opacity: .8; }
/* v21 · Plan Estratégico Agencia SraLola 2026–2030 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pe-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.pe-hero h1 { font-size: 30px; max-width: 720px; }
.pe-hero p { margin: 6px 0 0; }
.pe-years { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); }
.pe-years a { padding: 7px 14px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--text-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.pe-years a:hover { background: var(--surface-2); color: var(--text); }
.pe-years a.on { background: var(--brand-ink); color: var(--brand-ink-text); }
.pe-persp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pe-pcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 20px; min-height: 196px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color .15s, background .15s; }
.pe-pcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pe-c, var(--brand-blue)); }
.pe-pcard[data-p="P01"] { --pe-c: var(--brand-green); } .pe-pcard[data-p="P02"] { --pe-c: var(--brand-blue); }
.pe-pcard[data-p="P03"] { --pe-c: var(--brand-pink); } .pe-pcard[data-p="P04"] { --pe-c: #b9a6ff; }
.pe-pcard:hover { border-color: var(--border-strong); background: var(--surface-2); text-decoration: none; }
.pe-pcode { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--pe-c); }
.pe-pcard h2 { font-size: 22px; margin: 0; }
.pe-pcard p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; max-width: 440px; }
.pe-pmeta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--text-2); }
.pe-pmeta b { color: var(--text); font-variant-numeric: tabular-nums; }
.pe-go { position: absolute; right: 20px; bottom: 18px; color: var(--text-3); transition: transform .15s, color .15s; }
.pe-pcard:hover .pe-go, .pe-row:hover .pe-go { transform: translateX(3px); color: var(--text); }
.pe-crumbs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.pe-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pe-crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.pe-crumbs li + li::before { content: "/"; color: var(--text-3); margin-right: 2px; }
.pe-crumbs a { color: var(--text-2); } .pe-crumbs a:hover { color: var(--text); }
.pe-crumbs [aria-current] { color: var(--text); font-weight: 600; }
.pe-back { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; border: 1px solid var(--border); border-radius: 99px; color: var(--text-2); text-decoration: none; }
.pe-back svg { width: 14px; height: 14px; } .pe-back:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }
.pe-year-chip select { width: auto; height: 26px; padding: 0 22px 0 8px; font-size: 13px; font-weight: 650; border-radius: 7px; }
.pe-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.pe-head h1 { font-size: 28px; } .pe-head p { margin: 6px 0 0; max-width: 720px; }
.pe-list { display: grid; gap: 10px; }
.pe-row { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 44px 16px 18px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.pe-row:hover { border-color: var(--border-strong); background: var(--surface-2); text-decoration: none; }
.pe-row .pe-go { top: 50%; bottom: auto; transform: translateY(-50%); right: 18px; }
.pe-row:hover .pe-go { transform: translate(3px, -50%); }
.pe-code { flex: none; min-width: 52px; text-align: center; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--text-2); }
.pe-title { font-weight: 650; font-size: 16px; }
.pe-desc { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.pe-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.pe-empty { text-align: center; padding: 30px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.pe-empty p { margin: 0 0 12px; color: var(--text-2); }
.pe-table tr[data-href] { cursor: pointer; } .pe-table tr[data-href]:hover td { background: var(--surface-2); }
.pe-off { opacity: .55; }
.pe-person { font-weight: 650; }
.pe-support { color: var(--text-2); margin-top: 2px; }
.pe-late { font-size: 12px; font-weight: 600; color: var(--st-red); }
.pe-kpi { padding: 0; overflow: hidden; }
.pe-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pe-facts > div { padding: 18px 20px; display: grid; gap: 4px; align-content: start; border-right: 1px solid var(--border); }
.pe-facts > div:last-child { border-right: 0; }
.pe-facts span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pe-facts b { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.pe-facts b.pe-person { font-family: var(--font); font-size: 16px; }
.pe-facts small { font-size: 12px; color: var(--text-3); }
.pe-facts .pill { justify-self: start; }
.pe-facts-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.pe-periods { border-top: 1px solid var(--border); padding: 12px 20px 16px; }
.pe-periods summary { cursor: pointer; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.pe-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pe-sup summary { cursor: pointer; font-weight: 600; }
.pe-sup-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; margin-top: 8px; max-height: 220px; overflow: auto; }
.pe-who { color: var(--text-3); }
@media (max-width: 820px) {
  .pe-hero h1 { font-size: 24px; } .pe-head h1 { font-size: 22px; }
  .pe-persp { grid-template-columns: 1fr; } .pe-pcard { min-height: 0; }
  .pe-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-facts > div:nth-child(2) { border-right: 0; } .pe-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .pe-row { align-items: flex-start; flex-wrap: wrap; padding-right: 36px; }
}
.pe-row .grow, .pe-head .grow { flex: 1; min-width: 0; }
/* v22 · «Así vamos» */
.av-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.av-hero h1 { font-size: 34px; }
.av-lead { margin: 6px 0 0; font-size: 17px; color: var(--text-2); }
.av-admin-bar { flex-wrap: wrap; gap: 8px; }
.av-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.av-periods { display: flex; flex-wrap: wrap; gap: 6px; }
.av-periods a, .av-periods span { padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); color: var(--text-2); text-decoration: none; }
.av-periods a:hover { border-color: var(--border-strong); color: var(--text); }
.av-periods a.on { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
.av-periods span.off { opacity: .45; border-style: dashed; }
.av-timing { margin: -6px 0 12px; }
.av-general { margin-bottom: 14px; padding: 24px 26px; position: relative; overflow: hidden; }
.av-general::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--brand-green), var(--brand-blue)); }
.av-general-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 8px; }
.av-general h2 { font-size: 22px; margin: 0; }
.av-general p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 820px; }
.av-metric { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.av-metric b { font-family: var(--font-display); font-size: 24px; }
.av-metric span { font-size: 13px; color: var(--text-2); }
.av-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.av-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.av-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pe-c, var(--brand-blue)); }
.av-card[data-p="P01"] { --pe-c: var(--brand-green); } .av-card[data-p="P02"] { --pe-c: var(--brand-blue); }
.av-card[data-p="P03"] { --pe-c: var(--brand-pink); } .av-card[data-p="P04"] { --pe-c: #b9a6ff; }
.av-card-head { display: grid; gap: 6px; width: 100%; text-align: left; padding: 20px 22px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; }
.av-card-head[disabled] { cursor: default; }
.av-card:not(.empty):hover { border-color: var(--border-strong); }
.av-pname { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pe-c); }
.av-card h3 { margin: 0; font-size: 20px; }
.av-card-sum { font-size: 14px; color: var(--text-2); }
.av-card-body { padding: 0 22px 20px; display: grid; gap: 10px; }
.av-card-body p { margin: 0; line-height: 1.6; color: var(--text-2); }
.av-line { font-size: 14px; } .av-line span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.av-card.empty { opacity: .8; }
.av-lists .card header h2 { font-size: 16px; }
.av-ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; }
.av-empty { text-align: center; padding: 48px 20px; }
.av-empty h2 { font-size: 20px; margin: 0 0 6px; }
@media (max-width: 820px) {
  .av-hero h1 { font-size: 28px; } .av-cards { grid-template-columns: 1fr; }
  .av-periods { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .av-periods a, .av-periods span { white-space: nowrap; }
}
/* v23 · tarjetas de perspectivas: color de la agencia por perspectiva, avance real por objetivo y movimiento sobrio */
.pe-pcard { --pe-c: var(--brand-blue); min-height: 236px; padding: 24px 26px 22px; gap: 8px; isolation: isolate;
  border-color: color-mix(in srgb, var(--pe-c) 26%, var(--border));
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--pe-c) 20%, transparent), transparent 60%),
              linear-gradient(180deg, color-mix(in srgb, var(--pe-c) 6%, var(--surface)), var(--surface));
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s;
  animation: pe-rise .5s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.pe-pcard[data-p="P04"] { --pe-c: #b9a6ff; }
.pe-pcard::before { width: 100%; height: 3px; bottom: auto; background: linear-gradient(90deg, var(--pe-c), color-mix(in srgb, var(--pe-c) 10%, transparent)); }
.pe-pcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pe-c) 60%, var(--border));
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--pe-c) 55%, transparent); background-color: var(--surface); }
.pe-num { position: absolute; right: 18px; top: 6px; z-index: -1; font-family: var(--font-display); font-weight: 800; font-size: 120px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--pe-c) 35%, transparent); letter-spacing: -.04em; transition: transform .3s, -webkit-text-stroke-color .3s; }
.pe-pcard:hover .pe-num { transform: translateX(-6px); -webkit-text-stroke-color: color-mix(in srgb, var(--pe-c) 60%, transparent); }
.pe-ptop { display: flex; align-items: center; gap: 10px; }
.pe-chip { padding: 3px 10px; border-radius: 99px; background: var(--pe-c); color: #010414; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.pe-pstate { font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--pe-c) 75%, var(--text)); }
.pe-pcard h2 { font-size: 26px; margin-top: 4px; }
.pe-pcard p { max-width: 460px; }
.pe-progress { display: grid; gap: 6px; margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--text-2); }
.pe-progress b { color: var(--text); }
.pe-segs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; }
.pe-segs i { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--pe-c) 14%, var(--surface-3)); }
.pe-segs i.metas_pendientes { background: linear-gradient(90deg, var(--pe-c) 50%, color-mix(in srgb, var(--pe-c) 14%, var(--surface-3)) 50%); }
.pe-segs i.configurado { background: var(--pe-c); }
.pe-pcard .pe-pmeta { margin-top: 4px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--pe-c) 16%, var(--border)); align-items: center; }
.pe-pcard .pe-go { position: static; margin-left: auto; font-size: 13px; font-weight: 650; color: color-mix(in srgb, var(--pe-c) 80%, var(--text)); }
.pe-pcard:hover .pe-go { transform: translateX(3px); }
:root[data-theme="light"] .pe-chip { color: #ffffff; }
:root[data-theme="light"] .pe-pcard[data-p="P01"] { --pe-c: #0a9a5c; } :root[data-theme="light"] .pe-pcard[data-p="P02"] { --pe-c: #1d6f99; }
:root[data-theme="light"] .pe-pcard[data-p="P03"] { --pe-c: #c2457a; } :root[data-theme="light"] .pe-pcard[data-p="P04"] { --pe-c: #6b55c9; }
@keyframes pe-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pe-pcard { animation: none; transition: none; } .pe-pcard:hover { transform: none; } }
@media (max-width: 820px) { .pe-num { font-size: 88px; } .pe-pcard h2 { font-size: 22px; } }
/* v24 · KPI del plan: filas compactas, registro sencillo y seguimiento por periodo */
.pe-klist { display: grid; gap: 8px; }
.pe-krow { position: relative; display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 16px;
  padding: 14px 40px 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s; }
.pe-krow:hover { border-color: var(--border-strong); background: var(--surface-3); text-decoration: none; transform: translateY(-1px); }
.pe-krow .pe-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); bottom: auto; }
.pe-kname { display: grid; gap: 2px; min-width: 0; } .pe-kname b { font-size: 15px; }
.pe-kname .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-kfig { display: grid; gap: 2px; min-width: 0; }
.pe-kfig span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pe-kfig b { font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-kfig small { font-size: 11px; color: var(--text-3); }
.pe-pend, .pe-pend-b { font-style: normal; font-weight: 600; color: var(--st-yellow-ink); }
.pe-pend { font-size: 13px; } .pe-facts b.pe-pend-b { font-family: var(--font); font-size: 16px; }
.pe-pbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -4px 0 14px; }
.pe-reg { margin: 14px 0; }
.pe-reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 12px; align-items: end; }
.pe-reg-grid .field { margin: 0; } .pe-wide { grid-column: span 2; }
.pe-reg-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pe-table tr.pe-cur td { background: color-mix(in srgb, var(--focus) 10%, transparent); }
.pe-table tr.pe-sum td { border-top: 1px solid var(--border-strong); font-weight: 600; background: var(--surface-2); }
.pe-table tr.pe-year td { font-size: 15px; }
@media (max-width: 900px) {
  .pe-krow { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-right: 16px; }
  .pe-kname { grid-column: 1 / -1; } .pe-kstate { grid-column: 1 / -1; } .pe-krow .pe-go { display: none; }
  .pe-wide { grid-column: 1 / -1; }
}
.pe-facts .pill, .pe-kstate .pill { white-space: normal; height: auto; min-height: 24px; padding: 3px 9px; line-height: 1.3; }
@media (max-width: 820px) { .pe-head { flex-direction: column; align-items: stretch; } .pe-head > .row { justify-content: flex-start; } }
/* v25 · escenario comercial de cierre (proyección ≠ facturación real) */
.pe-scen { margin: 14px 0; }
.pe-sc-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.pe-sc-col { display: grid; gap: 2px; }
.pe-sc-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; }
.pe-sc-line span { display: grid; font-size: 14px; color: var(--text-2); } .pe-sc-line small { font-size: 12px; color: var(--text-3); }
.pe-sc-line b { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15px; }
.pe-sc-line.real { background: color-mix(in srgb, var(--st-green) 10%, transparent); } .pe-sc-line.real b { color: var(--st-green); }
.pe-sc-line.proj b, .pe-proj { color: var(--st-blue); }
.pe-sc-line.extra { background: color-mix(in srgb, var(--st-yellow) 10%, transparent); } .pe-sc-line.extra b { color: var(--st-yellow-ink); }
.pe-sc-line.total { border-top: 1px solid var(--border-strong); border-radius: 0; margin-top: 4px; } .pe-sc-line.total span { color: var(--text); font-weight: 650; }
.pe-sc-kpis { align-content: start; gap: 10px; padding: 12px 16px; border-left: 1px solid var(--border); }
.pe-sc-kpis > div { display: grid; gap: 2px; } .pe-sc-kpis span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pe-sc-kpis b { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; } .pe-gap { color: var(--st-red); }
.pe-sc-items { display: grid; gap: 6px; margin-top: 12px; } .pe-sc-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.pe-sc-item .grow { flex: 1; min-width: 0; }
@media (max-width: 820px) { .pe-sc-grid { grid-template-columns: 1fr; } .pe-sc-kpis { border-left: 0; border-top: 1px solid var(--border); padding: 12px 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); } .pe-sc-kpis b { font-size: 16px; } }
/* v26 · «Así vamos»: tablero de progreso corporativo (cuatro anillos, lo primero que ve el equipo) */
.av-board { margin-bottom: 22px; }
.av-board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 12px; }
.av-board-head h2, .av-sec { font-size: 18px; margin: 0; } .av-sec { margin: 0 0 12px; }
.av-pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.av-pcard { --pe-c: var(--brand-blue); display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 20px; padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--pe-c) 24%, var(--border)); border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--pe-c) 9%, var(--surface)), var(--surface) 62%); }
.av-pcard[data-p="P01"] { --pe-c: var(--brand-green); } .av-pcard[data-p="P02"] { --pe-c: var(--brand-blue); }
.av-pcard[data-p="P03"] { --pe-c: var(--brand-pink); } .av-pcard[data-p="P04"] { --pe-c: #b9a6ff; }
.av-ring-wrap { position: relative; width: 148px; height: 148px; }
.av-ring { width: 100%; height: 100%; display: block; }
.av-ring circle { fill: none; stroke-width: 11; }
.av-ring-bg { stroke: color-mix(in srgb, var(--pe-c) 14%, var(--surface-3)); }
.av-ring-fg { stroke: var(--pe-c); stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1); }
.av-pcard.pending .av-ring-bg { stroke: var(--surface-3); stroke-dasharray: 3 5; }
.av-ring-val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; padding: 22px; }
.av-ring-val b { font-family: var(--font-display); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.av-ring-val span { font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.av-ring-val .av-pend { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text-2); letter-spacing: 0; }
.av-pinfo { display: grid; gap: 6px; align-content: center; min-width: 0; }
.av-pinfo h3 { margin: 0; font-size: 20px; }
.av-pinfo p { margin: 0; color: var(--text-2); line-height: 1.5; font-size: 14px; }
.av-pdates { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: var(--text-3); } .av-pdates b { color: var(--text-2); font-weight: 600; }
.av-pedit { justify-self: start; margin-top: 2px; }
.av-pct-in { display: flex; align-items: center; gap: 8px; } .av-pct-in input { flex: 1; } .av-pct-in span { color: var(--text-3); font-weight: 600; }
@media (max-width: 820px) {
  .av-pcards { grid-template-columns: 1fr; }
  .av-pcard { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .av-ring-wrap { width: 112px; height: 112px; } .av-ring-val { padding: 16px; } .av-ring-val b { font-size: 25px; } .av-ring-val .av-pend { font-size: 10.5px; }
  .av-pinfo h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .av-ring-fg { transition: none; } }
/* v27 · recuperación de contraseña */
.auth-link { color: var(--brand-blue); font-size: 14px; font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.note.ok { border-color: color-mix(in srgb, var(--brand-green) 45%, var(--border)); background: color-mix(in srgb, var(--brand-green) 12%, var(--surface-2)); }
