* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f8f4;
}

header {
  background-color: #ffffff;
  color: #151A38;
  width: 100%;
  z-index: 3;
  position: fixed;
  top: 0;
  left: 0;
}

nav {
  position: initial;
  top: 0;
  background-color: white;
  z-index: 1000;
  width: 100%;
}

.contenedor-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 1rem;
  padding-right: 1rem;
  padding-left: 1rem;
}

.logo-container img {
  height: 40px;
  margin-right: 10px;
}

.nombre-logo {
  font-size: 1.1rem;
  font-weight: lighter;
}

.hamburguesa {
  position: absolute;
  right: 1rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 25px;
}

.hamburguesa .linea {
  width: 25px;
  height: 3px;
  background-color: #151A38;
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Animación para cambiar a X */
.hamburguesa.activo .linea:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburguesa.activo .linea:nth-child(2) {
  opacity: 0;
}

.hamburguesa.activo .linea:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menú oculto inicialmente */
.menu {
  overflow: hidden;
  background-color: #ffffff;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.menu.open {
  max-height: 500px;
}

.menu ul {
  list-style: none;
}

.menu ul li a {
  display: block;
  padding: 1rem;
  color: rgb(0, 0, 0);
  text-decoration: none;
}

.menu ul li a:hover {
  background-color: #ffffff;
}

/* Ajustes para escritorio */
@media (min-width: 768px) {
  .hamburguesa {
    display: none;
  }

  .contenedor-header {
  }

  .menu {
    max-height: none;
    display: flex;
    justify-content: center;
    background-color: transparent;
    
  }

  .menu ul {
    display: flex;
    gap: 1rem;
  }

  .menu ul li {
    border: none;
  }

  .menu ul li a {
    color: #151A38;
    padding: 1rem;
  }

  #contenido {
    margin-top: 0 !important;
  }


  
}

/* Espacio para que no tape el menú fijo */
#contenido {
  margin-top: 60px;
  transition: margin-top 0.3s ease;
}
