/* Tía Vicenta — Navidad Musical v513. Sin bibliotecas externas. */
html body .tv-xmas-lights-v513 {
  position: absolute; inset: -10px 16px auto;
  height: 38px; z-index: 2; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateY(-7px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1), visibility 1.1s;
}
html[data-theme="dark"].tv-xmas-premium-v513 body .tv-xmas-lights-v513 {
  opacity: 1; visibility: visible; transform: translateY(0);
}
html body .tv-xmas-lights-v513 svg { position:absolute; inset:0; width:100%;height:100%;overflow:visible;filter:drop-shadow(0 1px 2px rgba(0,0,0,.27)); }
html body .tv-xmas-bulb-v513 {
  position: absolute; left:var(--tv-xmas-x); top:var(--tv-xmas-y);
  width:8px;height:12px; border-radius:45% 45% 55% 55%;
  transform-origin:50% 0%;
  opacity:.63;
  background:radial-gradient(circle at 33% 24%,rgba(255,255,255,.98) 0%,var(--tv-xmas-color) 46%,var(--tv-xmas-color) 73%,rgba(35,17,24,.4) 100%);
  box-shadow: 0 0 5px 1px var(--tv-xmas-glow-soft);
  transition: opacity .22s ease, box-shadow .22s ease;
  animation: tv-xmas-sway-v513 var(--tv-xmas-sway-duration) ease-in-out infinite alternate;
  animation-delay:var(--tv-xmas-sway);
}
html body .tv-xmas-bulb-v513::before {
  content:'';position:absolute;left:2px;right:2px;top:-4px;height:4px;
  border-radius:2px 2px 0 0;background:linear-gradient(#51685a,#1c4237);
  border:1px solid rgba(6,27,20,.4);
}
html body .tv-xmas-bulb-v513.is-trail {
  opacity:.88;
  box-shadow:0 0 7px 2px var(--tv-xmas-glow-soft);
}
html body .tv-xmas-bulb-v513.is-lead {
  opacity:1;
  box-shadow:0 0 10px 3px var(--tv-xmas-glow-soft),0 0 16px 4px var(--tv-xmas-glow-soft);
}
@keyframes tv-xmas-sway-v513 {
  from { transform:translate(-50%,-5%) rotate(-3deg); }
  to   { transform:translate(-50%,-5%) rotate(3deg); }
}
/* Control visible solo en modo noche; no tapa elementos de la cabecera. */
html body .tv-xmas-music-v513 {
  display:none;position:relative;flex:0 0 35px;align-items:center;justify-content:center;
  width:35px;height:35px;border-radius:999px;
  border:1px solid rgba(239,198,123,.32);
  background:linear-gradient(140deg,rgba(61,66,91,.91),rgba(21,31,55,.93));
  color:#f6d99d;cursor:pointer;font-size:19px;line-height:1;
  transition:background .26s ease,border-color .26s ease,transform .22s ease,box-shadow .26s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 2px 9px rgba(9,18,34,.12);
  -webkit-tap-highlight-color:transparent;
}
html[data-theme="dark"].tv-xmas-premium-v513 body .tv-xmas-music-v513 { display:inline-flex; }
html body .tv-xmas-music-v513:hover {border-color:rgba(244,205,135,.77);box-shadow:0 0 12px rgba(254,204,102,.2);}
html body .tv-xmas-music-v513:active {transform:scale(.95);}
html body .tv-xmas-music-v513:focus-visible {outline:2px solid #ffd781;outline-offset:3px;}
html body .tv-xmas-music-v513.is-muted {color:#adc1cb;filter:saturate(.7);}
html body .tv-xmas-music-v513.is-playing::after {
  content:'';position:absolute;width:5px;height:5px;right:4px;top:4px;border-radius:50%;
  background:#6ce0a1;box-shadow:0 0 5px rgba(75,226,160,.5);
}
/* Copos definidos tipo cristal, con transparencia y sin bloquear clics. */
html body .tv-xmas-snow-v513 {
  position:fixed;inset:0;width:100%;height:100%;pointer-events:none;
  z-index:48;opacity:0;visibility:hidden;
  transition:opacity 1.7s ease,visibility 1.7s ease;contain:strict;
}
html[data-theme="dark"].tv-xmas-premium-v513.tv-xmas-snow-on-v513 body .tv-xmas-snow-v513 {
  opacity:.82;visibility:visible;
}
html[data-theme="dark"].tv-xmas-premium-v513 body header.topbar .topbar-inner {
  border-color:rgba(207,164,92,.39) !important;
  box-shadow:0 14px 40px rgba(3,10,20,.32),inset 0 1px 0 rgba(255,239,206,.08),0 0 24px rgba(229,174,83,.055) !important;
  transition:border-color 1s ease,box-shadow 1s ease !important;
}
html[data-theme="dark"].tv-xmas-premium-v513 body header.topbar .brand#brandTap .brand-logo #brandLogo {
  filter:drop-shadow(0 6px 11px rgba(14,20,35,.25)) drop-shadow(0 0 7px rgba(245,203,136,.24)) !important;
  transition:filter 1.4s ease !important;
}
html[data-theme="dark"].tv-xmas-premium-v513 body header.topbar .brand-title {text-shadow:0 0 26px rgba(246,210,153,.12);}
@media(max-width:840px) {
  html body .tv-xmas-lights-v513 {inset-inline:9px;top:-10px;height:36px;}
  html body .tv-xmas-bulb-v513 {width:6px;height:10px;}
  html body .tv-xmas-music-v513 {width:32px;height:32px;flex-basis:32px;font-size:17px;}
}
@media(prefers-reduced-motion:reduce) {
  html body .tv-xmas-bulb-v513 {animation:none!important;transition:none!important;}
  html body .tv-xmas-snow-v513 {display:none!important;}
  html body .tv-xmas-lights-v513 {transition:none!important;}
  html[data-theme="dark"].tv-xmas-premium-v513 body header.topbar .topbar-inner {transition:none!important;}
}
