/* =========================================================
   DASHBOARD V2 - SOLO DASHBOARD
   ========================================================= */

.dashboard-page {

  background:
    #F3F7FA;
}


.dashboard-page .portal-header {

  background:
    rgba(255,255,255,.96);

  border-bottom:
    1px solid rgba(4,50,89,.08);

  box-shadow:
    0 10px 35px -32px
    rgba(4,50,89,.5);
}


.dashboard-page .portal-header-inner {

  min-height:
    78px;
}


.dashboard-page .portal-logo {

  width:
    190px;

  height:
    62px;
}


.dashboard-page .portal-logo img {

  width:
    150px;

  height:
    54px;

  transform:
    scale(1.18);
}


.dashboard-page .portal-header-right {

  gap:
    16px;
}


.dashboard-page .connection-pill {

  padding:
    7px 11px;

  font-size:
    8px;
}


.dashboard-page .btn-small {

  min-height:
    38px;

  padding:
    8px 16px;
}


/* =========================================================
   HERO
   ========================================================= */

.dashboard-page .portal-hero {

  padding:
    52px 0 50px;

  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(253,67,0,.16),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #02233F 0%,
      #043259 58%,
      #07517E 100%
    );

  border-bottom:0;
}


.dashboard-page .portal-hero::after {

  width:
    420px;

  height:
    420px;

  right:
    -150px;

  bottom:
    -230px;

  opacity:
    .08;

  background:
    #FFFFFF;

  border-radius:
    50%;

  transform:none;
}


.dashboard-page .portal-hero .portal-container {

  align-items:center;
}


.dashboard-page .portal-hero .eyebrow {

  color:
    #FF7A49;
}


.dashboard-page .hero-content h1 {

  max-width:
    860px;

  margin:
    10px 0 13px;

  color:
    #FFFFFF;

  font-size:
    clamp(
      40px,
      4.6vw,
      58px
    );

  line-height:
    1.02;
}


.dashboard-page .hero-content > p:last-child {

  max-width:
    640px;

  color:
    rgba(255,255,255,.74);

  font-size:
    13px;
}


.dashboard-page .hero-stat {

  min-width:
    190px;

  padding:
    22px 24px;

  background:
    rgba(255,255,255,.1);

  color:
    #FFFFFF;

  border:
    1px solid
    rgba(255,255,255,.17);

  box-shadow:none;

  backdrop-filter:
    blur(12px);
}


.dashboard-page .hero-stat::before {

  background:
    var(--orange);
}


.dashboard-page .hero-stat span {

  color:
    #FFFFFF;
}


.dashboard-page .hero-stat small {

  color:
    rgba(255,255,255,.72);
}


/* =========================================================
   ACCESOS RAPIDOS
   ========================================================= */

.dashboard-shortcuts-section {

  position:relative;

  z-index:5;

  margin-top:
    -22px;
}


.dashboard-shortcuts {

  display:grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );

  gap:
    14px;
}


.dashboard-shortcut {

  display:flex;

  align-items:center;

  gap:
    13px;

  min-width:0;

  padding:
    17px 18px;

  background:
    #FFFFFF;

  border:
    1px solid
    rgba(4,50,89,.09);

  border-radius:
    16px;

  box-shadow:
    0 18px 45px -38px
    rgba(4,50,89,.52);

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}


.dashboard-shortcut:hover {

  transform:
    translateY(-2px);

  border-color:
    rgba(253,67,0,.26);

  box-shadow:
    0 22px 50px -36px
    rgba(4,50,89,.58);
}


.dashboard-shortcut-icon {

  display:flex;

  align-items:center;
  justify-content:center;

  width:
    42px;

  height:
    42px;

  flex:
    0 0 auto;

  padding:
    10px;

  background:
    #EDF4F8;

  color:
    var(--navy-900);

  border-radius:
    12px;
}


.dashboard-shortcut-icon.orange {

  background:
    #FFF1EB;

  color:
    var(--orange);
}


.dashboard-shortcut-icon svg {

  width:100%;
  height:100%;

  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}


.dashboard-shortcut > span:last-child {

  min-width:0;
}


.dashboard-shortcut small {

  display:block;

  margin-bottom:
    4px;

  color:
    var(--gray-500);

  font-size:
    8px;

  font-weight:
    700;
}


