@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --hs-teal: #0A5E6B;
  --hs-navy: #0B2545;
  --hs-coral: #EF5B44;
  --hs-coral-hover: #d94a35;
  --hs-overlay: rgba(11, 37, 69, 0.45);
  --bs-primary: #0A5E6B;
  --bs-primary-rgb: 10, 94, 107;
  --bs-link-color: #0A5E6B;
  --bs-link-hover-color: #084852;
}

body,
.btn,
.form-control,
.nav-link,
.card,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
}

.text-primary,
.sidebar .navbar-brand .logo-title,
.iq-main-menu .nav-link.active,
.iq-main-menu .nav-link:hover {
  color: var(--hs-teal) !important;
}

.bg-primary,
.btn-primary {
  background-color: var(--hs-coral) !important;
  border-color: var(--hs-coral) !important;
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--hs-coral-hover) !important;
  border-color: var(--hs-coral-hover) !important;
}

.btn-outline-primary {
  color: var(--hs-teal) !important;
  border-color: var(--hs-teal) !important;
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--hs-teal) !important;
  color: #fff !important;
}

.sidebar.sidebar-default {
  background: #fff;
}

.sidebar-header .navbar-brand img {
  max-height: 42px;
  width: auto;
}

.hs-brand-logo {
  max-height: 48px;
  width: auto;
}

.hs-brand-logo-lg {
  max-height: 64px;
  width: auto;
}

#loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fd;
  transition: opacity .35s ease, visibility .35s ease;
}

#loading.is-done,
#loading:has(.loader.d-none) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-content .auth-hero {
  min-height: 100vh;
  background: var(--hs-navy);
  padding: 2rem 2.25rem;
  align-items: stretch;
}

.auth-hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  width: 100%;
  min-height: 0;
  flex: 1;
}

.auth-hero__frame {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 48vh;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.auth-hero__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.auth-hero__content {
  flex: 0 0 auto;
  color: #fff;
  animation: authHeroFadeUp .7s ease both;
}

.auth-hero__logo {
  display: block;
  max-width: 170px;
  width: 100%;
  height: auto;
  margin-bottom: 0.85rem;
}

.auth-hero__title {
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  color: #fff;
}

.auth-hero__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 22rem;
}

@keyframes authHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-hero__content {
    animation: none;
  }
}

.auth-card {
  border: 0;
}

.hs-stat-card {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.08);
}

.hs-stat-card .stat-label {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
}

.hs-stat-card .stat-value {
  color: var(--hs-navy);
  font-weight: 600;
  font-size: 1.5rem;
}

.hs-badge-pending {
  background: #fff3cd;
  color: #856404;
}

.hs-badge-approved {
  background: #d1e7dd;
  color: #0f5132;
}

.product-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.12);
}

.product-card .brand-chip {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(10, 94, 107, .1);
  color: var(--hs-teal);
}

.referral-box {
  background: #f4f8f9;
  border: 1px dashed var(--hs-teal);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

/* —— Configuración —— */
.hs-settings__avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--hs-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.hs-settings__nav .list-group-item {
  border: 0;
  padding: 0.9rem 1.15rem;
  font-weight: 500;
  color: #495057;
  background: transparent;
}

.hs-settings__nav .list-group-item:hover {
  background: rgba(10, 94, 107, 0.06);
  color: var(--hs-teal);
}

.hs-settings__nav .list-group-item.active {
  background: rgba(10, 94, 107, 0.1);
  color: var(--hs-teal);
  font-weight: 600;
  border-left: 3px solid var(--hs-coral);
}

.hs-settings__section-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hs-settings__form .form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: #495057;
}

.hs-settings__form .form-control-lg {
  border-radius: 10px;
  font-size: 1rem;
}

.hs-settings__tile {
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid transparent;
}

.hs-settings__tile:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 94, 107, 0.2);
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.1);
}

.hs-settings__tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(10, 94, 107, 0.1);
  color: var(--hs-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.hs-settings__danger {
  border: 1px solid rgba(192, 50, 33, 0.2);
}

