:root {
  --bl-night: #3d3d3f;
  --bl-night-2: #2f3032;
  --bl-blue: #009b8f;
  --bl-light: #45a943;
  --bl-light-soft: #dff2e8;
  --bl-paper: #f3f8f6;
  --bl-white: #ffffff;
  --bl-ink: #37383a;
  --bl-muted: #697372;
  --bl-line: #d7e5e1;
  --bl-radius: 8px;
  --sustenta-teal: #009b8f;
  --sustenta-green: #45a943;
  --sustenta-gray: #3d3d3f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--bl-ink);
  background: var(--bl-paper);
  font-family: "Quicksand", Arial, sans-serif;
}

body:not(.landing-page) {
  background:
    linear-gradient(180deg, rgba(0, 155, 143, 0.05), rgba(0, 155, 143, 0) 260px),
    #f5f8f7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.montserrat-bold {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
}

.quicksand-regular {
  font-family: "Quicksand", Arial, sans-serif;
}

.txtcolor1 {
  color: var(--bl-ink);
}

.topbar-bl {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 18px;
  background: #353638;
  color: var(--bl-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: left 0.2s ease;
}

.topbar-left,
.topbar-right {
  min-width: 0;
  display: flex;
  align-items: center;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--bl-white);
}

.admin-brand img {
  width: 42px;
  height: 36px;
  object-fit: contain;
}

.admin-brand span {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.admin-brand strong {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0;
}

.admin-brand small {
  color: #b7ddd5;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mini img {
  width: clamp(146px, 16vw, 210px);
  height: auto;
}

.topbar-bl .brand-mini img {
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bl-white);
}

.brand-mini span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: var(--bl-light);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
}

.btn-menu,
.sidebar-close button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--bl-radius);
  color: var(--bl-white);
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-bl {
  position: fixed;
  top: 66px;
  left: 0;
  bottom: 0;
  z-index: 19;
  width: 248px;
  padding: 18px 16px;
  background: #303133;
  color: var(--bl-white);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: width 0.2s ease, transform 0.2s ease;
}

.sidebar-close {
  display: none;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.menu-bl {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.menu-bl a {
  display: block;
  border-radius: 8px;
  color: #d9dedf;
}

.menu-bl a.active,
.menu-bl a:hover {
  color: var(--bl-white);
  background: linear-gradient(135deg, #009b8f, #45a943);
}

.menu-bl li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  list-style: none;
}

.menu-bl p {
  margin: 0;
  font-weight: 800;
  white-space: nowrap;
}

.main-content {
  width: calc(100% - 248px);
  min-height: 100vh;
  margin-left: 248px;
  padding-top: 66px;
  min-width: 0;
  transition: margin-left 0.2s ease, width 0.2s ease;
}

.sidebar-collapsed .sidebar-bl {
  width: 78px;
}

.sidebar-collapsed .menu-bl li {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .menu-bl p,
.sidebar-collapsed .brand-mini strong {
  display: none;
}

.sidebar-collapsed .brand-mini img {
  width: 44px;
  content: url("../img/sustenta-mark.svg");
}

.sidebar-collapsed .main-content {
  width: calc(100% - 78px);
  margin-left: 78px;
}

.module-top {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bl-line);
  min-width: 0;
}

.module-top h1,
.module-top p {
  margin: 0;
}

.module-top h1 {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
}

.module-top p {
  color: var(--bl-muted);
}

.contenidosec {
  padding: 22px;
  min-width: 0;
}

.section-kicker {
  display: inline-block;
  color: var(--bl-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-bl-primary,
.btn-light-cart {
  border: 0;
  color: var(--bl-white);
  background: var(--bl-light);
  font-weight: 800;
}

.btn-bl-primary:hover,
.btn-light-cart:hover {
  background: #328f38;
}

.btn-bl-secondary {
  border: 1px solid var(--bl-line);
  color: var(--bl-ink);
  background: var(--bl-white);
  font-weight: 800;
}

.btn-light-cart strong {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bl-blue);
  color: var(--bl-white);
  font-size: 0.82rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--bl-line);
  border-radius: var(--bl-radius);
  padding: 10px 12px;
  background: var(--bl-white);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: none;
  background: rgba(13, 27, 41, 0.45);
}

#overlay.show {
  display: block;
}

.empty-state {
  color: var(--bl-muted);
}

@media (max-width: 920px) {
  .sidebar-collapsed .sidebar-bl {
    width: 248px;
  }

  .sidebar-collapsed .menu-bl li {
    justify-content: flex-start;
    padding: 0 14px;
  }

  .sidebar-collapsed .menu-bl p,
  .sidebar-collapsed .brand-mini strong {
    display: block;
  }

  .sidebar-bl {
    width: min(286px, calc(100vw - 48px));
    transform: translateX(-105%);
  }

  .sidebar-bl.show {
    transform: translateX(0);
  }

  .sidebar-close {
    display: flex;
  }

  .main-content {
    width: 100%;
    margin-left: 0;
  }

  .sidebar-collapsed .main-content {
    width: 100%;
    margin-left: 0;
  }

  .module-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
