:root{
  --jp-bg: #f4f5f7;                 /* gris muy claro */
  --jp-text: #111;
  --jp-header-h: 64px;              /* lo ajusta jf-header.js */
  --jp-radius: 14px;
}

html, body { height: 100%; }
body{
  margin: 0;
  background: var(--jp-bg);
  color: var(--jp-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Como el header va fixed, damos espacio arriba al contenido */
main{
  padding-top: var(--jp-header-h);
  padding-bottom: var(--jp-footer-h, 0px);
}

/* Toasts / loader (si los usas) */
.jp-toasts{
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.jp-toasts > *{ pointer-events: auto; }

.jp-loader{
  position: fixed;
  inset: 0;
  z-index: 3000;
}
.jp-loader[hidden]{ display:none !important; }
.jp-loader-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.45);
}
.jp-loader-card{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-50%);
  background:#fff;
  border-radius: 16px;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  gap: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.jp-loader-text{ font-size: 14px; }

/* =========================================================
   JuanFoto — Botón flotante (panel admin / accesos rápidos)
   Derecha, centrado en altura (siempre)
   Fondo blanco semi-transparente + letras negras
   ========================================================= */
.jf-float-admin{
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;

  background: rgba(255,255,255,.78);
  color: #000;
  border: 1px solid rgba(0,0,0,.18);

  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;

  box-shadow: 0 6px 22px rgba(0,0,0,.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  font-weight: 700;
  line-height: 1;
}

.jf-float-admin:hover{
  background: rgba(255,255,255,.92);
  color: #000;
  text-decoration: none;
}

@media (max-width: 576px){
  .jf-float-admin{
    right: 10px;
    padding: 10px 11px;
  }
}

/* =========================================================
   ✅ JP Pay Overlay (pago)
   - SOLO relojito (sin fondo, sin texto)
   - Reutilizable
   ========================================================= */

.jp-pay-overlay{
  position: fixed;
  inset: 0;
  background: transparent;     /* ✅ sin gris detrás */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 18px;
}
.jp-pay-overlay.is-on{ display:flex; }

.jp-pay-box{
  background: transparent;     /* ✅ sin caja */
  padding: 0;
  box-shadow: none;
}

/* Spinner bien visible */
.jp-spinner{
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0,0,0,.18);
  border-top-color: rgba(0,0,0,.85);
  border-radius: 50%;
  animation: jpSpin 0.75s linear infinite;
}
@keyframes jpSpin { to { transform: rotate(360deg); } }