@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f5f8fc;
  --sidebar: #ffffff;
  --card: #ffffff;

  --navy: #061f46;
  --navy-2: #0a2a5c;

  --blue: #0068ff;
  --blue-soft: #eaf3ff;

  --green: #129755;
  --green-soft: #dcf8e6;

  --purple: #7f38ff;
  --purple-soft: #f1e7ff;

  --orange: #f59b14;
  --orange-soft: #fff2da;

  --red: #e64545;
  --red-soft: #fff1f0;

  --line: #dfe8f4;
  --line-soft: #edf2f8;

  --muted: #58708f;

  --shadow: 0 12px 32px rgba(21, 46, 85, 0.065);
  --shadow-soft: 0 8px 22px rgba(21, 46, 85, 0.055);
  --shadow-strong: 0 22px 58px rgba(10, 33, 70, 0.14);

  --page-gap: 12px;
  --card-gap: 12px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 13px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--navy);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
}

button,
input {
  font-family: inherit;
}

button {
  margin: 0;
}

svg {
  width: 19px;
  height: 19px;
}

#app.container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hidden-nav {
  display: none;
}

#app :where(section, article, figure) {
  margin: 0 !important;
}

/* =====================================================
   LOGIN
===================================================== */

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f6f9fd;
}

.login-visual {
  position: relative;
  overflow: hidden;
  cursor: default;
  background:
    linear-gradient(120deg, rgba(6, 31, 70, 0.46), rgba(6, 31, 70, 0.18)),
    url("./assets/image-login.png") center/cover no-repeat;
}

.login-copy {
  position: absolute;
  left: 48px;
  bottom: 54px;
  max-width: 520px;
  color: #fff;
  z-index: 2;
}

.login-copy h1 {
  margin: 0 0 14px;
  max-width: 620px;
  font-size: 39px;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #fff;
  font-weight: 650;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.login-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 36px;
}

.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow-strong);
}

.login-card .logo-real {
  height: 62px;
  margin-bottom: 24px;
  justify-content: center;
}

.login-card .logo-real img {
  width: 205px;
  max-width: 205px;
  filter: contrast(1.04);
}
.login-card h2 {
  margin: 0 0 8px;
  color: #061f46;
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 650;
}

.login-card p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

.login-field {
  margin-bottom: 14px;
}

.login-field label {
  display: block;
  margin-bottom: 7px;
  color: #334967;
  font-size: 12px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line) !important;
  background: #fbfdff !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  color: #071f49 !important;
  font-size: 13px;
}

.login-button {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: #061f46;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.login-button:hover {
  background: #0b2d62;
}

.login-help {
  display: block;
  margin-top: 16px;
  color: #697c98;
  font-size: 11.5px;
  text-align: center;
}

.login-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f0;
  border: 1px solid #ffd6d2;
  color: #b42318;
  font-size: 12px;
}

/* =====================================================
   LAYOUT
===================================================== */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workspace {
  position: relative;
  min-width: 0;
  padding: 20px 24px 18px;
}

.page {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--page-gap) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.logo-real {
  width: 100%;
  height: 60px;
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin-bottom: 22px;
}

.logo-real img {
  width: 185px;
  max-width: 185px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* =====================================================
   SIDEBAR
===================================================== */

.side-nav {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
}

.side-nav button {
  width: 100%;
  max-width: 232px;
  height: 45px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #062656;
  display: grid;
  grid-template-columns: 28px 104px;
  justify-content: center;
  align-items: center;
  column-gap: 12px;
  padding: 0 14px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.side-nav button span {
  min-width: 104px;
  text-align: left;
  white-space: nowrap;
  color: inherit;
}

.side-nav button svg {
  width: 19px;
  height: 19px;
  justify-self: center;
  stroke-width: 2.05;
  flex: 0 0 auto;
}

.side-nav button:hover,
.side-nav button.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.sidebar-spacer {
  display: none;
}

.sidebar-building {
  flex: 0 0 165px;
  width: 100%;
  max-width: 232px;
  height: 165px;
  min-height: 165px;
  max-height: 165px;
  margin: 0 auto 16px;
  border-radius: 18px;
  cursor: default;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(3,25,55,0.08)),
    url("./assets/sidebar-lobby.png") center/cover no-repeat;
  box-shadow: 0 16px 34px rgba(16, 45, 86, 0.10);
}

.sidebar-user {
  flex: 0 0 76px;
  width: 100%;
  max-width: 232px;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 17px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(16, 45, 86, 0.075);
}

.sidebar-user-info {
  display: block;
  min-width: 0;
}

.sidebar-user-info strong {
  display: block;
  max-width: 118px;
  color: #061f46;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-info span {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user button {
  border: 0;
  background: transparent;
  color: #062656;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  justify-self: end;
}

.sidebar-user button:hover {
  background: #f1f6ff;
}

.sidebar-user button svg {
  width: 18px;
  height: 18px;
}

/* =====================================================
   TOPBAR
===================================================== */

.topbar {
  position: absolute;
  top: 12px;
  right: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
}

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.bell-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #082d67;
  box-shadow: 0 7px 18px rgba(11, 45, 94, 0.09);
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}

.bell-button:hover {
  border-color: #cbdcf2;
  background: #fbfdff;
}

