/* v5254 · aurora navideña fluida, aleatoria y con revelación temprana. */
.tv-v524-final-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.tv-v524-finale {
  --tv-v524-progress: 0;
  --tv-v524-bottom: 100%;
  --tv-v524-content-opacity: 0;
  --tv-v524-content-y: 20px;
  --tv-v524-scene-opacity: 0;
  --tv-v524-saturation: 1;
  --tv-v524-hue: 0deg;
  --tv-v524-glow-y: 48px;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 150vh;
  height: 150svh;
  margin: 0;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  color: #fff7e9;
  background: transparent;
}
.tv-v524-final-sticky {
  position: absolute;
  top: 0;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  pointer-events: none;
  place-items: center;
  overflow: hidden;
  background: transparent;
}
.tv-v524-final-sticky::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(218, 184, 125, .18);
  border-radius: 20px;
  opacity: var(--tv-v524-scene-opacity, 0);
  pointer-events: none;
}
.tv-v524-final-sticky::after {
  content: "";
  position: absolute;
  inset: 25px;
  border: 1px solid rgba(218, 184, 125, .055);
  border-radius: 15px;
  opacity: var(--tv-v524-scene-opacity, 0);
  pointer-events: none;
}
.tv-v524-final-reveal {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  clip-path: inset(0 0 var(--tv-v524-bottom, 100%) 0);
  opacity: var(--tv-v524-scene-opacity, 0);
  will-change: clip-path, opacity;
}
.tv-v524-final-surface {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 41% 35% at 21% 34%, var(--tv-v524-aurora-a), transparent 76%),
    radial-gradient(ellipse 48% 40% at 79% 41%, var(--tv-v524-aurora-b), transparent 77%),
    radial-gradient(ellipse 62% 42% at 50% 102%, var(--tv-v524-aurora-c), transparent 74%),
    linear-gradient(155deg, #071724 0%, #102a37 39%, #15332d 71%, #111721 100%);
  filter: saturate(var(--tv-v524-saturation, 1)) hue-rotate(var(--tv-v524-hue, 0deg));
  will-change: filter;
}
.tv-v524-final-surface::before {
  content: "";
  position: absolute;
  inset: -25%;
  transform: translate3d(-1.4%, var(--tv-v524-glow-y, 48px), 0) scale(1.03);
  background:
    radial-gradient(ellipse 36% 27% at 20% 48%, var(--tv-v524-aurora-a), transparent 78%),
    radial-gradient(ellipse 39% 30% at 72% 40%, var(--tv-v524-aurora-b), transparent 80%),
    radial-gradient(ellipse 42% 27% at 78% 70%, var(--tv-v524-aurora-c), transparent 78%),
    radial-gradient(ellipse 44% 31% at 48% 56%, var(--tv-v524-aurora-glow), transparent 80%);
  filter: blur(19px);
  opacity: .72;
  animation: tv-v524-final-aurora-flow 16s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.tv-v524-final-surface::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 0;
  left: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 194, 132, .65), transparent);
  box-shadow: 0 0 14px rgba(238, 206, 146, .28);
}
@keyframes tv-v524-final-aurora-flow {
  from {
    transform: translate3d(-1.4%, var(--tv-v524-glow-y, 48px), 0) scale(1.03);
    opacity: .68;
  }
  to {
    transform: translate3d(1.4%, var(--tv-v524-glow-y, 48px), 0) scale(1.09);
    opacity: .88;
  }
}
.tv-v524-final-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(660px, calc(100vw - 48px));
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 38px;
  text-align: center;
  opacity: var(--tv-v524-content-opacity, 0);
  transform: translate3d(0, var(--tv-v524-content-y, 20px), 0);
  will-change: opacity, transform;
}
.tv-v524-final-eyebrow {
  margin: 0 0 14px;
  color: #ddc493;
  font: 700 10px/1.4 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.tv-v524-final-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 2vw, 18px);
  min-width: 0;
}
.tv-v524-final-logo-frame {
  position: relative;
  flex: 0 0 auto;
  width: clamp(148px, 19vw, 196px);
  aspect-ratio: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .28));
  animation: tv-v524-final-mark-sway 11s ease-in-out 2s infinite;
}
.tv-v524-final-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tv-v524-final-logo-blink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 45ms linear;
}
.tv-v524-final-blinking .tv-v524-final-logo-blink { opacity: 1; }
.tv-v524-final-tree {
  flex: 0 1 auto;
  width: clamp(82px, 13vw, 132px);
  line-height: 0;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .22));
}
.tv-v524-final-tree .tv-in-tree-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28svh;
  overflow: visible;
}
.tv-v524-final-tree .tv-in-tree-lights .tv-in-bulb {
  opacity: .5;
  animation: tv-v524-final-tree-glow 5.4s ease-in-out var(--delay) infinite;
}
.tv-v524-final-tree .tv-in-tree-lights .tv-in-bulb-halo {
  opacity: .07;
  animation: tv-v524-final-halo-glow 5.4s ease-in-out var(--delay) infinite;
}
.tv-v524-final-tree .tv-in-tree-star {
  transform-origin: center;
  transform-box: fill-box;
  animation: tv-v524-final-star-glow 4s ease-in-out .7s infinite alternate;
}
@keyframes tv-v524-final-tree-glow {
  0%, 60%, 100% { opacity: .5; }
  28% { opacity: .96; }
}
@keyframes tv-v524-final-halo-glow {
  0%, 60%, 100% { opacity: .06; }
  28% { opacity: .27; }
}
@keyframes tv-v524-final-star-glow {
  from { opacity: .76; filter: drop-shadow(0 0 4px rgba(255, 217, 145, .55)); transform: scale(.98); }
  to { opacity: 1; filter: drop-shadow(0 0 10px rgba(255, 225, 160, .72)); transform: scale(1.03); }
}
@keyframes tv-v524-final-mark-sway {
  0%, 73%, 100% { transform: rotate(0); }
  77% { transform: rotate(-.8deg); }
  81% { transform: rotate(.8deg); }
  85% { transform: rotate(0); }
}
.tv-v524-final-rule {
  display: flex;
  width: min(184px, 48vw);
  align-items: center;
  gap: 12px;
  margin: 10px 0 7px;
  color: #dfc28b;
}
.tv-v524-final-rule::before,
.tv-v524-final-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(228, 194, 132, .72));
}
.tv-v524-final-rule::after { transform: rotate(180deg); }
.tv-v524-final-rule span { font: 15px/1 Georgia, serif; }
.tv-v524-final-greeting {
  margin: 0;
  color: #fff5e2;
  font: 400 clamp(50px, 7vw, 76px)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  text-shadow: 0 5px 24px rgba(0, 0, 0, .18);
}
.tv-v524-final-greeting em {
  display: block;
  color: #e6c991;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.05em;
}
.tv-v524-final-message {
  max-width: 430px;
  margin: 17px 0 0;
  color: rgba(255, 246, 226, .78);
  font: 400 14px/1.65 Georgia, "Times New Roman", serif;
  letter-spacing: .015em;
}
@supports not (clip-path: inset(0)) {
  .tv-v524-final-reveal { clip-path: none; opacity: var(--tv-v524-progress); }
}
@media (max-width: 650px) {
  .tv-v524-final-sticky::before { inset: 11px; border-radius: 15px; }
  .tv-v524-final-sticky::after { inset: 17px; border-radius: 11px; }
  .tv-v524-final-content { width: calc(100vw - 32px); padding: 20px 14px 30px; }
  .tv-v524-final-eyebrow { margin-bottom: 9px; font-size: 8px; letter-spacing: .2em; }
  .tv-v524-final-logo-frame { width: clamp(120px, 36vw, 154px); }
  .tv-v524-final-tree { width: clamp(70px, 23vw, 92px); }
  .tv-v524-final-rule { width: 146px; margin: 7px 0 5px; }
  .tv-v524-final-greeting { font-size: clamp(48px, 13vw, 64px); }
  .tv-v524-final-message { max-width: 290px; margin-top: 12px; font-size: 12px; }
}
@media (max-height: 620px) and (max-width: 650px) {
  .tv-v524-final-content { padding: 11px 10px 17px; }
  .tv-v524-final-eyebrow { margin-bottom: 3px; }
  .tv-v524-final-logo-frame { width: 98px; }
  .tv-v524-final-tree { width: 62px; }
  .tv-v524-final-rule { margin: 2px 0 4px; }
  .tv-v524-final-greeting { font-size: 43px; }
  .tv-v524-final-message { margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-v524-finale { height: 100vh; height: 100svh; }
  .tv-v524-final-sticky { position: relative; min-height: 100vh; min-height: 100svh; opacity: 1; }
  .tv-v524-final-reveal { clip-path: none; opacity: 1; }
  .tv-v524-final-content { opacity: 1; transform: none; }
  .tv-v524-final-logo-frame,
  .tv-v524-final-surface::before,
  .tv-v524-final-tree *,
  .tv-v524-final-tree *::before,
  .tv-v524-final-tree *::after { animation: none !important; }
}
