/* Viernes de Invertir — public pages. Tokens of brand A «Semanal» (D30); docs/05b_Design_System.md.
   The only source of colors, type, radii and spacing for server pages. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F3F5F0; --surface: #FFFFFF; --surface-2: #EEF1EC; --border: #D8DED6; --border-strong: #7D8C83;
  --text: #10231A; --muted: #4F6157; --ink: #10231A; --ink-fg: #F3F5F0;
  --accent: #0B7A4B; --accent-hover: #075C38; --accent-fg: #FFFFFF; --friday: #E39A1B; --friday-ink: #7A4A00;
  --good: #0B7A4B; --bad: #C8233A; --warn-bg: #FCEFD6; --warn-fg: #5C3800;
  --ff-display: "Bricolage Grotesque", system-ui, sans-serif;
  --ff-body: "IBM Plex Sans", system-ui, sans-serif;
  --ff-data: "IBM Plex Mono", ui-monospace, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --gutter: 24px; --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1510; --surface: #0F1A14; --surface-2: #15241B; --border: #23362B; --border-strong: #5E7A69;
    --text: #E6EFE9; --muted: #9BB0A3; --ink: #E6EFE9; --ink-fg: #0B1510;
    --accent: #4FC48A; --accent-hover: #7FD9AB; --accent-fg: #06130C; --friday: #F0B54A; --friday-ink: #F0B54A;
    --good: #4FC48A; --bad: #FF6B7F; --warn-bg: #2C2210; --warn-fg: #F7D9A0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1510; --surface: #0F1A14; --surface-2: #15241B; --border: #23362B; --border-strong: #5E7A69;
  --text: #E6EFE9; --muted: #9BB0A3; --ink: #E6EFE9; --ink-fg: #0B1510;
  --accent: #4FC48A; --accent-hover: #7FD9AB; --accent-fg: #06130C; --friday: #F0B54A; --friday-ink: #F0B54A;
  --good: #4FC48A; --bad: #FF6B7F; --warn-bg: #2C2210; --warn-fg: #F7D9A0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--ff-body); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--friday); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--ff-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
p { margin: 0; }
code { font-family: var(--ff-data); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 50; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.center-page { min-height: 60vh; justify-content: center; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--ff-data); color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-weight: 800; font-size: 20px; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: url("../img/favicon.svg") center / cover; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-fg); font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--accent-hover); color: var(--accent-fg); }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--muted); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; }
.note-warn { background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 14px 16px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer-row p:first-child { max-width: 760px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px 16px; }
.auth-wrap .brand { text-decoration: none; color: var(--text); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input { min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 12px; font: inherit; font-weight: 400; background: var(--surface); color: var(--text); }
.btn-block { justify-content: center; width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 600; min-height: 48px; }
.small-link { font-size: 14px; align-self: center; }
.small { font-size: 14px; text-align: center; max-width: 400px; }
.note-ok { background: var(--accent-soft, #E4EFE8); color: var(--text); border-radius: var(--r-sm); padding: 10px 12px; }
.note-err { background: #FDE4E8; color: #7A1022; border-radius: var(--r-sm); padding: 10px 12px; }

/* ---------- Portfolio palette (D39): class pf-N sets --pf; elements use var(--pf) ---------- */
:root { --pf-1: #14874E; --pf-2: #077AB0; --pf-3: #95559D; --pf-4: #AD5524; --pf-5: #568023; --pf-6: #067F94; --pf-7: #7D5EB2; --pf-8: #B14E4D; --pf-9: #7A7500; --pf-10: #04837F; --pf-11: #5C69BC; --pf-12: #AC4D70; --pf-13: #916A04; --pf-14: #038664; --pf-15: #2D74BA; --pf-16: #9E518F; --pf-17: #A85B01; --pf-18: #3D843A; --pf-19: #017DA1; --pf-20: #8A59A9; --pf-21: #B05139; --pf-22: #6A7B04; --pf-23: #098189; --pf-24: #6E63B9; --pf-25: #AF4C5F; --pf-26: #867003; --pf-27: #028473; --pf-28: #486FBD; --pf-29: #A64E80; --pf-30: #9C6401; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pf-1: #66C189; --pf-2: #5AB5EE; --pf-3: #CF90D7; --pf-4: #E99267; --pf-5: #90BA68; --pf-6: #31BDDA; --pf-7: #B599EC; --pf-8: #ED8B87; --pf-9: #B4B04E; --pf-10: #29C2BD; --pf-11: #95A4F6; --pf-12: #E88AA9; --pf-13: #CFA348; --pf-14: #50C39B; --pf-15: #6FAFF4; --pf-16: #D98DC9; --pf-17: #E39759; --pf-18: #7CBE78; --pf-19: #45B9E5; --pf-20: #C395E3; --pf-21: #EC8E76; --pf-22: #A3B559; --pf-23: #24C1CC; --pf-24: #A69FF3; --pf-25: #EC8A98; --pf-26: #C3AA48; --pf-27: #3BC3AC; --pf-28: #82AAF7; --pf-29: #E28BB9; --pf-30: #DA9D4E; } }
:root[data-theme="dark"] { --pf-1: #66C189; --pf-2: #5AB5EE; --pf-3: #CF90D7; --pf-4: #E99267; --pf-5: #90BA68; --pf-6: #31BDDA; --pf-7: #B599EC; --pf-8: #ED8B87; --pf-9: #B4B04E; --pf-10: #29C2BD; --pf-11: #95A4F6; --pf-12: #E88AA9; --pf-13: #CFA348; --pf-14: #50C39B; --pf-15: #6FAFF4; --pf-16: #D98DC9; --pf-17: #E39759; --pf-18: #7CBE78; --pf-19: #45B9E5; --pf-20: #C395E3; --pf-21: #EC8E76; --pf-22: #A3B559; --pf-23: #24C1CC; --pf-24: #A69FF3; --pf-25: #EC8A98; --pf-26: #C3AA48; --pf-27: #3BC3AC; --pf-28: #82AAF7; --pf-29: #E28BB9; --pf-30: #DA9D4E; }
.pf-1 { --pf: var(--pf-1); }
.pf-2 { --pf: var(--pf-2); }
.pf-3 { --pf: var(--pf-3); }
.pf-4 { --pf: var(--pf-4); }
.pf-5 { --pf: var(--pf-5); }
.pf-6 { --pf: var(--pf-6); }
.pf-7 { --pf: var(--pf-7); }
.pf-8 { --pf: var(--pf-8); }
.pf-9 { --pf: var(--pf-9); }
.pf-10 { --pf: var(--pf-10); }
.pf-11 { --pf: var(--pf-11); }
.pf-12 { --pf: var(--pf-12); }
.pf-13 { --pf: var(--pf-13); }
.pf-14 { --pf: var(--pf-14); }
.pf-15 { --pf: var(--pf-15); }
.pf-16 { --pf: var(--pf-16); }
.pf-17 { --pf: var(--pf-17); }
.pf-18 { --pf: var(--pf-18); }
.pf-19 { --pf: var(--pf-19); }
.pf-20 { --pf: var(--pf-20); }
.pf-21 { --pf: var(--pf-21); }
.pf-22 { --pf: var(--pf-22); }
.pf-23 { --pf: var(--pf-23); }
.pf-24 { --pf: var(--pf-24); }
.pf-25 { --pf: var(--pf-25); }
.pf-26 { --pf: var(--pf-26); }
.pf-27 { --pf: var(--pf-27); }
.pf-28 { --pf: var(--pf-28); }
.pf-29 { --pf: var(--pf-29); }
.pf-30 { --pf: var(--pf-30); }

/* ---------- Public site (brand A) ---------- */
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.small-left { font-size: 14px; }
.mono { font-family: var(--ff-data); }
.b { font-weight: 600; }
.up { text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.right { text-align: right; justify-self: end; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
.header-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-header .brand { text-decoration: none; color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; font-size: 15px; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a.lang { color: var(--muted); font-size: 14px; }
.site-nav a.btn { color: var(--accent-fg); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-friday { background: var(--friday); color: #10231A; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.next-card { flex: 0 1 340px; background: var(--pf); color: #fff; border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.next-week { font-family: var(--ff-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.pf-text { color: var(--pf); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: 14px; color: var(--muted); }
.kpi b { font-family: var(--ff-data); font-size: 26px; letter-spacing: -.02em; }
.kpi small { font-size: 13px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }
.legend, .closes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.legend li, .closes li { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--pf); }
.dash { display: inline-block; width: 18px; border-top: 2px dashed var(--ink); }
.chart-wrap { width: 100%; }
.chart-svg { width: 100%; height: 300px; display: block; }
.chart-svg .grid { stroke: var(--border); stroke-width: 1; opacity: .7; }
.chart-svg .area { fill: var(--pf); opacity: .9; }
.chart-svg .area.soft { opacity: .18; }
.chart-svg .line { fill: none; stroke: var(--pf); stroke-width: 2.5; }
.chart-svg .invested { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 5; }
.chart-svg .close { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.axis { display: flex; justify-content: space-between; font-family: var(--ff-data); font-size: 12px; color: var(--muted); }
.data-table summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.table-scroll { overflow-x: auto; }
.data-table .table-scroll { max-height: 340px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 10px 6px 0; border-top: 1px solid var(--border); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 0; }
td.num, th.num { text-align: right; }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.insight { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; border-top-width: 4px; }
.insight b { font-family: var(--ff-display); font-size: 22px; line-height: 1.2; }
.good-top { border-top-color: var(--good); }
.bad-top { border-top-color: var(--bad); }
.ink-top { border-top-color: var(--ink); }
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; min-width: 34px; justify-content: center; border-radius: 6px; padding: 1px 6px; font-family: var(--ff-data); font-size: 12px; font-weight: 600; color: #fff; background: var(--pf); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pf-card { background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--pf); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; }
.pf-card:hover { box-shadow: 0 6px 18px rgb(16 35 26 / .08); color: var(--text); }
.investor-list { display: flex; flex-direction: column; gap: 16px; }
.investor-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 32px; align-items: center; color: var(--text); text-decoration: none; }
.investor-card:hover { box-shadow: 0 8px 24px rgb(16 35 26 / .10); border-color: var(--accent); color: var(--text); }
.investor-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.investor-name { font-family: var(--ff-display); font-weight: 800; font-size: 26px; line-height: 1.15; color: var(--accent); }
.investor-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0; }
.investor-stats div { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; border-left: 3px solid var(--border); }
.investor-stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.investor-stats dd { margin: 0; font-family: var(--ff-data); font-size: 24px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.investor-stats small { font-size: 12px; color: var(--muted); }
.investor-cta { font-weight: 700; color: var(--accent); }
.investor-card:hover .investor-cta { text-decoration: underline; }
.investor-blocks { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ib-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 84px; gap: 10px; align-items: center; }
.ib-row b { text-align: right; font-size: 14px; white-space: nowrap; }
.ib-row b.muted { font-family: var(--ff-body); font-size: 13px; font-weight: 600; }
.ib-weeks { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 2px; }
.ib-weeks .wk { border-radius: 2px; }
.pf-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pf-code { font-family: var(--ff-display); font-weight: 800; font-size: 24px; color: var(--pf); }
.pill { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill-closed { background: #E4EFE8; color: #0B5E3A; }
.pill-building { background: #E4EFE8; color: #0B7A4B; }
.pill-planned { background: var(--warn-bg); color: var(--warn-fg); }
.weeks, .home-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; }
.home-grid { flex: 0 1 320px; gap: 5px; }
.wk { aspect-ratio: 1; border-radius: 2px; background: var(--surface-2); }
.wk.done { background: var(--pf); }
.wk.next { box-shadow: inset 0 0 0 2px var(--pf); }
.pf-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.pf-foot span { display: flex; flex-direction: column; }
.pf-foot small { font-size: 12px; color: var(--muted); }
.pf-foot b { font-size: 18px; }
.two-col, .three-col { display: flex; flex-wrap: wrap; gap: 16px; }
.two-col > * { flex: 1 1 420px; }
.three-col > * { flex: 1 1 260px; }
/* 1.6-5: platform numbers under the hero (D94) */
.home-stats { background: var(--ink); color: var(--ink-fg); border-radius: 16px; padding: 22px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.home-stats > * { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.home-stats b { font-family: var(--ff-display); font-size: 30px; line-height: 1.1; }
.home-stats span { font-size: 14px; opacity: .9; }
.home-stats a:hover span, .home-stats a:focus-visible span { text-decoration: underline; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.filter-chips a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.assets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.assets li { display: grid; grid-template-columns: 64px auto 1fr 64px; gap: 12px; align-items: center; }
.bar { width: 100%; height: 10px; display: block; }
.bar .track { fill: var(--surface-2); }
.bar .fill { fill: var(--pf); }
.weeks-list { list-style: none; margin: 0; padding: 0; }
.weeks-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.weeks-list li:first-child { border-top: 0; }
.weeks-list li > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.weeks-list small { color: var(--muted); font-size: 13px; }
.weeks-list .ops { display: inline-flex; flex-wrap: wrap; gap: 8px; font-size: 14px; flex: 1 1 auto; }
.weeks-list a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.tool { display: flex; flex-direction: column; gap: 4px; }
.subscribe { background: var(--ink); color: var(--ink-fg); border-radius: 16px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.subscribe > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.subscribe h2 { color: var(--ink-fg); }
.subscribe-count { margin: 0; font-weight: 600; }
/* 1.6-3: as visible as the success message; fixed red with white text (the dark theme's light red would not contrast) */
.subscribe-alert { flex-basis: 100%; margin: 0; background: #C8233A; color: #FFFFFF; border-radius: 12px; padding: 14px 18px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.subscribe-alert span { margin-right: 4px; }
.subscribe-form { flex: 1 1 360px; display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe-form input[type=email] { flex: 1 1 220px; min-height: 48px; border-radius: 8px; border: 1px solid var(--border-strong); padding: 0 14px; font: inherit; }
.subscribe-form .consent { flex-basis: 100%; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.subscribe-form button { min-height: 48px; padding: 0 20px; border-radius: 8px; }
.subscribe-form button[aria-busy=true] { opacity: .75; cursor: progress; }
.subscribe-done { flex: 1 1 360px; margin: 0; background: var(--accent); color: var(--accent-fg); border-radius: 12px; padding: 18px 20px; font-size: 17px; font-weight: 600; line-height: 1.45; }
.subscribe-done span { font-size: 22px; margin-right: 6px; }
.subscribe-done:focus { outline: 3px solid var(--friday); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
.crumbs { font-size: 14px; color: var(--muted); }
.content-page { max-width: 820px; }
.content-page h2 { font-size: 24px; }
.bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-family: var(--ff-display); font-weight: 800; font-size: 32px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Glossary popovers (native popover API) */
.q { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); font: 600 12px/1 var(--ff-body); cursor: pointer; vertical-align: middle; padding: 0; }
.q:hover { color: var(--text); border-color: var(--text); }
.pop { max-width: min(92vw, 360px); margin: auto; border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; background: var(--surface); color: var(--text); box-shadow: 0 12px 28px rgb(16 35 26 / .18); }
.pop b { display: block; font-family: var(--ff-display); font-size: 18px; margin-bottom: 6px; }
.pop::backdrop { background: rgb(0 0 0 / .25); }
.kpi span:first-child { display: inline-flex; align-items: center; }
/* Donuts and FX chart */
.donuts { display: flex; flex-wrap: wrap; gap: 24px; }
.donut-box { flex: 1 1 320px; display: flex; gap: 16px; align-items: center; min-width: 0; }
.donut { width: 140px; height: 140px; flex: none; }
.donut .slice { fill: var(--pf); stroke: var(--surface); stroke-width: 1; }
.donut .hole { fill: var(--surface); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; min-width: 0; }
.donut-legend li { display: flex; align-items: center; gap: 6px; }
.chart-svg.fx { height: 180px; }
.chart-svg .zero { stroke: var(--border-strong); stroke-width: 1; }
.chart-svg .fx-area { fill: var(--friday); opacity: .25; }
.chart-svg .fx-line { fill: none; stroke: var(--friday-ink); stroke-width: 2; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rules li::before { content: "•"; color: var(--accent); margin-right: 8px; }
.catchup-table td { vertical-align: top; }
.catchup-table .desc { color: var(--muted); font-size: 13px; max-width: 520px; }

/* Chart box (SvgCharts::box): Y axis, hover readout and close labels (chart-tip.js) */
.chart-box { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.y-axis { position: relative; height: 300px; font-family: var(--ff-data); font-size: 11px; color: var(--muted); }
.y-axis span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.y-g100 { top: 3.33%; } .y-g75 { top: 27.5%; } .y-g50 { top: 51.67%; } .y-g25 { top: 75.83%; } .y-g0 { top: 100%; }
.chart-box:has(.chart-svg.fx) .y-axis { height: 180px; }
.y-ftop { top: 2.5%; } .y-fmid { top: 50%; } .y-fbot { top: 97.5%; }
.chart-plot { position: relative; min-width: 0; outline-offset: 4px; }
.chart-plot:focus-visible { outline: 2px solid var(--accent); }
.close-label { display: none; position: absolute; top: 4px; transform: translateX(-50%); padding: 1px 6px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); font-family: var(--ff-data); font-size: 11px; color: var(--text); white-space: nowrap; pointer-events: none; }
.chart-box.ready .close-label { display: block; }
.chart-guide { display: none; position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--ink); opacity: .45; pointer-events: none; }
.chart-tip { display: none; position: absolute; top: 28px; transform: translateX(12px); min-width: 170px; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0,0,0,.12); font-size: 13px; pointer-events: none; z-index: 2; }
.chart-tip.flip { transform: translateX(calc(-100% - 12px)); }
.chart-box.active .chart-guide, .chart-box.active .chart-tip { display: block; }
.chart-tip b { display: block; margin-bottom: 4px; }
.tip-row { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tip-row.strong { color: var(--text); font-weight: 600; }
.tip-row .dot { width: 10px; height: 10px; }
.tip-value { margin-left: auto; padding-left: 12px; font-family: var(--ff-data); color: var(--text); }
@media (max-width: 560px) { .chart-box { grid-template-columns: 40px 1fr; } .y-axis { font-size: 10px; } }
.close-label.at-end { transform: translateX(-100%); } .close-label.at-start { transform: none; }

/* About page: social links and contact form */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.contact-form { display: grid; gap: 12px; max-width: 560px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form textarea { min-height: 44px; border-radius: 8px; border: 1px solid var(--border-strong); padding: 10px 12px; font: inherit; background: var(--surface); color: var(--text); }
.contact-form button { justify-self: start; min-height: 48px; padding: 0 20px; border-radius: 8px; }
a.next-card { text-decoration: none; transition: transform .12s ease; } a.next-card:hover { transform: translateY(-2px); } a.next-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.footer-links { justify-content: flex-start; gap: 18px; flex-wrap: wrap; font-size: 14px; }

/* Cookie notice (§28.4) */
.cookie-notice { position: sticky; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border-strong); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.cookie-inner p { margin: 0; max-width: 720px; font-size: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.assets.sectors li { grid-template-columns: minmax(140px, 1.3fr) 1fr 64px; }

/* Six insights in three columns: stars, losses, facts (D67) */
@media (min-width: 900px) {
  .insights.six { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; }
}
.insight-empty { display: none; }
@media (min-width: 900px) { .insight-empty { display: block; } }

a.next-card, a.next-card:hover, a.next-card:focus { color: #fff; }

/* Average purchase stacked columns (D66) */
.avg-chart { width: 100%; height: auto; display: block; max-height: 360px; }
.avg-chart .grid { stroke: var(--border); stroke-width: 1; opacity: .7; }
.avg-chart .axis-label { fill: var(--muted); font-family: var(--ff-data); font-size: 12px; }
.avg-chart .col { fill: var(--pf); }
.avg-chart .col.soft { opacity: .35; }
.avg-chart .col.soft.lost { opacity: .15; stroke: var(--pf); stroke-dasharray: 4 3; }
.avg-chart .col-label { font-family: var(--ff-data); font-size: 13px; font-weight: 600; fill: var(--text); }
.avg-chart .col-label.inside { fill: #fff; }
.avg-chart .col-label.today { fill: var(--muted); }
.avg-chart .target { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 6 5; }
.avg-chart .target-dot { fill: var(--ink); }
.avg-legend .swatch { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: var(--muted); }
.avg-legend .swatch.faded { opacity: .35; }

/* Projection tool (D69) */
.proj-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.proj-controls label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.proj-controls select, .proj-controls input { min-height: 40px; border-radius: 8px; border: 1px solid var(--border-strong); padding: 0 10px; font: inherit; background: var(--surface); color: var(--text); }
.proj-controls input { width: 150px; }
.proj-controls .btn { min-height: 40px; }
.proj-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.proj-table th, .proj-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.proj-table .num { text-align: right; }
.proj-table tr.selected { background: var(--accent-soft, #E4EFE8); font-weight: 600; }
.proj-years { width: 100%; font-size: 13px; }
.chart-svg .proj-main { fill: none; stroke: var(--ink); stroke-width: 3; }
.chart-svg .proj-alt { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 6 5; }
.key-solid { display: inline-block; width: 18px; border-top: 3px solid var(--ink); }
.key-dash { display: inline-block; width: 18px; border-top: 2px dashed var(--muted); }

/* «Aprende» (D70) */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.learn-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; }
.learn-card:hover { border-color: var(--accent); color: var(--text); box-shadow: 0 6px 18px rgb(16 35 26 / .08); }
.learn-card b { font-family: var(--ff-display); font-size: 19px; line-height: 1.25; }
.learn-card span { font-size: 15px; color: var(--muted); }
.learn-article { max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.7; }
.prose h2 { margin-top: 18px; }
.prose h3 { margin-top: 8px; font-size: 19px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.prose p { margin: 0; }
.glossary-list { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.glossary-list dt { font-weight: 700; font-family: var(--ff-display); font-size: 19px; }
.glossary-list dd { margin: 4px 0 0; color: var(--text); }
.prose-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose-table th, .prose-table td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose-table th { font-weight: 700; }
.prose blockquote.example { margin: 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; font-family: var(--ff-data); font-size: 15px; }

/* Support links (D72) */
.crypto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crypto input { flex: 1 1 260px; min-height: 40px; border-radius: 8px; border: 1px solid var(--border-strong); padding: 0 10px; font-size: 13px; background: var(--surface); color: var(--text); }

/* Follow-up invitation (D73) */
.nudge { position: fixed; right: 16px; bottom: 16px; z-index: 30; max-width: 360px; background: var(--surface); border: 1px solid var(--border-strong); border-top: 4px solid var(--accent); border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 32px rgb(16 35 26 / .18); display: flex; flex-direction: column; gap: 8px; }
.nudge[hidden] { display: none; }
.nudge b { font-family: var(--ff-display); font-size: 18px; padding-right: 24px; }
.nudge p { margin: 0; font-size: 14px; color: var(--muted); }
.nudge-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nudge-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
@media (max-width: 560px) { .nudge { left: 16px; right: 16px; max-width: none; } }

/* Upcoming live (D74) */
.live-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--pf); }
.live-text { display: flex; flex-direction: column; flex: 1 1 260px; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: #D92D20; box-shadow: 0 0 0 4px rgb(217 45 32 / .2); }
