/* v5264 · Navidad consistente en toda la carta, legible y liviana. */
:root {
  --tv-v5264-evergreen: #2d7049;
  --tv-v5264-berry: #b64a53;
  --tv-v5264-gold: #d7b567;
}

html[data-theme="dark"] body {
  --tv-v5264-edge: rgba(215, 181, 103, .34);
  --tv-v5264-tint: rgba(45, 112, 73, .10);
  --tv-v5264-glow: rgba(245, 203, 120, .22);
}
html[data-theme="light"] body {
  --tv-v5264-edge: rgba(130, 93, 43, .27);
  --tv-v5264-tint: rgba(45, 112, 73, .055);
  --tv-v5264-glow: rgba(192, 143, 65, .18);
}

/* La guirnalda superior recupera su luz cálida en ambos modos. */
html body .tv-xmas-lights-v513 {
  opacity: 1 !important;
  filter: none !important;
}
html body .tv-xmas-bulb-v513 {
  opacity: .86 !important;
  box-shadow: 0 0 7px 2px rgba(255, 215, 143, .38), 0 0 15px 3px rgba(255, 193, 100, .14) !important;
}

/* El buscador mantiene completo el texto incluso en teléfonos angostos. */
html body .search {
  border-color: var(--tv-v5264-edge) !important;
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--tv-v5264-tint) 70%, transparent), transparent 72%) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .38), 0 5px 16px rgba(61, 39, 21, .08) !important;
}
html body .search:focus-within {
  border-color: color-mix(in srgb, var(--tv-v5264-gold) 70%, var(--tv-v5264-evergreen)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tv-v5264-gold) 18%, transparent), 0 7px 18px rgba(48, 37, 23, .10) !important;
}
html body .search input#searchInput {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  font-size: 14px !important;
  letter-spacing: -.025em !important;
  text-overflow: clip !important;
}
html body .search input#searchInput,
html body .search input#searchInput:focus,
html body .search input#searchInput:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
html body .search input#searchInput::placeholder {
  color: var(--muted) !important;
  opacity: .92 !important;
  font-size: 14px !important;
  letter-spacing: -.035em !important;
}

