/* ============================================================
   Backend administrativo — Smarterix
   Estilos construidos sobre los tokens del design system.
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body, 'Montserrat', system-ui, sans-serif);
  color: var(--text-body, #33363D);
  background: var(--color-surface-muted, #F7F8F9);
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display, 'Quicksand', system-ui, sans-serif);
  color: var(--text-strong, #23262B);
  font-weight: 600;
  margin: 0 0 .5rem;
}

a { color: var(--color-primary, #007EBB); text-decoration: none; }
a:hover { color: var(--color-primary-hover, #00628F); }

/* --- Barra de firma de marca ---------------------------------------- */
.sx-signature {
  height: 4px;
  background: linear-gradient(90deg,
    var(--sx-red) 0 25%, var(--sx-yellow) 25% 50%,
    var(--sx-blue) 50% 75%, var(--sx-green) 75% 100%);
}

/* --- Layout del admin ----------------------------------------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--color-surface-dark, #23262B);
  color: var(--text-on-dark, #fff);
  display: flex;
  flex-direction: column;
  padding: 22px 0;
}
.sidebar__brand { padding: 0 22px 18px; display: flex; align-items: center; gap: 10px; }
.sidebar__brand img { height: 26px; }
.sidebar__section { padding: 14px 22px 6px; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sx-ink-400, #A9ADB5); }
.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px; color: var(--sx-ink-200, #E2E4E8);
  font-weight: 500; border-left: 3px solid transparent;
}
.sidebar__link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar__link.is-active {
  background: rgba(0,126,187,.18); color: #fff;
  border-left-color: var(--sx-blue, #007EBB);
}

/* --- Navegación de dos niveles -------------------------------------- */
.nav { flex: 1; overflow-y: auto; padding: 6px 0; }
.nav__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px; color: var(--sx-ink-200, #E2E4E8);
  font-weight: 500; border-left: 3px solid transparent;
}
.nav__link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav__link.is-active { background: rgba(0,126,187,.18); color: #fff; border-left-color: var(--sx-blue, #007EBB); }
.nav__group { border: 0; }
.nav__summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 20px; list-style: none; color: var(--sx-ink-300, #C9CCD2);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.nav__summary::-webkit-details-marker { display: none; }
.nav__summary:hover { color: #fff; }
.nav__icon { opacity: .7; }
.nav__chevron { margin-left: auto; transition: transform .15s; }
.nav__group[open] .nav__chevron { transform: rotate(90deg); }
.nav__children { padding: 2px 0 8px; }
.nav__link--child { padding-left: 42px; font-size: 14px; text-transform: none; letter-spacing: 0; }

.sidebar__foot { padding: 14px 20px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.version-chip {
  background: rgba(255,255,255,.08); color: var(--sx-ink-200); border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}
.version-chip:hover { background: rgba(255,255,255,.16); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; background: var(--color-surface, #fff);
  border-bottom: 1px solid var(--border, #E2E4E8);
}
.topbar__user { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.topbar__name { color: var(--text-body); font-weight: 600; }
.bell { position: relative; font-size: 18px; text-decoration: none; line-height: 1; }
.bell__count {
  position: absolute; top: -8px; right: -10px; background: var(--sx-red, #F50D00); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}

/* --- Modal (dialog) ------------------------------------------------- */
.modal { border: 0; border-radius: 14px; padding: 0; max-width: 640px; width: 92%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal::backdrop { background: rgba(35,38,43,.55); }
.modal__head { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal__head h3 { margin: 0; }
.modal__body { padding: 22px; max-height: 65vh; overflow-y: auto; }
.markdown h1 { font-size: 22px; } .markdown h2 { font-size: 18px; margin-top: 18px; }
.markdown h3 { font-size: 15px; margin-top: 14px; }
.markdown ul { padding-left: 20px; } .markdown li { margin: 4px 0; }
.markdown p { margin: 8px 0; }
.content { padding: 28px; max-width: 1200px; width: 100%; }

/* --- Componentes ---------------------------------------------------- */
.card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--border, #E2E4E8);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}

.page-head { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 24px; }
.muted { color: var(--text-muted, #646973); }

/* Métricas */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.metric { background: var(--color-surface, #fff); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; }
.metric__value { font-family: var(--font-display); font-size: 34px; font-weight: 600;
  color: var(--text-strong); line-height: 1; }
.metric__label { color: var(--text-muted); font-size: 13px; margin-top: 6px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px;
  border-radius: 8px; border: 1px solid transparent; transition: .15s; }
.btn--primary { background: var(--color-primary, #007EBB); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover, #00628F); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--border-strong, #C9CCD2);
  color: var(--text-body); }
.btn--ghost:hover { background: var(--color-surface-muted); }
.btn--danger { background: var(--color-danger, #F50D00); color: #fff; }
.btn--danger:hover { background: var(--sx-red-deep, #C50B00); color: #fff; }
.btn--sm { padding: 6px 11px; font-size: 13px; }

/* Tablas */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; padding: 11px 12px; color: var(--text-muted);
  font-weight: 600; border-bottom: 2px solid var(--border); font-size: 12px;
  text-transform: uppercase; letter-spacing: .03em; }
table.data td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:hover td { background: var(--color-surface-muted, #F7F8F9); }

/* Badges / chips */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; }
.badge--staff { background: var(--sx-blue-tint); color: var(--sx-blue-deep); }
.badge--cliente { background: var(--sx-green-tint); color: var(--sx-green-deep); }
.badge--activo { background: var(--sx-green-tint); color: var(--sx-green-deep); }
.badge--suspendido { background: var(--sx-red-tint); color: var(--sx-red-deep); }
.badge--role { background: var(--sx-ink-100); color: var(--text-body); margin: 2px; }
.badge--owner { background: var(--sx-yellow-tint); color: var(--sx-yellow-deep); }

/* Formularios */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong, #C9CCD2);
  border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; color: var(--text-body); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--border-focus, #007EBB); box-shadow: var(--ring); }
.field .hint { font-size: 12px; color: var(--text-subtle); margin-top: 4px; }
.error { color: var(--sx-red-deep, #C50B00); font-size: 13px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.flash--ok { background: var(--sx-green-tint); color: var(--sx-green-deep); }

/* Paginación */
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 18px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 11px; border-radius: 7px; border: 1px solid var(--border);
  font-size: 13px; color: var(--text-body); }
.pagination .active span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.empty { text-align: center; padding: 40px; color: var(--text-muted); }

/* --- Dashboard cliente ---------------------------------------------- */
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.cols__main, .cols__aside { min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card__head h3 { margin: 0; }
.proj-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-body);
}
.proj-row:last-child { border-bottom: 0; }
.proj-row:hover strong { color: var(--color-primary); }
.notif-mini { padding: 10px 0; border-bottom: 1px solid var(--border); }
.notif-mini:last-child { border-bottom: 0; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* ============================================================
   Portal del cliente — estética de las maquetas (Portal Inicio)
   ============================================================ */
.port { max-width: 1120px; display: flex; flex-direction: column; gap: 26px; animation: sxRise 360ms var(--ease-out, ease) both; }
@keyframes sxRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.port__ribbon { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.port__company { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display);
  font-weight: 300; font-size: var(--text-lg, 22px); color: var(--text-strong); text-transform: capitalize; }
.port__company .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--sx-blue); }
.port__date { font-size: var(--text-xs, 12px); color: var(--text-subtle); }
.port__date::first-letter { text-transform: uppercase; }
.anios-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
  color: var(--sx-blue-deep); background: var(--sx-blue-tint); border-radius: var(--radius-pill, 999px); padding: 4px 12px; }

.eyebrow { display: block; font-family: var(--font-body); font-weight: 600; font-size: var(--text-xs, 12px);
  letter-spacing: var(--tracking-wide, .12em); text-transform: uppercase; color: var(--sx-blue); margin-bottom: 10px; }
.eyebrow--light { color: color-mix(in srgb, var(--sx-white) 62%, transparent); }

.port__hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.port__title { font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl, 36px);
  line-height: 1.06; letter-spacing: -.01em; color: var(--text-strong); margin: 0 0 10px; }
.port__note { font-size: var(--text-md, 18px); line-height: 1.5; color: var(--text-muted); margin: 0; max-width: 60ch; }
.port__team-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 8px; text-align: right; }
.avatars { display: flex; justify-content: flex-end; }
.avatar { width: 40px; height: 40px; border-radius: 50%; margin-left: -8px; border: 2px solid var(--sx-ink-50);
  background: var(--sx-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 13px; }
.avatar:nth-child(2){background:var(--sx-green);} .avatar:nth-child(3){background:var(--sx-yellow-deep);}
.avatar:nth-child(4){background:var(--sx-red);} .avatar--more{background:var(--sx-ink-500);}

.sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--text-lg, 22px); color: var(--text-strong); margin: 0; }
.sec-head span { font-size: var(--text-xs, 12px); color: var(--text-subtle); }
.sec-link { margin-left: auto; font-size: 13px; color: var(--text-muted); font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat { background: var(--sx-white); border: 1px solid var(--border); border-top: 3px solid var(--sx-blue);
  border-radius: var(--radius-lg, 16px); box-shadow: var(--shadow-sm); padding: 20px 22px; transition: var(--transition, .2s); }
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat__icon { display: flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 15px; }
.stat__value { font-family: var(--font-display); font-weight: 300; font-size: 30px; color: var(--text-strong); line-height: 1; }
.stat__label { font-size: var(--text-sm, 14px); font-weight: 600; color: var(--text-strong); margin-top: 8px; }
.stat__sub { font-size: var(--text-xs, 12px); color: var(--text-subtle); margin-top: 2px; }

.band { position: relative; overflow: hidden; background: var(--sx-ink-900); color: var(--text-on-dark);
  border-radius: var(--radius-lg, 16px); box-shadow: var(--shadow-sm); padding: 30px 32px; display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.band__bar { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--signature-bar); }
.band__body { flex: 1; min-width: 260px; }
.band__title { font-family: var(--font-display); font-weight: 300; font-size: var(--text-xl, 28px); line-height: 1.14; color: var(--sx-white); margin: 0 0 10px; }
.band__text { font-size: var(--text-sm, 14px); line-height: 1.5; color: color-mix(in srgb, var(--sx-white) 80%, transparent); margin: 0; max-width: 52ch; }
.band__cta { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 22px;
  border-radius: var(--radius-md, 10px); background: var(--sx-white); color: var(--sx-ink-900); font-weight: 700; font-size: 14px; }
.band__cta:hover { background: color-mix(in srgb, var(--sx-white) 88%, transparent); color: var(--sx-ink-900); }
.band--link { color: inherit; transition: var(--transition, .2s); }
.band--link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.band__money { font-family: var(--font-mono); font-weight: 700; font-size: 30px; color: var(--sx-white); line-height: 1; margin: 4px 0 8px; }
.band__money span { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: color-mix(in srgb, var(--sx-white) 66%, transparent); }

.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.next-card { background: var(--sx-white); border: 1px solid var(--border); border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text-body); transition: var(--transition, .2s); }
.next-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.next-card__icon { display: flex; width: 38px; height: 38px; border-radius: 11px; align-items: center; justify-content: center; font-size: 16px; }
.next-card h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm, 14px); color: var(--text-strong); margin: 0; }
.next-card p { font-size: var(--text-xs, 12px); color: var(--text-muted); margin: 0; line-height: 1.45; flex: 1; }
.next-card__foot { display: flex; align-items: center; justify-content: space-between; }
.next-card__link { font-size: 13px; font-weight: 700; color: var(--sx-blue); }

/* --- Lista de contratos (estilo maqueta Portal Contratos) ----------- */
.contract-list { background: var(--sx-white); border: 1px solid var(--border); border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm); overflow: hidden; }
.contract-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 24px;
  border-top: 1px solid var(--sx-ink-100); color: var(--text-body); }
.contract-row:first-child { border-top: 0; }
.contract-row:hover { background: var(--color-surface-muted); }
.contract-row__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; margin-top: 2px; font-size: 17px; }
.contract-row__main { flex: 1; min-width: 0; }
.contract-row__title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 4px; }
.contract-row__title strong { color: var(--text-strong); font-size: var(--text-sm, 14px); }
.chip { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted); background: var(--sx-ink-100); border-radius: var(--radius-pill, 999px); padding: 3px 9px; }
.contract-row__right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; }
.contract-row__value { font-size: var(--text-sm, 14px); font-weight: 700; color: var(--text-strong); font-family: var(--font-mono); white-space: nowrap; }
.contract-row__term { font-size: 11px; font-weight: 400; color: var(--text-subtle); font-family: var(--font-body); }

/* --- Resumen de negocio + gráfico ----------------------------------- */
.resumen { margin-bottom: 22px; }
.resumen__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tile { background: var(--sx-white); border: 1px solid var(--border); border-top: 3px solid var(--sx-blue);
  border-radius: var(--radius-lg, 16px); box-shadow: var(--shadow-sm); padding: 18px 22px; }
.tile__label { font-size: 12px; font-weight: 600; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .04em; }
.tile__value { font-family: var(--font-mono); font-weight: 700; font-size: 30px; color: var(--text-strong); line-height: 1.1; margin: 8px 0 4px; }
.tile__sub { font-size: 12px; color: var(--text-subtle); }
.chart-card { margin-bottom: 0; }
.legend { display: flex; gap: 16px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-body); font-weight: 600; }
.legend__sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
/* El SVG lleva width/height intrínsecos: se muestra a tamaño natural (alto fijo
   ~222px) y sólo se achica si no entra; nunca se agranda. La tabla-wrap scrollea
   en horizontal cuando hay muchos años. */
.chart { max-width: 100%; height: auto; display: block; }

.chip--sm { background: color-mix(in srgb, var(--sx-blue) 14%, transparent); color: var(--sx-blue-deep); }
.chip--stx { background: color-mix(in srgb, #C68F00 18%, transparent); color: #8a6400; }

.year-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.year-head__num { font-family: var(--font-display); font-weight: 300; font-size: var(--text-lg, 22px); color: var(--text-strong); }
.year-head__line { flex: 1; height: 1px; background: var(--border); }

/* --- Objetivos ------------------------------------------------------ */
.mono { font-family: var(--font-mono); }
.prio-banner { display: flex; align-items: center; gap: 14px; padding: 14px 20px; margin-bottom: 16px;
  border-radius: var(--radius-lg, 16px); border: 1px solid color-mix(in srgb, var(--sx-blue) 30%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sx-blue) 8%, var(--sx-white)), var(--sx-white)); }
.prio-banner__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--sx-blue-tint);
  color: var(--sx-blue); display: flex; align-items: center; justify-content: center; font-size: 20px; }

.obj-card { display: flex; background: var(--sx-white); border: 1px solid var(--border); border-left: 4px solid var(--sx-blue);
  border-radius: var(--radius-lg, 16px); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 16px; }
.obj-card__prio { flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 14px 0; background: var(--color-surface-muted); border-right: 1px solid var(--border); }
.obj-card__rank { font-family: var(--font-display); font-weight: 300; font-size: 24px; color: var(--sx-blue); line-height: 1; }
.prio-arrow { border: 0; background: none; cursor: pointer; color: var(--text-subtle); font-size: 13px; padding: 2px; line-height: 1; }
.prio-arrow:hover { color: var(--sx-blue); }
.obj-card__body { flex: 1; min-width: 0; padding: 18px 22px; }
.obj-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.obj-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 14px; }
.obj-metric__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.obj-metric__head span { font-weight: 700; color: var(--text-strong); }
.bar { height: 8px; border-radius: 99px; background: var(--sx-ink-100); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 99px; }

/* --- Trayectoria ---------------------------------------------------- */
.tray-filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tray-filter { padding: 7px 14px; border-radius: var(--radius-pill, 999px); border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600; color: var(--text-muted); background: var(--sx-white); }
.tray-filter:hover { color: var(--text-strong); }
.tray-filter.is-on { background: var(--sx-blue); color: #fff; border-color: var(--sx-blue); }
.tray-card { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; background: var(--sx-white);
  border: 1px solid var(--border); border-left: 4px solid var(--sx-blue); border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm); padding: 18px 22px; }
.tray-card__icon { flex: none; width: 40px; height: 40px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; margin-top: 2px; font-size: 18px; }

/* --- Propuestas ----------------------------------------------------- */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.prop-card { display: flex; flex-direction: column; background: var(--sx-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.prop-card__head { flex: 1; }
.prop-card__rows { margin: 14px 0 4px; }
.prop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; font-size: 14px; color: var(--text-body); }
.prop-row span:first-child { color: var(--text-muted); }
.prop-card__foot { margin-top: 12px; }

@media (max-width: 780px) {
  .sidebar { width: 64px; }
  .sidebar__brand span, .sidebar__section, .sidebar__link span { display: none; }
}
