/* =========================================================
   Footer + FABs (aislado, no toca tu layout global)
   ========================================================= */

/* Altura del footer para posicionar los FABs */
:root{ --tssc-footer-h: 88px; }

/* Footer */
.tssc-footer{
  background-color: var(--color-primary);
  color: var(--color-white);
  min-height: var(--tssc-footer-h);
  display: grid;
  place-items: center;
  padding: 16px;
  border-top: 3px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 10;
}

.tssc-footer__inner{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.tssc-footer__logo{
  height: clamp(26px, 4vw, 40px);
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

.tssc-footer__copy{
  font-size: .95rem;
  letter-spacing: .3px;
  color: rgba(255,255,255,.86);
  white-space: nowrap;
}

/* ==================== FABs ==================== */
.fab-stack{
  position: fixed;
  right: 18px;
  bottom: calc(var(--tssc-footer-h) + 18px);
  display: grid;
  gap: 12px;
  z-index: 1000;
}

/* Accesibilidad al enfoque */
.fab-stack button:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 999px;
}

/* === FAB: Subir (negro 50% de opacidad) === */
.btn-to-top{
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,.5);                 /* ⬅️ negro con 50% de opacidad */
  backdrop-filter: blur(5px);
  border: 1px solid var(--color-white);        /* borde blanco */
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.btn-to-top:hover{
  background: var(--color-primary);            /* hover en azul primary */
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.btn-to-top svg{
  width: 20px;
  height: 20px;
  fill: var(--color-white);                    /* icono blanco para alto contraste */
}

/* === FAB: Chat === */
.btn-chat{
  width: 58px;
  height: 58px;
  background: var(--color-white);
  color: var(--color-primary);
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 260ms ease, box-shadow 180ms ease, background 180ms ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.btn-chat:hover{ transform: translateY(-2px); }
.btn-chat__icon{
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
  transition: transform 260ms ease;
}
.btn-chat.is-rotating .btn-chat__icon{ transform: rotate(-18deg); }

/* Responsive */
@media (max-width: 480px){
  .fab-stack{ right: 12px; bottom: calc(var(--tssc-footer-h) + 12px); gap: 10px; }
  .btn-to-top{ width: 44px; height: 44px; }
  .btn-chat{ width: 54px; height: 54px; }
}