.bell-button b {
  position: absolute;
  top: 3px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.top-user strong {
  display: block;
  color: var(--navy);
  font-size: 12.5px;
  line-height: 1.1;
  font-weight: 700;
}

.top-user span {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 600;
}

.avatar {
  border-radius: 999px;
  background: linear-gradient(145deg, #08326b, #001f4b);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.avatar.sm {
  width: 46px;
  height: 46px;
  font-size: 14px;
}

.avatar.md {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.avatar.big {
  width: 76px;
  height: 76px;
  font-size: 26px;
}

/* =====================================================
   TITULOS Y COMPONENTES
===================================================== */

.page-title {
  margin: 0 !important;
  padding-right: 340px;
}

.page-title h1 {
  margin: 0;
  color: var(--navy-2);
  font-size: 21px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.page-title p {
  margin: 5px 0 0;
  color: #50698e;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 400;
}

.card,
.kpi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  color: #0a2047;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 5px 0 0;
  color: #536b8d;
  font-size: 12px;
  font-weight: 400;
}

.section-head button,
.text-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =====================================================
   KPI
===================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0 !important;
}

.kpi-card {
  min-height: 92px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.kpi-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.kpi-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.kpi-icon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.kpi-icon.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.kpi-card label {
  display: block;
  color: #344767;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 5px;
}

.kpi-card strong,
.money-stack {
  display: block;
  color: #061c44;
  font-size: 16px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.money-stack span {
  display: block;
  white-space: nowrap;
}

.money-stack span + span {
  margin-top: 2px;
  font-size: 13px;
  color: #294a72;
}

.kpi-card p {
  margin: 5px 0 0;
  color: #3e5778;
  font-size: 11px;
  line-height: 1.18;
  font-weight: 400;
}

.kpi-card p.positive {
  color: var(--green);
  font-weight: 700;
}

.kpi-card p.primary {
  color: var(--blue);
  font-weight: 700;
}

/* =====================================================
   TABLAS
===================================================== */

.table-panel {
  padding: 15px 18px 12px;
}

.panel-head {
  margin-bottom: 12px;
}

.panel-head h2 {
  margin: 0;
  color: #0a2047;
  font-size: 15.5px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-head p {
  margin: 5px 0 0;
  color: #4b668b;
  font-size: 12px;
  font-weight: 400;
}

.investment-table-wrap {
  width: 100%;
  overflow: auto;
}

.investment-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.investment-table th {
  padding: 0 8px 9px;
  border-bottom: 1px solid var(--line);
  color: #617391;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.investment-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line-soft);
  color: #0a2b5e;
  font-size: 12.5px;
  vertical-align: middle;
}

.investment-table tr:last-child td {
  border-bottom: 0;
}

.cell-title {
  display: block;
  color: #0b2a5d;
  font-size: 12.5px;
  line-height: 1.15;
  font-weight: 700;
}

.cell-sub {
  display: block;
  margin-top: 5px;
  color: #607594;
  font-size: 10.8px;
  line-height: 1.1;
  font-weight: 400;
}

.money-main,
.money-green,
.money-blue {
  display: block;
  font-weight: 700;
  white-space: nowrap;
}

.money-main {
  color: #071f49;
}

.money-green {
  color: var(--green);
}

.money-blue {
  color: var(--blue);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  min-width: 59px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 10.8px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill.green {
  background: var(--green-soft);
  color: var(--green);
}

.pill.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

/* =====================================================
   RESUMEN - DISTRIBUCIÓN
===================================================== */

.summary-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
  margin: 0 !important;
}

.summary-distribution-card,
.summary-income-card,
.summary-income-card.income-redesign {
  padding: 17px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.summary-card-title {
  margin: 0 0 14px;
  color: #061f46;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.distribution-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.distribution-row strong {
  color: #061f46;
  font-size: 13px;
  font-weight: 700;
}

.distribution-bar {
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #e7effb;
  box-shadow: inset 0 0 0 1px rgba(0, 104, 255, 0.06);
}

.distribution-segment {
  height: 100%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.distribution-segment.primary {
  background: linear-gradient(90deg, #0068ff, #247cff);
}

.distribution-segment.secondary {
  background: linear-gradient(90deg, #80b4ff, #a8caff);
}

.distribution-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.distribution-amount {
  padding: 11px 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e3edf8;
}

.distribution-amount span {
  display: block;
  color: #617391;
  font-size: 12px;
  font-weight: 500;
}

.distribution-amount strong {
  display: block;
  margin-top: 6px;
  color: #061f46;
  font-size: 16px;
  font-weight: 700;
}

/* =====================================================
   RESUMEN - INGRESOS REDISEÑADOS
===================================================== */

.summary-income-card.income-redesign {
  display: block;
  background:
    radial-gradient(circle at top right, rgba(0, 104, 255, 0.055), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #fbfdff 100%);
}

.income-redesign-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
}

.income-redesign-head h2 {
  margin: 0;
  color: #061f46;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.income-redesign-head p {
  margin: 7px 0 0;
  color: #536b91;
  font-size: 12.5px;
  font-weight: 400;
}

.income-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.income-balance-card {
  min-height: 92px;
  padding: 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid #dfe8f4;
  box-shadow: 0 10px 24px rgba(21, 46, 85, 0.055);
}

.income-balance-card.dollars {
  background:
    radial-gradient(circle at top right, rgba(0, 104, 255, 0.10), transparent 34%),
    #f8fbff;
}

.income-balance-card.soles {
  background:
    radial-gradient(circle at top right, rgba(18, 151, 85, 0.12), transparent 34%),
    #f7fff9;
  border-color: #cdeedb;
}

.income-balance-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
}

.income-balance-card.dollars .income-balance-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.income-balance-card.soles .income-balance-icon {
  background: var(--green-soft);
  color: var(--green);
}

.income-balance-card span {
  display: block;
  color: #536b91;
  font-size: 12px;
  font-weight: 500;
}

.income-balance-card strong {
  display: block;
  margin-top: 7px;
  color: #061f46;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.income-balance-card small {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
}

.income-balance-card.dollars small {
  background: var(--blue-soft);
  color: var(--blue);
}

.income-balance-card.soles small {
  background: var(--green-soft);
  color: var(--green);
}

.income-projects-head {
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.income-projects-head h3 {
  margin: 0;
  color: #061f46;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.income-projects-head span {
  color: #647894;
  font-size: 12px;
  font-weight: 500;
}

.income-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 10px;
}

.income-project-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(21, 46, 85, 0.055);
}

.income-project-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0068ff, #73a9ff);
}

.income-project-card-head {
  margin-bottom: 14px;
}

.income-project-card h4 {
  margin: 0;
  color: #061f46;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.income-project-card-head span {
  display: block;
  margin-top: 5px;
  color: #647894;
  font-size: 12px;
  font-weight: 500;
}

.income-project-currencies {
  display: grid;
  gap: 10px;
}

.income-project-currency-line {
  padding: 9px 10px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e3edf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.income-project-currency-line span {
  display: block;
  color: #647894;
  font-size: 11.5px;
  font-weight: 500;
}

.income-project-currency-line strong {
  display: block;
  margin-top: 5px;
  color: #061f46;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.income-project-currency-line small {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* =====================================================
   PROYECTOS
===================================================== */

.projects-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0 !important;
}

.projects-overview-grid.single-project {
  grid-template-columns: 1fr !important;
}

.project-overview-card {
  min-height: 170px;
  padding: 12px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.project-overview-card.full-project {
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 220px;
}

.project-cover-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 145px;
  border-radius: 15px;
  overflow: hidden;
  background: #eaf3ff;
}

.project-overview-card.full-project .project-cover-img-wrap {
  min-height: 210px;
}

.project-cover-img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
}

.project-overview-card h2 {
  margin: 2px 0 6px;
  color: #061f46;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.project-overview-card.full-project h2 {
  font-size: 30px;
}

.project-location {
  margin: 0 0 8px;
  color: #536b91;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.project-description {
  margin: 9px 0;
  color: #536b91;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 400;
}

.delivery-row {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.delivery-row span {
  color: #647894;
  font-size: 11.5px;
}

.delivery-row strong {
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
}

.project-stack-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--card-gap) !important;
  width: 100% !important;
  margin: 0 !important;
}

.project-progress-block {
  width: 100%;
  display: grid;
  gap: 8px;
}

.premium-progress-card {
  width: 100%;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #dce7f5;
  box-shadow: 0 16px 42px rgba(16, 45, 86, 0.075);
}

.premium-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.project-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.project-badge {
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.project-location-premium {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #536b91;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.project-location-premium svg {
  width: 18px;
  height: 18px;
  color: #5d7395;
}

.progress-date {
  color: #536b91;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.premium-progress-body {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.premium-ring-area {
  min-height: 240px;
  display: grid;
  place-items: center;
}

.premium-ring {
  position: relative;
  width: 235px;
  height: 235px;
  display: grid;
  place-items: center;
}

.premium-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.premium-ring .ring-track {
  fill: none;
  stroke: #e8eef7;
  stroke-width: 22;
}

.premium-ring .ring-bar {
  fill: none;
  stroke: var(--blue);
  stroke-width: 22;
  stroke-linecap: round;
  stroke-dasharray: var(--dash) 603;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 8px 14px rgba(0, 104, 255, 0.18));
}

.premium-ring-value {
  position: relative;
  z-index: 2;
  color: #061f46;
  font-size: 48px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.075em;
}

.premium-ring-value small {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.premium-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.premium-fact {
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid #dce7f5;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.84);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.premium-fact span {
  color: #536b91;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
}

.premium-fact strong {
  color: #061f46;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.premium-fact strong.status-text {
  font-size: 19px;
}

.premium-milestones-title {
  margin: 4px 0 6px;
  color: #061f46;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.premium-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.premium-milestone {
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dce7f5;
  box-shadow: 0 12px 28px rgba(16, 45, 86, 0.055);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.milestone-dot {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 104, 255, 0.18);
}

.milestone-dot.done {
  background: #13b35d;
}

.milestone-dot.pending {
  background: #8f98a5;
}

.premium-milestone strong {
  display: block;
  color: #061f46;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.premium-milestone span {
  display: block;
  margin-top: 7px;
  color: #536b91;
  font-size: 12px;
  font-weight: 400;
}

.timeline-status {
  height: 24px;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  margin-top: 10px !important;
  font-size: 10.5px;
  font-weight: 700;
  background: #eef3f9;
  color: #69798d;
  width: fit-content;
}

.timeline-status.done {
  background: var(--green-soft);
  color: var(--green);
}

.timeline-status.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.updates-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.activity-list {
  display: grid;
  gap: 0;
}

.activity-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.activity-item strong {
  display: block;
  color: #0b2a5d;
  font-size: 12px;
  font-weight: 700;
}

.activity-item span {
  display: block;
  margin-top: 4px;
  color: #607594;
  font-size: 11px;
  line-height: 1.35;
}

.metrics-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 8px;
}

.metrics-box h2 {
  margin: 0 0 4px;
  color: #0a2047;
  font-size: 15px;
  font-weight: 700;
}

.metric-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.metric-line span {
  color: #607594;
  font-size: 11.5px;
}

.metric-line strong {
  color: #071f49;
  font-size: 12.5px;
}

/* =====================================================
   DOCUMENTOS
===================================================== */

.documents-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.document-search {
  flex: 0 0 180px;
  min-width: 180px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  color: #617391;
}

.document-search input {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12.5px;
}

.doc-filter {
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #0b2c62;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.doc-filter.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.documents-table,
.payments-table {
  width: 100%;
  border-collapse: collapse;
}

.documents-table th,
.payments-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: #617391;
  font-size: 10.5px;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.documents-table td,
.payments-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: #0a2b5e;
  font-size: 12px;
}

.file-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
}

.file-cell strong {
  display: block;
  color: #0b2a5d;
  font-size: 12.5px;
  font-weight: 700;
}

.file-cell span {
  color: #607594;
  font-size: 10.8px;
}

.table-actions {
  display: flex;
  gap: 7px;
}

.table-actions button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.doc-bottom-grid {
  margin: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
}

.project-doc-item,
.recent-doc-item {
  min-height: 50px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 0;
}

.project-doc-item:last-child,
.recent-doc-item:last-child {
  border-bottom: 0;
}

.project-mini-photo {
  width: 42px;
  height: 36px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
}

/* =====================================================
   PAGOS
===================================================== */

.payments-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0 !important;
}

.payments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
  margin: 0 !important;
}

.payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 110px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid var(--line-soft);
}

.payment-row:last-child {
  border-bottom: 0;
}

.payment-row strong {
  color: #0b2a5d;
  font-size: 12.5px;
  font-weight: 700;
}

.payment-row span {
  display: block;
  color: #607594;
  font-size: 11px;
}

/* =====================================================
   PERFIL
===================================================== */

.profile-summary {
  padding: 15px;
  display: grid;
  grid-template-columns: 82px 1.4fr 0.8fr 0.8fr 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 0 !important;
}

.profile-identity h2 {
  margin: 0 0 6px;
  color: #071f49;
  font-size: 20px;
  font-weight: 700;
}

.profile-identity p {
  margin: 0 0 6px;
  color: #58708f;
  font-size: 12.5px;
  font-weight: 400;
}

.profile-identity a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.profile-field {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.profile-field span {
  display: block;
  color: #607594;
  font-size: 11.5px;
  margin-bottom: 6px;
}

.profile-field strong {
  color: #071f49;
  font-size: 12.5px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0 !important;
}

.profile-card {
  padding: 14px 15px;
  min-height: 190px;
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line-soft);
}

.profile-card-head svg {
  color: var(--blue);
}

.profile-card-head h2 {
  margin: 0;
  color: #0a2047;
  font-size: 15px;
  font-weight: 700;
}

.profile-card-head a {
  margin-left: auto;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
}

.info-line {
  min-height: 30px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}

.info-line:last-child {
  border-bottom: 0;
}

.info-line span {
  color: #607594;
  font-size: 11.5px;
}

.info-line strong {
  color: #0b2a5d;
  font-size: 12px;
  text-align: right;
  font-weight: 700;
}

/* =====================================================
   LISTAS / VACÍOS / NOTIFICACIONES
===================================================== */

.list-panel {
  padding: 14px 16px;
}

.simple-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 100px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.simple-row:last-child {
  border-bottom: 0;
}

.simple-row strong {
  color: #0b2a5d;
  font-size: 13px;
  font-weight: 700;
}

.simple-row span {
  color: #607594;
  font-size: 11.5px;
}

.empty-state {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #647894;
}

.notifications-dropdown {
  position: absolute;
  right: 165px;
  top: 54px;
  width: 355px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  z-index: 50;
}

.notifications-head {
  height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notifications-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.notifications-head button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.notification-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 8px;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.notification-row:last-child {
  border-bottom: 0;
}

.notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}

.notif-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.notif-icon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.notification-row strong {
  display: block;
  color: #0b2a5d;
  font-size: 12.5px;
  font-weight: 700;
}

.notification-row p {
  margin: 5px 0;
  color: #607594;
  font-size: 11.5px;
  line-height: 1.35;
}

.notification-row small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.dot {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--blue);
}

/* =====================================================
   LIGHTBOX
===================================================== */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 18, 42, 0.82);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 28px;
}

.image-lightbox-inner {
  width: fit-content;
  max-width: 96vw;
  max-height: 92vh;
  display: grid;
  gap: 14px;
}

.image-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
}

.image-lightbox-head strong {
  font-size: 15px;
  font-weight: 700;
}

.image-lightbox-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.image-lightbox-close:hover {
  background: rgba(255,255,255,0.18);
}

.image-lightbox-frame {
  width: fit-content;
  max-width: 96vw;
  max-height: calc(92vh - 64px);
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 28px 80px rgba(0,0,0,0.34);
  display: block;
}

.image-lightbox-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: calc(92vh - 64px);
  object-fit: contain;
  background: transparent;
}

