/* v5261 · tirador táctil, marca algo más legible y textos claros en el tema elegido. */

/* El toque reproduce una bajada corta y el retorno elástico del cordón. */
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-thread {
  transition: height .18s cubic-bezier(.2, .8, .2, 1) !important;
}
html body #themeBtn.tv-v5254-pull-switch .tv-v5254-pull-knob {
  transition: top .18s cubic-bezier(.2, .8, .2, 1), background .2s ease, box-shadow .2s ease !important;
}
html body #themeBtn.tv-v5254-pull-switch.is-tap-pulling .tv-v5254-pull-thread {
  transition: height .155s cubic-bezier(.28, .9, .4, 1.25) !important;
}
html body #themeBtn.tv-v5254-pull-switch.is-tap-pulling .tv-v5254-pull-knob {
  transition: top .155s cubic-bezier(.28, .9, .4, 1.25), background .2s ease, box-shadow .2s ease !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 4px 10px rgba(179, 128, 51, .42), inset 0 1px 1px #fff !important;
}

/* Se conserva el PNG original; aumenta apenas su tamaño para que el nombre integrado se lea mejor. */
html body header.topbar .brand#brandTap .brand-logo {
  flex: 0 0 184px !important;
  width: 184px !important;
  height: 184px !important;
  min-width: 184px !important;
  min-height: 184px !important;
}
@media (max-width: 760px) {
  html body header.topbar .brand#brandTap .brand-logo {
    flex-basis: clamp(146px, 42vw, 164px) !important;
    width: clamp(146px, 42vw, 164px) !important;
    height: clamp(146px, 42vw, 164px) !important;
    min-width: clamp(146px, 42vw, 164px) !important;
    min-height: clamp(146px, 42vw, 164px) !important;
  }
}
@media (max-width: 650px) {
  html body #tv-xmas-intro-v516 .tv-in-logo-frame {
    width: clamp(146px, 36vw, 184px) !important;
    height: clamp(146px, 36vw, 184px) !important;
  }
}
@media (max-width: 650px) and (max-height: 680px) {
  html body #tv-xmas-intro-v516 .tv-in-logo-frame {
    width: 132px !important;
    height: 132px !important;
  }
}
@media (max-width: 380px) {
  html body header.topbar .brand#brandTap .brand-logo {
    flex-basis: 126px !important;
    width: 126px !important;
    height: 126px !important;
    min-width: 126px !important;
    min-height: 126px !important;
  }
}

/* El logotipo del cierre conserva su arte y gana un poco de presencia en móvil. */
html body .tv-v524-final-logo-frame {
  width: clamp(156px, 20vw, 206px) !important;
}
@media (max-width: 650px) {
  html body .tv-v524-final-logo-frame {
    width: clamp(140px, 43vw, 170px) !important;
  }
  html body .tv-v524-final-message {
    max-width: 320px !important;
    font-size: 14px !important;
    line-height: 1.58 !important;
  }
}
@media (max-height: 620px) and (max-width: 650px) {
  html body .tv-v524-final-logo-frame { width: 106px !important; }
}

