/* v5257 · tirador vertical día/noche, luces encendidas y modo claro cálido. */

html body #themeBtn.tv-v5254-pull-switch,
html body #themeBtn.tv-v5254-pull-switch:hover,
html body #themeBtn.tv-v5254-pull-switch:active {
  position: relative !important;
  display: block !important;
  flex: 0 0 82px !important;
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text, #292116) !important;
  cursor: pointer !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: none !important;
}

html body #themeBtn.tv-v5254-pull-switch::before,
html body #themeBtn.tv-v5254-pull-switch::after { content: none !important; }
html body #themeBtn.tv-v5254-pull-switch:active { cursor: pointer !important; }
html body #themeBtn.tv-v5254-pull-switch:focus-visible {
  outline: 2px solid #df922c !important;
  outline-offset: 2px !important;
}

html body #themeBtn.tv-v5254-pull-switch .tv-v5254-theme-icon {
  position: absolute !important;
  top: 8px !important;
  display: grid !important;
  width: 17px !important;
  height: 22px !important;
  place-items: center !important;
  font: 700 17px/1 Georgia, serif !important;
  opacity: .48 !important;
  pointer-events: none !important;
  transition: opacity .2s ease, transform .2s ease !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-sun { left: 4px !important; }
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-moon { right: 4px !important; }
html[data-theme="light"] body #themeBtn.tv-v5254-pull-switch .tv-v5254-sun {
  color: #c96d08 !important;
  opacity: 1 !important;
  transform: scale(1.08) !important;
}
html[data-theme="light"] body #themeBtn.tv-v5254-pull-switch .tv-v5254-moon { color: #445b79 !important; }
html[data-theme="dark"] body #themeBtn.tv-v5254-pull-switch .tv-v5254-sun { color: #e6a94f !important; }
html[data-theme="dark"] body #themeBtn.tv-v5254-pull-switch .tv-v5254-moon {
  color: #dfeaff !important;
  opacity: 1 !important;
  transform: scale(1.08) !important;
}

