:root {
  --bg: #ffffff;
  --soft: #f7f7f7;
  --card: #ffffff;
  --card-hi: #f7f7f7;
  --line: #e0e0e0;
  --line-strong: #bdbdbd;
  --text: #0b0b0b;
  --body: #333333;
  --muted: #717171;
  --brand: #851a2e;
  --brand-2: #8c2f3f;
  --brand-soft: #f6e9ec;
  --dark: #3b3b3b;
  --pos: #1e7a4a;
  --neg: #b42318;
  --heading: "Exo 2", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sans: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--body); background: var(--bg);
  font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Barra superior */
.site { background: var(--dark); color: #fff; }
.site .in { max-width: 888px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.site a { font-family: var(--heading); font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.site .pill { font-size: 12px; background: var(--brand); padding: 6px 12px; border-radius: 6px; font-weight: 600; }

main { max-width: 888px; margin: 0 auto; padding: 28px 20px 56px; }

h1, h2.serif { font-family: var(--heading); font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--text); }
h1 { font-size: 36px; line-height: 1.15; }
.hero { text-align: left; margin: 30px 0 30px; }
.hero h1 { font-size: 46px; }
.hero p { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 560px; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 13px; }
.topbar a:hover { color: var(--brand); }
.topbar .brand { font-weight: 600; color: var(--muted); }
.muted { color: var(--muted); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* Inicio */
.cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 134px;
  padding: 20px 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.cat-card:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(133, 26, 46, .12); }
.cat-card small { color: var(--muted); font-size: 12px; }
.cat-card h2 { font-family: var(--heading); font-weight: 700; font-size: 24px; margin: 2px 0 0; color: var(--text); }
.cat-card .row { display: flex; justify-content: space-between; align-items: flex-start; }
.cat-card .arrow { color: var(--brand); font-size: 20px; font-weight: 700; }
.cat-card .count { color: var(--muted); font-size: 12px; }

.tops { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 34px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.list a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.list a:first-child { border-top: 0; }
.list a:hover { background: var(--soft); }
.list a span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.search { position: relative; margin-top: 34px; }
.search input {
  width: 100%; padding: 15px 16px 15px 42px; background: var(--card); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 15px; outline: none;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.results { margin-top: 10px; }
.results .list a { display: block; }
.results .list a small { display: block; color: var(--muted); font-size: 12px; }
.empty { padding: 18px; text-align: center; color: var(--muted); }

.foot { margin-top: 46px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Listado */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 6px 0 22px; flex-wrap: wrap; }
.tools { display: flex; align-items: center; gap: 16px; }
.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.seg button { background: none; border: 0; padding: 6px 14px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.link { color: var(--brand); font-size: 13px; font-weight: 600; border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: var(--brand); }

.folders { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 26px; }
.folder {
  position: relative; text-align: left; background: var(--soft); border: 1px solid var(--line);
  border-radius: 3px 10px 10px 10px; padding: 14px 12px 12px; min-height: 96px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.folder::before {
  content: ""; position: absolute; top: -7px; left: -1px; width: 46%; height: 8px;
  background: var(--soft); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0;
}
.folder:hover { border-color: var(--brand-2); }
.folder[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.folder[aria-pressed="true"]::before { background: var(--brand-soft); border-color: var(--brand); }
.mono {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff; background: var(--dark);
}
.folder[aria-pressed="true"] .mono { background: var(--brand); }
.folder b { font-size: 12.5px; font-weight: 700; display: block; line-height: 1.25; color: var(--text); }
.folder small { color: var(--muted); font-size: 11.5px; }

.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filters .search { margin: 0; flex: 1 1 280px; max-width: 360px; }
.filters .search input { padding: 10px 14px 10px 38px; font-size: 14px; border-color: var(--line); }
.filters .search svg { left: 12px; }
.chip { background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--body); }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 14px; text-align: right; border-top: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead th { border-top: 0; background: var(--soft); font-weight: 600; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
thead th button { background: none; border: 0; padding: 0; color: inherit; font-weight: 600; }
thead th button:hover, thead th[aria-sort] button { color: var(--brand); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--soft); }
td.fund b { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--text); }
td.fund small { color: var(--muted); font-size: 12px; }
.tag { display: inline-block; margin-left: 6px; font-size: 10.5px; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); vertical-align: 1px; font-weight: 600; }

.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px; position: relative; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card .dot { fill: #8a8a8a; fill-opacity: .85; cursor: pointer; stroke: #fff; stroke-width: 1.5; }
.chart-card .dot.r4 { fill: var(--brand); fill-opacity: 1; }
.chart-card .dot:hover, .chart-card .dot:focus { stroke: var(--text); stroke-width: 2; outline: none; }
.tip {
  position: absolute; pointer-events: none; background: #fff; color: var(--text); border: 1px solid var(--line-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12); border-radius: 8px;
  padding: 7px 10px; font-size: 12px; max-width: 260px; display: none; z-index: 5;
}
.legend { display: flex; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #8a8a8a; }

/* Vision general */
.ov { display: grid; gap: 10px; }
.ov-row { display: grid; grid-template-columns: 1.4fr .5fr .6fr 1.6fr; gap: 14px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.ov-row b { font-weight: 700; color: var(--text); }
.ov-row small { color: var(--muted); display: block; font-size: 12px; }
.ov-row a:hover { color: var(--brand); }

/* Ficha */
.sub { margin: 10px 0 24px; color: var(--muted); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.kpi small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.kpi span { font-size: 21px; font-family: var(--heading); font-weight: 700; }
.kpi.hi { background: var(--brand); border-color: var(--brand); }
.kpi.hi small { color: rgba(255, 255, 255, .8); }
.kpi.hi span { color: #fff; }
.note { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
.docs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.doc { padding: 10px 14px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--brand); }
.doc:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.doc small { color: var(--muted); display: block; font-size: 11.5px; font-weight: 400; }
.doc:hover small { color: rgba(255, 255, 255, .8); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px 40px; margin-top: 32px; }
.block h3 { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand); }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 112px 1fr 56px; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { height: 7px; background: #ececec; border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; background: #8a8a8a; border-radius: 4px; }
.bar .fill.neg { background: var(--neg); }
.bar .fill.pos { background: var(--pos); }
.bar .v { text-align: right; }
.stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #ececec; }
.stack i { display: block; height: 100%; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.keys b { color: var(--text); font-weight: 700; }
.keys span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--c); }
dl.facts { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0; font-size: 13px; }
dl.facts dt, dl.facts dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); }
dl.facts dt { color: var(--muted); }
dl.facts dd { text-align: right; color: var(--text); }
dl.facts dt:first-of-type, dl.facts dd:first-of-type { border-top: 0; }
.rtable { width: 100%; min-width: 0; font-size: 13px; }
.rtable th, .rtable td { padding: 8px 0; }
.rtable th { background: none; }
.rtable th:not(:first-child), .rtable td:not(:first-child) { text-align: right; }

/* Selector de columnas y ejes */
.picker { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 12px; }
.picker[hidden] { display: none; }
.pgroup .label { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.picker #resetCols { justify-self: start; }
.axes { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.axis { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.axis select { background: var(--card); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; font: inherit; }
.table-wrap td:first-child, .table-wrap th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; min-width: 210px; }
.table-wrap thead th:first-child { background: var(--soft); }
.table-wrap tbody tr:hover td:first-child { background: var(--soft); }

@media (max-width: 760px) {
  main { padding: 20px 16px 44px; }
  .site .in { padding: 0 16px; }
  .hero h1 { font-size: 34px; }
  h1 { font-size: 28px; }
  .cards, .tops, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .folders { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .ov-row { grid-template-columns: 1fr 1fr; }
  .bar { grid-template-columns: 96px 1fr 54px; }
  .table-wrap td:first-child, .table-wrap th:first-child { min-width: 160px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Comparador y carteras */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search.tight { margin-top: 14px; }
.sel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.selchip { display: inline-flex; gap: 6px; align-items: center; background: var(--soft); border: 1px solid var(--line-strong); border-left: 5px solid var(--c); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--text); max-width: 100%; }
.selchip b { color: var(--muted); font-size: 16px; line-height: 1; }
.selchip:hover b { color: var(--brand); }
.cmp table { min-width: 560px; }
.cmp th.ch { vertical-align: bottom; min-width: 150px; text-align: right; }
.cmp th.ch a { display: block; color: var(--text); font-weight: 700; font-size: 13px; line-height: 1.3; }
.cmp th.ch a i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--c); }
.cmp th.ch small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.cmp tr.grp td { background: var(--soft); color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: right; }
.cmp td.best { background: var(--brand-soft); font-weight: 700; }
.cmp .cat { font-size: 12.5px; }
.cmp tbody tr:hover { background: transparent; }
.cmp tbody tr:not(.grp):hover td:not(.best) { background: var(--soft); }
.inp { background: var(--card); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; font: inherit; }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.inp.big { font-family: var(--heading); font-weight: 700; font-size: 26px; border-color: transparent; padding: 4px 8px; margin-left: -8px; width: 100%; background: transparent; }
.inp.big:hover, .inp.big:focus { border-color: var(--line-strong); background: var(--card); }
.inp.amt { width: 190px; }
.inp.w { width: 84px; text-align: right; padding: 6px 8px; }
.inp.grow { flex: 1 1 240px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tools2 { margin-top: 22px; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--brand-2); }
.btn.ghost { background: var(--card); color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { color: var(--neg); border-color: var(--neg); }
.btn.sm { padding: 3px 10px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: default; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 6px 0 24px; }
.pfcard { display: flex; flex-direction: column; gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.pfcard:hover { border-color: var(--brand); }
.pfcard b { font-family: var(--heading); font-size: 18px; color: var(--text); }
.pfcard small { color: var(--muted); }
.pfcard > span { margin-top: 8px; font-size: 20px; font-family: var(--heading); font-weight: 700; }
.pfcard > span small { font-family: var(--sans); font-weight: 400; font-size: 12px; }
.empty.box { grid-column: 1 / -1; border: 1px dashed var(--line-strong); border-radius: 8px; }
.newpf { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.pfhead { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 6px; }
.pfhead .inp.big { flex: 1 1 320px; width: auto; }
.amtl { display: flex; align-items: center; gap: 10px; font-size: 13px; }
tfoot td { background: var(--soft); font-weight: 700; color: var(--text); border-top: 2px solid var(--line-strong); }
tfoot td:first-child { background: var(--soft); }
.x { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.x:hover { color: var(--neg); background: var(--soft); }
.pfrow { cursor: default; }
.pfrow td.fund a:hover b { color: var(--brand); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.checks i { flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 2px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; }
.checks .ok i { background: var(--pos); } .checks .ok i::before { content: "✓"; }
.checks .warn i { background: var(--neg); } .checks .warn i::before { content: "!"; }
.checks .info i { background: #8a8a8a; } .checks .info i::before { content: "i"; }
.doc small .btn.sm { margin-left: 4px; }
.doc small select { max-width: 150px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 4px; font: inherit; }
.addpf:hover { background: var(--card); color: var(--brand); border-color: var(--line-strong); }
.addpf:hover small { color: var(--muted); }

/* Ajustes de ancho */
.cmp table { table-layout: fixed; width: 100%; min-width: 520px; }
.cmp td:first-child, .cmp th:first-child { width: 150px; min-width: 150px; }
.cmp th.ch { min-width: 0; }
.cmp td, .cmp th { overflow-wrap: anywhere; }
#pftable table { min-width: 0; }
#pftable th, #pftable td { padding: 10px 8px; }
#pftable td:first-child, #pftable th:first-child { min-width: 180px; padding-left: 14px; }
#pftable .inp.w { width: 72px; }

/* Recomendadas y comentarios */
.rec { margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--brand); }
.rec h2 { font-family: var(--heading); font-size: 24px; margin: 0; }
.rechead { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rec .kpis { margin-top: 20px !important; }
.comment { border-left: 3px solid var(--brand); background: var(--soft); padding: 12px 16px; border-radius: 0 8px 8px 0; margin-bottom: 12px; }
.cm-h { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.cm-h b { color: var(--brand); }
.cm-t { margin: 0; white-space: pre-line; line-height: 1.55; }

/* Categorías */
.chips.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.cats .chip small { opacity: .7; margin-left: 4px; }
.cat-h { font-family: var(--heading); font-size: 22px; margin: 0; }
.cat-h small { font-family: var(--sans); font-size: 13px; font-weight: 400; }

/* Construir cartera */
.bhead { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; margin: 6px 0 18px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.fld .inp { min-width: 240px; }
.fld .inp.amt { min-width: 0; }
.bgl { margin-top: 26px; }
.bband { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 8px; }
.bband .stack { height: 12px; display: flex; border-radius: 6px; overflow: hidden; background: var(--line); }
.okt { color: var(--pos); font-size: 13px; margin: 10px 0 0; } .badt { color: var(--neg); font-size: 13px; margin: 10px 0 0; font-weight: 600; }
.bk { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-top: 10px; background: var(--card); }
.bkh { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.bkh small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bkw { display: flex; align-items: center; gap: 6px; flex: none; }
.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; margin: 14px 0 6px; outline: none; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--brand); cursor: pointer; }
.rng::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--brand); cursor: pointer; }
.bkm { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin: 0; }
.bst.in { color: var(--pos); font-weight: 600; } .bst.out { color: var(--neg); font-weight: 600; }
.cands { margin-top: 10px; }
.cand { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; cursor: pointer; }
.cand.on { border-color: var(--brand); background: var(--brand-soft); }
.cand input { margin-top: 4px; accent-color: var(--brand); }
.cand .ct { flex: 1; min-width: 0; } .cand .ct b { display: block; font-size: 13.5px; } .cand small { display: block; color: var(--muted); font-size: 12px; }
.cand .cm { text-align: right; flex: none; font-size: 12px; }
@media (max-width: 760px) { .cand { flex-wrap: wrap; } .cand .cm { text-align: left; } }

/* Gestión de carteras */
.gh { font-family: var(--heading); font-size: 20px; margin: 34px 0 12px; padding-top: 18px; border-top: 2px solid var(--brand); }
.manual { margin-top: 12px; font-size: 13px; } .manual summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.vd { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px; color: #fff; }
.vd.keep { background: var(--pos); } .vd.rev { background: #c27c0e; } .vd.sub { background: var(--neg); }
td small { display: block; }
.acts { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.gest .grid2 { grid-template-columns: minmax(0, 1fr); }
.gest td small { white-space: normal; }
.gest .table-wrap th, .gest .table-wrap td { padding: 10px 8px; }
.gest .table-wrap td:first-child, .gest .table-wrap th:first-child { padding-left: 14px; min-width: 190px; }
.gest td .vd + small { max-width: 190px; }
.gest .table-wrap td:first-child, .gest .table-wrap th:first-child { min-width: 150px; }
.gest td .vd + small { max-width: 140px; }
.gest .table-wrap th { white-space: normal; }

.corr table { min-width: 0; }
.corr td.cc, .corr th { text-align: center; padding: 8px 6px; font-variant-numeric: tabular-nums; }
.corr td.cc.est { font-style: italic; color: var(--body); }
.corr td.fund { text-align: left; min-width: 180px; }
.fcm { border-left: 3px solid var(--brand); background: var(--soft); border-radius: 0 8px 8px 0; padding: 12px 16px; margin-bottom: 12px; }
.fcm p { margin: 0; line-height: 1.55; font-size: 14px; } .fcm-h { margin-bottom: 6px !important; } .fcm-h b { color: var(--text); }
.fcm-g { margin-top: 8px !important; color: var(--brand); }

/* ===== Pulido visual ===== */
:root { --page: #f4f4f6; --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 1px 1px rgba(20, 20, 30, .03); --shadow-hi: 0 8px 22px rgba(133, 26, 46, .13); --r: 12px; }
html, body { background: var(--page); }
a, button, .folder, .cat-card, .chip, .btn, .cand, .pfcard { transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s, color .15s; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.site { border-bottom: 3px solid var(--brand); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.site a { letter-spacing: .04em; }

.hero { margin: 26px 0 26px; padding: 34px 32px; border-radius: 16px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #a3263c 0%, #851a2e 38%, #4e0f1c 100%); box-shadow: 0 10px 28px rgba(133, 26, 46, .22); }
.hero h1 { color: #fff; font-size: 34px; letter-spacing: .01em; }
.hero p { color: rgba(255, 255, 255, .86); font-size: 15px; max-width: 620px; margin-top: 10px; }

.cat-card, .list, .table-wrap, .kpi, .pfcard, .bk, .bband, .chart-card, .newpf, .fcm, .comment, .cand { background: #fff; box-shadow: var(--shadow); }
.cat-card, .list, .table-wrap, .pfcard, .bk, .bband, .chart-card, .newpf { border-radius: var(--r); }
.cat-card { border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: 20px 22px; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.cat-card h2 { font-size: 22px; }
.cat-card .arrow { align-self: flex-end; }
.kpi { border-radius: 10px; }
.kpi.hi { background: linear-gradient(135deg, #a3263c, #851a2e); box-shadow: 0 6px 16px rgba(133, 26, 46, .2); }
.kpi span { font-variant-numeric: tabular-nums; }

/* Gestoras: tarjetas limpias en vez de carpetas */
.folders { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; margin-bottom: 26px; }
.folder { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-height: 0; }
.folder::before { display: none !important; }
.folder:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-hi); }
.folder .mono { flex: none; width: 42px; height: 42px; margin: 0; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-family: var(--heading); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.folder b { font-size: 13.5px; }
.folder small { display: block; margin-top: 1px; }
.folder[aria-pressed="true"] { background: linear-gradient(135deg, #a3263c, #851a2e); border-color: var(--brand); box-shadow: var(--shadow-hi); }
.folder[aria-pressed="true"] b { color: #fff; } .folder[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.folder[aria-pressed="true"] .mono { background: #fff; color: var(--brand); }

.seg { background: #fff; box-shadow: var(--shadow); }
.chip { box-shadow: var(--shadow); } .chip:hover { background: var(--brand-soft); }
.chip[aria-pressed="true"]:hover { background: var(--brand-2); }
.search input { border-radius: var(--r); box-shadow: var(--shadow); }
.page-head h1, h1 { letter-spacing: -.015em; }
.link { font-weight: 600; }

/* Tablas */
.table-wrap { border: 1px solid var(--line); }
thead th { background: #fafafa; text-transform: none; border-bottom: 1px solid var(--line); }
tbody tr:nth-child(even) td { background: #fcfcfd; }
tbody tr:hover td { background: var(--brand-soft) !important; }
.table-wrap td:first-child, .table-wrap tbody tr:nth-child(even) td:first-child { background: #fff; }
.table-wrap tbody tr:nth-child(even) td:first-child { background: #fcfcfd; }
td, th { font-variant-numeric: tabular-nums; }

.block h3 { color: var(--brand); border-bottom: 2px solid var(--brand); }
.foot { border-top: 1px solid var(--line-strong); }
.note { color: var(--muted); }
.btn { border-radius: 10px; box-shadow: var(--shadow); } .btn:hover { box-shadow: var(--shadow-hi); }
.gh { border-top-width: 3px; }
.bk, .cand { border-radius: 10px; }
@media (max-width: 760px) { .hero { padding: 24px 20px; } .hero h1 { font-size: 26px; } .folders { grid-template-columns: repeat(2, 1fr); } }

/* Informe PDF (impresión) */
.printhead { display: none; }
@media print {
  @page { size: A4; margin: 13mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff !important; font-size: 11px; }
  header.site, .topbar, .search, .results, .manual, .bhead, .tools2, .foot, .x, .sub, h1:not(.ph) { display: none !important; }
  .printhead { display: block; border-bottom: 3px solid var(--brand); padding-bottom: 8px; margin-bottom: 12px; }
  .printhead h1 { display: block !important; font-size: 22px; margin: 0 0 4px; color: var(--brand); }
  .printhead p { margin: 0; color: var(--body); }
  .selchip b, .pfhead .amtl span, #pfname { border: 0 !important; }
  .sel, .btn, .pfhead { display: none !important; }
  main, #app { max-width: none; padding: 0; }
  .gh { break-after: avoid; margin-top: 18px; }
  .block, .fcm, .kpis, tr, .grid2 > section { break-inside: avoid; }
  .table-wrap { overflow: visible; box-shadow: none; }
  table { min-width: 0 !important; font-size: 10.5px; }
  th, td { padding: 6px 6px !important; }
  .table-wrap td:first-child, .table-wrap th:first-child { position: static; min-width: 0; }
  .gest .grid2 { grid-template-columns: 1fr; }
  .inp { border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; width: auto !important; text-align: right; -moz-appearance: textfield; }
  .inp::-webkit-outer-spin-button, .inp::-webkit-inner-spin-button { -webkit-appearance: none; }
  #gtable th:nth-child(5), #gtable td:nth-child(5) { display: none; }
  #gtable { margin-bottom: 4px; }
}

/* Acciones */
.rt { display: inline-block; min-width: 30px; text-align: center; font-weight: 700; border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.rt.r-hi { background: #e3f3ea; color: var(--pos); } .rt.r-mid { background: #fdf1d9; color: #8a5a00; } .rt.r-lo { background: #fbe6e3; color: var(--neg); }
.kpis.kp6 { grid-template-columns: repeat(6, 1fr); }
.stxt { white-space: pre-line; line-height: 1.6; margin: 0; }
.fhead h1 { font-size: 30px; } .fhead p { margin: 4px 0 18px; }
@media (max-width: 760px) { .kpis.kp6 { grid-template-columns: repeat(3, 1fr); } }

.folder .mono img { width: 100%; height: 100%; object-fit: contain; padding: 7px; border-radius: 50%; background: #fff; }
.folder .mono:has(img) { background: #fff; border: 1px solid var(--line, #e3d9dc); }

.fichaimg { width: 100%; height: auto; display: block; border: 1px solid var(--line, #e3d9dc); border-radius: 8px; }

.agrow { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line, #e3d9dc); font-size: .93rem; }
.agrow:first-of-type { border-top: 0; }
.agtag { flex: 0 0 auto; min-width: 78px; text-align: center; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #f1e9eb; color: #7a1a2c; }
.ag-key { background: #c8102e; color: #fff; }

.estag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eee; color: #444; white-space: nowrap; }
.es-alerta { background: #c8102e; color: #fff; } .es-oportunidad { background: #e3f3ea; color: #1d7a45; }
.es-vigilar { background: #fdf1d9; color: #8a5a00; } .es-normal { background: #eee; color: #555; } .es-sindatos { background: #ddd; color: #666; }
.es-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.es-chip { border: 1px solid var(--line, #e3d9dc); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer; }
.es-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.es-cat { margin: 22px 0 8px; font-size: .95rem; color: var(--brand); }
.esdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 3px; background: #ddd; }
.esdot.es-alerta { background: #c8102e; } .esdot.es-oportunidad { background: #1d7a45; } .esdot.es-vigilar { background: #e0a100; } .esdot.es-normal { background: #cfcfcf; }
.estable .eswhy { min-width: 220px; white-space: normal; }

/* ===== Tema corporativo estilo Renta 4 ===== */
:root { --brand: #c8102e; --brand-2: #a50d26; --brand-soft: #fcebee; --dark: #1f1f1f; --soft: #f4f4f4; --line: #e3e3e3; }
body { background: #fff; }
main { max-width: 1040px; }
.site { background: #fff; color: var(--text); border-bottom: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); position: sticky; top: 0; z-index: 20; }
.site .util { background: var(--dark); color: #cfcfcf; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.site .util .in { height: 28px; max-width: 1040px; }
.site .sbar { border-bottom: 3px solid var(--brand); }
.site .sbar .in { max-width: 1040px; height: 64px; gap: 24px; }
.site .logo { display: flex; flex-direction: column; line-height: 1.1; letter-spacing: 0; }
.site .logo b { font-family: var(--heading); font-size: 21px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .02em; }
.site .logo span { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.site nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site nav::-webkit-scrollbar { display: none; }
.site nav a { font-family: var(--sans); font-weight: 600; font-size: 13.5px; letter-spacing: 0; color: var(--body); padding: 22px 12px 19px; border-bottom: 3px solid transparent; margin-bottom: -3px; white-space: nowrap; }
.site nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.hero { background: var(--soft); color: var(--text); box-shadow: none; border-radius: 0; border-left: 6px solid var(--brand); padding: 34px 36px; margin: 28px 0; }
.hero h1 { color: var(--text); font-size: 34px; text-transform: uppercase; letter-spacing: .01em; }
.hero p { color: var(--body); }
h1 { color: var(--text); }
.topbar a { color: var(--brand); font-weight: 600; }
.cards { gap: 16px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.cat-card:hover { border-color: var(--line); border-top-color: var(--brand); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transform: translateY(-1px); }
.cat-card small { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cat-card h2 { font-size: 20px; }
.btn { background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 2px; box-shadow: none; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 12.5px; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); box-shadow: none; }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.box, .block, .table-wrap { border-radius: 0; }
.block h3, .gh { color: var(--brand); border-bottom-color: var(--brand); }
th { background: var(--soft); color: var(--text); text-transform: uppercase; letter-spacing: .03em; font-size: 11.5px; }
.kpis > * { border-radius: 0; }
.es-chip { border-radius: 2px; } .es-chip.on { background: var(--brand); border-color: var(--brand); }
.foot { background: var(--dark); color: #cfcfcf; padding: 18px 20px; margin-top: 40px; border-top: 3px solid var(--brand); }
@media (max-width: 760px) {
  .site .sbar .in { height: auto; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; }
  .site nav a { padding: 10px 10px 8px; }
  .hero { padding: 24px 20px; } .hero h1 { font-size: 24px; }
}
.site .util .in, .site .sbar .in { width: 100%; margin: 0 auto; padding: 0 20px; }
.site .logo b { white-space: nowrap; font-size: 20px; }
.site .logo { flex: 0 0 auto; }
.site .sbar .in { justify-content: flex-start; }
.site nav { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.site { display: block; }
.site .util, .site .sbar { width: 100%; }

/* ===== Portada visual ===== */
.hero.vis { position: relative; overflow: hidden; border-left: 0; border-radius: 6px; padding: 44px 40px 30px; color: #fff; background: linear-gradient(120deg, #e0102f 0%, #b30d27 45%, #5a0a18 100%); box-shadow: 0 12px 30px rgba(200, 16, 46, .25); }
.hero.vis .deco { position: absolute; right: 0; bottom: 0; width: 70%; height: 100%; opacity: .9; }
.hero.vis > *:not(.deco) { position: relative; }
.hero.vis .eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .8); }
.hero.vis h1 { color: #fff; font-size: 44px; text-transform: none; letter-spacing: -.01em; }
.hero.vis .lead { color: rgba(255, 255, 255, .92); font-size: 16px; margin: 10px 0 0; max-width: 560px; }
.hstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.hstat { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(2px); border-radius: 6px; padding: 12px 16px; }
.hstat b { display: block; font-family: var(--heading); font-size: 26px; line-height: 1.1; }
.hstat span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.search.big { margin: 18px 0 0; } .search.big input { font-size: 16px; padding: 14px 16px 14px 44px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
h2.sec { font-family: var(--heading); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 34px 0 12px; display: flex; align-items: center; gap: 12px; }
h2.sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .12); border-color: var(--brand); }
.tile .ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); transition: background .15s, color .15s; }
.tile:hover .ico { background: var(--brand); color: #fff; }
.tile .tt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tile small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.tile b { font-family: var(--heading); font-size: 16.5px; color: var(--text); line-height: 1.2; }
.tile .cnt { font-size: 12px; color: var(--muted); text-align: right; max-width: 90px; line-height: 1.25; }
.tile .arrow { color: var(--brand); font-weight: 700; }
.movers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mv { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 6px; padding: 16px 18px 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }
.mv h3 { margin: 0; font-family: var(--heading); font-size: 17px; color: var(--text); border: 0; text-transform: none; letter-spacing: 0; }
.mv .label { margin: 2px 0 10px; font-size: 12px; color: var(--muted); }
.mvrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.mvrow:hover .mvn { color: var(--brand); }
.mvn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvbar { height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.mvbar i { display: block; height: 100%; border-radius: 4px; } .mvbar i.pos { background: #1e7a4a; } .mvbar i.neg { background: #c8102e; }
@media (max-width: 760px) { .hstats { grid-template-columns: repeat(2, 1fr); } .hero.vis { padding: 30px 22px 22px; } .hero.vis h1 { font-size: 30px; } .movers { grid-template-columns: 1fr; } .tiles { grid-template-columns: 1fr; } }

/* ===== Páginas interiores ===== */
.phero { position: relative; overflow: hidden; border-radius: 6px; padding: 26px 30px 24px; margin: 4px 0 22px; color: #fff; background: linear-gradient(120deg, #d10f2e 0%, #a30c25 55%, #5a0a18 100%); box-shadow: 0 8px 22px rgba(200, 16, 46, .2); }
.phero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.phero h1 { color: #fff; font-size: 30px; position: relative; z-index: 1; }
.phero .sub, .phero .muted, .phero p { color: rgba(255, 255, 255, .9); position: relative; z-index: 1; margin-bottom: 0; }
.phero .sub { margin-top: 8px; }
.phero a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.phero .tag { background: rgba(255, 255, 255, .22); color: #fff; }
.phero .fhead h1, .phero.fhead h1 { color: #fff; }
.kpis > * { box-shadow: 0 2px 8px rgba(0, 0, 0, .07); border-top: 3px solid var(--brand); }
.block, .box { box-shadow: 0 2px 10px rgba(0, 0, 0, .06); border: 1px solid var(--line); }
.block { border-top: 3px solid var(--brand); padding-top: 14px; }
.block h3 { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.table-wrap { box-shadow: 0 2px 10px rgba(0, 0, 0, .06); border: 1px solid var(--line); }
tbody tr:hover td { background: var(--brand-soft); }
.selchip { border-radius: 2px; }
.filters, .search { box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.topbar { margin-bottom: 14px; }
@media (max-width: 760px) { .phero { padding: 20px 18px; } .phero h1 { font-size: 23px; } }
@media print { .phero { display: none !important; } }

.page-head.phero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head.phero .tools { position: relative; z-index: 1; }
.page-head.phero .seg { background: rgba(255, 255, 255, .95); }
html, body { background: #fff !important; }

/* ===== Diseño v3: más impacto visual ===== */
:root { --wide: 1180px; --ink: #14090c; --glow: 0 18px 40px -12px rgba(200, 16, 46, .45); }
html, body { background: linear-gradient(180deg, #fff 0, #faf6f7 520px, #f6f1f2 100%) fixed !important; overflow-x: hidden; }
main { max-width: var(--wide); padding-top: 28px; }
.site .util .in, .site .sbar .in { max-width: var(--wide); }
.site { backdrop-filter: saturate(1.4) blur(10px); background: rgba(255, 255, 255, .92); }
.site .logo b { background: linear-gradient(90deg, #e0102f, #8c0b21); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site nav a { border-radius: 8px 8px 0 0; }
.site nav a.on, .site nav a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.12); } }
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
main > * { animation: rise .5s ease both; }
main > *:nth-child(2) { animation-delay: .06s; } main > *:nth-child(3) { animation-delay: .12s; } main > *:nth-child(4) { animation-delay: .18s; } main > *:nth-child(5) { animation-delay: .24s; }

/* Portada a todo ancho */
.hero.vis { margin: -28px calc(50% - 50vw) 0; border-radius: 0; padding: 78px max(20px, calc((100vw - var(--wide)) / 2 + 20px)) 56px; background: radial-gradient(900px 420px at 85% -10%, rgba(255, 90, 110, .55), transparent 60%), radial-gradient(700px 500px at 0% 110%, rgba(120, 8, 28, .9), transparent 60%), linear-gradient(135deg, #d10f2e 0%, #9c0b24 50%, #2a0710 100%); box-shadow: none; overflow: hidden; }
.hero.vis::before, .hero.vis::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .09); animation: drift 14s ease-in-out infinite; }
.hero.vis::before { width: 380px; height: 380px; right: 8%; top: -140px; }
.hero.vis::after { width: 240px; height: 240px; left: 42%; bottom: -120px; animation-delay: -6s; background: rgba(255, 255, 255, .06); }
.hero.vis .deco { width: 62%; opacity: 1; }
.hero.vis .deco path { stroke-dasharray: 1400; animation: draw 2.4s ease-out both .3s; }
.hero.vis h1 { font-size: 64px; line-height: 1.02; letter-spacing: -.025em; text-shadow: 0 4px 24px rgba(0, 0, 0, .25); }
.hero.vis .eyebrow { display: inline-block; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.hero.vis .lead { font-size: 19px; margin-top: 16px; max-width: 600px; }
.hstats { margin-top: 38px; gap: 16px; max-width: 900px; }
.hstat { border-radius: 14px; padding: 16px 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.hstat b { font-size: 34px; }

/* Buscador flotante sobre la portada */
.search.big { margin-top: -30px; position: relative; z-index: 3; max-width: 760px; margin-left: auto; margin-right: auto; }
.search.big input { border-radius: 99px; border: 0; padding: 18px 24px 18px 52px; font-size: 17px; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .35); }

/* Secciones y tarjetas */
h2.sec { font-size: 22px; letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 52px 0 18px; }
h2.sec::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: linear-gradient(180deg, #e0102f, #7a0a1e); }
h2.sec::after { background: linear-gradient(90deg, #e4d6d9, transparent); }
.tiles { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; padding: 22px 22px; border: 0; border-radius: 18px; box-shadow: 0 2px 4px rgba(20, 10, 14, .05), 0 12px 28px -14px rgba(20, 10, 14, .25); }
.tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, #e0102f, #7a0a1e); }
.tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--brand-soft); opacity: .7; transition: transform .3s; }
.tile > * { position: relative; z-index: 1; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--glow); }
.tile:hover::after { transform: scale(1.8); }
.tile .ico { width: 58px; height: 58px; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #e0102f, #8c0b21); box-shadow: 0 8px 18px -6px rgba(200, 16, 46, .6); }
.tile:hover .ico { background: linear-gradient(145deg, #ff3150, #a50d26); transform: rotate(-6deg) scale(1.06); }
.tile b { font-size: 19px; }
.tile .arrow { font-size: 20px; transition: transform .2s; } .tile:hover .arrow { transform: translateX(5px); }

.mv { border: 0; border-radius: 18px; box-shadow: 0 2px 4px rgba(20, 10, 14, .05), 0 12px 28px -14px rgba(20, 10, 14, .25); padding: 22px 24px 14px; position: relative; overflow: hidden; }
.mv::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #e0102f, #7a0a1e); }
.mvbar { height: 10px; border-radius: 6px; } .mvbar i { border-radius: 6px; }
.mvbar i.pos { background: linear-gradient(90deg, #1e7a4a, #36b36f); } .mvbar i.neg { background: linear-gradient(90deg, #8c0b21, #e0102f); }
.mvrow { padding: 7px 8px; margin: 0 -8px; border-radius: 8px; font-size: 13.5px; } .mvrow:hover { background: var(--brand-soft); }

/* Páginas interiores a todo ancho */
.phero { margin: -28px calc(50% - 50vw) 28px; border-radius: 0; padding: 44px max(20px, calc((100vw - var(--wide)) / 2 + 20px)) 40px; background: radial-gradient(700px 320px at 90% -20%, rgba(255, 90, 110, .5), transparent 60%), linear-gradient(135deg, #d10f2e 0%, #9c0b24 55%, #2a0710 100%); box-shadow: none; }
.phero::after { width: 340px; height: 340px; right: 6%; top: -170px; animation: drift 16s ease-in-out infinite; }
.phero h1 { font-size: 42px; letter-spacing: -.02em; text-shadow: 0 3px 18px rgba(0, 0, 0, .25); }
.phero .sub { font-size: 16px; max-width: 760px; }
main > .topbar { position: relative; z-index: 2; margin-bottom: 8px; }
.topbar { display: none; }
.kpis > *, .block, .mv, .cat-card, .pfcard, .table-wrap, .box { border-radius: 16px; }
.kpis > * { border-top: 0; box-shadow: 0 2px 4px rgba(20, 10, 14, .05), 0 10px 24px -14px rgba(20, 10, 14, .3); position: relative; overflow: hidden; }
.kpis > *::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #e0102f, #7a0a1e); }
.block { border: 0; border-top: 0; box-shadow: 0 2px 4px rgba(20, 10, 14, .05), 0 12px 28px -14px rgba(20, 10, 14, .25); position: relative; overflow: hidden; }
.block::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #e0102f, #7a0a1e); }
.table-wrap { border: 0; box-shadow: 0 2px 4px rgba(20, 10, 14, .05), 0 12px 28px -14px rgba(20, 10, 14, .25); overflow: hidden; }
.cat-card, .pfcard { border: 0; box-shadow: 0 2px 4px rgba(20, 10, 14, .05), 0 10px 24px -14px rgba(20, 10, 14, .3); }
.cat-card:hover, .pfcard:hover, .folder:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.foot { border-radius: 18px 18px 0 0; }
@media (max-width: 760px) { .hero.vis { padding-top: 48px; padding-bottom: 44px; } .hero.vis h1 { font-size: 40px; } .hstats { grid-template-columns: repeat(2, 1fr); } .phero h1 { font-size: 30px; } .tiles { grid-template-columns: 1fr; } }
@media print { .hero.vis { display: none !important; } main > * { animation: none; } html, body { background: #fff !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.hstat b { font-size: 30px; white-space: nowrap; }
.hstat:last-child b { font-size: 24px; line-height: 1.35; }
.block { padding: 18px 22px 16px; }
.block > h3 { margin-top: 4px; }

/* ===== Paleta v4: granate, marino y dorado ===== */
:root { --brand: #b01030; --brand-2: #8e0c27; --brand-soft: #f9e8ec; --ink: #1a1220; --navy: #1b3a5c; --navy-soft: #e6eef6; --teal: #12806e; --teal-soft: #e2f4f0; --gold: #c8a04a; --gold-soft: #faf2de; --glow: 0 18px 40px -12px rgba(176, 16, 48, .4); }
html, body { background: linear-gradient(180deg, #fff 0, #f7f5f8 520px, #f1eff4 100%) fixed !important; }
.site .logo b { background: linear-gradient(90deg, #b01030, #5c0b24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site .sbar { border-bottom-color: var(--gold); }
.site .util { background: #1a1220; }
.hero.vis, .phero { background: radial-gradient(800px 380px at 88% -10%, rgba(200, 160, 74, .40), transparent 62%), radial-gradient(700px 500px at 0% 115%, rgba(27, 58, 92, .85), transparent 62%), linear-gradient(135deg, #b01030 0%, #6e0a26 48%, #1a1220 100%); }
.hero.vis .eyebrow { background: rgba(200, 160, 74, .22); border-color: rgba(231, 200, 120, .6); color: #f6e2ad; }
.hstat { background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)); border-color: rgba(231, 200, 120, .35); }
.hero.vis .deco path { stroke: #e7c878 !important; }
h2.sec::before { background: linear-gradient(180deg, var(--gold), var(--brand)); }
.mv::before, .block::before, .kpis > *::before { background: linear-gradient(90deg, var(--brand), var(--gold)); }
.block h3 { color: var(--brand-2); }
/* tarjetas con color propio por posición */
.tile .ico { background: linear-gradient(145deg, #c8122f, #7a0a22); box-shadow: 0 8px 18px -6px rgba(176, 16, 48, .55); }
.tile::before { background: linear-gradient(180deg, #c8122f, #7a0a22); } .tile::after { background: var(--brand-soft); }
.tile:nth-child(3n+2) .ico { background: linear-gradient(145deg, #2c5a8a, #12263d); box-shadow: 0 8px 18px -6px rgba(27, 58, 92, .55); }
.tile:nth-child(3n+2)::before { background: linear-gradient(180deg, #2c5a8a, #12263d); } .tile:nth-child(3n+2)::after { background: var(--navy-soft); }
.tile:nth-child(3n+2) .arrow { color: var(--navy); }
.tile:nth-child(3n+3) .ico { background: linear-gradient(145deg, #1a9a85, #0b5144); box-shadow: 0 8px 18px -6px rgba(18, 128, 110, .55); }
.tile:nth-child(3n+3)::before { background: linear-gradient(180deg, #1a9a85, #0b5144); } .tile:nth-child(3n+3)::after { background: var(--teal-soft); }
.tile:nth-child(3n+3) .arrow { color: var(--teal); }
.tile:nth-child(3n+2):hover { box-shadow: 0 18px 40px -12px rgba(27, 58, 92, .45); }
.tile:nth-child(3n+3):hover { box-shadow: 0 18px 40px -12px rgba(18, 128, 110, .45); }
.mvbar i.pos { background: linear-gradient(90deg, #12806e, #2fc29f); } .mvbar i.neg { background: linear-gradient(90deg, #8e0c27, #d6203f); }
tbody tr:hover td { background: var(--gold-soft); }
.seg button[aria-pressed="true"], .btn.primary { background: linear-gradient(135deg, #c8122f, #8e0c27); }
.foot { background: #1a1220; border-top-color: var(--gold); }
a { transition: color .15s; }
.hero.vis .deco { opacity: .55; }

/* ===== Tamaño compacto ===== */
.tiles { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile { padding: 12px 14px; gap: 11px; border-radius: 12px; }
.tile::before { width: 4px; } .tile::after { width: 70px; height: 70px; right: -20px; top: -20px; }
.tile .ico { width: 38px; height: 38px; border-radius: 10px; } .tile .ico svg { width: 20px; height: 20px; }
.tile b { font-size: 15px; } .tile small { font-size: 10px; } .tile .cnt { font-size: 11px; max-width: 70px; }
.tile .arrow { font-size: 16px; }
h2.sec { font-size: 18px; margin: 34px 0 12px; } h2.sec::before { height: 18px; width: 5px; }
.hstats { gap: 10px; max-width: 640px; margin-top: 28px; }
.hstat { padding: 10px 14px; border-radius: 10px; } .hstat b { font-size: 22px; } .hstat:last-child b { font-size: 17px; line-height: 1.6; } .hstat span { font-size: 10px; }
.hero.vis { padding-top: 56px; padding-bottom: 46px; } .hero.vis h1 { font-size: 48px; } .hero.vis .lead { font-size: 16px; }
.search.big input { padding: 14px 20px 14px 46px; font-size: 15px; } .search.big { max-width: 620px; }
.mv { padding: 16px 18px 8px; border-radius: 12px; } .mvrow { padding: 4px 6px; font-size: 12.5px; } .mvbar { height: 8px; }
.phero { padding-top: 30px; padding-bottom: 26px; } .phero h1 { font-size: 32px; } .phero .sub { font-size: 14.5px; }
.kpis > *, .block, .cat-card, .pfcard, .table-wrap { border-radius: 12px; }
.block { padding: 14px 18px 12px; }
.cat-card { padding: 12px 14px; }

/* ===== Tamaño compacto 2 ===== */
.tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile { padding: 9px 12px; gap: 9px; border-radius: 10px; }
.tile .ico { width: 30px; height: 30px; border-radius: 8px; } .tile .ico svg { width: 16px; height: 16px; }
.tile b { font-size: 13.5px; } .tile small { font-size: 9px; } .tile .cnt { font-size: 10px; max-width: 60px; }
.tile .arrow { font-size: 14px; } .tile::after { width: 50px; height: 50px; }
h2.sec { font-size: 16px; margin: 26px 0 10px; }
.hstats { gap: 8px; max-width: 520px; margin-top: 22px; } .hstat { padding: 8px 12px; } .hstat b { font-size: 18px; } .hstat:last-child b { font-size: 14px; line-height: 1.7; } .hstat span { font-size: 9px; }
.hero.vis { padding-top: 40px; padding-bottom: 38px; } .hero.vis h1 { font-size: 38px; } .hero.vis .lead { font-size: 14.5px; margin-top: 10px; } .hero.vis .eyebrow { font-size: 10px; padding: 4px 11px; }
.search.big { max-width: 520px; margin-top: -24px; } .search.big input { padding: 11px 18px 11px 42px; font-size: 14px; }
.mv { padding: 12px 14px 6px; } .mv h3 { font-size: 15px; } .mvrow { font-size: 12px; padding: 3px 5px; }
.phero { padding-top: 22px; padding-bottom: 20px; } .phero h1 { font-size: 26px; } .phero .sub { font-size: 13.5px; margin-top: 4px; }
.block { padding: 11px 14px 10px; } .cat-card { padding: 10px 12px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); } .tile .tt { flex: 1 1 auto; }

/* ===== Versión sobria y profesional ===== */
.tiles { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tile { padding: 15px 18px; gap: 14px; border-radius: 8px; border: 1px solid #e4e0e6; box-shadow: 0 1px 3px rgba(26, 18, 32, .06); }
.tile::before { width: 3px; } .tile::after { display: none; }
.tile .ico { width: 44px; height: 44px; border-radius: 8px; box-shadow: none; background: var(--brand-soft); color: var(--brand); }
.tile .ico svg { width: 22px; height: 22px; }
.tile:nth-child(3n+2) .ico { background: var(--navy-soft); color: var(--navy); box-shadow: none; }
.tile:nth-child(3n+3) .ico { background: var(--teal-soft); color: var(--teal); box-shadow: none; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(26, 18, 32, .28) !important; }
.tile:hover .ico { transform: none; background: var(--brand); color: #fff; }
.tile:nth-child(3n+2):hover .ico { background: var(--navy); color: #fff; } .tile:nth-child(3n+3):hover .ico { background: var(--teal); color: #fff; }
.tile b { font-size: 16px; } .tile small { font-size: 10.5px; } .tile .cnt { font-size: 11.5px; max-width: 80px; } .tile .arrow { font-size: 16px; }
h2.sec { font-size: 18px; margin: 34px 0 14px; } h2.sec::before { height: 18px; }
.hero.vis { padding-top: 56px; padding-bottom: 52px; background: radial-gradient(800px 380px at 90% -20%, rgba(200, 160, 74, .22), transparent 62%), linear-gradient(135deg, #8e0c27 0%, #5c0b22 55%, #1a1220 100%); }
.hero.vis::before, .hero.vis::after, .phero::after { display: none; }
.hero.vis .deco { opacity: .35; }
.hero.vis h1 { font-size: 44px; text-shadow: none; } .hero.vis .lead { font-size: 16px; }
.hero.vis .eyebrow { font-size: 11px; padding: 5px 12px; }
.hstats { max-width: 700px; gap: 12px; margin-top: 28px; } .hstat { padding: 12px 16px; border-radius: 8px; box-shadow: none; backdrop-filter: none; background: rgba(255, 255, 255, .08); } .hstat b { font-size: 24px; } .hstat:last-child b { font-size: 19px; line-height: 1.5; } .hstat span { font-size: 10.5px; }
.search.big { max-width: 640px; margin-top: -26px; } .search.big input { padding: 15px 20px 15px 46px; font-size: 15.5px; border-radius: 8px; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .35); }
.phero { padding-top: 30px; padding-bottom: 28px; background: linear-gradient(135deg, #8e0c27 0%, #5c0b22 60%, #1a1220 100%); }
.phero h1 { font-size: 30px; text-shadow: none; } .phero .sub { font-size: 14.5px; }
.mv { padding: 16px 18px 10px; border-radius: 8px; box-shadow: 0 1px 3px rgba(26, 18, 32, .08); border: 1px solid #e4e0e6; } .mv h3 { font-size: 16px; } .mvrow { font-size: 13px; padding: 4px 6px; }
.kpis > *, .block, .cat-card, .pfcard, .table-wrap { border-radius: 8px; box-shadow: 0 1px 3px rgba(26, 18, 32, .08) !important; border: 1px solid #e4e0e6; }
.block { padding: 14px 18px 12px; } .cat-card { padding: 12px 14px; }
.cat-card:hover, .pfcard:hover, .folder:hover { box-shadow: 0 8px 20px -8px rgba(26, 18, 32, .28) !important; }
main > * { animation-duration: .3s; }

/* Categorías como filtro y logo junto al fondo */
.catbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.catchip { font: inherit; font-size: 13px; font-weight: 600; color: var(--body); background: #fff; border: 1px solid #ddd6df; border-radius: 99px; padding: 7px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: all .15s; }
.catchip i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: #f1eff4; border-radius: 99px; padding: 1px 7px; }
.catchip:hover { border-color: var(--brand); color: var(--brand); }
.catchip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px -4px rgba(176, 16, 48, .5); }
.catchip[aria-pressed="true"] i { background: rgba(255, 255, 255, .25); color: #fff; }
td.fund { display: flex; align-items: center; gap: 12px; }
.flogo { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e4e0e6; background: #fff; display: grid; place-items: center; overflow: hidden; font-size: 11px; font-weight: 700; color: var(--brand); }
.flogo img { width: 22px; height: 22px; object-fit: contain; }
.ftxt { display: flex; flex-direction: column; min-width: 0; }

.chart-card .efline { stroke: var(--brand); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 6 4; }
.chart-card .efarea { fill: var(--brand); fill-opacity: .06; }
.chart-card .dot.ef { fill: var(--brand); fill-opacity: 1; stroke: var(--gold); stroke-width: 2; }
.legend .efi { display: inline-block; width: 18px; height: 0; border-top: 2px dashed var(--brand); vertical-align: middle; margin-right: 6px; background: none; border-radius: 0; }
.eflist { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.eflist a { color: var(--brand); font-weight: 600; }
.axis.frontchk { flex-direction: row; align-items: center; gap: 8px; align-self: flex-end; padding-bottom: 8px; font-weight: 600; }

.slogo { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: hsl(var(--h) 55% 38%); color: #fff; vertical-align: middle; }
.slogo em { font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.slogo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.fhead h1 .slogo, .phero h1 .slogo { width: 42px; height: 42px; margin-right: 12px; border: 2px solid rgba(255, 255, 255, .6); }

.lockbox { max-width: 360px; margin: 10px auto 30px; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #e4e0e6; border-radius: 8px; padding: 22px; box-shadow: 0 1px 3px rgba(26, 18, 32, .08); }
.lockbox input { font: inherit; padding: 11px 12px; border: 1px solid #cfc8d2; border-radius: 6px; }
.lockbox .btn { padding: 11px; border: 0; border-radius: 6px; color: #fff; background: var(--brand); font-weight: 700; cursor: pointer; }
.lockerr { color: var(--brand); font-weight: 600; margin: 0; }

.amp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.amp-card { margin: 0; }
.amp-wrap { position: relative; }
.amp-svg { width: 100%; height: auto; display: block; }
.amp-tip { position: absolute; display: none; pointer-events: none; background: #1a1220; color: #fff; font-size: 12px; line-height: 1.5; padding: 6px 10px; border-radius: 6px; z-index: 3; white-space: nowrap; }
.kpis.kp8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
@media (max-width: 900px) { .amp-grid { grid-template-columns: 1fr; } .kpis.kp8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .amp-tip { display: none !important; } }
.kpi .ksub { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; margin-top: 2px; }

/* Tema por gestora (ficha de fondo) */
#app.gtheme .phero { background: radial-gradient(700px 320px at 90% -20%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(135deg, var(--brand) 0%, var(--gd) 100%); }
#app.gtheme .block::before, #app.gtheme .kpis > *::before { background: linear-gradient(90deg, var(--brand), var(--gd)); }
#app.gtheme .block h3 { color: var(--brand); }
#app.gtheme .kpi.hi { background: linear-gradient(135deg, var(--brand), var(--gd)); }

/* Asistente local */
#cfbot { position: fixed; right: 18px; bottom: 18px; z-index: 60; font-family: inherit; }
#cfbot .cfb-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--brand, #b01030); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; display: flex; align-items: center; justify-content: center; }
#cfbot .cfb-btn:hover { filter: brightness(1.08); }
#cfbot .cfb-panel { position: absolute; right: 0; bottom: 62px; width: 380px; max-width: calc(100vw - 28px); height: 540px; max-height: calc(100vh - 100px); background: #fff; border: 1px solid #d9dee5; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
#cfbot .cfb-panel[hidden] { display: none; }
#cfbot header { background: var(--navy, #1b3a5c); color: #fff; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; position: relative; }
#cfbot header small { opacity: .75; font-size: 11.5px; }
#cfbot .cfb-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
#cfbot .cfb-log { flex: 1; overflow-y: auto; padding: 12px; background: #f5f7fa; display: flex; flex-direction: column; gap: 8px; }
#cfbot .cfb-m { max-width: 92%; padding: 8px 11px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
#cfbot .cfb-m.u { align-self: flex-end; background: var(--brand, #b01030); color: #fff; }
#cfbot .cfb-m.b { align-self: flex-start; background: #fff; border: 1px solid #e2e6ec; color: #1c2430; }
#cfbot .cfb-m p { margin: 0 0 6px; } #cfbot .cfb-m p:last-child { margin-bottom: 0; }
#cfbot .cfb-m ul, #cfbot .cfb-m ol { margin: 4px 0 6px; padding-left: 18px; }
#cfbot .cfb-m li { margin-bottom: 4px; } #cfbot .cfb-m li small { color: #6a7584; display: block; font-size: 11.5px; }
#cfbot .cfb-m li b { white-space: nowrap; }
#cfbot .cfb-m a { color: var(--brand, #b01030); font-weight: 600; text-decoration: none; }
#cfbot .cfb-m a:hover { text-decoration: underline; }
#cfbot .cfnote { color: #6a7584; font-size: 11.5px; }
#cfbot .cft { border-collapse: collapse; font-size: 12px; width: 100%; }
#cfbot .cft th, #cfbot .cft td { padding: 3px 5px; border-bottom: 1px solid #e8ecf1; text-align: right; vertical-align: top; }
#cfbot .cft th:first-child, #cfbot .cft td:first-child { text-align: left; color: #6a7584; }
#cfbot .cfb-chips { padding: 6px 10px 0; display: flex; flex-wrap: wrap; gap: 5px; background: #f5f7fa; }
#cfbot .cfb-chips button { border: 1px solid #cdd5df; background: #fff; border-radius: 14px; padding: 3px 9px; font-size: 11.5px; cursor: pointer; color: #34404f; }
#cfbot .cfb-chips button:hover { border-color: var(--brand, #b01030); color: var(--brand, #b01030); }
#cfbot .cfb-form { display: flex; gap: 6px; padding: 8px 10px; background: #f5f7fa; border-top: 1px solid #e2e6ec; }
#cfbot .cfb-form input { flex: 1; border: 1px solid #cdd5df; border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
#cfbot .cfb-form button { background: var(--brand, #b01030); color: #fff; border: 0; border-radius: 8px; padding: 0 14px; cursor: pointer; font-size: 13px; }
@media print { #cfbot { display: none; } }
#cfbot .cft { table-layout: fixed; }
#cfbot .cft th { font-size: 11px; line-height: 1.25; word-break: break-word; }
#cfbot .cft th:first-child, #cfbot .cft td:first-child { width: 27%; }
#cfbot .cfb-m { overflow-wrap: anywhere; }