/* El mensaje queda claro también de día; en noche mantiene marfil sobre el fondo profundo. */
html body .tv-v524-final-eyebrow {
  color: #ffe6b7 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .38) !important;
}
html body .tv-v524-final-message {
  color: #fff9ec !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .52), 0 0 12px rgba(0, 0, 0, .22) !important;
}
html body .tv-v524-final-greeting {
  color: #fff9ec !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .24) !important;
}
html body .tv-v524-final-greeting em { color: #f1d29a !important; }

/* La bienvenida usa la misma paleta que el tema elegido y evita que el título herede tinta oscura. */
html body #tv-xmas-intro-v516 .tv-in-title {
  color: #fff9ec !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .42) !important;
}
html body #tv-xmas-intro-v516 .tv-in-title em { color: #f1d29a !important; }
html body #tv-xmas-intro-v516 .tv-in-subtitle {
  color: rgba(255, 249, 236, .96) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4) !important;
}
html[data-theme="light"] body #tv-xmas-intro-v516 {
  background:
    radial-gradient(ellipse 68% 58% at 64% 48%, rgba(196, 219, 207, .58) 0%, transparent 67%),
    radial-gradient(ellipse 52% 50% at 20% 72%, rgba(234, 200, 145, .4), transparent 78%),
    linear-gradient(145deg, #edf4eb 0%, #f7efdf 52%, #e1ede7 100%) !important;
  color: #263d38 !important;
}
html[data-theme="light"] body #tv-xmas-intro-v516::before {
  border-color: rgba(117, 93, 54, .3) !important;
}
html[data-theme="light"] body #tv-xmas-intro-v516::after {
  border-color: rgba(117, 93, 54, .16) !important;
}
html[data-theme="light"] body #tv-xmas-intro-v516 .tv-in-eyebrow {
  color: #66502e !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8) !important;
}
html[data-theme="light"] body #tv-xmas-intro-v516 .tv-in-title {
  color: #263d38 !important;
  text-shadow: 0 2px 12px rgba(255, 255, 255, .72) !important;
}
html[data-theme="light"] body #tv-xmas-intro-v516 .tv-in-title em { color: #955c25 !important; }
html[data-theme="light"] body #tv-xmas-intro-v516 .tv-in-subtitle {
  color: #2c433a !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .88) !important;
}
html[data-theme="light"] body #tv-xmas-intro-v516 .tv-in-spotlight {
  background: radial-gradient(circle, rgba(213, 169, 94, .22), transparent 62%) !important;
}

/* Luz de mañana suave, con tinta oscura y alto contraste para leer el saludo. */
html[data-theme="light"] body .tv-v524-final-surface {
  background:
    radial-gradient(ellipse 40% 35% at 19% 32%, rgba(244, 222, 174, .62), transparent 76%),
    radial-gradient(ellipse 43% 39% at 80% 38%, rgba(189, 216, 205, .62), transparent 78%),
    radial-gradient(ellipse 58% 39% at 50% 100%, rgba(226, 205, 170, .56), transparent 74%),
    linear-gradient(150deg, #edf4eb 0%, #f7efdf 48%, #e4eee8 100%) !important;
  filter: none !important;
}
html[data-theme="light"] body .tv-v524-final-surface::before {
  background:
    radial-gradient(ellipse 37% 29% at 22% 42%, rgba(237, 198, 128, .54), transparent 79%),
    radial-gradient(ellipse 38% 31% at 73% 36%, rgba(149, 196, 184, .52), transparent 80%),
    radial-gradient(ellipse 42% 29% at 77% 72%, rgba(213, 173, 196, .35), transparent 78%),
    radial-gradient(ellipse 43% 33% at 48% 57%, rgba(255, 249, 222, .75), transparent 80%) !important;
  filter: blur(22px) !important;
  opacity: .72 !important;
  mix-blend-mode: soft-light !important;
}
html[data-theme="light"] body .tv-v524-final-surface::after {
  background: linear-gradient(90deg, transparent, rgba(159, 121, 62, .5), transparent) !important;
  box-shadow: 0 0 12px rgba(171, 130, 68, .2) !important;
}
html[data-theme="light"] body .tv-v524-final-eyebrow {
  color: #66502e !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .82) !important;
}
html[data-theme="light"] body .tv-v524-final-rule { color: #9b6c2d !important; }
html[data-theme="light"] body .tv-v524-final-rule::before,
html[data-theme="light"] body .tv-v524-final-rule::after {
  background: linear-gradient(90deg, transparent, rgba(155, 108, 45, .56)) !important;
}
html[data-theme="light"] body .tv-v524-final-greeting {
  color: #263d38 !important;
  text-shadow: 0 2px 12px rgba(255, 255, 255, .72) !important;
}
html[data-theme="light"] body .tv-v524-final-greeting em { color: #955c25 !important; }
html[data-theme="light"] body .tv-v524-final-message {
  color: #2c433a !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .92), 0 2px 9px rgba(255, 255, 255, .54) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body #themeBtn.tv-v5254-pull-switch.is-tap-pulling .tv-v5254-pull-thread,
  html body #themeBtn.tv-v5254-pull-switch.is-tap-pulling .tv-v5254-pull-knob {
    transition: none !important;
  }
}