html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-cord {
  position: absolute !important;
  z-index: 2 !important;
  top: 2px !important;
  left: 50% !important;
  display: block !important;
  width: 34px !important;
  height: 42px !important;
  transform: translateX(-50%) !important;
  cursor: ns-resize !important;
  touch-action: none !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-thread {
  position: absolute !important;
  top: 0 !important;
  left: 16px !important;
  width: 2px !important;
  height: calc(25px + var(--tv-v5254-pull-y, 0px)) !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, #a87535, #fff0c9 48%, #bd873f) !important;
  box-shadow: 0 0 2px rgba(255, 235, 185, .65) !important;
  pointer-events: none !important;
}
html[data-theme="dark"] body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-thread {
  background: linear-gradient(90deg, #78839b, #eef2ff 48%, #737e96) !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob {
  position: absolute !important;
  top: calc(22px + var(--tv-v5254-pull-y, 0px)) !important;
  left: 11px !important;
  display: block !important;
  width: 12px !important;
  height: 14px !important;
  border: 1px solid rgba(137, 91, 36, .55) !important;
  border-radius: 42% 42% 55% 55% !important;
  background: linear-gradient(145deg, #fffaf0, #e8c78c) !important;
  box-shadow: 0 2px 5px rgba(38, 25, 12, .25), inset 0 1px 1px #fff !important;
  transition: top .22s cubic-bezier(.2, .8, .2, 1), background .2s ease, box-shadow .2s ease !important;
  pointer-events: auto !important;
  cursor: ns-resize !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob::after {
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .78) !important;
  content: "" !important;
}
html[data-theme="dark"] body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob {
  border-color: rgba(203, 215, 244, .65) !important;
  background: linear-gradient(145deg, #f7f8ff, #aab7d1) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35), inset 0 1px 1px #fff !important;
}
html body #themeBtn.tv-v5254-pull-switch.is-pulling .tv-v5254-pull-knob,
html body #themeBtn.tv-v5254-pull-switch.is-pulling .tv-v5254-pull-thread {
  transition: none !important;
}

/* El tema claro conserva calidez, pero separa mejor tarjetas, texto e imágenes. */
html[data-theme="light"] {
  color-scheme: light !important;
  --bg: #eee5d7 !important;
  --bg2: #f8f2e8 !important;
  --surface: #fffaf1 !important;
  --surface2: #f2e7d7 !important;
  --card: #fffdf8 !important;
  --text: #261e16 !important;
  --muted: #62584c !important;
  --line: rgba(71, 50, 31, .19) !important;
  --accent: #dc7816 !important;
  --accent2: #b95a11 !important;
  --shadow: 0 12px 28px rgba(68, 48, 28, .10) !important;
  --shadow2: 0 6px 16px rgba(68, 48, 28, .08) !important;
  --tv-bg: #f3ecdf !important;
  --tv-bg-end: #eee5d7 !important;
  --tv-text: #261e16 !important;
  --tv-muted: #62584c !important;
  --tv-surface: #fffaf1 !important;
  --tv-surface-2: #f2e7d7 !important;
  --tv-surface-3: #fffdf8 !important;
  --tv-line: rgba(71, 50, 31, .19) !important;
  --tv-line-strong: rgba(185, 90, 17, .34) !important;
  --tv-glass: #fffaf2 !important;
  --tv-input: #fffdf8 !important;
  --tv-shadow: 0 12px 28px rgba(68, 48, 28, .10) !important;
  --tv-shadow-sm: 0 6px 16px rgba(68, 48, 28, .08) !important;
  --tv-accent: #dc7816 !important;
  --tv-accent-2: #b95a11 !important;
  --tv-focus: rgba(185, 90, 17, .35) !important;
}
html[data-theme="light"] body {
  color: #261e16 !important;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(207, 158, 88, .14), transparent 42%),
    linear-gradient(180deg, #f9f5ed 0%, #eee5d7 100%) !important;
  background-color: #eee5d7 !important;
}
html[data-theme="light"] body .topbar-inner {
  border-color: rgba(101, 73, 42, .20) !important;
  background: rgba(255, 250, 241, .97) !important;
  box-shadow: 0 10px 26px rgba(66, 46, 25, .10) !important;
}
html[data-theme="light"] body .search,
html[data-theme="light"] body .tv-business-action-v420,
html[data-theme="light"] body .category,
html[data-theme="light"] body .product {
  border-color: rgba(99, 68, 36, .20) !important;
  box-shadow: 0 7px 17px rgba(66, 46, 25, .075) !important;
}
html[data-theme="light"] body .search,
html[data-theme="light"] body .product,
html[data-theme="light"] body .product-body,
html[data-theme="light"] body .category {
  background-color: #fffaf2 !important;
  color: #261e16 !important;
}
html[data-theme="light"] body .tv-business-action-v420 {
  background: linear-gradient(155deg, #fffdf8, #f8efe1) !important;
  color: #261e16 !important;
}
html[data-theme="light"] body .search input,
html[data-theme="light"] body .product h3,
html[data-theme="light"] body .category-title,
html[data-theme="light"] body .tv-business-action-copy-v420 b {
  color: #261e16 !important;
}
html[data-theme="light"] body .price,
html[data-theme="light"] body .category-meta,
html[data-theme="light"] body .tv-business-action-copy-v420 small {
  color: #62584c !important;
}

/* Las guirnaldas siguen encendidas en ambos temas y los colores conservan su brillo. */
html body .tv-xmas-lights-v513 {
  z-index: 3 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  filter: drop-shadow(0 2px 5px rgba(229, 173, 75, .22)) !important;
}
html body .tv-xmas-bulb-v513 {
  opacity: .9 !important;
  filter: brightness(1.13) drop-shadow(0 0 3px var(--tv-xmas-glow)) !important;
  box-shadow: 0 0 7px 2px var(--tv-xmas-glow-soft), 0 0 13px 3px var(--tv-xmas-glow-soft) !important;
  animation: tv-xmas-sway-v513 var(--tv-xmas-sway-duration) ease-in-out var(--tv-xmas-sway) infinite alternate,
    tv-v5254-bulb-lumen 2.8s ease-in-out var(--tv-xmas-sway) infinite alternate !important;
}
html body .tv-xmas-bulb-v513.is-trail {
  opacity: 1 !important;
  box-shadow: 0 0 9px 3px var(--tv-xmas-glow-soft), 0 0 17px 5px var(--tv-xmas-glow-soft) !important;
}
html body .tv-xmas-bulb-v513.is-lead {
  opacity: 1 !important;
  filter: brightness(1.28) drop-shadow(0 0 5px var(--tv-xmas-glow)) !important;
  box-shadow: 0 0 11px 4px var(--tv-xmas-glow-soft), 0 0 20px 7px var(--tv-xmas-glow-soft) !important;
}
@keyframes tv-v5254-bulb-lumen {
  from { opacity: .72; }
  55% { opacity: 1; }
  to { opacity: .82; }
}

/* El arbolito conserva los destellos claros incluso cuando la bienvenida termina. */
#tv-xmas-intro-v516 .tv-in-bulb { opacity: .82 !important; }
#tv-xmas-intro-v516 .tv-in-bulb-halo { opacity: .2 !important; }
#tv-xmas-intro-v516.tv-in-running .tv-in-bulb {
  animation: tv-v5254-tree-bulb 2.7s ease-in-out var(--delay) infinite !important;
}
#tv-xmas-intro-v516.tv-in-running .tv-in-bulb-halo {
  animation: tv-v5254-tree-halo 2.7s ease-in-out var(--delay) infinite !important;
}
@keyframes tv-v5254-tree-bulb {
  0%, 100% { opacity: .76; }
  32% { opacity: 1; }
  60% { opacity: .68; }
}
@keyframes tv-v5254-tree-halo {
  0%, 100% { opacity: .16; }
  32% { opacity: .56; }
  60% { opacity: .13; }
}

.tv-v524-final-tree { width: clamp(96px, 15vw, 146px) !important; }
.tv-v524-final-tree .tv-in-tree-lights .tv-in-bulb {
  opacity: .83 !important;
  filter: drop-shadow(0 0 3px rgba(255, 233, 174, .78)) !important;
  animation: tv-v5254-tree-bulb 3s ease-in-out var(--delay) infinite !important;
}
.tv-v524-final-tree .tv-in-tree-lights .tv-in-bulb-halo {
  opacity: .18 !important;
  filter: blur(1px) !important;
  animation: tv-v5254-tree-halo 3s ease-in-out var(--delay) infinite !important;
}
.tv-v524-final-tree .tv-in-tree-svg { max-height: 32svh !important; }
.tv-v524-final-surface::after {
  right: 5% !important;
  bottom: 6% !important;
  left: 5% !important;
  height: 22px !important;
  background-image:
    radial-gradient(circle, #fff0bd 0 1.5px, rgba(255, 222, 150, .56) 2px, transparent 6px),
    radial-gradient(circle, #ff8185 0 1.5px, rgba(255, 129, 133, .48) 2px, transparent 6px),
    radial-gradient(circle, #68e0a2 0 1.5px, rgba(104, 224, 162, .46) 2px, transparent 6px),
    linear-gradient(180deg, transparent 7px, rgba(225, 194, 137, .58) 7.5px, transparent 8.5px) !important;
  background-size: 38px 22px, 38px 22px, 38px 22px, 100% 22px !important;
  background-position: 0 2px, 12px 5px, 25px 3px, 0 0 !important;
  background-repeat: repeat-x !important;
  opacity: .88 !important;
  filter: drop-shadow(0 0 5px rgba(243, 202, 122, .28)) !important;
  animation: tv-v5254-garland-glow 3.1s ease-in-out infinite alternate !important;
}
@keyframes tv-v5254-garland-glow {
  from { opacity: .68; }
  to { opacity: .98; }
}

@media (max-width: 650px) {
  html body #themeBtn.tv-v5254-pull-switch {
    flex-basis: 82px !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
  }
  .tv-v524-final-logo-frame { width: clamp(132px, 40vw, 160px) !important; }
  .tv-v524-final-tree { width: clamp(88px, 28vw, 108px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html body .tv-xmas-bulb-v513,
  #tv-xmas-intro-v516.tv-in-running .tv-in-bulb,
  #tv-xmas-intro-v516.tv-in-running .tv-in-bulb-halo,
  .tv-v524-final-tree .tv-in-tree-lights .tv-in-bulb,
  .tv-v524-final-tree .tv-in-tree-lights .tv-in-bulb-halo,
  .tv-v524-final-surface::after { animation: none !important; }
  html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob,
  html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-thread { transition: none !important; }
}
