/* V12.2 — Control flotante de regreso al inicio */
.back-to-top {
  position: fixed;
  left: 34px;
  bottom: 42px;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 54px;
  height: 54px;
  padding: 0 15px;
  border: 1px solid #a8cfca;
  border-radius: 999px;
  color: #0b5260;
  background: rgba(250, 252, 248, .96);
  box-shadow: 0 5px 22px rgba(7, 48, 61, .13), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(9px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background-color .25s ease, border-color .25s ease;
}
.back-to-top[hidden] { display: none !important; }
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.back-to-top-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font: 600 11px/1 var(--sans);
  transition: max-width .25s ease, opacity .2s ease;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: #eaf3ef;
  border-color: #75b8b3;
  outline: none;
}
.back-to-top:hover .back-to-top-label,
.back-to-top:focus-visible .back-to-top-label {
  max-width: 88px;
  opacity: 1;
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(0, 137, 149, .25);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .back-to-top {
    left: 18px;
    bottom: 101px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    box-shadow: 0 4px 17px rgba(7, 48, 61, .15);
  }
  .back-to-top svg { width: 19px; height: 19px; }
  .back-to-top-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .back-to-top-label { transition: none !important; }
}
