@font-face {
  font-family: "Object Sans";
  src: url("../fonts/ObjectSans-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Object Sans";
  src: url("../fonts/ObjectSans-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --despertar-night: #070b37;
  --despertar-blue: #3853a4;
  --despertar-electric: #0000ff;
  --despertar-sun: #fdc300;
  --despertar-orange: #ef7d00;
  --despertar-coral: #f0826b;
  --despertar-sky: #52eaff;
  --despertar-ink: #0e165e;
  --despertar-muted: #555555;
  --despertar-surface: #ffffff;
  --despertar-line: rgba(14, 22, 94, 0.12);
}

html {
  min-height: 100%;
}

.despertar-app {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(125deg, rgba(253, 195, 0, 0.18) 0 13rem, transparent 13rem 100%),
    linear-gradient(180deg, #fff8df 0, #f7f9ff 18rem, #f5f6fb 100%);
  color: var(--despertar-night);
  font-family: "Object Sans", "Open Sans", ui-sans-serif, system-ui, sans-serif;
}

.despertar-sidebar {
  background:
    linear-gradient(180deg, rgba(56, 83, 164, 0.28), transparent 42%),
    var(--despertar-night);
  box-shadow: 18px 0 48px rgba(7, 11, 55, 0.24);
}

.despertar-sidebar::after {
  position: absolute;
  right: -4.25rem;
  bottom: -3rem;
  width: 15rem;
  height: 15rem;
  content: "";
  background: url("../images/brand/despertar-avatar-rastro.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.despertar-sidebar nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.despertar-sidebar nav::-webkit-scrollbar {
  width: 6px;
}

.despertar-sidebar nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.despertar-nav-label {
  display: flex;
  align-items: center;
  min-height: 2rem;
  gap: 0.75rem;
  padding: 0 0.75rem 0.45rem;
  color: rgba(82, 234, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.despertar-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3rem;
  gap: 0.9rem;
  border-radius: 0.5rem;
  padding: 0.7rem 0.85rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  font-weight: 700;
  outline: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.despertar-nav-link:hover,
.despertar-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.despertar-nav-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(82, 234, 255, 0.28);
}

.despertar-nav-link.is-active {
  background: var(--despertar-sun);
  color: var(--despertar-night);
}

.despertar-nav-link.is-active::before {
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: -0.25rem;
  width: 0.25rem;
  border-radius: 999px;
  content: "";
  background: var(--despertar-orange);
}

.despertar-nav-icon {
  width: 2.5rem;
  flex: 0 0 2.5rem;
  text-align: center;
  font-size: 1rem;
}

.despertar-mobile-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--despertar-line);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(16px);
}

.despertar-mobile-action {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--despertar-night);
  color: #ffffff;
}

.despertar-masthead {
  position: relative;
  display: grid;
  min-height: 5.75rem;
  overflow: hidden;
  border-bottom: 1px solid var(--despertar-line);
  background: var(--despertar-night);
}

.despertar-masthead-media {
  position: absolute;
  inset: 0;
}

.despertar-masthead-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 11, 55, 0.92), rgba(7, 11, 55, 0.68) 42%, rgba(7, 11, 55, 0.2)),
    linear-gradient(180deg, transparent, rgba(7, 11, 55, 0.4));
}

.despertar-masthead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  opacity: 0.56;
}

.despertar-masthead-copy {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 5.75rem;
  padding: 1rem 1.25rem 1rem;
  color: #ffffff;
}

.despertar-masthead-copy strong {
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1;
}

.despertar-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  border-radius: 0.5rem;
  background: var(--despertar-sun);
  color: var(--despertar-night);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 0.75rem;
  text-transform: uppercase;
}

.despertar-content {
  position: relative;
}

.despertar-content h1,
.despertar-content h2,
.despertar-content h3 {
  color: var(--despertar-night);
}

.despertar-content a:not([class]) {
  color: var(--despertar-blue);
  font-weight: 700;
}

.despertar-content input:focus,
.despertar-content select:focus,
.despertar-content textarea:focus,
.despertar-content button:focus-visible,
.despertar-content a:focus-visible {
  outline: 3px solid rgba(82, 234, 255, 0.42);
  outline-offset: 2px;
}

.despertar-mobile-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  width: 100vw;
  max-width: 100vw;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--despertar-night);
  padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 32px rgba(7, 11, 55, 0.18);
}

.despertar-mobile-nav-link {
  display: grid;
  min-width: 0;
  min-height: 3.8rem;
  place-items: center;
  gap: 0.28rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.despertar-mobile-nav-link span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.despertar-mobile-nav-link i {
  font-size: 1.05rem;
}

.despertar-mobile-nav-link.is-active {
  background: var(--despertar-sun);
  color: var(--despertar-night);
}

@media (min-width: 1024px) {
  .despertar-masthead {
    min-height: 7.75rem;
  }

  .despertar-masthead-copy {
    min-height: 7.75rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 640px) {
  .despertar-masthead {
    min-height: 4.75rem;
  }

  .despertar-masthead-copy {
    min-height: 4.75rem;
    gap: 0.6rem;
  }

  .despertar-kicker {
    min-height: 1.65rem;
    padding-inline: 0.55rem;
    font-size: 0.66rem;
  }
}
