/* Navegación horizontal en escritorio; el menú móvil conserva el panel lateral. */
.sites-frame {
  display: none;
}

.google-sites-mode .sites-frame {
  display: block;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(18, 53, 79, .14);
}

.sites-frame-notice {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 7px 20px;
  background: #a9c9e8;
  color: #17324b;
  font-family: Georgia, serif;
  font-size: .9rem;
  text-align: center;
}

.sites-frame-bar {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 26px;
  color: #fff;
  background: #087fbd;
}

.sites-frame-brand,
.sites-frame-bar nav button,
.sites-frame-menu {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.sites-frame-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  white-space: nowrap;
}

.sites-frame-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #087fbd;
  background: #fff;
  font-weight: 900;
}

.sites-frame-brand strong { font-size: 1rem; }
.sites-frame-brand strong span { font-weight: 400; }
.sites-frame-brand i {
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.32);
  font-style: normal;
  font-size: .95rem;
}

.sites-frame-bar nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.sites-frame-bar nav button,
.sites-frame-bar > a {
  padding: 9px 10px;
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  font-size: .87rem;
  font-weight: 700;
  white-space: nowrap;
}

.sites-frame-bar nav button:hover { background: rgba(255,255,255,.14); }
.sites-frame-bar > a { border-left: 1px solid rgba(255,255,255,.28); border-radius: 0; }
.sites-frame-menu { display: none; font-size: 1.35rem; padding: 5px; }

.google-sites-mode .sidebar { display: none; }
.google-sites-mode .main-column { width: 100%; margin-left: 0; }
.google-sites-mode .topbar { top: 104px; }

@media (min-width: 701px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: 76px;
    padding: 10px 28px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    background: linear-gradient(90deg, #087fbd 0%, #0875b0 62%, #075f92 100%);
    box-shadow: 0 5px 20px rgba(9, 68, 106, .16);
    transform: none;
    transition: none;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 218px;
    padding: 0 22px 0 0;
    border-right: 1px solid rgba(255, 255, 255, .2);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .side-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    width: auto;
    min-height: 44px;
    padding: 10px 11px;
    white-space: nowrap;
  }

  .nav-item > span {
    width: auto;
  }

  .nav-item b {
    display: none;
  }

  .back-aula {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding: 10px 0 10px 18px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .2);
    white-space: nowrap;
  }

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

  .topbar {
    top: 76px;
    height: 76px;
  }

  .menu-button {
    display: none;
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  .sidebar {
    gap: 9px;
    padding-inline: 18px;
  }

  .brand {
    min-width: auto;
    padding-right: 15px;
  }

  .brand small,
  .nav-item > span,
  .back-aula span {
    display: none;
  }

  .nav-item {
    padding-inline: 9px;
    font-size: .88rem;
  }

  .back-aula {
    padding-left: 12px;
    font-size: .88rem;
  }
}

/* En celulares, la navegación es exclusivamente la barra inferior. */
@media (max-width: 700px) {
  .sidebar,
  .menu-button {
    display: none !important;
  }

  .sites-frame-notice {
    min-height: 32px;
    padding: 5px 12px;
    font-size: .75rem;
  }

  .sites-frame-bar {
    min-height: 58px;
    gap: 10px;
    padding: 8px 13px;
  }

  .sites-frame-menu { display: block; }
  .sites-frame-mark { width: 34px; height: 34px; font-size: .8rem; }
  .sites-frame-brand strong { font-size: .9rem; }
  .sites-frame-brand i { padding-left: 9px; font-size: .84rem; }
  .sites-frame-bar nav,
  .sites-frame-bar > a { display: none; }
  .google-sites-mode .topbar { top: 90px; }
}
