* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

/* ── Sticky wrapper ── */
.menu-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    #ffffff 77.4%,
    rgba(255, 255, 255, 0) 100%
  );
  max-width: 98rem;
  margin: 0 auto;
}

.menu-wrap.fixed-activo{
  position: fixed !important;
  top: 3rem;
  left: 0;
  width: 95%;
  z-index: 9999;
  animation: slideDown 0.3s ease-out; 
  max-width: 98rem;
  margin: 0 auto;
  right: 0;
}

/* ── Anchor menu ── */
.anchor-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  background: transparent;
  box-sizing: border-box;
  padding: 0;
  margin: 3rem 0;
}

.anchor-menu a {
  display: flex;
  flex: 1;
  width: auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  min-width: 100px;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.anchor-menu a:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  background: #796060;
  color: #fff;
}

.anchor-menu .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.anchor-menu .icon-circle img {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
}

.anchor-menu .label {
  text-align: center;
  line-height: 1.2;
}

.anchor-menu .chevron {
  font-size: 10px;
  color: #999;
}

.article .anchor-menu a:hover .label {
  color: #fff;
}

/* ── Mobile selector ── */
.mobile-selector {
  display: none;
  padding: 12px 16px;
  background: transparent;
}

.mobile-selector-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #7b7b7b;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  font-family: Arial, sans-serif;
  gap: 10px;
}

.mobile-selector-trigger .trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.mobile-selector-trigger .trigger-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8a020;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mobile-selector-trigger .trigger-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mobile-selector-trigger .trigger-icon.hidden {
  display: none;
}

.mobile-selector-trigger .trigger-text {
  color: #333;
}

.mobile-selector-trigger .trigger-text.placeholder {
  color: #333333;
}

.mobile-selector-trigger .trigger-chevron {
  font-size: 13px;
  color: #555;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.mobile-selector-trigger.open .trigger-chevron {
  transform: rotate(180deg);
}

.mobile-selector-dropdown {
  display: none;
  border: 1.5px solid #ccc;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #fff;
  overflow: hidden;
  margin-top: -6px;
}

.mobile-selector-dropdown.open {
  display: block;
}

.mobile-selector-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  border-top: 1px solid #f0f0f0;
}

.mobile-selector-dropdown a:hover {
  background: #faf5ec;
}

.mobile-selector-dropdown .opt-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8a020;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mobile-selector-dropdown .opt-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .anchor-menu {
    display: none;
  }
  .mobile-selector {
    display: block;
  }
  .article .anchor-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .article .anchor-menu::-webkit-scrollbar {
    display: none;
  }
}


@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
