/* Minimalist UI: warm monochrome, editorial type, flat bento cards.
   Loaded after Bootstrap; overrides its components so templates keep their markup. */

:root {
    --canvas: #F7F6F3;
    --surface: #FFFFFF;
    --surface-alt: #F9F9F8;
    --ink: #111111;
    --ink-soft: #2F3437;
    --muted: #787774;
    --line: #EAEAEA;
    --line-soft: rgba(0, 0, 0, 0.06);

    --red-bg: #FDEBEC;    --red-fg: #9F2F2D;
    --blue-bg: #E1F3FE;   --blue-fg: #1F6C9F;
    --green-bg: #EDF3EC;  --green-fg: #346538;
    --yellow-bg: #FBF3DB; --yellow-fg: #956400;
    --grey-bg: #F1F0EE;   --grey-fg: #787774;

    --font-sans: 'Geist', 'SF Pro Display', 'Helvetica Neue', 'Switzer', system-ui, sans-serif;
    --font-serif: 'Newsreader', 'Lyon Text', 'Instrument Serif', Georgia, serif;
    --font-mono: 'Geist Mono', 'SF Mono', 'JetBrains Mono', ui-monospace, monospace;

    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--ink-soft);
    --bs-body-bg: var(--canvas);
    --bs-border-color: var(--line);
    --bs-link-color: var(--ink);
    --bs-link-hover-color: var(--ink);
}

html { -webkit-font-smoothing: antialiased; }

body {
    background: var(--canvas) !important;
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    font-feature-settings: "tnum" 1;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--ink);
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
h1, .h1, .h3 { letter-spacing: -0.03em; }
h1.h3, .h3 { font-size: 2.1rem; }
.h5 { font-size: 1.35rem; }
.h6 {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.h4 { font-size: 1.9rem; }
.display-6 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.03em; }

