.encabezado-principal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  height: 150px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.encabezado-contenido {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  height: 100%;


  h1 {
    margin: 0;
    text-align: center;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.logo {
  flex-basis: 150px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: visible;
}

.menu-principal,
.enlaces-footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  padding-right: 1rem;


  ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 0;
    gap: 2rem;
  }


  li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }


  a {
    color: var(--morado);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--borde-radio-grande);
    transition:
      background 0.3s,
      color 0.3s,
      box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(120, 39, 139, 0.07);
    position: relative;

    &:hover,
    &:focus {
      background: var(--rosa-muy-claro);
      color: var(--morado);
      box-shadow: 0 4px 16px rgba(196, 91, 212, 0.15);
    }

    &:active {
      color: var(--rosa);
      font-weight: bold;
      background: var(--rosa-muy-claro);
      border-bottom: 2px solid var(--morado);
      box-shadow: 0 6px 24px rgba(196, 91, 212, 0.18);
    }
  }
}



/* Footer centrado y accesible */
footer {
  height: 90px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;

  .enlaces-footer {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
  }
}

.footer-copyright {
  margin: 0 0 0.5rem 0;
  font-size: var(--h4-size);
  color: var(--texto);
}

@media (max-width: 768px) {
  .enlaces-footer a {
    font-size: var(--h4-size);
  }

  footer .enlaces-footer ul {
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: space-evenly;
    width: 100%;
  }

  .enlaces-footer li {
    margin: 0;
    padding: 0;

  }
}