/* Botón de subir — Clínica Roos */
.back-to-top { right: 30px; bottom: 30px; width: 62px; height: 62px; line-height: 1; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; background: transparent; color: #fff; z-index: 9998; transform: translateY(30px) scale(.6); transition: opacity .45s, visibility .45s, transform .55s cubic-bezier(.22, 1, .36, 1); }
.back-to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.back-to-top::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: rgba(159, 195, 230, .55); animation: tsHalo 2.4s ease-in-out infinite; z-index: -1; }
.back-to-top::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(#3d7fb0 calc(var(--p, 0) * 1%), rgba(44, 71, 98, .15) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); z-index: 0; }
.back-to-top .ts-core { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; background: linear-gradient(135deg, #638969, #0b2c40); box-shadow: 0 12px 28px rgba(10, 35, 54, .4); transition: transform .35s, background .35s; }
.back-to-top .ts-core i { animation: tsBob 1.8s ease-in-out infinite; }
.back-to-top:hover .ts-core { transform: translateY(-5px) scale(1.06); background: linear-gradient(135deg, #3d7fb0, #638969); }
.back-to-top:hover::before { animation-duration: 1.2s; }
.back-to-top:active .ts-core { transform: scale(.94); }
@keyframes tsHalo { 0%, 100% { transform: scale(.88); opacity: .75; } 50% { transform: scale(1.12); opacity: .3; } }
@keyframes tsBob { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
@media (max-width: 575px) { .back-to-top { right: 16px; bottom: 16px; width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top::before, .back-to-top .ts-core i { animation: none; } }
