/* Scarlett de la Ribera · Botón global para volver arriba */
.sdr-back-to-top,
.sdr-back-to-top * { box-sizing: border-box; }
.sdr-back-to-top {
  appearance: none;
  -webkit-appearance: none;
  position: fixed !important;
  z-index: 9990;
  right: clamp(16px, 2.5vw, 28px);
  bottom: calc(91px + env(safe-area-inset-bottom, 0px));
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 1px solid #cf9c9e !important;
  border-radius: 999px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #923b55, #641b35) !important;
  color: #fff6ef !important;
  box-shadow: 0 7px 19px rgba(44, 17, 31, .23), inset 0 0 0 3px rgba(255, 239, 232, .07);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.94);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease,
              background .22s ease, box-shadow .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.sdr-back-to-top.sdr-back-to-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.sdr-back-to-top:hover {
  background: #50142a !important;
  color: #fffaf6 !important;
  box-shadow: 0 9px 22px rgba(44, 17, 31, .32);
}
.sdr-back-to-top:focus-visible {
  outline: 3px solid #d7a164 !important;
  outline-offset: 4px;
}
.sdr-back-to-top svg { display: block; flex-shrink: 0; }
@media (max-width: 600px) {
  .sdr-back-to-top {
    right: 17px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sdr-back-to-top { transition: none; }
}