body.viewer-open {
  overflow: hidden;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1260px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .logo-real img {
    width: 176px;
    max-width: 176px;
  }

  .sidebar-building {
    flex-basis: 145px;
    height: 145px;
    min-height: 145px;
    max-height: 145px;
  }

  .project-overview-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-summary {
    grid-template-columns: 82px 1fr 1fr;
  }

  .profile-field {
    border-left: 0;
    padding-left: 0;
  }

  .profile-grid,
  .payments-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-progress-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .premium-ring-area {
    min-height: auto;
  }
}

@media (max-height: 760px) {
  .logo-real {
    height: 54px;
    flex-basis: 54px;
    margin-bottom: 18px;
  }

  .side-nav {
    gap: 8px;
    margin-bottom: 26px;
  }

  .side-nav button {
    height: 41px;
  }

  .sidebar-building {
    flex-basis: 145px;
    height: 145px;
    min-height: 145px;
    max-height: 145px;
    margin-bottom: 14px;
  }

  .sidebar-user {
    flex-basis: 72px;
    height: 72px;
    min-height: 72px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px 10px;
  }

  .logo-real {
    height: 42px;
    flex-basis: 42px;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 18px;
  }

  .logo-real img {
    width: 60px;
    max-width: none;
  }

  .side-nav button {
    max-width: 54px;
    grid-template-columns: 1fr;
    justify-content: center;
    padding: 0;
  }

  .side-nav button span,
  .sidebar-building,
  .sidebar-user-info,
  .sidebar-user button {
    display: none;
  }

  .sidebar-user {
    grid-template-columns: 1fr;
    justify-items: center;
    height: 62px;
    min-height: 62px;
    flex-basis: 62px;
  }

  .workspace {
    padding: 18px 14px;
  }

  .topbar {
    left: 20px;
    right: 20px;
    justify-content: flex-end;
  }

  .page-title {
    padding-right: 0;
    padding-top: 52px;
  }

  .kpi-grid,
  .payments-kpi-grid,
  .payments-grid,
  .profile-grid,
  .projects-overview-grid,
  .doc-bottom-grid,
  .premium-facts,
  .premium-milestones,
  .income-balance-grid {
    grid-template-columns: 1fr !important;
  }

  .project-overview-card,
  .project-overview-card.full-project {
    grid-template-columns: 1fr;
  }

  .project-cover-img-wrap,
  .project-overview-card.full-project .project-cover-img-wrap {
    min-height: 220px;
  }

  .premium-progress-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .premium-progress-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .premium-ring {
    width: 210px;
    height: 210px;
  }

  .premium-ring-area {
    min-height: 210px;
  }

  .documents-toolbar {
    flex-wrap: wrap;
  }

  .document-search {
    flex-basis: 100%;
  }

  .profile-summary {
    grid-template-columns: 1fr;
  }

  .notifications-dropdown {
    right: 0;
    width: min(355px, calc(100vw - 32px));
  }

  .income-projects-head,
  .income-project-currency-line {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .summary-income-card {
    grid-template-columns: 1fr;
  }

  .distribution-row,
  .distribution-amounts {
    grid-template-columns: 1fr;
  }
}
.login-back-home {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  color: #061f46;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.login-back-home:hover {
  color: #0068ff;
}
.login-button span {
  display: inline-block !important;
  white-space: nowrap !important;
}
/* =====================================================
   PYR FIX FINAL LIMPIO - TABLAS Y PAGOS
   No toca las cards inferiores originales.
===================================================== */

.page,
.workspace,
.card,
.table-panel,
.list-panel {
  min-width: 0 !important;
}

/* HEADERS DE CARDS */

.section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  flex-wrap: nowrap !important;
}

