/* Comportamiento de navegación móvil sin JavaScript. */
.sticky.top-0 {
  background-color: #fffaf0;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 86%, transparent);
  box-shadow: 0 8px 22px rgb(46 31 22 / 6%);
}

.mobile-navigation {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-navigation {
    display: block;
    position: relative;
  }

  .mobile-navigation summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    list-style: none;
    border-radius: 0.375rem;
    color: var(--foreground);
    cursor: pointer;
  }

  .mobile-navigation summary::-webkit-details-marker {
    display: none;
  }

  .mobile-navigation summary:hover {
    background: var(--secondary);
  }

  .mobile-navigation nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(18rem, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: #fffaf0;
    box-shadow: 0 20px 45px rgb(46 31 22 / 14%);
  }

  .mobile-navigation nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: color-mix(in oklch, var(--foreground) 72%, transparent);
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-navigation nav a:hover,
  .mobile-navigation nav a:focus-visible {
    color: var(--foreground);
    background: var(--secondary);
  }
}
