/* Delicias Urbanas · Barra editorial
 * Misma estética de la carta: papel crema, tinta chocolate y acento terracota.
 * El movimiento refuerza navegación y estados: nunca corre en bucle.
 */
body.du-site .site-header {
  --du-nav-height: 65px;
  isolation: isolate;
  overflow: visible;
  padding: 12px clamp(10px, 2vw, 24px) 10px;
  transition: background-color .42s ease, padding .48s cubic-bezier(.2,.76,.23,1);
}
body.du-site .site-header.du-header-scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
}
body.du-site .header-inner.shell {
  position: relative;
  min-height: var(--du-nav-height);
  padding: 7px 12px 7px 17px;
  gap: 12px;
  border: 2.5px solid #29190f;
  border-radius: 999px;
  background: #fff6e8;
  box-shadow: 0 6px 0 #29190f, 0 12px 26px rgba(61,32,12,.10);
  transition: min-height .48s cubic-bezier(.2,.76,.23,1),
              padding .48s cubic-bezier(.2,.76,.23,1),
              box-shadow .4s ease, background-color .4s ease;
}
body.du-site .site-header.du-header-scrolled .header-inner.shell {
  --du-nav-height: 55px;
  background: #fff7eb;
  box-shadow: 0 4px 0 #29190f, 0 13px 33px rgba(6,3,1,.22);
}

/* Logotipo: tiene respiración, sin aumentar el tamaño total de la barra. */
body.du-site .header-inner .brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  min-width: 0;
  border-radius: 999px;
  text-decoration: none;
}
body.du-site .header-inner .brand-mark,
body.du-site .header-inner .brand-mark img {
  width: 45px !important;
  height: 45px !important;
}
body.du-site .header-inner .brand-mark {
  flex: 0 0 45px !important;
  transform-origin: 50% 55%;
  transition: transform .54s cubic-bezier(.17,.91,.19,1.2);
}
body.du-site .header-inner .brand-mark img {
  filter: drop-shadow(0 3px 0 rgba(43,26,16,.14));
}
body.du-site .header-inner .brand:hover .brand-mark,
body.du-site .header-inner .brand:focus-visible .brand-mark {
  transform: rotate(-11deg) scale(1.095);
}
body.du-site .header-inner .brand strong {
  color: #29190f;
  font-family: "Lilita One", Poppins, sans-serif;
  font-size: clamp(.86rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .014em;
  transition: color .25s ease;
}
body.du-site .header-inner .brand:hover strong { color: #b84220; }
body.du-site .header-inner .brand small {
  margin-top: 5px;
  color: #795d46;
  font-size: .69rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Pista y píldora deslizante. El estado activo lo mueve header-polish.js. */
body.du-site .main-nav.du-nav-track {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  margin: 0;
  padding: 4px;
  border: 1px solid #eadac7;
  border-radius: 999px;
  background: #f5ecdc;
  box-shadow: inset 0 2px 4px rgba(54,34,22,.045);
  isolation: isolate;
}
body.du-site .du-nav-track .du-nav-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--du-nav-width, 0px);
  height: var(--du-nav-item-height, 38px);
  border-radius: 999px;
  background: #bf4b27;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 3px 9px rgba(109,43,17,.16);
  transform: translate3d(var(--du-nav-x, 0px), var(--du-nav-y, 0px), 0);
  opacity: 0;
  pointer-events: none;
  transition: transform .55s cubic-bezier(.2,.85,.2,1),
              width .55s cubic-bezier(.2,.85,.2,1),
              height .55s cubic-bezier(.2,.85,.2,1),
              opacity .2s ease;
  will-change: transform;
}
body.du-site .du-nav-track.du-has-selection .du-nav-indicator { opacity: 1; }
body.du-site .du-nav-track a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 73px;
  min-height: 38px;
  padding: 9px clamp(12px, 1.25vw, 19px);
  border-radius: 999px;
  color: #332017;
  background: transparent;
  font: 400 .9rem/1 "Lilita One", Poppins, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .015em;
  white-space: nowrap;
  transition: color .24s ease, transform .32s cubic-bezier(.21,.85,.21,1);
}
body.du-site .du-nav-track a::after { display: none !important; }
body.du-site .du-nav-track a.du-visual-active { color: #fff8e8; }
body.du-site .du-nav-track a:hover { transform: translateY(-1px); }
body.du-site .du-nav-track a:focus-visible { outline-offset: -2px; }

/* Acciones ordenadas: pedido en crema y carrito en terracota. */
body.du-site .header-inner .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 9px;
  margin: 0;
}
body.du-site .header-actions .text-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #332017;
  font: 400 .82rem/1 "Lilita One", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease, background-color .25s ease, transform .32s cubic-bezier(.2,.82,.25,1);
}
body.du-site .header-actions .text-button:hover {
  color: #af4021;
  background: #f5e8d4;
  transform: translateY(-1px);
}
body.du-site .header-inner .cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  gap: 8px;
  padding: 0 16px;
  border: 2px solid #29190f;
  border-radius: 999px;
  background: #b94020;
  color: #fffaf0;
  font: 400 .84rem/1 "Lilita One", sans-serif;
  box-shadow: 0 3px 0 #29190f;
  transform: translateY(0);
  transition: background-color .22s ease, box-shadow .22s ease, transform .4s cubic-bezier(.16,.88,.26,1.05);
}
body.du-site .header-inner .cart-button:hover {
  background: #d05028;
  color: #fffaf0;
  box-shadow: 0 5px 0 #29190f;
  transform: translateY(-2px);
}
body.du-site .header-inner .cart-button:active {
  transform: translateY(2px) scale(.98) !important;
  box-shadow: 0 1px 0 #29190f;
}
body.du-site .header-inner .cart-button > span:first-of-type {
  display: inline;
  white-space: nowrap;
}
body.du-site .header-inner .cart-button strong {
  color: inherit;
  font-family: "Lilita One", Poppins, sans-serif;
  font-size: .9rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.du-site .header-inner .cart-button .du-cart-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform .4s cubic-bezier(.17,.9,.2,1.3);
}
body.du-site .header-inner .cart-button:hover .du-cart-icon { transform: rotate(-9deg) translateY(-1px); }
body.du-site .header-inner .cart-button.du-cart-pulse {
  animation: du-cart-nudge .58s cubic-bezier(.18,.82,.24,1.1);
}
@keyframes du-cart-nudge {
  0%,100% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-3px) scale(1.045); }
  68% { transform: translateY(1px) scale(.987); }
}
body.du-site .header-inner .cart-count {
  top: -9px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border: 2px solid #fff6e8;
  background: #e7be48;
  color: #2b1a10;
  font: 900 .66rem/1 Inter, sans-serif;
}