/* Un mismo marco verde y dorado acompaña accesos, promociones y categorías. */
html body .tv-business-action-v420 {
  border-color: color-mix(in srgb, var(--tv-v5264-gold) 28%, var(--line)) !important;
  background-image: linear-gradient(145deg, color-mix(in srgb, var(--tv-v5264-tint) 75%, transparent), transparent 68%) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .34), 0 5px 15px rgba(46, 35, 22, .075) !important;
}
html body .promo-banners,
html body #promoBanners {
  border-color: color-mix(in srgb, var(--tv-v5264-gold) 35%, var(--tv-v5264-evergreen)) !important;
  box-shadow: 0 14px 30px rgba(20, 30, 23, .12), inset 0 0 0 1px rgba(255, 255, 255, .09) !important;
}
html body .category {
  position: relative !important;
  overflow: hidden !important;
  border-color: color-mix(in srgb, var(--tv-v5264-gold) 27%, var(--line)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 15px rgba(36, 49, 37, .055) !important;
}
html body .category::before {
  content: "" !important;
  position: absolute !important;
  z-index: 3 !important;
  top: 1px !important;
  right: 15px !important;
  left: 15px !important;
  display: block !important;
  height: 9px !important;
  border-radius: 0 0 50% 50% !important;
  opacity: .96 !important;
  pointer-events: none !important;
  background-image:
    radial-gradient(circle at 6px 4px, #fff2c5 0 1px, #d94c50 1.5px 2.4px, transparent 3.5px),
    radial-gradient(circle at 19px 4px, #eaffdf 0 1px, #4f9f67 1.5px 2.4px, transparent 3.5px),
    radial-gradient(circle at 32px 4px, #fff1bd 0 1px, #d5aa55 1.5px 2.4px, transparent 3.5px),
    linear-gradient(180deg, transparent 0 2px, color-mix(in srgb, var(--tv-v5264-evergreen) 56%, var(--tv-v5264-gold)) 2px 3px, transparent 3px);
  background-size: 39px 9px, 39px 9px, 39px 9px, 100% 9px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 0 3px var(--tv-v5264-glow));
}
html body .category.is-active {
  border-color: color-mix(in srgb, var(--tv-v5264-gold) 54%, var(--tv-v5264-evergreen)) !important;
  box-shadow: inset 0 0 0 1px rgba(215, 181, 103, .13), 0 9px 23px rgba(35, 72, 48, .11) !important;
}
html body .product {
  border-color: color-mix(in srgb, var(--tv-v5264-evergreen) 19%, var(--line)) !important;
  box-shadow: inset 0 1px 0 rgba(215, 181, 103, .15), 0 3px 12px rgba(37, 35, 26, .04) !important;
}
html body .product-media img {
  filter: none !important;
  mix-blend-mode: normal !important;
}
html body .option.selected,
html body .pizza-size-option.selected,
html body .multi-option.selected {
  border-color: color-mix(in srgb, var(--tv-v5264-gold) 72%, var(--tv-v5264-evergreen)) !important;
}

/* Luces discretas en las superficies del pedido y de los configuradores. */
html body #cartDrawer .drawer-head,
html body #productModal .modal-head {
  border-top: 2px solid color-mix(in srgb, var(--tv-v5264-gold) 72%, transparent) !important;
  background-image:
    radial-gradient(circle at 7px 5px, #fff0c5 0 1px, #d94c50 1.5px 2.2px, transparent 3.2px),
    radial-gradient(circle at 20px 5px, #eaffdf 0 1px, #4f9f67 1.5px 2.2px, transparent 3.2px),
    radial-gradient(circle at 33px 5px, #fff1bd 0 1px, #d5aa55 1.5px 2.2px, transparent 3.2px),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 97%, var(--tv-v5264-gold)), var(--surface)) !important;
  background-size: 39px 10px, 39px 10px, 39px 10px, 100% 100% !important;
  background-repeat: repeat-x, repeat-x, repeat-x, no-repeat !important;
}
html body #cartDrawer .drawer-foot {
  border-top-color: color-mix(in srgb, var(--tv-v5264-gold) 38%, var(--line)) !important;
}
html body #cartDrawer[aria-hidden="true"] {
  visibility: hidden !important;
  pointer-events: none !important;
}
html body #cartDrawer[aria-hidden="false"] {
  visibility: visible !important;
  pointer-events: auto !important;
}
html body #drawerBackdrop:not(.show) {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* La bolita queda como objetivo táctil claro; la tira conserva su arrastre. */
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-cord {
  width: 42px !important;
  left: 50% !important;
  cursor: pointer !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-thread {
  left: 20px !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob {
  left: 14px !important;
  width: 14px !important;
  height: 16px !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 5px rgba(38, 25, 12, .25), 0 0 0 4px rgba(215, 181, 103, .12), inset 0 1px 1px #fff !important;
  cursor: pointer !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob::after {
  top: 4px !important;
  left: 4px !important;
  width: 4px !important;
  height: 4px !important;
}

/* Final: una sola pantalla y un fundido cálido desde el propio contenido. */
html body .tv-v524-finale {
  height: 100vh !important;
  height: 100svh !important;
  min-height: 460px !important;
  overflow: hidden !important;
  background: transparent !important;
}
html body .tv-v524-final-sticky {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100svh !important;
  min-height: 460px !important;
}
html body .tv-v524-final-sticky::before,
html body .tv-v524-final-sticky::after {
  opacity: 0 !important;
  transition: opacity .9s ease !important;
}
html body .tv-v524-finale.is-revealed .tv-v524-final-sticky::before {
  opacity: .58 !important;
}
html body .tv-v524-finale.is-revealed .tv-v524-final-sticky::after {
  opacity: .32 !important;
}
html body .tv-v524-final-reveal {
  position: absolute !important;
  inset: 0 !important;
  clip-path: none !important;
  opacity: 1 !important;
  transform: none !important;
  will-change: auto !important;
  transition: opacity .85s cubic-bezier(.22, .61, .36, 1), transform 1.1s cubic-bezier(.22, .61, .36, 1) !important;
}
html body .tv-v524-final-surface {
  filter: none !important;
  will-change: auto !important;
  background:
    radial-gradient(ellipse 49% 44% at 22% 44%, var(--tv-v524-aurora-a), transparent 77%),
    radial-gradient(ellipse 44% 40% at 80% 32%, var(--tv-v524-aurora-b), transparent 78%),
    radial-gradient(ellipse 60% 42% at 52% 103%, var(--tv-v524-aurora-c), transparent 76%),
    linear-gradient(145deg, #091913 0%, #12281f 53%, #101b18 100%) !important;
}
html body .tv-v524-final-surface::before {
  inset: 0 !important;
  opacity: .18 !important;
  transform: scale(.97) !important;
  filter: none !important;
  animation: none !important;
  background:
    radial-gradient(ellipse 35% 29% at 50% 39%, var(--tv-v524-aurora-glow), transparent 78%),
    radial-gradient(ellipse 28% 32% at 17% 71%, rgba(64, 139, 92, .18), transparent 82%),
    radial-gradient(ellipse 27% 31% at 84% 65%, rgba(202, 157, 89, .14), transparent 82%) !important;
  transition: opacity 1.15s ease, transform 1.4s cubic-bezier(.2, .7, .25, 1) !important;
}
html body .tv-v524-final-content {
  width: min(660px, calc(100vw - 40px)) !important;
  padding: clamp(16px, 3vh, 28px) 18px 24px !important;
  opacity: 1 !important;
  transform: none !important;
  will-change: auto !important;
  transition: opacity .72s ease .08s, transform .9s cubic-bezier(.2, .7, .25, 1) .08s !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-reveal {
  opacity: 0 !important;
  transform: scale(.988) !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-content {
  opacity: 0 !important;
  transform: translate3d(0, 10px, 0) scale(.995) !important;
}
html body .tv-v524-finale.is-revealed .tv-v524-final-reveal {
  opacity: 1 !important;
  transform: scale(1) !important;
}
html body .tv-v524-finale.is-revealed .tv-v524-final-content {
  opacity: 1 !important;
  transform: none !important;
}
html body .tv-v524-finale.is-revealed .tv-v524-final-surface::before {
  opacity: .74 !important;
  transform: scale(1.025) !important;
}
html[data-theme="light"] body .tv-v524-final-surface {
  background:
    radial-gradient(ellipse 47% 42% at 22% 40%, rgba(232, 211, 166, .54), transparent 78%),
    radial-gradient(ellipse 42% 40% at 81% 33%, rgba(175, 203, 186, .60), transparent 78%),
    radial-gradient(ellipse 58% 42% at 50% 104%, rgba(225, 201, 159, .48), transparent 76%),
    linear-gradient(145deg, #edf3e9 0%, #f7f0e1 53%, #e5eee7 100%) !important;
}
html[data-theme="light"] body .tv-v524-final-surface::before {
  background:
    radial-gradient(ellipse 35% 29% at 50% 39%, rgba(255, 245, 216, .78), transparent 78%),
    radial-gradient(ellipse 28% 32% at 17% 71%, rgba(98, 150, 113, .16), transparent 82%),
    radial-gradient(ellipse 27% 31% at 84% 65%, rgba(197, 150, 82, .12), transparent 82%) !important;
}

@media (max-width: 380px) {
  html body .search input#searchInput,
  html body .search input#searchInput::placeholder {
    font-size: 13px !important;
  }
  html body .tv-v524-final-content {
    width: calc(100vw - 28px) !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
}
@media (max-height: 620px) and (max-width: 650px) {
  html body .tv-v524-finale,
  html body .tv-v524-final-sticky {
    min-height: 100svh !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .tv-v524-final-reveal,
  html body .tv-v524-final-content,
  html body .tv-v524-final-surface::before,
  html body .tv-xmas-bulb-v513 {
    animation: none !important;
    transition: none !important;
  }
  html body .tv-v524-final-reveal,
  html body .tv-v524-final-content {
    opacity: 1 !important;
    transform: none !important;
  }
}
