/* El enlace de invitación general (invitacion.js): solo administradores. */

.inv {
  width: min(520px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--se-linea);
  border-radius: 16px;
  background: var(--se-papel);
  color: var(--se-tinta);
  font-family: var(--se-fuente);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.inv::backdrop { background: rgba(8, 10, 9, .55); }

.inv__cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inv__titulo { margin: 0; font-size: 18px; font-weight: 600; }
.inv__cerrar {
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px;
  background: transparent; color: inherit; cursor: pointer;
}
.inv__cerrar:hover { background: var(--se-papel-hundido); }
.inv__cerrar svg { width: 18px; height: 18px; }

.inv__bajada { margin: 6px 0 16px; font-size: 13px; opacity: .72; }

.inv__enlace { display: flex; gap: 8px; }
.inv__campo {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--se-linea);
  border-radius: 10px;
  background: var(--se-papel-hundido);
  color: inherit;
  font: 13px var(--se-fuente-mono);
}

.inv__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--se-linea-fuerte);
  border-radius: 10px;
  background: transparent; color: inherit;
  font: 500 13px var(--se-fuente);
  cursor: pointer; white-space: nowrap;
}
.inv__btn:hover { background: var(--se-papel-hundido); }
.inv__btn:disabled { opacity: .5; cursor: default; }
.inv__btn svg { width: 16px; height: 16px; }
.inv__btn--principal { border-color: var(--se-verde); background: var(--se-verde); color: var(--se-sobre-verde); }
.inv__btn--principal:hover { background: var(--se-verde-claro); }

.inv__nota { margin: 10px 0 0; font-size: 13px; opacity: .8; }
.inv__error { margin: 12px 0 0; font-size: 13px; color: var(--se-error); }

.inv__pie {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--se-linea-suave);
}
.inv__aviso { font-size: 12px; opacity: .65; }

@media (max-width: 480px) {
  .inv__enlace { flex-direction: column; }
  .inv__btn--principal { justify-content: center; }
}
