body {
  background: var(--color-acento-3) url("../img/bg.7e10246e3974.jpg?v=1") center / cover no-repeat;
  color: #fff;
}

.container-fluid {
  position: relative;
  padding: 96px 7.3vw 72px;
}

.title {
  font-family: var(--font-titulo);
  font-size-adjust: var(--ajuste-titulo);
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-titulo);
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(0, 0, 0, .3);
}

/* menus */
:root {
  --menu-pad-y: 1.2rem;
}

.list-group {
  --bs-list-group-bg: transparent;
  --bs-list-group-color: #fff;
  --bs-list-group-border-color: rgba(255, 255, 255, .75);
  --bs-list-group-border-radius: 0;
  --bs-list-group-item-padding-y: var(--menu-pad-y);
  --bs-list-group-action-color: #fff;
  --bs-list-group-action-hover-color: #fff;
  --bs-list-group-action-active-color: #fff;
  font-family: var(--font-sans);
  font-size-adjust: var(--font-size-adjust);
  font-size: 14.0625px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, .16);
}

.list-group-item {
  border-left: 0;
  border-right: 0;
}

.list-group-item-action {
  transition: background-color .4s, color .4s, text-shadow .4s;
}

/* menu a */
.menu-a {
  /* items 25% smaller: font and padding at 75% */
  --bs-list-group-item-padding-x: 2.475rem;
  --bs-list-group-item-padding-y: .9rem;
  font-size: 10.55px;
  --bs-list-group-border-color: rgba(255, 255, 255, .5); /* lines at 50% opacity */
  --bs-list-group-action-hover-bg: rgba(255, 255, 255, .5);
  --bs-list-group-action-hover-color: #000;
  --bs-list-group-action-active-bg: rgba(255, 255, 255, .5);
  --bs-list-group-action-active-color: #000;
  font-weight: 500;
  letter-spacing: .05em;
}

.menu-a .list-group-item-action:hover {
  text-shadow: none;
}

/* menu b */
.menu-b {
  font-weight: 400;
}

.menu-b strong {
  font-weight: 800;
}

/* no line above the first eje */
.menu-b .list-group-item:first-child {
  border-top-width: 0;
}

/* hover colours counted from the bottom, so the ejes keep theirs when an item is added on top */
.menu-b .list-group-item:nth-last-child(n+4) { --bs-list-group-action-hover-bg: color-mix(in srgb, var(--color-acento-2) 50%, transparent); --bs-list-group-action-active-bg: color-mix(in srgb, var(--color-acento-2) 50%, transparent); }
.menu-b .list-group-item:nth-last-child(3) { --bs-list-group-action-hover-bg: color-mix(in srgb, var(--color-acento-3) 50%, transparent); --bs-list-group-action-active-bg: color-mix(in srgb, var(--color-acento-3) 50%, transparent); }
.menu-b .list-group-item:nth-last-child(2) { --bs-list-group-action-hover-bg: color-mix(in srgb, var(--color-superficie) 50%, transparent); --bs-list-group-action-active-bg: color-mix(in srgb, var(--color-superficie) 50%, transparent); }
.menu-b .list-group-item:nth-last-child(1) { --bs-list-group-action-hover-bg: color-mix(in srgb, var(--color-acento) 50%, transparent); --bs-list-group-action-active-bg: color-mix(in srgb, var(--color-acento) 50%, transparent); }

@media (min-width: 992px) {
  /* bottom aligned with menu b's 1st item: lift by the height of items 2-4 */
  .menu-a {
    /* 21.09375px = line height of the eje items (1.5 × 14.0625px) */
    margin-bottom: calc(3 * (2 * var(--menu-pad-y) + 21.09375px + 1px));
  }
}

@media (max-width: 575.98px) {
  .title {
    font-size: 24px;
    line-height: 30px;
  }
}

.credit {
  position: absolute;
  right: 7.3vw;
  bottom: 24px;
  color: #fff;
  font-size: 10px;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.credit:hover { text-decoration: underline; }

/* wraps the title where the prototype's index.html has <br>s (the Django title is a single line of text) */
.title { max-width: 15.4em; }

/* search and hamburger menu on the top edge of the screen, right-aligned with the container */
.home-menu {
  position: absolute;
  top: 0;
  right: 7.3vw;   /* the container's inner right edge, not the window's */
}

.home-menu .dropdown { position: static; }

/* the menu is a light card on the palette's own background: it has to be told apart from the stacks,
   which are the palette's accents darkened */
.home-menu .dropdown-menu {
  --bs-dropdown-link-color: var(--color-texto);
  background: var(--color-fondo);
  font-size: 15px;
  line-height: 32px;
  position: absolute !important;
  inset: 0 0 auto auto !important;
  transform: none !important;
  margin: 0 !important;
}

.home-menu .dropdown-menu .dropdown-item { color: var(--color-texto); }

.home-menu .dropdown-menu .dropdown-item:hover,
.home-menu .dropdown-menu .dropdown-item:focus { color: #fff; }

.home-menu .dropdown-menu .dropdown-item.active { color: var(--color-acento); }

/* the submenu entries, a step smaller again */
.home-menu .dropdown-menu .sub-menu .dropdown-item { font-size: 12px; line-height: 18px; }
