/* ═══════════════════════════════════════════════════════════════════════
   SELECTOR DE VISTA — Comunidad Cristiana Cochabamba
   ───────────────────────────────────────────────────────────────────────
   Estilos propios y cerrados a propósito: este control aparece sobre
   cuatro diseños muy distintos (claro, oscuro, amarillo), así que no
   hereda colores ni tipografías de la página. Así se ve y se lee igual
   de bien en todos.
   ═══════════════════════════════════════════════════════════════════════ */

.vs-caja {
  position: relative;
  display: inline-block;
  z-index: 70;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.45;
  text-align: left;
}

/* Si la página no indica dónde ponerlo, se ancla abajo a la derecha. */
.vs-caja.vs-flotante {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
}

/* ── Botón ── */
.vs-boton {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #16181D;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(22, 24, 29, 0.16);
  border-radius: 999px;
  padding: 9px 17px 9px 14px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 14px rgba(10, 15, 30, 0.16);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.vs-boton:hover { background: #fff; box-shadow: 0 5px 20px rgba(10, 15, 30, 0.22); }
.vs-boton:active { transform: translateY(1px); }
.vs-boton:focus-visible { outline: 2px solid #1E5EFF; outline-offset: 2px; }
.vs-txt { white-space: nowrap; font-weight: 500; color: #5B616E; }
.vs-txt b { font-weight: 700; color: #16181D; }

/* Tres barritas: sugiere "otras maneras de verlo" sin depender de iconos */
.vs-ico {
  width: 13px; height: 11px;
  flex: 0 0 auto;
  background:
    linear-gradient(#16181D, #16181D) 0 0 / 13px 2px no-repeat,
    linear-gradient(#16181D, #16181D) 0 4.5px / 9px 2px no-repeat,
    linear-gradient(#16181D, #16181D) 0 9px / 5px 2px no-repeat;
}

/* ── Menú ── */
.vs-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: min(290px, 82vw);
  background: #fff;
  border: 1px solid rgba(22, 24, 29, 0.13);
  border-radius: 14px;
  padding: 13px 10px 9px;
  box-shadow: 0 16px 44px rgba(10, 15, 30, 0.24);
  animation: vs-entra .16s ease-out;
}
.vs-caja.vs-flotante .vs-menu { top: auto; bottom: calc(100% + 9px); }
@keyframes vs-entra { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vs-menu { animation: none; } }

.vs-titulo {
  margin: 0 0 9px;
  padding: 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8A9099;
}

.vs-op {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: #16181D;
  transition: background .15s;
}
.vs-op:hover { background: #F2F4F8; }
.vs-op.activa { background: #EDF3FF; }
.vs-op-nombre { display: block; font-size: 0.94rem; font-weight: 600; }
.vs-op.activa .vs-op-nombre { color: #1E5EFF; }
.vs-op.activa .vs-op-nombre::after { content: " ·  la que estás viendo"; font-weight: 500; font-size: 0.78rem; }
.vs-op-det { display: block; font-size: 0.79rem; color: #6B7280; margin-top: 1px; }

.vs-pie {
  margin: 8px 0 0;
  padding: 8px 10px 0;
  border-top: 1px solid rgba(22, 24, 29, 0.09);
  font-size: 0.76rem;
  color: #8A9099;
}

@media (max-width: 520px) {
  .vs-txt { display: none; }
  .vs-boton { padding: 10px 13px; }
  .vs-menu { right: auto; left: 0; }
  .vs-caja.vs-flotante .vs-menu { right: 0; left: auto; }
}