a { color: var(--ink); text-decoration-color: rgba(0, 0, 0, 0.25); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

.text-muted, .form-text { color: var(--muted) !important; }
.text-dark { color: var(--ink) !important; }
.text-success { color: var(--green-fg) !important; }
.text-danger { color: var(--red-fg) !important; }
.small, small { font-size: 0.82rem; }
hr { border-color: var(--line); opacity: 1; margin: 2.5rem 0 !important; }

/* ---------- App shell: sidebar ---------- */
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.75rem 1rem 1.25rem;
    border-right: 1px solid var(--line);
    background: var(--canvas);
}
.brand {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    padding: 0 0.75rem;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: color 200ms, background-color 200ms, border-color 200ms;
}
.sidebar nav a:hover { color: var(--ink); background: rgba(0, 0, 0, 0.03); }
.sidebar nav a.active { color: var(--ink); background: var(--surface); border-color: var(--line); }
.session {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--line);
}
.session .who { font-size: 0.85rem; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.session button {
    background: none; border: 0; padding: 0; font-size: 0.8rem; color: var(--muted);
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.session button:hover { color: var(--ink); }
.main { padding: 2.5rem 2.75rem 6rem; max-width: 1180px; width: 100%; }

/* ---------- Cards / bento ---------- */
.card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    box-shadow: none;
    transition: box-shadow 200ms ease;
}
.card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.card-body { padding: 1.5rem; }
.card.card-body { padding: 1.75rem; }
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
/* KPI tiles: left-aligned, label over serif figure */
.card.text-center { text-align: left !important; }
.card.text-center .card-body { padding: 1.4rem 1.5rem; }
.card.text-center .text-muted.small:first-child {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.card .h4, .card .h5, .card .h6.mb-0 {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--ink);
    line-height: 1.1;
}
.card .h5 { font-size: 1.6rem; }
.card.border-primary, .card.border-danger { border-color: var(--ink) !important; }
.card.border-danger { border-color: var(--red-fg) !important; }
.card form .h6, .card-body > .h6 { margin-bottom: 1rem; }

/* ---------- List groups ---------- */
.list-group { --bs-list-group-border-color: var(--line); --bs-list-group-bg: transparent; }
.list-group-item { background: transparent; padding: 0.85rem 1.5rem; border-color: var(--line); }
.list-group-item span:first-child { color: var(--muted); }
.list-group-item strong { color: var(--ink); font-weight: 600; }

/* ---------- Tables ---------- */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: var(--surface-alt);
    --bs-table-border-color: var(--line);
    --bs-table-color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 0;
}
.table.bg-white, .table-responsive { background: var(--surface) !important; }
.table-responsive, table.table.bg-white {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.table-responsive > .table { border: 0; border-radius: 0; }
.table > :not(caption) > * > * { padding: 0.8rem 1.1rem; border-bottom-color: var(--line); box-shadow: none; }
.table > thead > tr > th {
    background: var(--surface-alt);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.table-sm > :not(caption) > * > * { padding: 0.65rem 0.8rem; }
table.table.bg-white { border-collapse: separate; border-spacing: 0; table-layout: auto; }
.table-responsive > .table > thead > tr > th { white-space: nowrap; }
.table > thead a { color: var(--muted) !important; text-decoration: none; }
.table > thead a:hover { color: var(--ink) !important; }
.table > tbody > tr:last-child > * { border-bottom: 0; }
.table > tbody > tr:hover > * { background: var(--surface-alt); }
.table-secondary, .table-secondary > * { --bs-table-bg: transparent; color: var(--muted); }
.table td a { text-decoration-color: rgba(0, 0, 0, 0.18); }

/* ---------- Buttons ---------- */
.btn {
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    box-shadow: none !important;
    transition: background-color 200ms, color 200ms, border-color 200ms, transform 120ms;
}
.btn-sm { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: #333; border-color: #333; color: #fff; }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger, .btn-outline-dark {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-dark:hover {
    background: var(--canvas); border-color: #d6d5d1; color: var(--ink);
}
.btn-outline-danger { color: var(--red-fg); }
.btn-outline-danger:hover { background: var(--red-bg); border-color: var(--red-bg); color: var(--red-fg); }
.btn-danger { background: var(--red-fg); border-color: var(--red-fg); }

/* ---------- Forms ---------- */
.form-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; margin-bottom: 0.3rem; }
.form-control, .form-select {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    box-shadow: none;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
    background-color: var(--surface);
}
.form-control::placeholder { color: #b3b1ad; }
.form-check-input { border-color: #cfcdc8; box-shadow: none !important; }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }

/* ---------- Badges: pastel pills ---------- */
.badge {
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35em 0.8em;
}
.badge.bg-success   { background: var(--green-bg)  !important; color: var(--green-fg)  !important; }
.badge.bg-danger    { background: var(--red-bg)    !important; color: var(--red-fg)    !important; }
.badge.bg-warning   { background: var(--yellow-bg) !important; color: var(--yellow-fg) !important; }
.badge.bg-primary,
.badge.bg-info      { background: var(--blue-bg)   !important; color: var(--blue-fg)   !important; }
.badge.bg-secondary { background: var(--grey-bg)   !important; color: var(--grey-fg)   !important; }

/* ---------- Alerts / pagination ---------- */
.alert { border-radius: 8px; border: 1px solid var(--line); font-size: 0.9rem; }
.alert-danger  { background: var(--red-bg);    color: var(--red-fg);    border-color: transparent; }
.alert-success { background: var(--green-bg);  color: var(--green-fg);  border-color: transparent; }
.alert-warning { background: var(--yellow-bg); color: var(--yellow-fg); border-color: transparent; }
.alert-info    { background: var(--blue-bg);   color: var(--blue-fg);   border-color: transparent; }

.pagination { gap: 4px; }
.page-link {
    border: 1px solid var(--line) !important;
    border-radius: 6px !important;
    color: var(--ink);
    background: var(--surface);
    box-shadow: none !important;
}
.page-item.active .page-link { background: var(--ink); border-color: var(--ink) !important; color: #fff; }

kbd {
    font-family: var(--font-mono);
    background: var(--canvas);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 6px;
}
code { font-family: var(--font-mono); color: var(--ink); background: var(--canvas); padding: 1px 5px; border-radius: 4px; }

svg text { font-family: var(--font-sans); }

/* ---------- Rhythm ---------- */
.main > h1:first-child { margin-bottom: 2rem !important; }
h2.h5, h2.h6, h3.h6 { margin-top: 0.5rem; }

/* ---------- Motion (quiet) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
                    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: calc(var(--index, 0) * 80ms);
    }
    .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- KPI tiles, info popover, pills ---------- */
.k {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}
.k .info { margin-left: 0.4rem; vertical-align: -3px; }
.card .v, .platform .v {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.1;
    margin-top: 0.45rem;
}
.v small { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.card .s, .s { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.kpi { padding: 1.4rem 1.5rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
    .kpis { gap: 0.75rem; }
    .kpi { padding: 1rem; }
    .kpi .v { font-size: 1.45rem; }
    .kpi .k { font-size: 0.64rem; letter-spacing: 0.05em; }
    .forecast-head .v { font-size: 1.9rem; }
}

.info {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; flex: none;
    border: 1px solid #cfcdc8; border-radius: 50%;
    background: transparent; color: var(--muted);
    font-family: var(--font-serif); font-style: italic; font-size: 0.72rem; line-height: 1;
    text-transform: none; letter-spacing: 0; padding: 0; cursor: pointer;
    transition: color 150ms, border-color 150ms, background-color 150ms;
}
.info:hover, .info[aria-expanded="true"] { color: var(--ink); border-color: var(--ink); }
.info:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.info-pop {
    position: absolute; z-index: 100; width: 270px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 0.85rem 1rem; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft);
    text-transform: none; letter-spacing: 0; font-weight: 400;
}

.pill {
    display: inline-block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; padding: 0.3em 0.75em; border-radius: 9999px; white-space: nowrap;
    background: var(--grey-bg); color: var(--grey-fg);
}
.pill.red { background: var(--red-bg); color: var(--red-fg); }
.pill.yellow { background: var(--yellow-bg); color: var(--yellow-fg); }
.pill.green { background: var(--green-bg); color: var(--green-fg); }
.pill.blue { background: var(--blue-bg); color: var(--blue-fg); }

/* ---------- Home ---------- */
.hello { margin-bottom: 2rem; }
.hello h1 { font-size: 2.4rem; margin-bottom: 0.4rem; }
.rows { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.rows li {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) max-content;
    align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 0; }
.rows .meta { font-size: 0.82rem; color: var(--muted); }
.more { display: inline-block; margin-top: 0.75rem; font-size: 0.82rem; color: var(--muted); }
.allgood { display: flex; align-items: center; gap: 0.75rem; }
.forecast-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.45rem; }
.forecast-head .v { margin-top: 0; font-size: 2.4rem; }
.spark { margin-top: 1rem; }
.legend { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.legend .solid, .legend .dashed { display: inline-block; width: 22px; height: 0; border-top: 1.6px solid var(--ink); }
.legend .dashed { border-top-style: dashed; margin-left: 0.75rem; }
.legend .more { margin: 0 0 0 auto; }
.section-title {
    font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.4rem;
    margin: 2rem 0 0.9rem;
}
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.platform { display: block; padding: 1.3rem 1.5rem; text-decoration: none; color: inherit; }
.platform:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.platform .v { font-size: 1.6rem; }

/* ---------- Login ---------- */
.login-page { background: var(--canvas); }
.login { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 100vh; }
.login-hero {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    justify-content: space-between; padding: 2.5rem 3rem; border-right: 1px solid var(--line);
}
.login-hero .brand { padding: 0; }
.login-hero h1 { position: relative; font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.login-line { position: absolute; left: 0; right: 0; bottom: 12%; width: 100%; height: 45%; color: #B3B1AD; opacity: 0.6; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-form form { width: 100%; max-width: 330px; }
.login-form h2 { font-size: 1.9rem; margin-bottom: 1.5rem; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar > * { min-width: 0; }
    .main :not(.table-responsive) > table.table { display: block; max-width: 100%; overflow-x: auto; }
    .hello h1 { overflow-wrap: anywhere; }
    .sidebar {
        position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center;
        gap: 0.5rem 1rem; padding: 0.9rem 1rem; border-right: 0; border-bottom: 1px solid var(--line);
    }
    .sidebar nav { flex-direction: row; flex-wrap: wrap; order: 3; width: 100%; }
    .session { margin: 0 0 0 auto; border: 0; padding: 0; gap: 0.75rem; }
    .main { padding: 1.5rem 1rem 4rem; }
    .hello h1, h1.h3, .h3 { font-size: 1.8rem; }
    .rows li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
    .rows .pill { justify-self: start; }
    .card-body { padding: 1.25rem; }
    .legend { flex-wrap: wrap; }
    .legend .more { margin-left: 0; width: 100%; }
    .login { grid-template-columns: 1fr; }
    .login-hero { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); padding: 1.5rem; }
}

/* ---- Inversiones: filtros ---- */
.fpills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fpill { border: 1px solid var(--line, #EAEAEA); background: #fff; color: #111; border-radius: 999px; padding: 4px 14px; font-size: 14px; text-decoration: none; }
.fpill small { color: #787774; margin-left: 4px; }
.fpill:hover { border-color: #111; color: #111; }
.fpill.on { background: #111; border-color: #111; color: #fff; }
.fpill.on small { color: #ccc; }
.fpill.late:not(.on) { background: #FDEBEC; border-color: #FDEBEC; color: #9F2F2D; }
.fpill.late:not(.on) small { color: #9F2F2D; }
.fbar { border-top: 1px solid #EAEAEA; padding-top: 14px; }
.fbar .frow { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-end; margin-bottom: 12px; }
.fbar .fld { display: flex; flex-direction: column; min-width: 130px; }
.fbar .fld.grow { flex: 1; min-width: 180px; }
.fbar .k { margin-bottom: 2px; }
.fbar input[type=text], .fbar input[type=number], .fbar input[type=date], .fbar select {
  border: 0; border-bottom: 1px solid #111; border-radius: 0; background: transparent; padding: 3px 18px 4px 0; font-size: 14px; color: #111; box-shadow: none; outline: none;
}
.fbar input:focus, .fbar select:focus { border-bottom-color: #111; box-shadow: 0 1px 0 #111; }
.fbar .fcheck { font-size: 14px; display: flex; gap: 6px; align-items: center; padding-bottom: 4px; }
.fmore > summary { cursor: pointer; font-size: 14px; color: #111; list-style: none; display: inline-block; border: 1px solid #EAEAEA; background: #fff; border-radius: 6px; padding: 5px 12px; margin-bottom: 12px; }
.fmore > summary::-webkit-details-marker { display: none; }
.fmore > summary::after { content: " ▾"; color: #787774; }
.fmore[open] > summary::after { content: " ▴"; }
.fcount { background: #111; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 2px; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.fchip { background: #EDF3EC; color: #346538; border-radius: 999px; padding: 3px 12px; font-size: 13px; text-decoration: none; }
.fchip:hover { color: #346538; text-decoration: line-through; }
@media (max-width: 860px) { .fbar .fld { min-width: calc(50% - 12px); } }

/* ---- Resumen: vencido + calendario de devoluciones ---- */
.late-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; }
.late-head .v { font-family: "Newsreader", Georgia, serif; font-size: 28px; color: #9F2F2D; }
.cal-sums { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 6px 0 10px; }
.cal-sums .v { font-family: "Newsreader", Georgia, serif; font-size: 28px; line-height: 1.15; }
.cal-sums .v.soft { color: #787774; }
.cal-legend { margin-bottom: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: baseline; }
.sw.cap { background: #111; } .sw.int { background: #787774; } .sw.prev { background: #C9C8C4; }
ul.cal { list-style: none; margin: 0; padding: 0; }
ul.cal li { border-top: 1px solid #EAEAEA; }
ul.cal li:first-child { border-top: 0; }
ul.cal a, ul.cal .calrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(190px, auto); gap: 12px; align-items: center; padding: 5px 4px; color: #111; text-decoration: none; }
ul.cal a:hover { background: #F7F6F3; }
ul.cal .m { font-size: 13px; color: #787774; }
ul.cal .m small { font-size: 11px; display: block; }
ul.cal li.now .m { color: #111; font-weight: 500; }
ul.cal li.now { box-shadow: inset 2px 0 0 #111; }
ul.cal .track { display: block; height: 14px; }
ul.cal .bar { display: flex; height: 100%; border-radius: 2px; overflow: hidden; }
ul.cal .seg { display: block; height: 100%; }
ul.cal .seg.cap-real { background: #111; } ul.cal .seg.int-real { background: #787774; }
ul.cal .seg.cap-prev { background: #C9C8C4; } ul.cal .seg.int-prev { background: #E3E2DE; }
ul.cal .amt { font-size: 13px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
ul.cal .amt small { color: #787774; font-size: 12px; }
@media (max-width: 600px) {
  ul.cal a, ul.cal .calrow { grid-template-columns: 44px minmax(0, 1fr); }
  ul.cal .amt { grid-column: 1 / -1; text-align: left; padding-left: 56px; }
}

/* ---- Inversiones: tabla ---- */
.pill.gray { background: #EAEAEA; color: #444; }
table.inv { --bs-table-bg: #fff; background: #fff; }
table.inv th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #787774; font-weight: 400; border-bottom: 1px solid #111; }
table.inv td { padding: 11px 8px; vertical-align: middle; }
table.inv .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.inv th:nth-child(2), table.inv th:nth-child(3), table.inv th:nth-child(4) { text-align: right; }
table.inv a.proj { font-family: "Newsreader", Georgia, serif; font-size: 18px; line-height: 1.25; color: #111; text-decoration: none; }
table.inv a.proj:hover { text-decoration: underline; }
table.inv .sub { color: #787774; font-size: 12px; }
table.inv .subsort { color: #787774; font-size: 11px; text-transform: none; letter-spacing: 0; text-decoration: none; }
table.inv .fin { min-width: 130px; }
table.inv .tbar { height: 5px; background: #E3E2DE; border-radius: 3px; overflow: hidden; margin: 5px 0 2px; }
table.inv .tbar i { display: block; height: 100%; background: #111; }
table.inv .tbar.soon i { background: #956400; }
table.inv .tbar.late i { background: #9F2F2D; }
table.inv .sub.soon { color: #956400; }
table.inv .sub.late { color: #9F2F2D; }

/* ---- Plataformas: tablas con el estilo de Inversiones ---- */
table.inv.nums th:not(:first-child), table.inv.nums td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.inv.nums td:first-child { font-family: "Newsreader", Georgia, serif; font-size: 17px; }
table.inv.nums td:first-child a.proj { font-size: 18px; }
table.inv.nums-last2 th:nth-child(n+3), table.inv.nums-last2 td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.inv.nums-last2 td:first-child { color: #787774; }
table.inv.nums-last2 th:nth-child(2) { text-align: left; }
