html {
  min-height: 100%;
  background: #f1f8f3;
}

body,
body.bg-light {
  min-height: 100vh;
  background: linear-gradient(180deg, #f2fbf4 0%, #ffffff 48%, #eaf6ee 100%) !important;
}

body.app-splash-active {
  overflow: hidden;
}

#btnInicioMobile {
  touch-action: manipulation;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

body #btnInicioMobile:active,
body #btnInicioMobile.home-tap-active,
body .menu-btn-mobile.menu-loading-active {
  transform: translateY(5px) scale(0.88);
  filter: brightness(0.86);
  background-color: #0b5ed7 !important;
  border-color: #0a58ca !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(25, 135, 84, 0.14) !important;
}

body .menu-btn-mobile.menu-loading-active .menu-icon {
  background: rgba(255, 255, 255, 0.26);
}

body .menu-btn-mobile.menu-loading-active::after {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: pageLoadingSpin 0.75s linear infinite;
}

.page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(247, 255, 248, 0.92);
  backdrop-filter: blur(3px);
}

.page-loading-overlay__content {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(25, 135, 84, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #0b3d2a;
  box-shadow: 0 18px 36px rgba(10, 55, 34, 0.16);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.page-loading-overlay__spinner {
  width: 44px;
  height: 44px;
  border: 5px solid rgba(25, 135, 84, 0.18);
  border-top-color: #198754;
  border-radius: 50%;
  animation: pageLoadingSpin 0.75s linear infinite;
}

@keyframes pageLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #06251e;
  background: linear-gradient(180deg, #f2fbf4 0%, #ffffff 48%, #eaf6ee 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.app-splash.app-splash--hidden {
  opacity: 0;
  visibility: hidden;
}

.app-splash__content {
  display: flex;
  width: min(100%, 360px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.app-splash__logo {
  width: 116px;
  height: 116px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(14, 113, 68, 0.22);
}

.app-splash__title {
  margin: 1.35rem 0 0.35rem;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
}

.app-splash__subtitle {
  margin: 0;
  color: #557064;
  font-size: 1.05rem;
  font-weight: 600;
}

.app-splash__loader {
  position: relative;
  width: 126px;
  height: 5px;
  margin-top: 1.6rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.16);
}

.app-splash__loader::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  border-radius: inherit;
  background: #198754;
  animation: appSplashLoader 1s ease-in-out infinite;
}

@keyframes appSplashLoader {
  0% {
    transform: translateX(-115%);
  }

  100% {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash,
  .app-splash__loader::after {
    transition: none;
    animation: none;
  }
}
