/* ===============================
   FOOTER MESTTO (FIJO)
   =============================== */

:root{
  --footer-h: 45px;
}

body{
  /* evita que el footer tape contenido */
  padding-bottom: calc(var(--footer-h) + 18px);
}

.mestto-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: var(--footer-h);
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc, #ffffff);

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 13px;
  color: #475569;

  z-index: 900; /* arriba del contenido */
}

.footer-left{display:flex;align-items:center;gap:10px;}
.footer-logo{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-center{
  text-align: center;
  flex: 1;
  padding: 0 12px;
  font-size: 14px;
  color: #334155;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-right{
  color:#475569;
  font-weight: 600;
}

/* ===============================
   BOTON FLOTANTE SWITCH ROL
   - Abajo derecha, pegado al footer
   - Estilo "glass" suave
   =============================== */

.role-switch-btn{
  position: fixed;
  right: 14px;
  bottom: calc(var(--footer-h) + 10px); /* pegado sobre footer */
  z-index: 950; /* arriba del footer */

  width: 42px;
  height: 42px;
  border-radius: 999px;

  background: rgba(255,255,255,.86);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 10px 24px rgba(2,6,23,.14);
  backdrop-filter: blur(10px);

  display: grid;
  place-items: center;

  font-size: 18px;
  color: #334155;

  cursor: pointer;
  transition: transform .15s ease, opacity .2s ease, box-shadow .2s ease, background .2s ease;

  opacity: .82;

  padding: 0;
}

/* Icono usuario */
.rs-icon{
  font-size: 18px;
  transform: translateY(-1px);
}

.role-switch-btn:hover{
  transform: translateY(-2px);
  opacity: 1;
  background: rgba(255,255,255,.95);
  box-shadow: 0 14px 30px rgba(2,6,23,.18);
}

.role-switch-btn:active{
  transform: translateY(0);
}

/* “transparente” mientras scrollea o cuando hay overlays activos */
.role-switch-btn.is-dim{
  opacity: .35;
}

/* ===============================
   MODAL SWITCH ROL
   =============================== */

.role-switch-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.role-switch-modal{
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  width: calc(100% - 28px);
  max-width: 420px; /* MISMO ancho que login */
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  border: 1px solid rgba(226,232,240,.9);
}

.role-switch-modal h3{
  margin: 0 0 6px;
  font-size: 18px;
}

.role-switch-modal p{
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px;
}

.role-switch-list{
  display: grid;
  gap: 10px;
}

.role-switch-item{
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.role-switch-item:hover{
  background: #eef2ff;
  border-color: #c7d2fe;
}

.role-switch-cancel{
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-weight: 700;
  cursor: pointer;
}

.role-switch-cancel:hover{
  background:#f8fafc;
}

/* Contenedor interno */
.role-switch-icon{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Avatar */
.role-user{
  font-size: 16px;
  display: block;
}

/* Flechas */
.role-arrows{
  font-size: 11px;
  display: block;
  margin-top: 4px;   /* separación real */
  opacity: 0.65;
}

.mestto-footer{
  position:fixed;
  bottom:10px;
  left:0;
  right:0;

  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;

  font-size:12px;
  color:#94a3b8;        /* gris elegante */
  opacity:.85;

  pointer-events:none; /* no interfiere */
}

.footer-dot{
  opacity:.4;
}