.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 42px;
}

/* NAV */
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s;
}

nav a:hover {
  color: var(--primary);
}

/* BOTÓN NAV */
.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.btn-nav:hover{
  background: #10619b;
}

/* SECCIONES */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background:var(--white);
}

.section:nth-of-type(even) {
  background: var(--alt);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  background: var(--primary);
  color: white;
}

/* LAYOUT EDITOR */
.layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 70px);
}

.panel-left {
  width: 420px;
  min-width: 340px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow-y: auto;
}

.panel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

@media(max-width:768px){

    .nav-container{
        flex-direction:column;
        gap:15px;
    }

    nav{

        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;

    }

    nav a{

        margin:0;

    }

}