.section-head h2 {
  margin: 0 !important;
  color: #0a2047 !important;
  font-size: 14px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.section-head button,
.text-link {
  border: 0 !important;
  background: transparent !important;
  color: var(--blue) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.panel-head {
  margin-bottom: 12px !important;
}

.panel-head h2 {
  margin: 0 !important;
  color: #0a2047 !important;
  font-size: 15.5px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.panel-head p {
  margin: 5px 0 0 !important;
  max-width: 100% !important;
  color: #4b668b !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}

/* PAGOS */

.payments-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--card-gap) !important;
  margin: 0 !important;
}

.list-panel {
  padding: 16px 18px !important;
  overflow: hidden !important;
}

.payment-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 118px 112px !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid var(--line-soft) !important;
}

.payment-row:last-child {
  border-bottom: 0 !important;
}

.payment-row strong {
  display: block !important;
  color: #0b2a5d !important;
  font-size: 12.5px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.payment-row span {
  display: block !important;
  margin-top: 3px !important;
  color: #607594 !important;
  font-size: 10.8px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* KPI */

.kpi-card {
  min-width: 0 !important;
}

.kpi-card label {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.money-stack {
  display: grid !important;
  gap: 2px !important;
  line-height: 1.14 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.money-stack span {
  display: block !important;
  white-space: nowrap !important;
}

/* TABLAS */

.investment-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 5px !important;
  -webkit-overflow-scrolling: touch !important;
}

.investment-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.investment-table-wrap::-webkit-scrollbar-track {
  background: #eef4fb;
  border-radius: 999px;
}

.investment-table-wrap::-webkit-scrollbar-thumb {
  background: #c8d7ea;
  border-radius: 999px;
}

.investment-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #aebfd6;
}

.investment-table,
.payments-table {
  width: max-content !important;
  min-width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
}

.investment-table th,
.payments-table th {
  padding: 0 12px 10px !important;
  border-bottom: 1px solid var(--line) !important;
  color: #617391 !important;
  font-size: 9.8px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-align: left !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.investment-table td,
.payments-table td {
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--line-soft) !important;
  color: #0a2b5e !important;
  font-size: 12.4px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.investment-table tr:last-child td,
.payments-table tr:last-child td {
  border-bottom: 0 !important;
}

.investment-table th:last-child,
.investment-table td:last-child,
.payments-table th:last-child,
.payments-table td:last-child {
  padding-right: 26px !important;
}

/* ANCHOS TABLA MIS INVERSIONES */

.investment-table th:nth-child(1),
.investment-table td:nth-child(1) {
  min-width: 118px !important;
}

.investment-table th:nth-child(2),
.investment-table td:nth-child(2) {
  min-width: 138px !important;
}

.investment-table th:nth-child(3),
.investment-table td:nth-child(3) {
  min-width: 112px !important;
}

.investment-table th:nth-child(4),
.investment-table td:nth-child(4) {
  min-width: 160px !important;
}

.investment-table th:nth-child(5),
.investment-table td:nth-child(5) {
  min-width: 164px !important;
}

.investment-table th:nth-child(6),
.investment-table td:nth-child(6) {
  min-width: 174px !important;
}

.investment-table th:nth-child(7),
.investment-table td:nth-child(7) {
  min-width: 152px !important;
}

.investment-table th:nth-child(8),
.investment-table td:nth-child(8) {
  min-width: 138px !important;
}

.investment-table th:nth-child(9),
.investment-table td:nth-child(9) {
  min-width: 98px !important;
}

/* ANCHOS TABLA PAGOS */

.payments-table th:nth-child(1),
.payments-table td:nth-child(1) {
  min-width: 120px !important;
}

.payments-table th:nth-child(2),
.payments-table td:nth-child(2) {
  min-width: 230px !important;
}

.payments-table th:nth-child(3),
.payments-table td:nth-child(3) {
  min-width: 130px !important;
}

.payments-table th:nth-child(4),
.payments-table td:nth-child(4) {
  min-width: 130px !important;
}

.payments-table th:nth-child(5),
.payments-table td:nth-child(5) {
  min-width: 135px !important;
}

.payments-table th:nth-child(6),
.payments-table td:nth-child(6) {
  min-width: 105px !important;
}

/* TEXTOS DE TABLA */

.investment-table td strong,
.payments-table td strong,
.money-main,
.money-green,
.money-blue {
  display: block !important;
  margin-bottom: 4px !important;
  font-size: 12.8px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.money-main {
  color: #082653 !important;
}

.money-green {
  color: #129755 !important;
}

.money-blue {
  color: #0068ff !important;
}

.cell-sub {
  display: block !important;
  font-size: 10.8px !important;
  line-height: 1.22 !important;
  color: #6b809e !important;
  white-space: nowrap !important;
}

.empty-row,
.empty-list {
  padding: 22px !important;
  border: 1px dashed #d8e2f0 !important;
  border-radius: 14px !important;
  background: #fbfdff !important;
  color: #6b809e !important;
  font-size: 13px !important;
  text-align: center !important;
}

/* PILLS */

.pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-height: 25px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.pill.blue {
  background: #eaf3ff !important;
  color: #0068ff !important;
}

.pill.green {
  background: #dcf8e6 !important;
  color: #129755 !important;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .payments-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .payment-row {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
    padding: 10px 0 !important;
  }

  .payment-row strong,
  .payment-row span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
  }

  .section-head h2 {
    white-space: nowrap !important;
  }

  .investment-table {
    min-width: 1240px !important;
  }

  .payments-table {
    min-width: 860px !important;
  }
}
/* =====================================================
   PYR FIX - DISTRIBUCIÓN POR MONEDA
   Mantiene el estilo original, separando USD y S/
===================================================== */

.summary-distribution-card {
  padding: 18px !important;
}

.pyr-dist-currency-block {
  margin-top: 18px;
}

.pyr-dist-currency-block + .pyr-dist-currency-block {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.pyr-dist-currency-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.pyr-dist-currency-head span {
  color: #617391;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pyr-dist-currency-head strong {
  color: #061f46;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.pyr-dist-row {
  margin-bottom: 12px;
}

.pyr-dist-row > strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pyr-dist-amounts {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
}

.pyr-dist-empty {
  padding: 22px;
  border: 1px dashed #d8e2f0;
  border-radius: 14px;
  background: #fbfdff;
  color: #6b809e;
  font-size: 13px;
  text-align: center;
}
/* =====================================================
   PYR LOGIN FINAL - IMAGEN COMPLETA + SIN SCROLL
   Pegar al final de styles.css
===================================================== */

/* Cuando está el login, evitamos scroll vertical */
html:has(.login-screen),
body:has(.login-screen) {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}

/* El contenedor del app también ocupa toda la pantalla */
#app:has(.login-screen) {
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

/* Pantalla de login completa */
.login-screen {
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr) !important;
  background: #f4f8fd !important;
  overflow: hidden !important;
}

/* Imagen acompañando toda la altura */
.login-visual {
  position: relative !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  background:
    linear-gradient(
      120deg,
      rgba(6, 31, 70, 0.46) 0%,
      rgba(6, 31, 70, 0.30) 45%,
      rgba(6, 31, 70, 0.16) 100%
    ),
    url("./assets/image-login.png") center center / cover no-repeat !important;
}

/* Texto sobre imagen mejor ubicado */
.login-copy {
  left: 48px !important;
  bottom: 36px !important;
  max-width: 560px !important;
  padding-right: 30px !important;
}

.login-copy h1 {
  margin: 0 0 12px !important;
  max-width: 620px !important;
  color: #ffffff !important;
  font-size: clamp(30px, 3.05vw, 40px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -0.055em !important;
}

.login-copy p {
  max-width: 560px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
}

/* Panel derecho centrado y sin scroll */
.login-panel {
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px 42px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at top right, rgba(0, 104, 255, 0.035), transparent 30%),
    #f4f8fd !important;
}

/* Card más compacto para que siempre entre */
.login-card {
  width: min(420px, 100%) !important;
  max-height: calc(100dvh - 48px) !important;
  padding: 30px 34px 32px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid #dfe8f4 !important;
  box-shadow:
    0 22px 58px rgba(10, 33, 70, 0.12),
    0 10px 26px rgba(10, 33, 70, 0.06) !important;
  overflow: hidden !important;
}

/* Volver al inicio */
.login-back-home {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  margin: 0 0 22px !important;
  color: #061f46 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.login-back-home:hover {
  color: #0068ff !important;
}

/* Logo */
.login-card .logo-real {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  flex-basis: auto !important;
  margin: 0 0 26px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.login-card .logo-real img {
  width: 205px !important;
  max-width: 205px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Títulos */
.login-card h2 {
  margin: 0 0 8px !important;
  color: #061f46 !important;
  font-size: 25px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
}

.login-card p {
  margin: 0 0 24px !important;
  color: #58708f !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

/* Campos */
.login-field {
  margin-bottom: 16px !important;
}

.login-field label {
  display: block !important;
  margin-bottom: 7px !important;
  color: #17345d !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.login-field input {
  width: 100% !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #d7e2f0 !important;
  border-radius: 13px !important;
  background: #fbfdff !important;
  color: #071f49 !important;
  font-size: 13px !important;
  outline: none !important;
}

.login-field input:focus {
  border-color: #8bbcff !important;
  box-shadow: 0 0 0 4px rgba(0, 104, 255, 0.10) !important;
}

/* Botón */
.login-button {
  width: 100% !important;
  height: 48px !important;
  margin-top: 10px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #061f46 !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 14px 26px rgba(6, 31, 70, 0.16) !important;
}

.login-button:hover {
  background: #0a2d63 !important;
}

.login-help {
  display: block !important;
  margin-top: 16px !important;
  color: #697c98 !important;
  font-size: 11.5px !important;
  text-align: center !important;
}

/* Error */
.login-error {
  margin: 12px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: #fff1f0 !important;
  border: 1px solid #ffd6d2 !important;
  color: #b42318 !important;
  font-size: 12px !important;
}

/* Pantallas con poca altura */
@media (max-height: 760px) {
  .login-panel {
    padding: 18px 36px !important;
  }

  .login-card {
    width: min(390px, 100%) !important;
    max-height: calc(100dvh - 36px) !important;
    padding: 22px 30px 24px !important;
    border-radius: 22px !important;
  }

  .login-back-home {
    margin-bottom: 16px !important;
    font-size: 11.5px !important;
  }

  .login-card .logo-real {
    margin-bottom: 18px !important;
  }

  .login-card .logo-real img {
    width: 180px !important;
    max-width: 180px !important;
  }

  .login-card h2 {
    font-size: 23px !important;
  }

  .login-card p {
    margin-bottom: 18px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .login-field {
    margin-bottom: 12px !important;
  }

  .login-field input {
    height: 42px !important;
  }

  .login-button {
    height: 44px !important;
  }

  .login-help {
    margin-top: 12px !important;
  }

  .login-copy {
    bottom: 30px !important;
  }

  .login-copy h1 {
    font-size: 32px !important;
  }

  .login-copy p {
    font-size: 13px !important;
  }
}

/* Pantallas muy bajas */
@media (max-height: 640px) {
  .login-card {
    padding: 18px 28px 20px !important;
  }

  .login-back-home {
    margin-bottom: 12px !important;
  }

  .login-card .logo-real {
    margin-bottom: 14px !important;
  }

  .login-card .logo-real img {
    width: 160px !important;
    max-width: 160px !important;
  }

  .login-card h2 {
    font-size: 21px !important;
  }

  .login-card p {
    margin-bottom: 14px !important;
    font-size: 11.5px !important;
  }

  .login-field {
    margin-bottom: 10px !important;
  }

  .login-field input {
    height: 39px !important;
  }

  .login-button {
    height: 41px !important;
    margin-top: 8px !important;
  }

  .login-help {
    margin-top: 10px !important;
    font-size: 10.8px !important;
  }
}

/* Tablet */
@media (max-width: 980px) {
  html:has(.login-screen),
  body:has(.login-screen),
  #app:has(.login-screen) {
    overflow: auto !important;
    height: auto !important;
    min-height: 100dvh !important;
  }

  .login-screen {
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    grid-template-columns: 1fr !important;
    overflow: auto !important;
  }

  .login-visual {
    min-height: 340px !important;
    height: 340px !important;
    max-height: 340px !important;
  }

  .login-copy {
    left: 32px !important;
    right: 32px !important;
    bottom: 30px !important;
  }

  .login-panel {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 34px 24px !important;
    overflow: visible !important;
  }

  .login-card {
    max-height: none !important;
  }
}

/* Móvil */
@media (max-width: 720px) {
  .login-visual {
    display: none !important;
  }

  .login-screen {
    min-height: 100dvh !important;
    display: grid !important;
    place-items: center !important;
    background: #f4f8fd !important;
  }

  .login-panel {
    width: 100% !important;
    min-height: 100dvh !important;
    display: grid !important;
    place-items: center !important;
    padding: 22px !important;
  }

  .login-card {
    width: 100% !important;
    padding: 28px 24px 30px !important;
  }
}
/* =====================================================
   PYR LOGIN FULLSCREEN IMAGE
   Imagen a pantalla completa + login flotante derecho
   Pegar al final de styles.css
===================================================== */

html:has(.login-screen),
body:has(.login-screen) {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}

#app:has(.login-screen) {
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

/* Contenedor principal del login */
.login-screen {
  position: relative !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  display: block !important;
  overflow: hidden !important;
  background: #061f46 !important;
}

/* Capa de imagen ocupando toda la pantalla */
.login-visual {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  display: block !important;
  background:
    linear-gradient(
      120deg,
      rgba(6, 31, 70, 0.54) 0%,
      rgba(6, 31, 70, 0.36) 42%,
      rgba(6, 31, 70, 0.14) 100%
    ),
    url("./assets/image-login.png") center center / cover no-repeat !important;
}

/* Gradiente para que el login se lea bien sin tapar totalmente la imagen */
.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(6, 31, 70, 0.08) 0%,
      rgba(6, 31, 70, 0.04) 42%,
      rgba(244, 248, 253, 0.50) 61%,
      rgba(244, 248, 253, 0.88) 78%,
      rgba(244, 248, 253, 0.96) 100%
    );
}

/* Texto de la imagen */
.login-copy {
  position: absolute !important;
  z-index: 2 !important;
  left: 48px !important;
  bottom: 34px !important;
  max-width: 600px !important;
  padding-right: 40px !important;
  color: #ffffff !important;
}

.login-copy h1 {
  margin: 0 0 12px !important;
  max-width: 660px !important;
  color: #ffffff !important;
  font-size: clamp(32px, 3.15vw, 42px) !important;
  line-height: 1.06 !important;
  font-weight: 800 !important;
  letter-spacing: -0.06em !important;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.24) !important;
}

.login-copy p {
  max-width: 560px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

/* Panel del login encima de la imagen */
.login-panel {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 0 clamp(74px, 7vw, 112px) 0 48px !important;
  overflow: hidden !important;
  background: transparent !important;
}

/* Card del login */
.login-card {
  width: min(420px, 100%) !important;
  max-height: calc(100dvh - 52px) !important;
  padding: 30px 34px 32px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(223, 232, 244, 0.92) !important;
  box-shadow:
    0 28px 70px rgba(10, 33, 70, 0.18),
    0 12px 28px rgba(10, 33, 70, 0.08) !important;
  backdrop-filter: blur(18px) !important;
  overflow: hidden !important;
}

/* Volver al inicio */
.login-back-home {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  margin: 0 0 22px !important;
  color: #061f46 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.login-back-home:hover {
  color: #0068ff !important;
}

/* Logo */
.login-card .logo-real {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  flex-basis: auto !important;
  margin: 0 0 26px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.login-card .logo-real img {
  width: 205px !important;
  max-width: 205px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Títulos */
.login-card h2 {
  margin: 0 0 8px !important;
  color: #061f46 !important;
  font-size: 25px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
}

.login-card p {
  margin: 0 0 24px !important;
  color: #58708f !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

/* Campos */
.login-field {
  margin-bottom: 16px !important;
}

.login-field label {
  display: block !important;
  margin-bottom: 7px !important;
  color: #17345d !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.login-field input {
  width: 100% !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #d7e2f0 !important;
  border-radius: 13px !important;
  background: rgba(251, 253, 255, 0.96) !important;
  color: #071f49 !important;
  font-size: 13px !important;
  outline: none !important;
}

.login-field input:focus {
  border-color: #8bbcff !important;
  box-shadow: 0 0 0 4px rgba(0, 104, 255, 0.10) !important;
}

/* Botón */
.login-button {
  width: 100% !important;
  height: 48px !important;
  margin-top: 10px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #061f46 !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 14px 26px rgba(6, 31, 70, 0.16) !important;
}

.login-button:hover {
  background: #0a2d63 !important;
}

.login-help {
  display: block !important;
  margin-top: 16px !important;
  color: #697c98 !important;
  font-size: 11.5px !important;
  text-align: center !important;
}

/* Error */
.login-error {
  margin: 12px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: #fff1f0 !important;
  border: 1px solid #ffd6d2 !important;
  color: #b42318 !important;
  font-size: 12px !important;
}

/* Pantallas con poca altura */
@media (max-height: 760px) {
  .login-panel {
    padding-right: clamp(54px, 6vw, 88px) !important;
  }

  .login-card {
    width: min(390px, 100%) !important;
    max-height: calc(100dvh - 36px) !important;
    padding: 22px 30px 24px !important;
    border-radius: 22px !important;
  }

  .login-back-home {
    margin-bottom: 16px !important;
    font-size: 11.5px !important;
  }

  .login-card .logo-real {
    margin-bottom: 18px !important;
  }

  .login-card .logo-real img {
    width: 180px !important;
    max-width: 180px !important;
  }

  .login-card h2 {
    font-size: 23px !important;
  }

  .login-card p {
    margin-bottom: 18px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .login-field {
    margin-bottom: 12px !important;
  }

  .login-field input {
    height: 42px !important;
  }

  .login-button {
    height: 44px !important;
  }

  .login-help {
    margin-top: 12px !important;
  }

  .login-copy {
    bottom: 30px !important;
  }

  .login-copy h1 {
    font-size: 32px !important;
  }

  .login-copy p {
    font-size: 13px !important;
  }
}

/* Pantallas muy bajas */
@media (max-height: 640px) {
  .login-card {
    padding: 18px 28px 20px !important;
  }

  .login-back-home {
    margin-bottom: 12px !important;
  }

  .login-card .logo-real {
    margin-bottom: 14px !important;
  }

  .login-card .logo-real img {
    width: 160px !important;
    max-width: 160px !important;
  }

  .login-card h2 {
    font-size: 21px !important;
  }

  .login-card p {
    margin-bottom: 14px !important;
    font-size: 11.5px !important;
  }

  .login-field {
    margin-bottom: 10px !important;
  }

  .login-field input {
    height: 39px !important;
  }

  .login-button {
    height: 41px !important;
    margin-top: 8px !important;
  }

  .login-help {
    margin-top: 10px !important;
    font-size: 10.8px !important;
  }
}

/* Tablet */
@media (max-width: 980px) {
  html:has(.login-screen),
  body:has(.login-screen),
  #app:has(.login-screen) {
    overflow: auto !important;
    height: auto !important;
    min-height: 100dvh !important;
  }

  .login-screen {
    min-height: 100dvh !important;
    height: auto !important;
    max-height: none !important;
    overflow: auto !important;
  }

  .login-screen::after {
    background: rgba(244, 248, 253, 0.58) !important;
  }

  .login-visual {
    position: fixed !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
  }

  .login-copy {
    display: none !important;
  }

  .login-panel {
    min-height: 100dvh !important;
    height: auto !important;
    max-height: none !important;
    justify-content: center !important;
    padding: 34px 24px !important;
    overflow: visible !important;
  }

  .login-card {
    max-height: none !important;
  }
}

/* Móvil */
@media (max-width: 720px) {
  .login-panel {
    padding: 22px !important;
  }

  .login-card {
    width: 100% !important;
    padding: 28px 24px 30px !important;
  }
}
/* =====================================================
   PYR LOGIN FINAL - FULL IMAGE + CARD FLOTANTE
   Pegar al final de styles.css
===================================================== */

html:has(.login-screen),
body:has(.login-screen) {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}

#app:has(.login-screen) {
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

/* Pantalla completa */
.login-screen {
  position: relative !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  display: block !important;
  overflow: hidden !important;
  background: #061f46 !important;
}

/* Imagen ocupando toda la pantalla */
.login-visual {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  display: block !important;
  overflow: hidden !important;
  background:
    linear-gradient(
      90deg,
      rgba(6, 31, 70, 0.62) 0%,
      rgba(6, 31, 70, 0.42) 34%,
      rgba(6, 31, 70, 0.12) 58%,
      rgba(6, 31, 70, 0.08) 100%
    ),
    url("./assets/image-login.png") center center / cover no-repeat !important;
}

/* Quita el velo blanco excesivo anterior */
.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 82% 50%,
      rgba(244, 248, 253, 0.42) 0%,
      rgba(244, 248, 253, 0.22) 25%,
      rgba(244, 248, 253, 0.04) 48%,
      transparent 68%
    ),
    linear-gradient(
      90deg,
      rgba(6, 31, 70, 0.12) 0%,
      rgba(6, 31, 70, 0.04) 50%,
      rgba(244, 248, 253, 0.12) 100%
    ) !important;
}

/* Texto izquierdo más legible */
.login-copy {
  position: absolute !important;
  z-index: 2 !important;
  left: clamp(42px, 5vw, 72px) !important;
  bottom: clamp(34px, 7vh, 72px) !important;
  max-width: 620px !important;
  padding: 0 !important;
  color: #ffffff !important;
}

.login-copy::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -30px;
  width: min(640px, 48vw);
  height: calc(100% + 60px);
  z-index: -1;
  border-radius: 30px;
  background:
    linear-gradient(
      90deg,
      rgba(6, 31, 70, 0.56),
      rgba(6, 31, 70, 0.28) 58%,
      transparent 100%
    );
  filter: blur(0.2px);
}

.login-copy h1 {
  margin: 0 0 14px !important;
  max-width: 620px !important;
  color: #ffffff !important;
  font-size: clamp(34px, 3.4vw, 50px) !important;
  line-height: 1.04 !important;
  font-weight: 600 !important;
  letter-spacing: -0.055em !important;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28) !important;
}

.login-copy p {
  max-width: 560px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 450 !important;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

/* Panel derecho flotante */
.login-panel {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 0 clamp(62px, 6.5vw, 110px) 0 48px !important;
  overflow: hidden !important;
  background: transparent !important;
}

/* Card del login */
.login-card {
  width: min(420px, 100%) !important;
  max-height: calc(100dvh - 54px) !important;
  padding: 30px 34px 32px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.965) !important;
  border: 1px solid rgba(223, 232, 244, 0.96) !important;
  box-shadow:
    0 30px 74px rgba(6, 31, 70, 0.22),
    0 12px 30px rgba(6, 31, 70, 0.10) !important;
  backdrop-filter: blur(18px) !important;
  overflow: hidden !important;
}

/* Volver */
.login-back-home {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  margin: 0 0 22px !important;
  color: #061f46 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.login-back-home:hover {
  color: #0068ff !important;
}

/* Logo */
.login-card .logo-real {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  flex-basis: auto !important;
  margin: 0 0 26px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.login-card .logo-real img {
  width: 205px !important;
  max-width: 205px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Títulos */
.login-card h2 {
  margin: 0 0 8px !important;
  color: #061f46 !important;
  font-size: 25px !important;
  line-height: 1.12 !important;
  font-weight: 650 !important;
  letter-spacing: -0.045em !important;
}

.login-card p {
  margin: 0 0 24px !important;
  color: #58708f !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
}

/* Campos */
.login-field {
  margin-bottom: 16px !important;
}

.login-field label {
  display: block !important;
  margin-bottom: 7px !important;
  color: #17345d !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

.login-field input {
  width: 100% !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #d7e2f0 !important;
  border-radius: 13px !important;
  background: rgba(251, 253, 255, 0.96) !important;
  color: #071f49 !important;
  font-size: 13px !important;
  outline: none !important;
}

.login-field input:focus {
  border-color: #8bbcff !important;
  box-shadow: 0 0 0 4px rgba(0, 104, 255, 0.10) !important;
}

/* Botón */
.login-button {
  width: 100% !important;
  height: 48px !important;
  margin-top: 10px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #061f46 !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  cursor: pointer !important;
  box-shadow: 0 14px 26px rgba(6, 31, 70, 0.16) !important;
}

.login-button:hover {
  background: #0a2d63 !important;
}

.login-help {
  display: block !important;
  margin-top: 16px !important;
  color: #697c98 !important;
  font-size: 11.5px !important;
  text-align: center !important;
}

/* Error */
.login-error {
  margin: 12px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: #fff1f0 !important;
  border: 1px solid #ffd6d2 !important;
  color: #b42318 !important;
  font-size: 12px !important;
}

/* Pantallas bajas */
@media (max-height: 760px) {
  .login-panel {
    padding-right: clamp(48px, 6vw, 88px) !important;
  }

  .login-card {
    width: min(390px, 100%) !important;
    max-height: calc(100dvh - 36px) !important;
    padding: 22px 30px 24px !important;
    border-radius: 22px !important;
  }

  .login-back-home {
    margin-bottom: 16px !important;
    font-size: 11.5px !important;
  }

  .login-card .logo-real {
    margin-bottom: 18px !important;
  }

  .login-card .logo-real img {
    width: 180px !important;
    max-width: 180px !important;
  }

  .login-card h2 {
    font-size: 23px !important;
  }

  .login-card p {
    margin-bottom: 18px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .login-field {
    margin-bottom: 12px !important;
  }

  .login-field input {
    height: 42px !important;
  }

  .login-button {
    height: 44px !important;
  }

  .login-help {
    margin-top: 12px !important;
  }

  .login-copy h1 {
    font-size: 34px !important;
  }

  .login-copy p {
    font-size: 13px !important;
  }
}

/* Pantallas muy bajas */
@media (max-height: 640px) {
  .login-card {
    padding: 18px 28px 20px !important;
  }

  .login-back-home {
    margin-bottom: 12px !important;
  }

  .login-card .logo-real {
    margin-bottom: 14px !important;
  }

  .login-card .logo-real img {
    width: 160px !important;
    max-width: 160px !important;
  }

  .login-card h2 {
    font-size: 21px !important;
  }

  .login-card p {
    margin-bottom: 14px !important;
    font-size: 11.5px !important;
  }

  .login-field {
    margin-bottom: 10px !important;
  }

  .login-field input {
    height: 39px !important;
  }

  .login-button {
    height: 41px !important;
    margin-top: 8px !important;
  }

  .login-help {
    margin-top: 10px !important;
    font-size: 10.8px !important;
  }
}

/* Tablet */
@media (max-width: 980px) {
  html:has(.login-screen),
  body:has(.login-screen),
  #app:has(.login-screen) {
    overflow: auto !important;
    height: auto !important;
    min-height: 100dvh !important;
  }

  .login-screen {
    min-height: 100dvh !important;
    height: auto !important;
    max-height: none !important;
    overflow: auto !important;
  }

  .login-visual {
    position: fixed !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
  }

  .login-screen::after {
    background: rgba(244, 248, 253, 0.56) !important;
  }

  .login-copy {
    display: none !important;
  }

  .login-panel {
    min-height: 100dvh !important;
    height: auto !important;
    max-height: none !important;
    justify-content: center !important;
    padding: 34px 24px !important;
    overflow: visible !important;
  }

  .login-card {
    max-height: none !important;
  }
}

/* Móvil */
@media (max-width: 720px) {
  .login-panel {
    padding: 22px !important;
  }

  .login-card {
    width: 100% !important;
    padding: 28px 24px 30px !important;
  }
}
/* =====================================================
   PYR PORTAL - TIPOGRAFÍA MÁS LIVIANA Y PREMIUM
   Pegar al final de styles.css
===================================================== */

/* Base general más fina */
html,
body,
#app {
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

body {
  font-weight: 400 !important;
}

/* Evita que los bold generales se vean demasiado pesados */
#app strong,
#app b {
  font-weight: 600 !important;
}

/* =====================================================
   LOGIN
===================================================== */

.login-copy h1 {
  font-weight: 500 !important;
  letter-spacing: -0.055em !important;
}

.login-copy p {
  font-weight: 400 !important;
}

.login-card h2 {
  font-weight: 600 !important;
  letter-spacing: -0.045em !important;
}

.login-card p {
  font-weight: 400 !important;
}

.login-back-home {
  font-weight: 500 !important;
}

.login-field label {
  font-weight: 500 !important;
}

.login-field input {
  font-weight: 400 !important;
}

.login-button {
  font-weight: 600 !important;
}

/* =====================================================
   SIDEBAR Y TOPBAR
===================================================== */

.side-nav button {
  font-weight: 400 !important;
}

.side-nav button.active,
.side-nav button:hover {
  font-weight: 500 !important;
}

.sidebar-user-info strong,
.top-user strong {
  font-weight: 500 !important;
}

.sidebar-user-info span,
.top-user span {
  font-weight: 400 !important;
}

.avatar {
  font-weight: 600 !important;
}

/* =====================================================
   TÍTULOS PRINCIPALES
===================================================== */

.page-title h1 {
  font-weight: 600 !important;
  letter-spacing: -0.045em !important;
  color: #071f49 !important;
}

.page-title p {
  font-weight: 400 !important;
  color: #5d7190 !important;
}

.panel-head h2,
.section-head h2,
.summary-card-title,
.income-redesign-head h2,
.income-projects-head h3,
.profile-card-head h2,
.notifications-head h3,
.metrics-box h2 {
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  color: #071f49 !important;
}

.panel-head p,
.section-head p,
.income-redesign-head p,
.income-projects-head span {
  font-weight: 400 !important;
  color: #5d7190 !important;
}

/* =====================================================
   KPI CARDS
===================================================== */

.kpi-card label {
  font-weight: 400 !important;
  color: #526984 !important;
}

.kpi-card strong,
.money-stack {
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
  color: #071f49 !important;
}

.money-stack span {
  font-weight: 600 !important;
}

.money-stack span + span {
  font-weight: 500 !important;
  color: #415b7d !important;
}

.kpi-card p {
  font-weight: 400 !important;
  color: #647894 !important;
}

.kpi-card p.positive,
.kpi-card p.primary {
  font-weight: 500 !important;
}

/* =====================================================
   TABLAS
===================================================== */

.investment-table th,
.payments-table th,
.documents-table th {
  font-weight: 600 !important;
  letter-spacing: 0.015em !important;
  color: #667993 !important;
}

.investment-table td,
.payments-table td,
.documents-table td {
  font-weight: 400 !important;
}

.investment-table td strong,
.payments-table td strong,
.documents-table td strong,
.cell-title,
.file-cell strong {
  font-weight: 500 !important;
  color: #0a2b5e !important;
}

.cell-sub,
.file-cell span,
.payment-row span,
.simple-row span,
.activity-item span,
.notification-row p,
.info-line span {
  font-weight: 400 !important;
  color: #667993 !important;
}

/* Montos: presentes, pero no pesados */
.money-main,
.money-green,
.money-blue {
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

.money-main {
  color: #071f49 !important;
}

.money-green {
  color: #14945a !important;
}

.money-blue {
  color: #0068ff !important;
}

/* Badges */
.pill,
.timeline-status {
  font-weight: 500 !important;
}

/* =====================================================
   PAGOS
===================================================== */

.payment-row strong {
  font-weight: 500 !important;
  color: #0a2b5e !important;
}

.payment-row span {
  font-weight: 400 !important;
}

/* =====================================================
   DISTRIBUCIÓN Y RENDIMIENTO
===================================================== */

.distribution-row strong,
.pyr-dist-currency-head strong,
.distribution-amount strong {
  font-weight: 600 !important;
}

.pyr-dist-currency-head span,
.distribution-amount span {
  font-weight: 400 !important;
}

.distribution-segment {
  font-weight: 500 !important;
}

.income-balance-card span,
.income-project-card-head span,
.income-project-currency-line span {
  font-weight: 400 !important;
}

.income-balance-card strong,
.income-project-currency-line strong {
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
}

.income-balance-card small,
.income-project-currency-line small {
  font-weight: 500 !important;
}

.income-project-card h4 {
  font-weight: 600 !important;
}

/* =====================================================
   PROYECTOS
===================================================== */

.project-overview-card h2 {
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
}

.project-badge {
  font-weight: 500 !important;
}

.project-location,
.project-description,
.delivery-row span,
.project-location-premium,
.progress-date {
  font-weight: 400 !important;
}

.delivery-row strong {
  font-weight: 500 !important;
}

.premium-ring-value,
.premium-ring-value small {
  font-weight: 500 !important;
}

.premium-fact span,
.premium-milestone span {
  font-weight: 400 !important;
}

.premium-fact strong,
.premium-milestone strong,
.premium-milestones-title {
  font-weight: 600 !important;
}

/* =====================================================
   DOCUMENTOS
===================================================== */

.doc-filter {
  font-weight: 500 !important;
}

.table-actions button {
  font-weight: 500 !important;
}

/* =====================================================
   PERFIL
===================================================== */

.profile-identity h2 {
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
}

.profile-identity p,
.profile-field span {
  font-weight: 400 !important;
}

.profile-identity a,
.profile-field strong,
.info-line strong {
  font-weight: 500 !important;
}

/* =====================================================
   NOTIFICACIONES
===================================================== */

.notification-row strong {
  font-weight: 500 !important;
}

.notification-row small {
  font-weight: 400 !important;
}

/* =====================================================
   BOTONES Y LINKS
===================================================== */

button,
.text-link,
.section-head button,
.notifications-head button {
  font-weight: 500 !important;
}

/* =====================================================
   SUAVIZADO GENERAL DE COLOR
===================================================== */

.page-title h1,
.panel-head h2,
.section-head h2,
.kpi-card strong,
.money-stack,
.project-overview-card h2,
.profile-identity h2,
.login-card h2 {
  color: #082653 !important;
}

.page-title p,
.panel-head p,
.section-head p,
.cell-sub,
.payment-row span,
.project-description,
.profile-identity p,
.login-card p {
  color: #607594 !important;
}
.login-card .logo-real img,
.sidebar-logo img {
  width: 145px !important;
  max-width: 145px !important;
  height: auto !important;
  display: block !important;
}

.login-card .logo-real,
.sidebar-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* LOGIN - CARD UN POCO MÁS ANCHA PARA EL LOGO */
.login-card {
  width: min(460px, 100%) !important;
  padding-left: 34px !important;
  padding-right: 34px !important;
}

.login-card .logo-real img {
  width: 190px !important;
  max-width: 190px !important;
  height: auto !important;
}

.login-card .logo-real {
  margin-bottom: 18px !important;
}
/* =====================================================
   MOBILE PREMIUM DASHBOARD - PYR INVERSIONES
===================================================== */

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at top, rgba(0, 104, 255, 0.045), transparent 34%),
      #f5f8fc !important;
  }

  .app-shell {
    display: block !important;
    min-height: 100dvh !important;
    padding: 0 !important;
  }

  /* Header móvil premium */
  .sidebar {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 18px 18px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    background:
      linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(6, 31, 70, 0.08) !important;
    box-shadow: 0 12px 30px rgba(21, 46, 85, 0.055) !important;
  }

  .sidebar .logo-real {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .sidebar .logo-real img {
    width: 190px !important;
    max-width: 68vw !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
  }

  .sidebar .logo-real::after {
    content: "Portal privado";
    margin-top: 7px;
    color: #607594;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .sidebar-building,
  .sidebar-spacer {
    display: none !important;
  }

  /* Tarjeta del inversionista */
  .sidebar-user {
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    min-height: 58px !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    margin: 4px auto 0 !important;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border-radius: 18px !important;
    background:
      radial-gradient(circle at top right, rgba(0, 104, 255, 0.065), transparent 38%),
      #ffffff !important;
    border: 1px solid #dfe8f4 !important;
    box-shadow: 0 10px 24px rgba(21, 46, 85, 0.06) !important;
  }

  .sidebar-user .avatar.sm {
    order: 2 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 13px !important;
  }

  .sidebar-user-info {
    order: 1 !important;
    display: block !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  .sidebar-user-info strong {
    display: block !important;
    max-width: 230px !important;
    color: #061f46 !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sidebar-user-info span {
    display: block !important;
    margin-top: 5px !important;
    color: #0068ff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
  }

  .sidebar-user button {
    display: none !important;
  }

  /* Campana superior derecha */
  .topbar {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    z-index: 120 !important;
    display: flex !important;
    align-items: center !important;
  }

  .top-actions {
    gap: 0 !important;
  }

  .bell-button {
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 22px rgba(21, 46, 85, 0.12) !important;
  }

  .bell-button svg {
    width: 17px !important;
    height: 17px !important;
  }

  .top-user {
    display: none !important;
  }

  .notifications-dropdown {
    position: fixed !important;
    top: 64px !important;
    right: 14px !important;
    width: min(360px, calc(100vw - 28px)) !important;
  }

  /* Navegación inferior tipo app */
  .side-nav {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    z-index: 120 !important;
    width: auto !important;
    height: 66px !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
    border-radius: 22px !important;
    background: #061f46 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
      0 18px 42px rgba(6, 31, 70, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  .side-nav button {
    width: 100% !important;
    max-width: none !important;
    height: 52px !important;
    padding: 5px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

  .side-nav button svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2 !important;
  }

  .side-nav button span {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .side-nav button.active {
    background: #ffffff !important;
    color: #061f46 !important;
  }

  .side-nav button:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
  }

  .side-nav button.active:hover {
    background: #ffffff !important;
    color: #061f46 !important;
  }

  /* Contenido */
  .workspace {
    width: 100% !important;
    min-width: 0 !important;
    padding: 18px 14px calc(96px + env(safe-area-inset-bottom)) !important;
  }

  .page {
    gap: 14px !important;
  }

  .page-title {
    padding: 0 !important;
    margin-bottom: 2px !important;
  }

  .page-title h1 {
    font-size: 22px !important;
    line-height: 1.08 !important;
  }

  .page-title p {
    max-width: 94% !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .kpi-grid,
  .payments-kpi-grid,
  .payments-grid,
  .profile-grid,
  .projects-overview-grid,
  .doc-bottom-grid,
  .premium-facts,
  .premium-milestones,
  .income-balance-grid {
    grid-template-columns: 1fr !important;
  }

  .kpi-card {
    min-height: 88px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .table-panel,
  .summary-distribution-card,
  .summary-income-card,
  .summary-income-card.income-redesign {
    border-radius: 18px !important;
  }

  .investment-table {
    min-width: 820px !important;
  }
}

@media (max-width: 390px) {
  .sidebar {
    padding: 16px 14px 12px !important;
  }

  .sidebar .logo-real img {
    width: 168px !important;
  }

  .sidebar-user {
    min-height: 54px !important;
    padding: 11px 12px !important;
  }

  .sidebar-user-info strong {
    max-width: 190px !important;
    font-size: 12.5px !important;
  }

  .side-nav {
    left: 10px !important;
    right: 10px !important;
    height: 62px !important;
    border-radius: 20px !important;
  }

  .side-nav button {
    height: 48px !important;
    font-size: 8.8px !important;
  }

  .side-nav button svg {
    width: 17px !important;
    height: 17px !important;
  }

  .workspace {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
/* =====================================================
   PORTAL - PROYECTOS DESPLEGABLES PYR
===================================================== */

.portal-projects-page {
  gap: 22px !important;
}

.portal-projects-head {
  padding-right: 280px;
  margin-bottom: 8px;
}

.portal-projects-head h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.portal-projects-head p {
  margin: 0;
  max-width: 760px;
  color: rgba(6, 31, 70, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

.portal-projects-list {
  display: grid;
  gap: 18px;
}

.portal-project-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(6, 31, 70, 0.10);
  box-shadow:
    0 14px 34px rgba(6, 31, 70, 0.06),
    0 6px 16px rgba(180, 130, 69, 0.035);
}

.portal-project-summary {
  width: 100%;
  min-height: 132px;
  padding: 0;
  border: 0;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(480px, 0.9fr);
  gap: 0;
  align-items: stretch;
  text-align: left;
  cursor: pointer;
}

.portal-project-left {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: center;
}

.portal-project-thumb {
  width: 205px;
  height: 132px;
  overflow: hidden;
  background: #eaf3ff;
  border-right: 1px solid rgba(6, 31, 70, 0.08);
}

.portal-project-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.portal-project-main {
  padding: 0 28px;
}

.portal-project-main span {
  display: block;
  margin-bottom: 11px;
  color: #b48245;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-project-main h2 {
  margin: 0 0 9px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.portal-project-main p {
  margin: 0;
  color: rgba(6, 31, 70, 0.68);
  font-size: 13px;
  font-weight: 600;
}

.portal-project-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 50px;
  align-items: center;
  padding-right: 18px;
}

.portal-project-data > div {
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(6, 31, 70, 0.09);
}

.portal-project-data span {
  display: block;
  margin-bottom: 8px;
  color: rgba(6, 31, 70, 0.62);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.portal-project-data strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
}

.portal-project-percent strong {
  color: #b48245;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.portal-project-chevron {
  width: 34px;
  height: 34px;
  margin: 0 !important;
  border-radius: 999px;
  display: grid !important;
  place-items: center;
  color: var(--navy) !important;
  font-size: 22px !important;
  font-weight: 700;
  transition: transform 0.22s ease;
}

.portal-project-card.is-open .portal-project-chevron {
  transform: rotate(180deg);
}

.portal-project-panel {
  display: none;
  padding: 0 22px 22px;
}

.portal-project-card.is-open .portal-project-panel {
  display: block;
}

.portal-project-panel-inner {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(6, 31, 70, 0.10);
  background:
    radial-gradient(circle at top right, rgba(180, 130, 69, 0.035), transparent 34%),
    #ffffff;
}

.portal-progress-block {
  margin-bottom: 22px;
}

.portal-progress-head {
  margin-bottom: 12px;
}

.portal-progress-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.portal-progress-head strong {
  color: #b48245;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.portal-progress-bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(6, 31, 70, 0.08);
}

.portal-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b48245, #c3975b);
}

.portal-project-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.portal-detail-item {
  min-height: 88px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fbfaf7;
  border: 1px solid rgba(6, 31, 70, 0.06);
}

.portal-detail-item span {
  display: block;
  margin-bottom: 10px;
  color: rgba(6, 31, 70, 0.60);
  font-size: 12px;
  font-weight: 600;
}

.portal-detail-item strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.portal-doc-row {
  min-height: 70px;
  margin-bottom: 20px;
  padding: 0 22px;
  border-radius: 14px;
  background: #fbfaf7;
  border: 1px solid rgba(6, 31, 70, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-doc-row span {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.portal-doc-row strong {
  display: block;
  margin-top: 6px;
  color: #b48245;
  font-size: 13px;
  font-weight: 700;
}

.portal-doc-row > span {
  color: #b48245;
  font-size: 30px;
  line-height: 1;
}

.portal-project-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.portal-btn {
  height: 44px;
  min-width: 160px;
  padding: 0 22px;
  border-radius: 10px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.portal-btn svg {
  width: 17px;
  height: 17px;
}

.portal-btn-secondary {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid rgba(6, 31, 70, 0.28);
}

.portal-btn-primary {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(6, 31, 70, 0.14);
}

@media (max-width: 1180px) {
  .portal-projects-head {
    padding-right: 0;
  }

  .portal-project-summary {
    grid-template-columns: 1fr;
  }

  .portal-project-data {
    padding: 16px 18px 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 42px;
  }
}

@media (max-width: 760px) {
  .portal-projects-head h1 {
    font-size: 36px;
  }

  .portal-project-left {
    grid-template-columns: 1fr;
  }

  .portal-project-thumb {
    width: 100%;
    height: 210px;
    border-right: 0;
    border-bottom: 1px solid rgba(6, 31, 70, 0.08);
  }

  .portal-project-main {
    padding: 20px;
  }

  .portal-project-data {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .portal-project-data > div {
    border-left: 0;
    border-top: 1px solid rgba(6, 31, 70, 0.08);
    padding: 14px 0 0;
    min-height: auto;
  }

  .portal-project-detail-grid {
    grid-template-columns: 1fr;
  }

  .portal-project-actions {
    flex-direction: column;
  }

  .portal-btn {
    width: 100%;
  }
}
/* =====================================================
   FIX PROYECTOS DASHBOARD - CARDS MÁS LIMPIAS
===================================================== */

.portal-projects-page {
  gap: 18px !important;
}

.portal-projects-head {
  margin-bottom: 18px !important;
}

.portal-projects-head h1 {
  font-size: 40px !important;
  line-height: 1 !important;
}

.portal-projects-head p {
  font-size: 13.5px !important;
  max-width: 720px !important;
}

/* Lista */
.portal-projects-list {
  display: grid !important;
  gap: 18px !important;
}

/* Card general */
.portal-project-card {
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid rgba(6, 31, 70, 0.10) !important;
  box-shadow:
    0 12px 28px rgba(6, 31, 70, 0.055),
    0 6px 14px rgba(180, 130, 69, 0.025) !important;
  overflow: hidden !important;
}

/* Header de la card */
.portal-project-summary {
  min-height: 136px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(460px, 1.1fr) minmax(430px, 0.9fr) !important;
  align-items: center !important;
  background: #ffffff !important;
}

/* Lado izquierdo */
.portal-project-left {
  display: grid !important;
  grid-template-columns: 190px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 18px 0 18px 22px !important;
}

.portal-project-thumb {
  width: 190px !important;
  height: 118px !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #eef3f8 !important;
  border: 0 !important;
}

.portal-project-thumb img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Texto principal */
.portal-project-main {
  padding: 0 !important;
}

.portal-project-main span {
  display: block !important;
  margin-bottom: 9px !important;
  color: #b48245 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

.portal-project-main h2 {
  margin: 0 0 8px !important;
  color: var(--navy) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 34px !important;
  line-height: 0.95 !important;
  font-weight: 500 !important;
  letter-spacing: -0.045em !important;
}

.portal-project-main p {
  margin: 0 !important;
  color: rgba(6, 31, 70, 0.68) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

/* Lado derecho con datos */
.portal-project-data {
  height: 100% !important;
  display: grid !important;
  grid-template-columns: 0.8fr 1fr 1fr 42px !important;
  align-items: center !important;
  padding: 0 18px 0 0 !important;
}

.portal-project-data > div {
  min-height: 64px !important;
  padding: 0 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  border-left: 1px solid rgba(6, 31, 70, 0.10) !important;
}

.portal-project-data span {
  display: block !important;
  margin-bottom: 8px !important;
  color: rgba(6, 31, 70, 0.62) !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.portal-project-data strong {
  display: block !important;
  color: var(--navy) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Porcentaje */
.portal-project-percent strong {
  color: #b48245 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: -0.04em !important;
  white-space: nowrap !important;
}

/* Flecha */
.portal-project-chevron {
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  color: var(--navy) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  transition: transform 0.22s ease !important;
}

.portal-project-card.is-open .portal-project-chevron {
  transform: rotate(180deg) !important;
}

/* Panel desplegado */
.portal-project-panel {
  display: none !important;
  padding: 0 22px 22px !important;
}

.portal-project-card.is-open .portal-project-panel {
  display: block !important;
}

.portal-project-panel-inner {
  padding: 22px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(6, 31, 70, 0.10) !important;
  background:
    radial-gradient(circle at top right, rgba(180, 130, 69, 0.035), transparent 34%),
    #ffffff !important;
}

/* Barra de estado */
.portal-progress-block {
  margin-bottom: 20px !important;
}

.portal-progress-head {
  margin-bottom: 10px !important;
}

.portal-progress-head span {
  display: block !important;
  margin-bottom: 6px !important;
  color: var(--navy) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.portal-progress-head strong {
  color: #b48245 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}

.portal-progress-bar {
  height: 10px !important;
  border-radius: 999px !important;
  background: rgba(6, 31, 70, 0.08) !important;
  overflow: hidden !important;
}

.portal-progress-bar span {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #b48245, #c3975b) !important;
}

/* Detalles desplegados */
.portal-project-detail-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}

.portal-detail-item {
  min-height: 78px !important;
  padding: 18px 20px !important;
  border-radius: 14px !important;
  background: #fbfaf7 !important;
  border: 1px solid rgba(6, 31, 70, 0.06) !important;
}

.portal-detail-item span {
  display: block !important;
  margin-bottom: 9px !important;
  color: rgba(6, 31, 70, 0.60) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

.portal-detail-item strong {
  color: var(--navy) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* Documentos */
.portal-doc-row {
  min-height: 66px !important;
  margin-bottom: 18px !important;
  padding: 0 20px !important;
  border-radius: 14px !important;
  background: #fbfaf7 !important;
  border: 1px solid rgba(6, 31, 70, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.portal-doc-row span {
  color: var(--navy) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.portal-doc-row strong {
  display: block !important;
  margin-top: 5px !important;
  color: #b48245 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

.portal-doc-row > span {
  color: #b48245 !important;
  font-size: 28px !important;
}

/* Botones */
.portal-project-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.portal-btn {
  height: 42px !important;
  min-width: 150px !important;
  padding: 0 20px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.portal-btn-secondary {
  background: #ffffff !important;
  color: var(--navy) !important;
  border: 1px solid rgba(6, 31, 70, 0.28) !important;
}

.portal-btn-primary {
  background: var(--navy) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(6, 31, 70, 0.14) !important;
}

/* Responsive */
@media (max-width: 1180px) {
  .portal-project-summary {
    grid-template-columns: 1fr !important;
  }

  .portal-project-data {
    padding: 0 22px 20px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 42px !important;
  }
}

@media (max-width: 760px) {
  .portal-project-left {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  .portal-project-thumb {
    width: 100% !important;
    height: 210px !important;
  }

  .portal-project-main {
    padding: 20px !important;
  }

  .portal-project-data {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 20px 20px !important;
  }

  .portal-project-data > div {
    border-left: 0 !important;
    border-top: 1px solid rgba(6, 31, 70, 0.08) !important;
    padding: 14px 0 0 !important;
    min-height: auto !important;
  }

  .portal-project-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .portal-project-actions {
    flex-direction: column !important;
  }

  .portal-btn {
    width: 100% !important;
  }
}
/* =====================================================
   PORTAL PROYECTOS V3 - PYR INVERSIONES
   Card desplegable premium
===================================================== */

.portal-projects-page-v3 {
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
  padding: 8px 4px 40px !important;
}

.portal-projects-head-v3 {
  padding-right: 300px !important;
  margin-bottom: 6px !important;
}

.portal-projects-head-v3 h1 {
  margin: 0 0 10px !important;
  color: var(--navy) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 42px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: -0.055em !important;
}

.portal-projects-head-v3 p {
  margin: 0 !important;
  max-width: 760px !important;
  color: rgba(6, 31, 70, 0.66) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

.portal-projects-list-v3 {
  display: grid !important;
  gap: 18px !important;
}

/* CARD */

.portal-project-card-v3 {
  overflow: hidden !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(6, 31, 70, 0.10) !important;
  box-shadow:
    0 14px 34px rgba(6, 31, 70, 0.055),
    0 7px 18px rgba(180, 130, 69, 0.025) !important;
}

/* RESUMEN */

.portal-project-summary-v3 {
  width: 100% !important;
  min-height: 156px !important;
  padding: 18px 22px !important;
  border: 0 !important;
  background:
    radial-gradient(circle at top right, rgba(180, 130, 69, 0.035), transparent 32%),
    #ffffff !important;
  display: grid !important;
  grid-template-columns: 210px minmax(230px, 0.75fr) minmax(440px, 1fr) 38px !important;
  gap: 24px !important;
  align-items: center !important;
  text-align: left !important;
  cursor: pointer !important;
}

/* IMAGEN */

.portal-project-image-v3 {
  width: 210px !important;
  height: 120px !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #eef3f8 !important;
  box-shadow: 0 10px 22px rgba(6, 31, 70, 0.08) !important;
}

.portal-project-image-v3 img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* INFO */

.portal-project-info-v3 {
  min-width: 0 !important;
}

.portal-project-kicker-v3 {
  display: block !important;
  margin-bottom: 10px !important;
  color: #b48245 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.17em !important;
  text-transform: uppercase !important;
}

.portal-project-info-v3 h2 {
  margin: 0 0 8px !important;
  color: var(--navy) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 36px !important;
  line-height: 0.95 !important;
  font-weight: 500 !important;
  letter-spacing: -0.055em !important;
}

.portal-project-location-v3 {
  margin: 0 !important;
  color: rgba(6, 31, 70, 0.68) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.portal-project-location-v3::before {
  content: "⌖ ";
  color: #b48245;
}

/* MÉTRICAS */

.portal-project-metrics-v3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.portal-project-metric-v3 {
  min-height: 78px !important;
  padding: 15px 16px !important;
  border-radius: 14px !important;
  background: #fbfaf7 !important;
  border: 1px solid rgba(6, 31, 70, 0.07) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.portal-project-metric-v3 span {
  display: block !important;
  margin-bottom: 9px !important;
  color: rgba(6, 31, 70, 0.58) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.portal-project-metric-v3 strong {
  display: block !important;
  color: var(--navy) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.portal-project-metric-v3.is-gold strong {
  color: #b48245 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 30px !important;
  line-height: 0.95 !important;
  font-weight: 500 !important;
  letter-spacing: -0.045em !important;
}

/* FLECHA */

.portal-project-arrow-v3 {
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  color: var(--navy) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(180, 130, 69, 0.38) !important;
  transition: transform 0.22s ease !important;
}

.portal-project-arrow-v3 svg {
  width: 17px !important;
  height: 17px !important;
}

.portal-project-card-v3.is-open .portal-project-arrow-v3 {
  transform: rotate(90deg) !important;
}

/* PANEL */

.portal-project-panel-v3 {
  display: none !important;
  padding: 0 22px 22px !important;
}

.portal-project-card-v3.is-open .portal-project-panel-v3 {
  display: block !important;
}

.portal-project-panel-inner-v3 {
  padding: 24px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 247, 0.90)) !important;
  border: 1px solid rgba(6, 31, 70, 0.09) !important;
}

/* PROGRESO */

.portal-progress-row-v3 {
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

.portal-progress-row-v3 span {
  display: block !important;
  margin-bottom: 5px !important;
  color: var(--navy) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.portal-progress-row-v3 p {
  margin: 0 !important;
  color: rgba(6, 31, 70, 0.58) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.portal-progress-row-v3 strong {
  color: #b48245 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 34px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.portal-progress-bar-v3 {
  height: 11px !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(6, 31, 70, 0.08) !important;
}

.portal-progress-bar-v3 span {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #b48245, #c3975b) !important;
}

/* DETALLES */

.portal-detail-grid-v3 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}

.portal-detail-card-v3 {
  min-height: 82px !important;
  padding: 18px 20px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid rgba(6, 31, 70, 0.08) !important;
}

.portal-detail-card-v3 span {
  display: block !important;
  margin-bottom: 9px !important;
  color: rgba(6, 31, 70, 0.58) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.portal-detail-card-v3 strong {
  display: block !important;
  color: var(--navy) !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}

/* DOCUMENTOS */

.portal-documents-row-v3 {
  min-height: 68px !important;
  margin-bottom: 18px !important;
  padding: 0 20px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid rgba(6, 31, 70, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

.portal-documents-row-v3 span {
  display: block !important;
  margin-bottom: 5px !important;
  color: var(--navy) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.portal-documents-row-v3 strong {
  color: #b48245 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

.portal-documents-row-v3 button {
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(180, 130, 69, 0.38) !important;
  background: #ffffff !important;
  color: var(--navy) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.portal-documents-row-v3 svg {
  width: 15px !important;
  height: 15px !important;
}

/* BOTONES */

.portal-project-actions-v3 {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.portal-action-btn-v3 {
  height: 42px !important;
  min-width: 150px !important;
  padding: 0 20px !important;
  border-radius: 10px !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.portal-action-btn-v3 svg {
  width: 16px !important;
  height: 16px !important;
}

.portal-action-btn-v3.secondary {
  background: #ffffff !important;
  color: var(--navy) !important;
  border: 1px solid rgba(6, 31, 70, 0.28) !important;
}

.portal-action-btn-v3.primary {
  background: var(--navy) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(6, 31, 70, 0.14) !important;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .portal-projects-head-v3 {
    padding-right: 0 !important;
  }

  .portal-project-summary-v3 {
    grid-template-columns: 180px minmax(0, 1fr) 38px !important;
  }

  .portal-project-image-v3 {
    width: 180px !important;
  }

  .portal-project-metrics-v3 {
    grid-column: 2 / 3 !important;
  }
}

@media (max-width: 760px) {
  .portal-projects-head-v3 h1 {
    font-size: 36px !important;
  }

  .portal-project-summary-v3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .portal-project-image-v3 {
    width: 100% !important;
    height: 220px !important;
  }

  .portal-project-metrics-v3,
  .portal-detail-grid-v3 {
    grid-template-columns: 1fr !important;
  }

  .portal-project-arrow-v3 {
    width: 100% !important;
  }

  .portal-documents-row-v3 {
    align-items: flex-start !important;
    flex-direction: column !important;
    padding: 18px !important;
  }

  .portal-project-actions-v3 {
    flex-direction: column !important;
  }

  .portal-action-btn-v3 {
    width: 100% !important;
  }
}
.my-projects-section {
  display: grid;
  gap: 12px;
}

.project-investment-card {
  padding: 16px 18px;
  display: grid;
  gap: 14px;
}

.project-investment-head {
  display: grid;
  grid-template-columns: 185px 1fr 520px;
  gap: 18px;
  align-items: center;
}

.project-investment-head img {
  width: 185px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}

.project-title-block h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
}

.project-title-block p,
.project-title-block span {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.project-meta,
.project-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.project-meta div,
.project-kpis div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.project-meta label,
.project-kpis label {
  display: block;
  color: #617391;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-meta strong,
.project-kpis strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 14px;
}

.project-investment-card h4 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 14px;
}

.project-header {
  display: grid;
  grid-template-columns: 185px 260px 1fr;
  gap: 18px;
  align-items: start;
}

.project-image img {
  width: 185px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}

.project-info h3 {
  margin: 4px 0 4px;
  color: var(--navy);
  font-size: 22px;
}

.project-info p,
.project-info span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.project-status {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.project-dates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.project-dates div,
.project-kpis .mini-kpi {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.project-dates label,
.project-kpis label {
  display: block;
  color: #617391;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-dates strong,
.project-kpis strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 14px;
}

.project-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.management-section {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.management-currency-grid {
  margin-top: 0;
}

.management-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

.management-flow-card {
  display: grid;
  gap: 14px;
}

.management-flow-head,
.management-flow-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.management-flow-head span,
.management-flow-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.management-flow-head strong,
.management-flow-result strong {
  color: var(--navy);
}

.management-flow-steps {
  display: grid;
  gap: 10px;
}

.management-flow-steps div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.management-flow-steps span,
.management-flow-steps small {
  display: block;
  color: var(--muted);
}

.management-flow-steps span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.management-flow-steps strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--navy);
  font-size: 18px;
}

.management-flow-steps small {
  font-size: 11px;
}

.management-flow-result {
  padding: 14px;
  border: 1px solid #cce8d8;
  border-radius: 14px;
  background: #f2fbf6;
}

.payment-group-row td {
  background: #f4f8ff;
  color: var(--navy);
  font-weight: 800;
}

.payment-group-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