/* Progreso fino en la base del papel. */
body.du-site .du-header-progress {
  position: absolute;
  bottom: 1px;
  left: 31px;
  right: 31px;
  height: 2.5px;
  border-radius: 8px;
  background: #bf4b27;
  opacity: 0;
  transform: scaleX(var(--du-page-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}
body.du-site .site-header.du-header-scrolled .du-header-progress { opacity: .55; }

@media (prefers-reduced-motion: no-preference) {
  body.du-site .site-header .header-inner.shell {
    animation: du-header-arrive .76s cubic-bezier(.17,.92,.27,1) .07s both;
  }
  @keyframes du-header-arrive {
    from { opacity: 0; transform: translate3d(0,-14px,0); }
    to { opacity: 1; transform: translate3d(0,0,0); }
  }
}

/* Menú móvil desplegable: navegación real también sin ancho de escritorio. */
body.du-site .du-mobile-nav-toggle { display: none; }
body.du-site .du-mobile-navigation[hidden] { display: none !important; }
body.du-site .du-mobile-navigation { display: none; }

@media (min-width: 1061px) {
  body.du-site .header-inner.shell {
    display: grid;
    grid-template-columns: minmax(214px, 1fr) auto minmax(244px, 1fr);
  }
  body.du-site .main-nav.du-nav-track { justify-self: center; }
  body.du-site .header-actions { justify-self: end; }
}

@media (max-width: 1060px) {
  body.du-site .header-inner .brand strong { font-size: .82rem; }
  body.du-site .header-inner .brand small { font-size: .64rem; }
  body.du-site .du-nav-track a { min-width: 65px; padding-inline: 12px; font-size: .8rem; }
  body.du-site .header-actions .text-button { padding-inline: 7px; font-size: .76rem; }
  body.du-site .header-inner .cart-button { padding-inline: 12px; }
}

@media (max-width: 890px) {
  body.du-site .site-header { padding: 10px 12px 8px; }
  body.du-site .header-inner.shell { min-height: 61px; padding: 6px 10px 6px 14px; }
  body.du-site .main-nav.du-nav-track { display: none !important; }
  body.du-site .header-actions .text-button.desktop-only { display: none !important; }
  body.du-site .du-mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1.5px solid #dbcab4;
    border-radius: 999px;
    color: #29190f;
    background: #f4e9d9;
    cursor: pointer;
    font: 400 .8rem/1 "Lilita One", Inter, sans-serif;
    transition: background .25s ease, transform .32s cubic-bezier(.17,.85,.23,1);
  }
  body.du-site .du-mobile-nav-toggle:hover,
  body.du-site .du-mobile-nav-toggle[aria-expanded="true"] { background: #e9d8bb; }
  body.du-site .du-mobile-nav-toggle:active { transform: scale(.96); }
  body.du-site .du-toggle-lines { position: relative; width: 17px; height: 15px; display: block; }
  body.du-site .du-toggle-lines i {
    display: block;
    position: absolute;
    left: 0;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    transition: transform .35s cubic-bezier(.2,.86,.24,1), top .35s ease, opacity .22s ease;
  }
  body.du-site .du-toggle-lines i:nth-child(1) { top: 2px; }
  body.du-site .du-toggle-lines i:nth-child(2) { top: 7px; }
  body.du-site .du-toggle-lines i:nth-child(3) { top: 12px; }
  body.du-site .du-mobile-nav-toggle[aria-expanded="true"] .du-toggle-lines i:nth-child(1) { top: 7px; transform: rotate(45deg); }
  body.du-site .du-mobile-nav-toggle[aria-expanded="true"] .du-toggle-lines i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  body.du-site .du-mobile-nav-toggle[aria-expanded="true"] .du-toggle-lines i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  body.du-site .du-mobile-navigation:not([hidden]) {
    display: grid;
    position: absolute;
    top: calc(100% + 3px);
    right: max(12px, calc((100vw - 520px) / 2));
    z-index: 100;
    width: min(360px, calc(100vw - 24px));
    gap: 3px;
    padding: 10px;
    border: 2px solid #29190f;
    border-radius: 21px;
    background: #fff5e7;
    box-shadow: 0 6px 0 #29190f, 0 20px 35px rgba(24,11,5,.27);
    animation: du-menu-drop .35s cubic-bezier(.17,.82,.2,1) both;
  }
  body.du-site .du-mobile-navigation a,
  body.du-site .du-mobile-navigation button {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) 20px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 47px;
    padding: 7px 13px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #29190f;
    text-decoration: none;
    text-align: left;
    font: 400 1.05rem/1 "Lilita One", Inter, sans-serif;
    cursor: pointer;
    transition: background-color .22s ease, transform .24s cubic-bezier(.2,.85,.23,1);
  }
  body.du-site .du-mobile-navigation a span:first-child,
  body.du-site .du-mobile-navigation button span:first-child {
    color: #b45c35;
    font: 700 .71rem/1 Inter, sans-serif;
  }
  body.du-site .du-mobile-navigation a span:last-child,
  body.du-site .du-mobile-navigation button span:last-child { color: #ad4726; font-size: 1rem; }
  body.du-site .du-mobile-navigation a:hover,
  body.du-site .du-mobile-navigation button:hover,
  body.du-site .du-mobile-navigation [aria-current="location"] { background: #f3e4cf; }
  body.du-site .du-mobile-navigation a:active,
  body.du-site .du-mobile-navigation button:active { transform: scale(.985); }
  @keyframes du-menu-drop {
    from { opacity: 0; transform: translateY(-9px) scale(.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

@media (max-width: 600px) {
  body.du-site .site-header { padding: 9px 9px 7px; }
  body.du-site .site-header.du-header-scrolled { padding: 6px 9px 7px; }
  body.du-site .header-inner.shell {
    --du-nav-height: 52px;
    min-height: var(--du-nav-height);
    padding: 5px 9px;
    gap: 6px;
  }
  body.du-site .site-header.du-header-scrolled .header-inner.shell { --du-nav-height: 48px; }
  body.du-site .header-inner .brand { gap: 8px; }
  body.du-site .header-inner .brand-mark,
  body.du-site .header-inner .brand-mark img { width: 39px !important; height: 39px !important; }
  body.du-site .header-inner .brand-mark { flex-basis: 39px !important; }
  body.du-site .header-inner .brand strong { font-size: .72rem; white-space: normal; max-width: 112px; }
  body.du-site .header-inner .brand small { display: none; }
  body.du-site .header-inner .header-actions { gap: 6px; }
  body.du-site .du-mobile-nav-toggle { min-height: 38px; padding-inline: 10px; }
  body.du-site .header-inner .cart-button { min-height: 40px; gap: 5px; padding-inline: 10px; }
  body.du-site .header-inner .cart-button > span:first-of-type { display: none; }
  body.du-site .header-inner .cart-button strong { font-size: .81rem; }
  body.du-site .du-header-progress { left: 22px; right: 22px; }
}
@media (max-width: 370px) {
  body.du-site .header-inner .brand > span:last-child { display: none; }
  body.du-site .header-inner .cart-button { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  body.du-site .site-header, body.du-site .header-inner.shell,
  body.du-site .header-inner .brand-mark,
  body.du-site .du-nav-track .du-nav-indicator,
  body.du-site .du-nav-track a,
  body.du-site .header-inner .cart-button,
  body.du-site .header-inner .cart-button.du-cart-pulse,
  body.du-site .du-mobile-nav-toggle,
  body.du-site .du-toggle-lines i,
  body.du-site .du-mobile-navigation:not([hidden]) {
    animation: none !important;
    transition: none !important;
  }
}
