body.home-page-compact .site-content {
  padding-top: 0 !important;
}

.home-section-nav {
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  background: rgba(var(--mbp-bg-rgb), 0.96);
}

.home-section-nav__link {
  min-height: 40px;
}

.home-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--mbp-border);
  border-radius: var(--mbp-radius-panel);
  background: var(--mbp-surface);
  box-shadow: var(--mbp-shadow-soft);
}

.home-dashboard-metric {
  display: flex;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--mbp-text);
  text-decoration: none;
}

.home-dashboard-metric + .home-dashboard-metric {
  border-left: 1px solid var(--mbp-border);
}

.home-dashboard-metric span {
  color: var(--mbp-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-dashboard-metric strong {
  flex: 0 0 auto;
  color: var(--mbp-primary-dark);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1;
}

.home-dashboard-metric:hover,
.home-dashboard-metric:focus-visible {
  background: var(--mbp-secondary);
  color: var(--mbp-primary-dark);
}

.home-dashboard-metric:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid rgba(var(--mbp-primary-rgb), 0.38);
  outline-offset: -2px;
}

.home-hero {
  margin-bottom: 1.25rem !important;
  border-color: var(--mbp-border) !important;
  border-radius: var(--mbp-radius-panel) !important;
  background: var(--mbp-surface) !important;
  box-shadow: var(--mbp-shadow-panel) !important;
}

.home-hero .card-body {
  padding: clamp(1.5rem, 4vw, 3.25rem) !important;
}

.home-hero__layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem) !important;
}

.home-hero__copy {
  max-width: 820px;
}

.home-hero__eyebrow {
  margin-bottom: 0.5rem;
  color: var(--mbp-accent-text);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.home-hero h1 {
  max-width: none;
  margin-bottom: 0.75rem !important;
  color: var(--mbp-text);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.home-hero__lead {
  max-width: 720px;
  color: var(--mbp-text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem) !important;
  line-height: 1.65;
}

.home-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.home-dashboard-actions .btn {
  min-height: 44px;
}

.home-hero__meta {
  display: none !important;
}

.home-hero__side {
  flex-basis: auto;
  width: clamp(110px, 15vw, 190px);
}

.home-hero__brandpanel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-hero__brandtop {
  display: block;
}

.home-hero__logo {
  width: clamp(110px, 15vw, 190px);
}

.home-hero__brandtop > div {
  display: none;
}

.home-hero__kpis {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
}

.home-hero--member .home-hero__layout {
  grid-template-areas:
    "copy brand"
    "metrics metrics";
  grid-template-columns: minmax(0, 1fr) clamp(120px, 14vw, 190px);
  column-gap: clamp(2rem, 5vw, 5.5rem) !important;
  row-gap: clamp(1.75rem, 3vw, 2.5rem) !important;
}

.home-hero--member .home-hero__copy {
  grid-area: copy;
}

.home-hero--member .home-hero__side {
  grid-area: brand;
  align-self: center;
}

.home-hero--member .home-hero__kpis {
  grid-area: metrics;
  width: 100%;
  margin: 0 !important;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--mbp-border);
  border-radius: var(--mbp-radius-card);
  background: var(--mbp-surface-muted);
}

.home-hero--member .home-hero__kpis > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.home-hero--member .home-hero__kpis > [class*="col-"] + [class*="col-"] {
  border-left: 1px solid var(--mbp-border);
}

.home-hero--member .summary-kpi-card {
  min-height: 108px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.home-hero--member .summary-kpi-body {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem !important;
}

.home-hero--member .summary-kpi-body .text-muted {
  max-width: 13rem;
  margin: 0 !important;
  color: var(--mbp-text-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1.35;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.home-hero--member .summary-kpi-body .fs-2 {
  flex: 0 0 auto;
  order: -1;
  color: var(--mbp-text);
  font-size: clamp(2.25rem, 3.2vw, 3.25rem) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 0.85;
}

.home-hero--member a.summary-kpi-card {
  transition: background-color 160ms ease, color 160ms ease;
}

.home-hero--member a.summary-kpi-card:hover,
.home-hero--member a.summary-kpi-card:focus-visible {
  background: var(--mbp-secondary) !important;
}

.home-hero--member a.summary-kpi-card:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid rgba(var(--mbp-primary-rgb), 0.42);
  outline-offset: -2px;
}

.summary-kpi-card {
  border-color: var(--mbp-border) !important;
  border-radius: var(--mbp-radius-card) !important;
  background: var(--mbp-surface-muted) !important;
  box-shadow: none !important;
}

#home-presentacion {
  margin: 0 0 1.5rem !important;
  padding: 1.25rem 0;
  border-top: 1px solid var(--mbp-border);
  border-bottom: 1px solid var(--mbp-border);
}

#home-presentacion > .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

#home-presentacion .col-lg-4 {
  width: 33.333333%;
}

#home-presentacion .home-panel {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#home-presentacion .col-lg-4 + .col-lg-4 .home-panel {
  border-left: 1px solid var(--mbp-border) !important;
}

