/* Global CSS variables */
:root {
  --spacing-company: 3rem;
  --font-weight: 400;
  --border-radius: 0;
}

/* Typography */
h2,
h3,
hgroup> :last-child {
  font-weight: 200;
}

small {
  color: var(--muted-color);
}

/* Header */
.hero {
  background-color: #394046;
  background-image: url("/qso-farellones.jpeg");
  background-position: center;
  background-size: cover;
}

.hero h2 {
  padding: 2px 10px;
}

header {
  padding: var(--spacing-company) 0;
}

header hgroup> :last-child {
  color: var(--h3-color);
}

header hgroup {
  margin-bottom: var(--spacing-company);
}

/* Nav */
summary[role="link"].contrast:is([aria-current], :hover, :active, :focus) {
  background-color: transparent;
  color: var(--contrast-hover);
}

form.grid {
  grid-row-gap: 0;
}

figure {
  background: #fff;
  padding: 1em 1em 0 1em;
  box-shadow: 0 0.1em .5em rgba(0,0,0,0.2);
}

figure > img{
  max-width: 100%;
  height: auto;
}

figcaption {
  font-size: .8em;
  text-align: center;
  padding-bottom: 0;
  font-style: italic;
}

.rotate-left {
  transform: scale(0.9,0.9) rotate(-2deg);
}
.rotate-right {
  transform: scale(0.9,0.9) rotate(2deg);
}

/* Aside nav */
aside img {
  margin-bottom: 0.25rem;
}

aside p {
  margin-bottom: var(--spacing-company);
  line-height: 1.25;
}

.qsl div {
  margin-bottom: 2em;
}

.qsl div img {
  max-width: 264px;
  margin: auto auto;
}

.qsl.current div img {
  max-width: 528px;
}

@media (min-width: 992px) {
  .grid {
      grid-template-columns: repeat(auto-fit,minmax(40%,1fr));
    }
  .grid.qsl {
      grid-template-columns: repeat(auto-fit,minmax(20%,1fr));
    }
  .grid.qsl.current {
      grid-template-columns: repeat(auto-fit,minmax(40%,1fr));
    }
}

/* Oculta el botón en pantallas grandes */
#menu-toggle {
  display: none;
}

/* Responsive: en pantallas pequeñas */
@media (max-width: 1023px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .menu {
    width: 100%;
    display: none;
    flex-direction: column;
  }

  .menu.active {
    display: flex;
  }

  #menu-toggle {
    display: block;
    margin-left: auto;
  }

  nav ul:first-child {
    flex-grow: 1;
  }
}
