@media screen and (max-width: 1100px) {
  .contenedor {
    width: 100%;
  }
}

@media screen and (max-width: 960px) {
  .cabecera h1 {
    margin-bottom: 0;
  }

  pre,
  .pizarra {
    width: 95%;
  }

  .tema-completo {
    display: block;
  }

  .contenido-apunte {
    width: 90%;
    margin: auto;
  }

  .relacionados {
    width: 90%;
    margin: 2rem auto;
  }

  .naveg-ctxt {
    display: flex;
    justify-content: center;
  }

  .listado-lateral {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 1rem;
  }

  .item-lateral {
    width: calc(33.3% - 0.33rem);
    margin: 0;
  }

  .item-lateral a,
  .item-lateral em {
    height: 100%;
    word-break: break-word;
  }

  .bloque-menu-ejemplos ul {
    display: flex;
    justify-content: center;
  }

  .temas {
    margin: 5rem 0rem;
  }

  .temas>h2,
  h2,
  h3,
  h4 {
    line-height: 1;
  }

  /*ejemplos*/
  pre {
    margin: 2rem auto;
  }

  /*pie*/
  .item-menu-seccion {
    width: 45%;
  }
}

@media screen and (max-width: 790px) {
  .definicion span {
    width: 60%;
  }

  .bloque-portada .enlaces a,
  .bloque-seccion-apuntes .enlaces a {
    font-size: 1.6rem;
    font-weight: 400;
  }

  /*ejemplos*/

  .apartado {
    padding: 2rem 1rem;
  }

  .contenido-apunte {
    width: 95%;
  }
}

@media screen and (max-width: 768px) {
  .cabecera .menu {
    height: 170px;
  }

  .cabecera {
    overflow: visible;
  }

  .cabecera hgroup {
    height: 155px;
  }

  .submenu-2 {
    display: none;
  }

  .item-submenu:hover .submenu-2 {
    display: none;
  }

  .item-submenu-2 a:hover {
    transform: scale(1);
  }

  .item-submenu>a {
    padding: 0.1rem;
    height: auto;
  }

  .item-submenu-2 a {
    padding: 0.1rem;
  }

  .lista-resumen,
  .listado {
    margin: 1rem;
  }

  .definicion li {
    margin: 2rem;
  }
  .botonera-flex>button {
    width: 45%;
  }

  /*Portada*/
  .portada main.contenido {
    display: block;
  }

  .portada .contenido>.bloque-portada {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .cabecera hgroup {
    height: 115px;
  }

  .cabecera h1::after {
    top: -20px;
  }

  .item-menu {
    width: 50%;
  }

  .submenu {
    top: 4.5rem;
    align-content: flex-start;
  }

  .cabecera .menu {
    align-content: flex-start;
    height: 230px;
  }

  .item-submenu {
    width: 25%;
  }

  .item-submenu>a {
    padding: 0.5rem 0.2rem;
  }

  .contenido-apunte {
    width: 100%;
  }

  .link-indice {
    align-self: last baseline;
  }

  .intro>p {
    margin: 0 1rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .lista-resumen li:has(strong + span) {
    flex-wrap: wrap;
  }
  
  .lista-resumen strong {
    text-align: left;
  }

  .listado {
    padding: 1rem 2rem;
    border: none;
  }

  .item-lateral,
  .naveg-ctxt a,
  .nav-ejemplos li {
    width: calc(100% - 0.33rem);
  }

  .naveg-ctxt,
  .bloque-menu-ejemplos ul {
    flex-wrap: wrap;
  }

  .definicion li {
    margin: 1rem 1.5rem;
    padding: 0.5rem 0;
  }

  .definicion span,
  .definicion code {
    width: 100%;
  }

  .pizarra {
    padding: 0.5rem;
  }

  .titulo {
    line-height: 1;
    font-size: 2.5rem;
    padding: 1rem;
  }
  .tabla-resumen td, .tabla-resumen th {
	display: block;
	text-align: center;
}

  /*ejemplos*/
  .apartado {
    border: none;
  }

  .explicacion {
    padding: 0.5rem;
  }

  .lista {
    margin: 1em;
  }

  .visor input {
    max-width: 100%;
  }

  .visor {
    padding: 0.5rem;
  }

  .visor label {
    display: block;
  }

  /*pie*/
  .item-menu-seccion {
    width: 95%;
  }
}