#home-presentacion .home-panel .card-body {
  padding: 0.5rem 1.25rem !important;
}

#home-presentacion .home-panel h3 {
  font-size: 1rem;
  line-height: 1.35;
}

#home-presentacion .home-panel .text-muted {
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-panel {
  border-color: var(--mbp-border) !important;
  border-radius: var(--mbp-radius-panel) !important;
  background: var(--mbp-surface) !important;
  box-shadow: var(--mbp-shadow-card) !important;
}

#homeCalendarPanel {
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
}

#homeCalendarPanel .card-header {
  background: var(--mbp-surface-muted);
  border-bottom-color: var(--mbp-border);
}

.home-section-header {
  border-bottom-color: var(--mbp-border);
}

.home-recent-panel .card-body {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.home-recent-table td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.home-recent-table {
  width: 100%;
  table-layout: fixed;
}

.home-recent-table th:last-child,
.home-recent-table td:last-child {
  width: 6.5rem;
}

.home-recent-table td:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-recent-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.home-recent-row__image {
  width: 96px;
  height: 68px;
  flex: 0 0 96px;
  border: 1px solid var(--mbp-border);
  border-radius: var(--mbp-radius-sm);
  background: var(--mbp-surface-muted);
  object-fit: cover;
}

.home-recent-row__content {
  min-width: 0;
}

.home-recent-row__description {
  display: -webkit-box;
  max-width: 56rem;
  margin-top: 0.2rem;
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-recent-table .btn {
  min-height: 36px;
  white-space: nowrap;
}

.calendar-event-detail-modal .modal-content {
  overflow: hidden;
  border: 1px solid var(--mbp-border);
  border-radius: var(--mbp-radius-panel);
  background: var(--mbp-surface);
  box-shadow: var(--mbp-shadow-panel);
}

.calendar-event-detail-modal__header {
  background: var(--mbp-surface-muted);
  border-bottom-color: var(--mbp-border);
}

.calendar-event-detail-modal .modal-footer {
  background: var(--mbp-surface);
  border-top-color: var(--mbp-border);
}

.calendar-event-detail-modal .modal-footer .btn {
  min-height: 44px;
}

@media (max-width: 991.98px) {
  .home-hero__layout {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .home-hero--member .home-hero__layout {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .home-hero--member .home-hero__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero--member .home-hero__kpis > [class*="col-"]:nth-child(3) {
    border-left: 0;
  }

  .home-hero--member .home-hero__kpis > [class*="col-"]:nth-child(n + 3) {
    border-top: 1px solid var(--mbp-border);
  }

  #home-presentacion .col-lg-4 + .col-lg-4 .home-panel {
    border-top: 1px solid var(--mbp-border) !important;
    border-left: 0 !important;
  }

  #home-presentacion .col-lg-4 {
    width: 100%;
  }

  #home-presentacion .home-panel .card-body {
    padding: 1rem 0 !important;
  }
}

@media (max-width: 767.98px) {
  .home-section-nav__link {
    min-height: 44px;
  }

  .home-dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .home-dashboard-metric {
    min-height: 66px;
  }

  .home-dashboard-metric + .home-dashboard-metric {
    border-top: 1px solid var(--mbp-border);
    border-left: 0;
  }

  .home-hero__layout {
    grid-template-columns: 1fr;
  }

  .home-hero__side,
  .home-hero--member .home-hero__side {
    display: none;
  }

  .home-hero--member .home-hero__layout {
    grid-template-areas:
      "copy"
      "metrics";
    grid-template-columns: 1fr;
  }

  .home-hero--member .home-hero__kpis {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero--member .summary-kpi-card {
    min-height: 102px;
  }

  .home-hero--member .summary-kpi-body {
    display: block;
    padding: 1rem !important;
  }

  .home-hero--member .summary-kpi-body .fs-2 {
    margin-bottom: 0.55rem;
    font-size: 2.3rem !important;
  }

  .home-dashboard-actions {
    display: grid;
  }

  .home-dashboard-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .home-recent-panel .card-header {
    align-items: center !important;
  }

  .home-recent-table {
    min-width: 0;
  }

  .home-recent-table td:first-child {
    width: 100%;
  }

  .home-recent-table .btn {
    min-height: 40px;
  }

  .home-recent-table th:last-child,
  .home-recent-table td:last-child {
    width: 5.75rem;
  }

  .home-recent-row {
    gap: 0.75rem;
  }

  .home-recent-row__image {
    width: 72px;
    height: 54px;
    flex-basis: 72px;
  }

  .calendar-event-detail-modal .modal-dialog {
    margin: 0.75rem;
  }

  .calendar-event-detail-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .calendar-event-detail-modal .modal-footer .btn {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-dashboard-metric,
  .home-dashboard-actions .btn,
  .home-hero--member a.summary-kpi-card {
    transition: none !important;
  }
}