.dashboard-shortcut strong {

  display:block;

  overflow:hidden;

  color:
    var(--navy-900);

  font-family:
    var(--disp);

  font-size:
    11px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   PROPIEDADES
   ========================================================= */

.dashboard-page .properties-section {

  padding:
    48px 0 84px;
}


.dashboard-page .section-heading {

  margin-bottom:
    22px;
}


.dashboard-page .section-heading h2 {

  margin:
    7px 0 8px;

  font-size:
    34px;
}


.dashboard-section-description {

  max-width:
    680px;

  margin:0;

  color:
    var(--gray-500);

  font-size:
    11px;

  line-height:
    1.65;
}


.dashboard-page .properties-grid {

  align-items:
    stretch;

  gap:
    20px;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.dashboard-page .property-card {

  display:flex;

  flex-direction:column;

  min-width:0;

  height:100%;

  padding:
    24px;

  border-radius:
    20px;

  border:
    1px solid
    rgba(4,50,89,.1);

  box-shadow:
    0 24px 56px -44px
    rgba(4,50,89,.6);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}


.dashboard-page .property-card:hover {

  transform:
    translateY(-3px);

  border-color:
    rgba(4,50,89,.16);

  box-shadow:
    0 30px 68px -44px
    rgba(4,50,89,.64);
}


.dashboard-page .property-card::before {

  height:
    3px;
}


.dashboard-page .property-card-head-grid {

  grid-template-columns:
    minmax(0,1fr)
    164px;

  gap:
    18px;

  min-height:
    166px;
}


.dashboard-page .property-card-heading {

  display:flex;

  flex-direction:column;
}


.dashboard-page .property-heading-top {

  min-height:
    42px;
}


.dashboard-page .property-project {

  margin-top:
    5px;

  font-size:
    9px;
}


.dashboard-page .property-card h3 {

  margin:
    7px 0 0;

  font-size:
    25px;

  line-height:
    1.08;
}


.dashboard-page .status-badge {

  padding:
    6px 9px;

  font-size:
    8px;
}


.dashboard-page .status-badge.stage-completed {

  background:
    var(--success-soft);

  color:
    var(--success);
}


.dashboard-page .status-badge.stage-paying {

  background:
    #FFF2EC;

  color:
    var(--orange-deep);
}


.dashboard-page .status-badge.stage-reserved {

  background:
    var(--navy-tint);

  color:
    var(--navy-700);
}


.dashboard-page .property-image-wrap {

  min-height:
    166px;

  height:
    166px;

  border-radius:
    13px;
}


.dashboard-page .property-specs {

  margin-top:
    auto;

  padding-top:
    15px;

  gap:
    6px;
}


.dashboard-page .property-spec {

  padding:
    6px 8px;

  font-size:
    8px;
}


/* =========================================================
   FINANZAS
   ========================================================= */

.dashboard-page .property-financial {

  margin:
    18px 0 17px;

  gap:
    10px;
}


.dashboard-page .property-financial > div {

  min-height:
    78px;

  padding:
    14px;

  display:flex;

  flex-direction:column;

  justify-content:center;

  background:
    #F6F9FB;

  border:
    1px solid
    rgba(4,50,89,.05);

  border-radius:
    12px;
}


.dashboard-page .property-financial span {

  font-size:
    8px;
}


.dashboard-page .property-financial strong {

  font-size:
    17px;
}


/* =========================================================
   PROGRESO
   ========================================================= */

.dashboard-page .property-progress {

  min-height:
    39px;

  margin-bottom:
    15px;
}


.dashboard-page .property-progress-head {

  margin-bottom:
    7px;
}


.dashboard-page .progress-track {

  height:
    7px;
}


/* =========================================================
   PROXIMA CUOTA / ESTADO EQUIVALENTE
   ========================================================= */

.dashboard-page .property-next-payment {

  min-height:
    76px;

  margin-bottom:
    17px;

  padding:
    14px 15px;

  border-radius:
    12px;
}


.dashboard-page .property-next-payment.is-empty {

  background:
    #F7F9FB;

  border-color:
    rgba(4,50,89,.08);
}


.dashboard-page .property-next-payment.is-empty strong {

  color:
    var(--navy-700);
}


.dashboard-page .property-next-payment strong {

  font-size:
    15px;
}


.dashboard-page .next-payment-date {

  max-width:
    48%;

  line-height:
    1.45;
}


/* =========================================================
   BOTONES
   ========================================================= */

.dashboard-page .property-actions {

  display:grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  gap:
    9px;

  margin-top:
    auto;
}


.dashboard-page .property-actions .btn,
.dashboard-page .property-actions .btn-outline-orange,
.dashboard-page .property-actions .btn-report {

  width:100%;

  min-height:
    41px;

  padding:
    0 13px;

  border-radius:
    999px;

  font-size:
    9px;
}


.dashboard-page .btn-report {

  flex-basis:auto !important;
}


.dashboard-page .btn-outline-orange {

  border-color:
    rgba(253,67,0,.62);
}


/* =========================================================
   FOOTER
   ========================================================= */

.dashboard-footer {

  background:
    #02233F;

  color:
    rgba(255,255,255,.7);

  border-top:
    1px solid
    rgba(255,255,255,.06);
}


.dashboard-footer-inner {

  min-height:
    88px;

  display:flex;

  align-items:center;
  justify-content:space-between;

  gap:
    30px;
}


.dashboard-footer-inner > div:first-child {

  display:flex;

  flex-direction:column;

  gap:
    4px;
}


.dashboard-footer strong {

  color:
    #FFFFFF;

  font-family:
    var(--disp);

  font-size:
    12px;
}


.dashboard-footer span,
.dashboard-footer a {

  font-size:
    9px;
}


.dashboard-footer-right {

  display:flex;

  align-items:center;

  gap:
    20px;
}


.dashboard-footer a {

  color:
    #FFFFFF;

  font-weight:
    700;
}


.dashboard-footer a:hover {

  color:
    #FF7A49;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1100px) {

  .dashboard-shortcuts {

    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );
  }


  .dashboard-page .property-card-head-grid {

    grid-template-columns:
      minmax(0,1fr)
      145px;
  }

}


@media(max-width:900px) {

  .dashboard-page .portal-header-inner {

    padding:
      0 24px;
  }


  .dashboard-page .properties-grid {

    grid-template-columns:
      1fr;
  }


  .dashboard-page .property-card {

    max-width:
      760px;

    width:100%;

    margin:
      0 auto;
  }

}


@media(max-width:700px) {

  .dashboard-page .portal-header-inner {

    min-height:
      70px;

    padding:
      0 16px;
  }


  .dashboard-page .portal-logo {

    width:
      128px;

    height:
      50px;
  }


  .dashboard-page .portal-logo img {

    width:
      108px;

    height:
      44px;

    transform:
      none;
  }


  .dashboard-page .connection-pill {

    display:none;
  }


  .dashboard-page .portal-user span {

    display:none;
  }


  .dashboard-page .portal-user strong {

    max-width:
      120px;

    overflow:hidden;

    font-size:
      10px;

    text-overflow:
      ellipsis;

    white-space:
      nowrap;
  }


  .dashboard-page .btn-small {

    min-height:
      34px;

    padding:
      7px 11px;

    font-size:
      8px;
  }


  .dashboard-page .portal-hero {

    padding:
      38px 0 48px;
  }


  .dashboard-page .portal-hero .portal-container {

    align-items:flex-start;

    flex-direction:column;

    gap:
      24px;
  }


  .dashboard-page .hero-content h1 {

    font-size:
      38px;
  }


  .dashboard-page .hero-stat {

    width:100%;

    min-width:0;
  }


  .dashboard-shortcuts {

    grid-template-columns:
      1fr;
  }


  .dashboard-page .properties-section {

    padding-top:
      38px;
  }


  .dashboard-page .property-card {

    padding:
      18px;
  }


  .dashboard-page .property-card-head-grid {

    grid-template-columns:
      1fr;

    min-height:0;
  }


  .dashboard-page .property-image-wrap {

    order:
      -1;

    width:100%;

    height:
      190px;
  }


  .dashboard-page .property-heading-top {

    min-height:0;

    margin-top:
      4px;
  }


  .dashboard-page .property-financial {

    grid-template-columns:
      1fr;
  }


  .dashboard-page .property-financial > div {

    min-height:
      68px;
  }


  .dashboard-page .property-next-payment {

    align-items:flex-start;

    flex-direction:column;
  }


  .dashboard-page .next-payment-date {

    max-width:none;

    text-align:left;
  }


  .dashboard-page .property-actions {

    grid-template-columns:
      1fr;
  }


  .dashboard-footer-inner {

    align-items:flex-start;

    flex-direction:column;

    justify-content:center;

    padding-top:
      22px;

    padding-bottom:
      22px;
  }


  .dashboard-footer-right {

    align-items:flex-start;

    flex-direction:column;

    gap:
      7px;
  }

}

/* =========================================================
   DASHBOARD - PROGRESO FINANCIERO DESDE BOOKS
   ========================================================= */

.dashboard-page .payment-progress {

  min-height:
    66px;

  margin-bottom:
    15px;
}


.dashboard-page .payment-progress {

  display:flex;

  flex-direction:column;

  justify-content:center;

  padding:
    5px 0 2px;
}


.dashboard-page
.payment-progress
.property-progress-head {

  width:100%;

  display:flex;

  align-items:center;
  justify-content:center;

  gap:
    8px;

  margin-bottom:
    10px;

  text-align:center;
}


.dashboard-page
.payment-progress
.property-progress-head
span {

  font-size:
    8.5px;
}


.dashboard-page
.payment-progress
.property-progress-head
strong {

  font-size:
    10px;

  white-space:
    nowrap;
}


.dashboard-page
.payment-progress
.progress-track {

  width:
    78%;

  max-width:
    430px;

  height:
    8px;

  margin:
    2px auto 0;

  background:
    #DDE7EE;

  border-radius:
    999px;

  overflow:hidden;
}


.dashboard-page
.payment-progress
.progress-fill {

  min-width:
    0;

  border-radius:
    999px;
}


.dashboard-page
.payment-progress-completed
.progress-fill {

  background:
    var(--success);
}


.dashboard-page
.payment-progress-completed
.property-progress-head
strong {

  color:
    var(--success);
}


.dashboard-page
.payment-progress-unavailable
.progress-track {

  background:
    #E8EDF1;
}


.dashboard-page
.payment-progress-caption {

  width:100%;

  margin-top:
    9px;

  color:
    var(--gray-500);

  font-size:
    8px;

  line-height:
    1.5;

  text-align:center;
}


.dashboard-page
.installment-coming-soon {

  background:
    #F7F9FB;

  border-color:
    rgba(4,50,89,.08);
}


.dashboard-page
.installment-coming-soon
strong {

  color:
    var(--navy-700);
}


.dashboard-page
.installment-coming-soon
.next-payment-date {

  max-width:
    55%;
}


@media(max-width:700px) {

  .dashboard-page
  .installment-coming-soon
  .next-payment-date {

    max-width:none;
  }

}


/* =========================================================
   FIX FINAL - BARRA DE PROGRESO VISIBLE Y CENTRADA
   ========================================================= */

.dashboard-page .payment-progress {

  gap:0 !important;
}


.dashboard-page
.payment-progress
.progress-track {

  display:block !important;

  flex:
    0 0 8px !important;

  width:
    78% !important;

  max-width:
    430px !important;

  min-height:
    8px !important;

  height:
    8px !important;

  max-height:
    8px !important;

  margin:
    2px auto 0 !important;

  padding:0 !important;

  background:
    #DDE7EE !important;

  border-radius:
    999px !important;

  overflow:hidden !important;

  opacity:
    1 !important;

  visibility:
    visible !important;
}


.dashboard-page
.payment-progress
.progress-fill {

  display:block !important;

  height:
    100% !important;

  min-height:
    8px !important;

  background:
    #FD4300 !important;

  border-radius:
    999px !important;

  opacity:
    1 !important;

  visibility:
    visible !important;
}


.dashboard-page
.payment-progress-completed
.progress-fill {

  background:
    #258659 !important;
}


/* Una oportunidad cerrada perdida no se muestra como venta pagada. */
.dashboard-page .property-card.commercial-review-card {
  border-color: rgba(253,67,0,.3);
}
.dashboard-page .status-badge.stage-review {
  background: #fff2e9;
  color: #a84b20;
  border-color: rgba(253,67,0,.18);
  white-space: normal;
  text-align: center;
}
