.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(239, 230, 221, 0.94);
  border-bottom: 1px solid rgba(86, 70, 58, 0.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(45, 31, 20, 0.04);
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 80px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 280px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-kicker {
  margin-bottom: 6px;
  color: var(--cafe-texto-suave);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--negro);
  text-decoration: none;
}

.topbar-nav-wrap {
  display: contents;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.main-nav,
.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: #363636;
  font-size: 15px;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 2px;
  background: var(--rojo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--rojo);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(86, 70, 58, 0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.34);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  flex: 0 0 auto;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.6);
  border-color: rgba(201, 17, 17, 0.18);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--negro);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1140px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 74px;
  }

  .brand-block {
    min-width: 0;
  }

  .brand-kicker {
    margin-bottom: 4px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    font-size: 30px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar-nav-wrap {
    display: none;
    width: 100%;
    padding: 14px 0 4px;
    border-top: 1px solid rgba(86, 70, 58, 0.10);
  }

  .topbar-nav-wrap.is-open {
    display: block;
  }

  .main-nav {
    display: grid;
    gap: 10px;
    justify-content: stretch;
    margin-bottom: 14px;
  }

  .main-nav li {
    list-style: none;
  }

  .main-nav a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  .main-nav a::after {
    display: none;
  }

  .topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .topbar-actions .btn {
    min-height: 44px;
  }
}

@media (max-width: 780px) {
  .topbar {
    position: sticky;
  }

  .topbar-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 28px;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions .btn {
    width: 100%;
    justify-content: center;
  }
}