/* Estilos actuales del arbol. Las variantes anteriores fueron consolidadas. */
:root{font-family:'Segoe UI',Arial,sans-serif;color:#fff0f8;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:transparent}
.tree-scene{position:relative;width:360px;height:590px;isolation:isolate;overflow:hidden;transform-origin:top left}
.tree-halo{position:absolute;inset:70px 20px 85px;background:radial-gradient(ellipse,#f5d4b91a,transparent 70%);pointer-events:none;animation:halo-breathe 8s ease-in-out infinite}
.tree-top{position:absolute;top:0;left:0;width:100%;text-align:center;z-index:4;pointer-events:none}
.light-tree{position:absolute;inset:0;width:360px;height:590px;overflow:visible;pointer-events:none}
.outline{display:none}
.silk-tier{fill:url(#silk);stroke:#ffe9df80;stroke-width:.65;filter:drop-shadow(0 5px 5px #40213233)}
.pearl-hem{fill:none;stroke:#fff0e1d9;stroke-width:1.8;stroke-linecap:round;filter:drop-shadow(0 1px 2px #fff0d73b)}
.garland{fill:none;stroke:#f7dcb8;stroke-width:1;opacity:.85;filter:drop-shadow(0 0 2px #f4d5ac66)}
.travel{fill:none;stroke:#fff2d5;stroke-width:2;stroke-linecap:round;stroke-dasharray:5 1107;animation:travel 12s linear infinite;filter:drop-shadow(0 0 3px #ffe8bd)}
.trunk{stroke:#dfadc475;stroke-width:3;stroke-linecap:round}
.bulb{fill:#ffe7ed;filter:drop-shadow(0 0 3px #ffe2ba);animation:bulb 5s ease-in-out infinite}
.bulb:nth-child(3n){fill:#ffe2b4;filter:drop-shadow(0 0 5px #ffc986)}
.bulb:nth-child(3n + 1){fill:#ffd0e6;filter:drop-shadow(0 0 5px #f2a9d0)}
.mod{position:absolute;width:58px;height:58px;left:var(--x);top:var(--y);transform:translate(-50%,-50%);z-index:2;transition:filter .7s ease,opacity .7s ease}
.mod:not(.active){filter:brightness(.96);opacity:1}
.mod-button{position:relative;width:58px;height:58px;display:block;padding:4px;border:1px solid #ffe7cc;border-radius:50%;background:linear-gradient(135deg,#fff3d6,#d7a5bd 40%,#f7dfcf 70%,#ab7a96);box-shadow:inset 0 0 0 1px #a67a8970,inset 0 0 8px #fff1d55c,0 2px 5px #30101f66,0 0 0 2px #efd7bc30;cursor:pointer;animation:float 5s ease-in-out infinite;animation-delay:var(--delay);transition:box-shadow .7s,border-color .7s,scale .7s}
.mod-button:before{content:'';position:absolute;top:-6px;left:23px;width:10px;height:7px;border:1px solid #ffe9ca;border-radius:3px 3px 0 0;background:linear-gradient(90deg,#b58f73,#ffecd1,#bc927c)}
.mod-button:after{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse at 23% 13%,#fffc,transparent 25%);pointer-events:none}
.mod-button img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;background:#241621}
.mod-button:focus-visible{outline:2px solid #fff0b9;outline-offset:5px}
.mod-name{position:absolute;z-index:2;left:50%;top:calc(100% + 5px);bottom:auto;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;width:max-content;max-width:76px;min-height:15px;padding:3px 7px;border:1px solid #ffe6c799;border-radius:12px;background:linear-gradient(180deg,#f7e9dcdd,#e7c7d5f2);box-shadow:0 2px 5px #24101c20;color:#674551;font-family:'Segoe UI',Arial,sans-serif;font-size:8px;font-weight:600;letter-spacing:.1px;line-height:1.1;opacity:1;white-space:nowrap;overflow:visible;overflow-wrap:normal;transition:background .7s,color .7s;pointer-events:none;text-align:center}
.mod-name.long-name{font-size:7px;letter-spacing:-.15px;padding-left:5px;padding-right:5px}
.mod-spark{position:absolute;right:-9px;top:-12px;color:#fff6d9;font:18px Georgia,serif;opacity:0;transition:opacity .7s;text-shadow:0 0 8px #ffe6cd;pointer-events:none}
.mod.active{filter:none;opacity:1;z-index:10}
.mod.active .mod-button{scale:1.13;border-color:#fff1cd;box-shadow:0 0 0 2px #ffe6b84d,0 0 16px #f8d6af75,0 0 25px #efc1d329,inset 0 0 7px #fff0d066;animation:featured-gentle 4s ease-in-out infinite}
.mod.active .mod-button:after{background:linear-gradient(115deg,transparent 30%,#fff4d54d 46%,#fff8e580 50%,transparent 64%);background-size:280% 100%;animation:featured-sheen 1.6s ease-out 1}
.mod.active .mod-name{background:linear-gradient(125deg,#fff6e7,#f0d2db);border-color:#ffe8c2;color:#5e3c4c;box-shadow:0 2px 5px #24101c20,0 0 9px #f5d8ac4d}
.mod.active .mod-spark{right:-10px;top:-12px;font-size:18px;color:#fff1cf;text-shadow:0 0 5px #ffe6cd99;opacity:.9;animation:gentle-glint 3s ease-in-out infinite}
.spotlight{position:absolute;top:501px;width:100%;text-align:center;transition:opacity .3s,transform .3s}
.spotlight.changing{opacity:0;transform:translateY(5px)}
.spot-label{display:block;color:#f4cfdf;font-size:8px;letter-spacing:2.4px;text-shadow:0 1px 5px #351026}
.spotlight strong{display:inline-block;color:#fff0f8;font:italic 21px/1.4 Georgia,serif;text-shadow:0 1px 5px #351026,0 0 12px #e8a6ca55;max-width:280px;overflow-wrap:anywhere}
.spot-heart{margin-left:7px;color:#efb6d1;font-size:18px;text-shadow:0 1px 5px #351026}
.presents{position:absolute;top:473px;left:0;width:100%;height:25px;pointer-events:none;filter:saturate(.7)}
.presents:after{content:'';position:absolute;width:160px;height:9px;bottom:-4px;left:100px;border-radius:50%;background:#ffeff729;filter:blur(4px);z-index:-1}
.gift{position:absolute;bottom:0;border:1px solid #ffdeedaa;border-radius:2px;background:#b47e9b;box-shadow:0 0 9px #efb6d122}
.gift:before{content:'';position:absolute;left:42%;height:100%;width:15%;background:#ffe8dc}
.gift:after{content:'\221e';position:absolute;top:-14px;left:25%;color:#ffe8dc;font:22px Georgia,serif}
.gift-one{left:121px;width:29px;height:21px;transform:rotate(-7deg)}.gift-two{left:153px;width:36px;height:27px;background:#e3bed0}.gift-three{left:194px;width:28px;height:18px;transform:rotate(8deg);background:#926b8c}
.snow{position:absolute;inset:0;z-index:7;pointer-events:none;opacity:.65}.flake{position:absolute;top:-8px;border-radius:50%;background:#fff3fa;opacity:0;animation:snowfall linear infinite}
.mini-ornament{animation:mini-swing 5.5s ease-in-out infinite}.mini-thread{stroke:#efd2e2;stroke-width:.8;opacity:.6}
.mini-pearl{fill:#f8e5da;stroke:#fff8ed;stroke-width:.8;filter:drop-shadow(0 0 3px #fff0cf55)}.mini-pink{fill:#d99abf;stroke:#ffe1f0;stroke-width:.8;filter:drop-shadow(0 0 3px #edb3d055)}
.tree-sparkle{fill:#fff2dc;filter:drop-shadow(0 0 5px #ffe6d5);animation:detail-twinkle 4s ease-in-out infinite}
.crown-star{display:block;width:108px;height:108px;margin:0 auto;overflow:visible;transform-origin:50% 55%;animation:crown-drift 7s ease-in-out infinite}
.star-frame{fill:#f9e6bf12;stroke:url(#star-gold);stroke-width:1.25;stroke-linejoin:round;filter:drop-shadow(0 0 3px #ffe0a977);animation:crown-light 5s ease-in-out infinite}
.star-inner{fill:#fff0d008;stroke:#fff3d78c;stroke-width:.45;stroke-linejoin:round}.star-facets{fill:none;stroke:#fbe8c360;stroke-width:.5}
.star-glint{fill:#fffaf0;filter:drop-shadow(0 0 4px #fff1cc);animation:star-glimmer 4s ease-in-out infinite}
.star-trace{fill:none;stroke:#fff9e6;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:13 290;filter:drop-shadow(0 0 3px #ffe9bc);animation:star-contour 8s linear infinite;opacity:.85}
@keyframes float{0%,100%{transform:translateY(-2px) rotate(-3deg)}50%{transform:translateY(2px) rotate(3deg)}}
@keyframes bulb{0%,100%{opacity:.4}50%{opacity:1}}
@keyframes travel{to{stroke-dashoffset:-1112}}
@keyframes snowfall{0%{transform:translate3d(0,0,0);opacity:0}15%{opacity:.65}85%{opacity:.4}100%{transform:translate3d(25px,610px,0);opacity:0}}
@keyframes mini-swing{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
@keyframes detail-twinkle{0%,100%{opacity:.2;transform:translateY(0)}50%{opacity:1;transform:translateY(-1px)}}
@keyframes halo-breathe{0%,100%{opacity:.65}50%{opacity:1}}
@keyframes star-glimmer{0%,100%{opacity:.4}50%{opacity:1}}
@keyframes featured-gentle{0%,100%{transform:translateY(-2px) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}
@keyframes featured-sheen{0%{background-position:100% 0;opacity:0}20%{opacity:.8}85%{opacity:.7}100%{background-position:0 0;opacity:0}}
@keyframes gentle-glint{0%,100%{opacity:.6}50%{opacity:1}}
@keyframes crown-drift{0%,100%{transform:translateY(1px) rotate(-3deg)}50%{transform:translateY(-3px) rotate(3deg)}}
@keyframes crown-light{0%,100%{filter:drop-shadow(0 0 3px #ffe0a966)}50%{filter:drop-shadow(0 0 6px #ffe0a999)}}
@keyframes star-contour{to{stroke-dashoffset:-303}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.flake,.star-trace{display:none}.mod.active .mod-button:after{background:radial-gradient(ellipse at 23% 13%,#fff8,transparent 25%)}}
