/* v5265 · revelado editorial de la escena final, sin cortina vertical. */

/* El tirador se entiende como control y la bolita admite un toque fácil. */
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob {
  top: calc(8px + var(--tv-v5254-pull-y, 0px)) !important;
  left: 0 !important;
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 4 !important;
  touch-action: none !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob::before {
  content: "" !important;
  position: absolute !important;
  top: 13px !important;
  left: 14px !important;
  width: 14px !important;
  height: 16px !important;
  border: 1px solid rgba(137, 91, 36, .55) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #fffaf0, #e8c78c) !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;
  pointer-events: none !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob::after {
  top: 17px !important;
  left: 18px !important;
  width: 4px !important;
  height: 4px !important;
  pointer-events: none !important;
}
html[data-theme="dark"] body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob::before {
  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), 0 0 0 4px rgba(190, 207, 244, .12), inset 0 1px 1px #fff !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob:active {
  filter: brightness(.94) !important;
}

/* La marca aparece enfocándose desde el centro, con luz detrás y sin cubrir el logo. */
html.tv-v5265-finale-motion body .tv-v524-final-logo-frame::before,
html.tv-v5265-finale-motion body .tv-v524-final-logo-frame::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  border-radius: 50% !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-logo-frame::before {
  inset: 3% !important;
  background: radial-gradient(ellipse, rgba(255, 220, 151, .42), rgba(211, 164, 88, .12) 46%, transparent 72%) !important;
  filter: blur(14px) !important;
  transform: scale(.62) !important;
  transition: opacity .9s ease .12s, transform 1.25s cubic-bezier(.18, .72, .22, 1) .12s !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-logo-frame::after {
  inset: 4% !important;
  border: 1px solid rgba(241, 210, 151, .44) !important;
  box-shadow: 0 0 18px rgba(224, 184, 111, .14), inset 0 0 12px rgba(224, 184, 111, .07) !important;
  transform: scale(.82) !important;
  transition: opacity .8s ease .42s, transform 1.15s cubic-bezier(.18, .72, .22, 1) .3s !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-logo,
html.tv-v5265-finale-motion body .tv-v524-final-logo-blink {
  clip-path: none !important;
  filter: none !important;
  transform: none !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-logo {
  opacity: 0 !important;
  filter: brightness(.88) saturate(.94) !important;
  transform: translate3d(0, 7px, 0) scale(.95) !important;
  transition:
    opacity .82s ease .14s,
    filter .82s ease .18s,
    transform 1.02s cubic-bezier(.18, .72, .22, 1) .14s !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-tree {
  opacity: 0 !important;
  transform: translate3d(0, 9px, 0) scale(.975) !important;
  transition: opacity .78s ease .34s, transform .96s cubic-bezier(.18, .72, .22, 1) .3s !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-eyebrow {
  opacity: 0 !important;
  transform: translate3d(0, 7px, 0) !important;
  transition: opacity .55s ease .12s, transform .7s cubic-bezier(.2, .7, .25, 1) .12s !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-rule {
  opacity: 0 !important;
  transform: scaleX(.35) !important;
  transform-origin: center !important;
  transition: opacity .62s ease .64s, transform .9s cubic-bezier(.18, .72, .22, 1) .58s !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-greeting {
  opacity: 0 !important;
  transform: translate3d(0, 12px, 0) !important;
  transition: opacity .72s ease .62s, transform .85s cubic-bezier(.18, .72, .22, 1) .6s !important;
}
html.tv-v5265-finale-motion body .tv-v524-final-message {
  opacity: 0 !important;
  transform: translate3d(0, 9px, 0) !important;
  transition: opacity .65s ease .92s, transform .8s cubic-bezier(.18, .72, .22, 1) .88s !important;
}

html.tv-v5265-finale-motion body .tv-v524-finale.is-revealed .tv-v524-final-logo-frame::before {
  opacity: .9 !important;
  transform: scale(1.18) !important;
}
html.tv-v5265-finale-motion body .tv-v524-finale.is-revealed .tv-v524-final-logo-frame::after {
  opacity: .72 !important;
  transform: scale(1) !important;
}
html.tv-v5265-finale-motion body .tv-v524-finale.is-revealed .tv-v524-final-logo {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1) !important;
}
html.tv-v5265-finale-motion body .tv-v524-finale.is-revealed .tv-v524-final-logo-blink {
  clip-path: none !important;
  filter: none !important;
  transform: none !important;
}
html.tv-v5265-finale-motion body .tv-v524-finale.is-revealed .tv-v524-final-tree,
html.tv-v5265-finale-motion body .tv-v524-finale.is-revealed .tv-v524-final-eyebrow,
html.tv-v5265-finale-motion body .tv-v524-finale.is-revealed .tv-v524-final-rule,
html.tv-v5265-finale-motion body .tv-v524-finale.is-revealed .tv-v524-final-greeting,
html.tv-v5265-finale-motion body .tv-v524-finale.is-revealed .tv-v524-final-message {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.tv-v5265-finale-motion body .tv-v524-final-logo-frame::before,
  html.tv-v5265-finale-motion body .tv-v524-final-logo-frame::after,
  html.tv-v5265-finale-motion body .tv-v524-final-logo,
  html.tv-v5265-finale-motion body .tv-v524-final-logo-blink,
  html.tv-v5265-finale-motion body .tv-v524-final-tree,
  html.tv-v5265-finale-motion body .tv-v524-final-eyebrow,
  html.tv-v5265-finale-motion body .tv-v524-final-rule,
  html.tv-v5265-finale-motion body .tv-v524-final-greeting,
  html.tv-v5265-finale-motion body .tv-v524-final-message {
    transition: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* Compensa el zoom por reflujo para que el cierre siga llenando el móvil. */
html[data-page-scale="80"] body .tv-v524-finale,
html[data-page-scale="80"] body .tv-v524-final-sticky { height: 125svh !important; min-height: 125svh !important; }
html[data-page-scale="85"] body .tv-v524-finale,
html[data-page-scale="85"] body .tv-v524-final-sticky { height: 117.647svh !important; min-height: 117.647svh !important; }
html[data-page-scale="90"] body .tv-v524-finale,
html[data-page-scale="90"] body .tv-v524-final-sticky { height: 111.111svh !important; min-height: 111.111svh !important; }
html[data-page-scale="95"] body .tv-v524-finale,
html[data-page-scale="95"] body .tv-v524-final-sticky { height: 105.263svh !important; min-height: 105.263svh !important; }
html[data-page-scale="100"] body .tv-v524-finale,
html[data-page-scale="100"] body .tv-v524-final-sticky { height: 100svh !important; min-height: 100svh !important; }
html[data-page-scale="105"] body .tv-v524-finale,
html[data-page-scale="105"] body .tv-v524-final-sticky { height: 95.238svh !important; min-height: 95.238svh !important; }
html[data-page-scale="110"] body .tv-v524-finale,
html[data-page-scale="110"] body .tv-v524-final-sticky { height: 90.909svh !important; min-height: 90.909svh !important; }
html[data-page-scale="115"] body .tv-v524-finale,
html[data-page-scale="115"] body .tv-v524-final-sticky { height: 86.957svh !important; min-height: 86.957svh !important; }
html[data-page-scale="120"] body .tv-v524-finale,
html[data-page-scale="120"] body .tv-v524-final-sticky { height: 83.333svh !important; min-height: 83.333svh !important; }
