/* Ficha de sala (templates/partials/index/modal_venue.html, app-venue.js).
   Con #venueModal delante para ganar a los estilos genericos de .modal .panel
   y de los botones (00-base.css les da altura, borde y fondo a todos). */

#venueModal {
  --sala-bg: #0a0a0d;
  --sala-surface: #13131a;
  --sala-surface-2: #1b1b24;
  --sala-line: rgba(255, 255, 255, 0.08);
  --sala-text: #f4f4f5;
  --sala-muted: #a0a2aa;
  --sala-soft: #6d6f78;
  --sala-lima: var(--primary, #d2f365);
  --sala-lima-ink: #0b0f02;
  --sala-ambar: #ffc94d;
  --sala-barra-h: 54px;
  padding: 0;
}

#venueModal .panel.sala-panel {
  position: relative;
  display: block;
  width: min(560px, 100%);
  height: 100%;
  max-height: 100%;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sala-bg);
  border: 0;
  border-radius: 0;
  color: var(--sala-text);
  scrollbar-width: none;
}

#venueModal .panel.sala-panel::-webkit-scrollbar {
  display: none;
}

/* Botones: fuera los estilos genericos; cada uno se viste aqui. */
#venueModal :where(.sala-panel, .sala-hoja, .sala-visor, .sala-paseo) button {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  box-shadow: none;
  cursor: pointer;
}

#venueModal .hidden {
  display: none !important;
}

#venueModal h4 {
  margin: 0;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

/* --- Barra de arriba ----------------------------------------------------------- */

#venueModal .sala-barra {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--sala-barra-h);
  margin-bottom: calc(-1 * var(--sala-barra-h));
  padding: env(safe-area-inset-top, 0px) 10px 0;
  box-sizing: content-box;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

#venueModal .sala-panel.con-barra .sala-barra {
  background: rgba(10, 10, 13, 0.94);
  border-bottom-color: var(--sala-line);
  backdrop-filter: blur(10px);
}

#venueModal .sala-barra-nombre {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#venueModal .sala-panel.con-barra .sala-barra-nombre {
  opacity: 1;
}

#venueModal .sala-icono-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  backdrop-filter: blur(6px);
}

#venueModal .sala-panel.con-barra .sala-barra .sala-icono-btn {
  background: transparent;
}

#venueModal .sala-icono-btn.es-mini {
  width: 30px;
  height: 30px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sala-muted);
}

/* --- Galeria ------------------------------------------------------------------- */

#venueModal .sala-galeria-caja {
  position: relative;
}

#venueModal .sala-galeria {
  display: flex;
  gap: 3px;
  height: 248px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #111116;
}

#venueModal .sala-galeria::-webkit-scrollbar {
  display: none;
}

#venueModal .sala-galeria-item {
  position: relative;
  flex: 0 0 46%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  background: #16161c;
}

#venueModal .sala-galeria-item.es-primera {
  flex-basis: 84%;
}

#venueModal .sala-galeria-item:only-child {
  flex-basis: 100%;
}

#venueModal .sala-galeria-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#venueModal .sala-galeria-item.es-rota {
  display: none;
}

#venueModal .sala-galeria-item.es-vacia {
  display: grid;
  flex-basis: 100%;
  place-items: center;
  color: rgba(210, 243, 101, 0.22);
  font-size: 56px;
}

/* Sin fotos: carteles enteros sobre su propio color desenfocado. */
#venueModal .sala-galeria.es-carteles .sala-galeria-item {
  flex-basis: 58%;
}

#venueModal .sala-galeria.es-carteles .sala-galeria-item:first-child {
  flex-basis: 72%;
}

#venueModal .sala-galeria-desenfoque {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.55) saturate(1.2);
}

#venueModal .sala-galeria-item.es-cartel img {
  position: relative;
  object-fit: contain;
  padding: 14px 0 10px;
  box-sizing: border-box;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

#venueModal .sala-galeria-sello {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

#venueModal .sala-galeria-contador {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  pointer-events: none;
}

/* --- Cabecera -------------------------------------------------------------------- */

#venueModal .sala-cabecera {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px 4px;
}

#venueModal .sala-tipo {
  margin: 0;
  color: var(--sala-muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#venueModal .sala-nombre {
  margin: 0;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  overflow-wrap: anywhere;
}

#venueModal .sala-valoracion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--sala-muted);
  font-size: 14.5px;
}

#venueModal .sala-valoracion-nota {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sala-text);
}

#venueModal .sala-valoracion-nota b {
  font-size: 15px;
}

#venueModal .sala-valoracion-nota span {
  color: var(--sala-muted);
}

#venueModal .sala-valoracion-nota.es-vacia {
  color: var(--sala-muted);
}

#venueModal .sala-valoracion-nota.es-vacia u {
  color: var(--sala-lima);
  text-decoration: none;
  font-weight: 700;
}

#venueModal .sala-punto {
  color: var(--sala-soft);
}

#venueModal .sala-estrellas {
  display: inline-flex;
  gap: 1px;
  color: var(--sala-ambar);
  font-size: 13px;
}

#venueModal .sala-estado {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  color: var(--sala-muted);
  font-size: 14.5px;
}

#venueModal .sala-estado button {
  color: var(--sala-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}

#venueModal .sala-estado b {
  color: var(--sala-text);
}

#venueModal .sala-estado .es-hoy {
  color: var(--sala-lima);
}

#venueModal .sala-estado .es-vivo {
  color: #6ff0a1;
}

#venueModal .sala-estado .es-cerrado {
  color: #ff6b6b;
}

#venueModal .sala-estado-punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sala-soft);
}

#venueModal .sala-estado-punto.es-hoy {
  background: var(--sala-lima);
}

#venueModal .sala-estado-punto.es-vivo {
  background: #6ff0a1;
  box-shadow: 0 0 0 4px rgba(111, 240, 161, 0.18);
}

#venueModal .sala-estado-punto.es-cerrado {
  background: #ff6b6b;
}

#venueModal .sala-gestor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(210, 243, 101, 0.28);
  border-radius: 999px;
  background: rgba(210, 243, 101, 0.07);
  color: var(--sala-text);
  font-size: 13.5px;
}

#venueModal .sala-gestor .fa-circle-check {
  color: var(--sala-lima);
}

/* --- Avatares -------------------------------------------------------------------- */

#venueModal .sala-avatar,
.sala-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #22232c;
  color: var(--primary, #d2f365);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

#venueModal .sala-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#venueModal .sala-avatar.es-mini {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

/* --- Acciones (circulos) -------------------------------------------------------------- */

#venueModal .sala-acciones {
  display: flex;
  gap: 4px;
  padding: 14px 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--sala-line);
}

#venueModal .sala-acciones::-webkit-scrollbar {
  display: none;
}

#venueModal .sala-accion {
  display: flex;
  flex: 0 0 74px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

#venueModal .sala-accion-icono {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sala-lima);
  font-size: 18px;
  transition: transform 0.12s ease, background 0.2s ease;
}

#venueModal .sala-accion:active .sala-accion-icono {
  transform: scale(0.94);
}

#venueModal .sala-accion-texto {
  color: var(--sala-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.15;
}

#venueModal .sala-accion.es-principal .sala-accion-icono {
  border-color: var(--sala-lima);
  background: var(--sala-lima);
  color: var(--sala-lima-ink);
}

#venueModal .sala-accion.es-activo .sala-accion-icono {
  border-color: rgba(210, 243, 101, 0.5);
  background: rgba(210, 243, 101, 0.12);
}

#venueModal .sala-accion.es-activo .sala-accion-texto {
  color: var(--sala-lima);
}

/* --- Pestañas -------------------------------------------------------------------------- */

#venueModal .sala-tabs {
  position: sticky;
  top: calc(var(--sala-barra-h) + env(safe-area-inset-top, 0px));
  z-index: 7;
  display: flex;
  gap: 2px;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--sala-line);
  background: var(--sala-bg);
}

#venueModal .sala-tabs::-webkit-scrollbar {
  display: none;
}

#venueModal .sala-tab-btn {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 14px 12px 13px;
  color: var(--sala-muted);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}

#venueModal .sala-tab-btn span {
  color: var(--sala-soft);
  font-size: 12.5px;
  font-weight: 700;
}

#venueModal .sala-tab-btn.es-activa {
  color: #fff;
}

#venueModal .sala-tab-btn.es-activa::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--sala-lima);
}

/* --- Contenido ---------------------------------------------------------------------- */

#venueModal .sala-contenido {
  min-height: 60vh;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
}

#venueModal .sala-bloque {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--sala-line);
}

#venueModal .sala-bloque:last-child {
  border-bottom: 0;
}

#venueModal .sala-bloque-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#venueModal .sala-ver-todo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sala-lima);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

#venueModal .sala-ver-todo i {
  font-size: 11px;
}

#venueModal .sala-cuenta {
  margin-left: 4px;
  color: var(--sala-soft);
  font-size: 14px;
  font-weight: 600;
}

#venueModal .sala-vacio {
  margin: 0;
  color: var(--sala-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

#venueModal .sala-texto {
  margin: 0;
  color: rgba(244, 244, 245, 0.9);
  font-size: 15.5px;
  line-height: 1.55;
  white-space: pre-line;
}

#venueModal .sala-texto.es-auto {
  color: var(--sala-muted);
}

#venueModal .sala-atribucion {
  margin: 0;
  padding: 16px 20px 0;
  color: var(--sala-soft);
  font-size: 12px;
}

#venueModal .sala-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--sala-lima);
  color: var(--sala-lima-ink);
  font-size: 15px;
  font-weight: 800;
}

#venueModal .sala-boton.es-secundario {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--sala-text);
  font-weight: 700;
}

#venueModal .sala-boton:disabled {
  opacity: 0.6;
}

#venueModal .sala-boton-arriba {
  margin: 18px 20px 0;
  width: calc(100% - 40px);
}

/* --- Panel de gestion (gestor / admin) ---------------------------------------------- */

#venueModal .sala-gestion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 16px 4px;
  padding: 16px;
  border: 1px solid rgba(210, 243, 101, 0.3);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(210, 243, 101, 0.07), rgba(210, 243, 101, 0.02));
}

#venueModal .sala-gestion-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#venueModal .sala-gestion-sello {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sala-lima);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#venueModal .sala-gestion-editar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sala-lima);
  color: var(--sala-lima-ink);
  font-size: 13.5px;
  font-weight: 800;
}

#venueModal .sala-gestion-numeros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#venueModal .sala-gestion-numeros div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}

#venueModal .sala-gestion-numeros b {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 20px;
}

#venueModal .sala-gestion-numeros span {
  color: var(--sala-muted);
  font-size: 12px;
}

#venueModal .sala-gestion-aviso {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sala-ambar);
  font-size: 14px;
  font-weight: 700;
}

#venueModal .sala-gestion-faltan {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#venueModal .sala-gestion-faltan > span {
  color: var(--sala-muted);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#venueModal .sala-gestion-faltan button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}

#venueModal .sala-gestion-faltan i {
  color: var(--sala-soft);
}

#venueModal .sala-admin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

#venueModal .sala-admin label {
  color: var(--sala-muted);
  font-size: 12.5px;
  font-weight: 700;
}

#venueModal .sala-admin-fila {
  display: flex;
  gap: 8px;
}

#venueModal .sala-admin-fila input {
  flex: 1;
  height: 40px;
}

#venueModal .sala-admin-fila button {
  padding: 0 14px;
  min-height: 40px;
  border-radius: 10px;
  background: var(--sala-lima);
  color: var(--sala-lima-ink);
  font-weight: 800;
}

#venueModal .sala-admin-fila button.es-secundario {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sala-text);
}

#venueModal .sala-solicitud {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 14px;
}

#venueModal .sala-solicitud > div:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

#venueModal .sala-solicitud span {
  color: var(--sala-soft);
  font-size: 12.5px;
}

#venueModal .sala-solicitud p {
  margin: 0;
  color: var(--sala-muted);
}

/* --- Fiesta destacada ------------------------------------------------------------------- */

#venueModal .sala-destacada {
  display: flex;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  background: var(--sala-surface);
  text-align: left;
}

#venueModal .sala-destacada-cartel {
  flex: none;
  width: 112px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: #1c1c24;
}

#venueModal .sala-destacada-cartel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#venueModal .sala-destacada-texto {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 4px 4px 4px 0;
}

#venueModal .sala-fecha {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sala-lima);
  color: var(--sala-lima-ink);
  font-size: 12px;
  font-weight: 800;
}

#venueModal .sala-destacada-titulo {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#venueModal .sala-destacada-lineup {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--sala-muted);
  font-size: 13.5px;
  line-height: 1.35;
}

#venueModal .sala-destacada-van {
  color: var(--sala-muted);
  font-size: 12.5px;
}

#venueModal .sala-destacada-ir {
  margin-top: auto;
  color: var(--sala-lima);
  font-size: 13.5px;
  font-weight: 700;
}

/* --- Informacion ---------------------------------------------------------------------- */

#venueModal .sala-info {
  display: flex;
  flex-direction: column;
}

#venueModal .sala-info-fila {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 50px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sala-line);
  font-size: 15px;
  text-align: left;
}

#venueModal .sala-info-fila:last-child {
  border-bottom: 0;
}

#venueModal .sala-info-fila > i:first-child,
#venueModal .sala-horario summary > i:first-child {
  width: 20px;
  flex: none;
  color: var(--sala-lima);
  font-size: 17px;
  text-align: center;
}

#venueModal .sala-info-texto {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#venueModal .sala-info-texto b {
  margin-right: 4px;
  color: var(--sala-muted);
  font-weight: 600;
}

#venueModal .sala-info-ir {
  flex: none;
  color: var(--sala-soft);
  font-size: 12px;
}

#venueModal .sala-horario {
  display: block;
}

#venueModal .sala-horario summary {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

#venueModal .sala-horario summary::-webkit-details-marker {
  display: none;
}

#venueModal .sala-horario[open] summary .sala-info-ir {
  transform: rotate(180deg);
}

#venueModal .sala-horario ul {
  margin: 10px 0 0 36px;
  padding: 0;
  list-style: none;
  color: var(--sala-muted);
  font-size: 14px;
  line-height: 1.8;
}

#venueModal .sala-horario li.es-hoy {
  color: var(--sala-text);
  font-weight: 700;
}

#venueModal .sala-mapa-caja {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #15161b;
}

#venueModal .sala-mapa {
  height: 156px;
  cursor: pointer;
}

#venueModal .sala-teselas {
  filter: invert(1) hue-rotate(180deg) brightness(0.88) contrast(0.92) saturate(0.35);
}

#venueModal .sala-mapa-pin {
  color: var(--sala-lima);
  font-size: 32px;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

#venueModal .sala-mapa-botones {
  display: flex;
  gap: 8px;
  padding: 10px;
}

#venueModal .sala-mapa-botones button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  font-weight: 700;
}

#venueModal .sala-mapa-botones button:first-child {
  background: var(--sala-lima);
  color: var(--sala-lima-ink);
}

/* --- Servicios ---------------------------------------------------------------------------- */

#venueModal .sala-servicios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#venueModal .sala-servicio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--sala-line);
  border-radius: 12px;
  background: var(--sala-surface);
  color: var(--sala-text);
  font-size: 13.5px;
  font-weight: 600;
}

#venueModal .sala-servicio i {
  color: var(--sala-lima);
}

#venueModal .sala-servicios.es-editable .sala-servicio {
  cursor: pointer;
  color: var(--sala-muted);
}

#venueModal .sala-servicios.es-editable .sala-servicio i {
  color: var(--sala-soft);
}

#venueModal .sala-servicios.es-editable .sala-servicio.es-activo {
  border-color: rgba(210, 243, 101, 0.5);
  background: rgba(210, 243, 101, 0.1);
  color: var(--sala-text);
}

#venueModal .sala-servicios.es-editable .sala-servicio.es-activo i {
  color: var(--sala-lima);
}

#venueModal .sala-servicios.es-editable input {
  display: none;
}

/* --- Valoraciones --------------------------------------------------------------------- */

#venueModal .sala-valoraciones {
  display: flex;
  align-items: center;
  gap: 22px;
}

#venueModal .sala-valoraciones-nota {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#venueModal .sala-valoraciones-nota b {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

#venueModal .sala-valoraciones-nota span:last-child {
  color: var(--sala-muted);
  font-size: 12.5px;
}

#venueModal .sala-valoraciones-barras {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

#venueModal .sala-barra-nota {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sala-muted);
  font-size: 12px;
}

#venueModal .sala-barra-pista {
  position: relative;
  flex: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

#venueModal .sala-barra-pista > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--sala-ambar);
}

#venueModal .sala-subnotas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

#venueModal .sala-subnota {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 8px;
  font-size: 13.5px;
}

#venueModal .sala-subnota span:first-child {
  color: var(--sala-muted);
}

#venueModal .sala-subnota .sala-barra-pista {
  grid-column: 1 / -1;
  height: 5px;
}

#venueModal .sala-subnota .sala-barra-pista > span {
  background: var(--sala-lima);
}

/* --- Musica ----------------------------------------------------------------------------- */

#venueModal .sala-estilos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#venueModal .sala-estilo {
  display: grid;
  grid-template-columns: minmax(84px, 30%) 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

#venueModal .sala-estilo-nombre {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
}

#venueModal .sala-estilo .sala-barra-pista {
  height: 8px;
}

#venueModal .sala-estilo .sala-barra-pista > span {
  background: var(--sala-lima);
  opacity: 0.85;
}

#venueModal .sala-estilo-pct {
  min-width: 62px;
  color: var(--sala-muted);
  font-size: 12.5px;
  text-align: right;
}

#venueModal .sala-artistas-fila {
  display: flex;
  gap: 14px;
  margin: 0 -20px;
  padding: 0 20px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

#venueModal .sala-artistas-fila::-webkit-scrollbar {
  display: none;
}

#venueModal .sala-artista-burbuja {
  display: flex;
  flex: 0 0 78px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

#venueModal .sala-artista-burbuja .sala-avatar {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 19px;
}

#venueModal .sala-artista-nombre {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

#venueModal .sala-artista-veces {
  color: var(--sala-soft);
  font-size: 11.5px;
}

#venueModal .sala-subtitulo {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 0;
  color: var(--sala-lima);
  font-size: 13px;
  font-weight: 700;
}

#venueModal .sala-subtitulo.es-gris {
  margin-top: 6px;
  color: var(--sala-muted);
}

#venueModal .sala-artista-foto {
  position: relative;
  display: inline-flex;
  flex: none;
}

#venueModal .sala-artista-sello {
  position: absolute;
  right: -2px;
  bottom: -2px;
  padding: 2px;
  border-radius: 50%;
  background: var(--sala-bg);
  color: var(--sala-lima);
  font-size: 15px;
}

#venueModal .sala-artista-burbuja.con-cuenta .sala-avatar {
  border: 2px solid var(--sala-lima);
}

#venueModal .sala-artista-burbuja.con-cuenta .sala-artista-veces {
  color: var(--sala-muted);
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#venueModal .sala-avatar.es-grande {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

#venueModal .sala-artistas-cuentas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#venueModal .sala-artista-cuenta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 243, 101, 0.16);
  border-radius: 16px;
  background: var(--sala-surface);
  cursor: pointer;
}

#venueModal .sala-artista-cuenta .sala-avatar {
  border: 2px solid var(--sala-lima);
}

#venueModal .sala-artista-cuenta .sala-artista-texto small {
  color: var(--sala-soft);
  font-size: 12.5px;
}

#venueModal .sala-seguir-artista {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sala-lima);
  color: var(--sala-lima-ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

#venueModal .sala-seguir-artista.es-siguiendo {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--sala-text);
}

#venueModal .sala-temas,
#venueModal .sala-artistas-lista {
  display: flex;
  flex-direction: column;
}

#venueModal .sala-tema,
#venueModal .sala-artista-fila {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 0;
  text-align: left;
}

#venueModal .sala-tema-portada {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 10px;
  background: #1f2029;
  color: var(--sala-soft);
}

#venueModal .sala-tema-portada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#venueModal .sala-tema-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 15px;
}

#venueModal .sala-tema-texto,
#venueModal .sala-artista-texto {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

#venueModal .sala-tema-texto b,
#venueModal .sala-artista-texto b {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#venueModal .sala-artista-texto b i {
  color: var(--sala-lima);
  font-size: 12px;
}

#venueModal .sala-tema-texto span,
#venueModal .sala-artista-texto span {
  overflow: hidden;
  color: var(--sala-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#venueModal .sala-tema-veces {
  color: var(--sala-soft);
  font-size: 12px;
}

/* --- Fotos ------------------------------------------------------------------------------- */

#venueModal .sala-fotos-mini,
#venueModal .sala-fotos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

#venueModal .sala-fotos-mini button,
#venueModal .sala-fotos-grid button {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #1a1a20;
}

#venueModal .sala-fotos-mini button:first-child {
  border-top-left-radius: 14px;
}

#venueModal .sala-fotos-mini img,
#venueModal .sala-fotos-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#venueModal .sala-foto-portada {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sala-lima);
  color: var(--sala-lima-ink);
  font-size: 10.5px;
  font-weight: 800;
}

/* --- Reclamar la sala ------------------------------------------------------------------------ */

#venueModal .sala-reclamar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px 14px;
  margin: 20px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
}

#venueModal .sala-reclamar > i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(210, 243, 101, 0.1);
  color: var(--sala-lima);
}

#venueModal .sala-reclamar div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}

#venueModal .sala-reclamar div span {
  color: var(--sala-muted);
  font-size: 13px;
  line-height: 1.4;
}

#venueModal .sala-reclamar button {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 9px 16px;
  border: 1px solid rgba(210, 243, 101, 0.5);
  border-radius: 999px;
  color: var(--sala-lima);
  font-size: 14px;
  font-weight: 800;
}

#venueModal .sala-reclamar.es-enviada > i {
  color: var(--sala-muted);
  background: rgba(255, 255, 255, 0.06);
}

/* --- Fiestas -------------------------------------------------------------------------------- */

#venueModal .sala-aviso-seguir {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(210, 243, 101, 0.08);
  font-size: 14px;
  text-align: left;
}

#venueModal .sala-aviso-seguir i {
  color: var(--sala-lima);
  font-size: 18px;
}

#venueModal .sala-proximas-lista {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#venueModal .sala-fila-fiesta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
  text-align: left;
}

#venueModal .sala-fila-dia {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 46px;
  color: var(--sala-muted);
  line-height: 1.1;
}

#venueModal .sala-fila-dia b {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 22px;
  color: #fff;
}

#venueModal .sala-fila-dia small {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}

#venueModal .sala-fila-dia.es-hoy b,
#venueModal .sala-fila-dia.es-hoy small {
  color: var(--sala-lima);
}

#venueModal .sala-fila-cartel {
  flex: none;
  width: 58px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 9px;
  background: #1c1c24;
}

#venueModal .sala-fila-cartel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#venueModal .sala-fila-texto {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

#venueModal .sala-fila-texto b {
  font-size: 15.5px;
  line-height: 1.25;
}

#venueModal .sala-fila-lineup,
#venueModal .sala-fila-meta {
  overflow: hidden;
  color: var(--sala-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#venueModal .sala-fila-meta {
  color: var(--sala-soft);
  font-size: 12.5px;
}

#venueModal .sala-pasadas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

#venueModal .sala-pasada {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #19191c;
}

#venueModal .sala-pasada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) brightness(0.85);
}

#venueModal .sala-pasada-sin {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 8px;
  color: rgba(244, 244, 243, 0.7);
  font-size: 12px;
  text-align: center;
}

#venueModal .sala-pasada-pie {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 7px 6px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#venueModal .sala-pasada-pie b {
  display: block;
  color: var(--sala-lima);
  font-size: 11px;
}

/* --- Carta ---------------------------------------------------------------------------------- */

#venueModal .sala-carta-seccion {
  gap: 4px;
}

#venueModal .sala-carta-seccion h4 {
  margin-bottom: 8px;
}

#venueModal .sala-carta-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--sala-line);
}

#venueModal .sala-carta-item:last-child {
  border-bottom: 0;
}

#venueModal .sala-carta-linea {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15.5px;
}

#venueModal .sala-carta-nombre {
  min-width: 0;
  overflow-wrap: anywhere;
}

#venueModal .sala-carta-puntos {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

#venueModal .sala-carta-linea b {
  color: var(--sala-lima);
  white-space: nowrap;
}

#venueModal .sala-carta-item p {
  margin: 3px 0 0;
  color: var(--sala-muted);
  font-size: 13px;
}

#venueModal .sala-vacio-grande {
  align-items: center;
  padding: 40px 28px;
  text-align: center;
}

#venueModal .sala-vacio-grande > i {
  color: var(--sala-lima);
  font-size: 34px;
}

#venueModal .sala-vacio-grande p {
  margin: 0;
  color: var(--sala-muted);
  line-height: 1.5;
}

/* --- Reseñas -------------------------------------------------------------------------------- */

#venueModal .sala-orden {
  display: flex;
  gap: 8px;
  padding: 16px 20px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

#venueModal .sala-orden button {
  flex: none;
  padding: 7px 13px;
  border: 1px solid var(--sala-line);
  border-radius: 999px;
  color: var(--sala-muted);
  font-size: 13px;
  font-weight: 700;
}

#venueModal .sala-orden button.es-activo {
  border-color: rgba(210, 243, 101, 0.5);
  background: rgba(210, 243, 101, 0.1);
  color: var(--sala-lima);
}

#venueModal .sala-resenas-lista {
  display: flex;
  flex-direction: column;
}

#venueModal [data-sala-panel="resenas"] > .sala-resenas-lista {
  padding: 0 20px;
}

#venueModal [data-sala-panel="resenas"] > .sala-boton {
  margin: 8px 20px;
  width: calc(100% - 40px);
}

#venueModal .sala-resena {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sala-line);
}

#venueModal .sala-resena:last-child {
  border-bottom: 0;
}

#venueModal .sala-resena header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#venueModal .sala-resena-autor {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

#venueModal .sala-resena-autor > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  font-size: 14.5px;
}

#venueModal .sala-resena-autor small {
  overflow: hidden;
  color: var(--sala-muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#venueModal .sala-resena-nota {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sala-soft);
  font-size: 12.5px;
}

#venueModal .sala-resena-texto {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
}

#venueModal .sala-resena-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#venueModal .sala-resena-subs span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--sala-muted);
  font-size: 12px;
}

#venueModal .sala-resena-subs b {
  color: var(--sala-text);
}

#venueModal .sala-respuesta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--sala-lima);
  border-radius: 4px 12px 12px 4px;
  background: var(--sala-surface);
  font-size: 14px;
}

#venueModal .sala-respuesta b {
  color: var(--sala-lima);
  font-size: 12.5px;
}

#venueModal .sala-respuesta p {
  margin: 0;
  line-height: 1.45;
}

#venueModal .sala-respuesta button,
#venueModal .sala-responder {
  align-self: flex-start;
  color: var(--sala-muted);
  font-size: 13px;
  font-weight: 700;
}

#venueModal .sala-responder {
  color: var(--sala-lima);
}

/* --- Hojas (formularios desde abajo) ----------------------------------------------------- */

#venueModal .sala-hoja {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#venueModal .sala-hoja-fondo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

#venueModal .sala-hoja-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: 92%;
  border-radius: 22px 22px 0 0;
  background: #101015;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: salaHojaSube 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes salaHojaSube {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

#venueModal .sala-hoja-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 10px 20px;
}

#venueModal .sala-hoja-cuerpo {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
}

#venueModal .sala-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#venueModal .sala-form label {
  margin-top: 8px;
  color: var(--sala-muted);
  font-size: 13px;
  font-weight: 700;
}

#venueModal .sala-form label small {
  color: var(--sala-soft);
  font-weight: 600;
}

#venueModal .sala-form :is(input, select, textarea) {
  width: 100%;
  box-sizing: border-box;
  border-color: rgba(255, 255, 255, 0.12);
  background: #17171e;
  font-size: 16px;
}

#venueModal .sala-form select,
#venueModal .sala-form input {
  height: 46px;
}

#venueModal .sala-form textarea {
  min-height: 90px;
}

#venueModal .sala-form-ayuda {
  margin: 0 0 6px;
  color: var(--sala-muted);
  font-size: 14px;
  line-height: 1.5;
}

#venueModal .sala-form-botones {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

#venueModal .sala-form-botones > button:not(.sala-boton) {
  padding: 12px 16px;
  color: var(--sala-muted);
  font-weight: 700;
}

#venueModal .sala-form-botones .es-peligro {
  margin-right: auto;
  color: #ff7b7b !important;
}

#venueModal .sala-form-botones.es-fijos {
  position: sticky;
  bottom: calc(-1 * (env(safe-area-inset-bottom, 0px) + 20px));
  margin: 18px -20px 0;
  padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 12px);
  border-top: 1px solid var(--sala-line);
  background: #101015;
}

#venueModal .sala-form-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0 10px;
}

#venueModal .sala-etiqueta-nota {
  color: var(--sala-muted);
  font-size: 13.5px;
  font-weight: 700;
}

#venueModal .sala-input-estrellas {
  display: inline-flex;
  gap: 4px;
}

#venueModal .sala-input-estrellas button {
  color: var(--sala-ambar);
  font-size: 20px;
  padding: 2px;
}

#venueModal .sala-input-estrellas.es-grande button {
  font-size: 36px;
  padding: 2px 4px;
}

#venueModal .sala-form-subnotas {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #17171e;
}

#venueModal .sala-form-subnotas > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
}

#venueModal .sala-form-subnotas .sala-input-estrellas button {
  font-size: 17px;
}

#venueModal .sala-form-dos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}

#venueModal .sala-form-dos > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#venueModal .sala-cita {
  padding: 12px;
  border-radius: 12px;
  background: #17171e;
}

#venueModal .sala-cita p {
  margin: 6px 0 0;
  color: var(--sala-muted);
  font-size: 14px;
}

#venueModal .sala-editor section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sala-line);
  scroll-margin-top: 10px;
}

#venueModal .sala-editor section:first-child {
  padding-top: 4px;
}

#venueModal .sala-editor h5 {
  margin: 0;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--sala-lima);
  letter-spacing: 0.02em;
}

#venueModal .sala-editor .sala-boton {
  align-self: flex-start;
  min-height: 40px;
  font-size: 14px;
}

#venueModal .sala-ed-seccion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--sala-line);
  border-radius: 14px;
}

#venueModal .sala-ed-seccion-cabecera {
  display: flex;
  align-items: center;
  gap: 8px;
}

#venueModal .sala-ed-seccion-cabecera input {
  font-weight: 800;
}

#venueModal .sala-ed-item {
  display: grid;
  grid-template-columns: 1fr 76px auto;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

#venueModal .sala-ed-item .sala-ed-nota {
  grid-column: 1 / -1;
  height: 38px;
  font-size: 14px;
}

#venueModal .sala-ed-anadir {
  align-self: flex-start;
  color: var(--sala-lima);
  font-size: 14px;
  font-weight: 700;
}

/* --- Invitar a la sala (admin) ------------------------------------------------------------- */

#venueModal .sala-invitar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(210, 243, 101, 0.4);
  border-radius: 14px;
  background: rgba(210, 243, 101, 0.1);
  text-align: left;
}

#venueModal .sala-invitar-btn > i:first-child {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sala-lima);
  color: var(--sala-lima-ink);
}

#venueModal .sala-invitar-btn span {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  font-size: 14.5px;
}

#venueModal .sala-invitar-btn small {
  color: var(--sala-muted);
  font-size: 12.5px;
}

#venueModal .sala-invitar-btn > i:last-child {
  color: var(--sala-lima);
}

#venueModal .sala-gestion-paseo {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sala-muted);
  font-size: 13.5px;
  font-weight: 700;
}

#venueModal .sala-canales {
  display: flex;
  gap: 8px;
}

#venueModal .sala-canal {
  display: inline-flex !important;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 !important;
  padding: 11px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #17171e;
  color: var(--sala-text) !important;
  font-size: 14px !important;
  cursor: pointer;
}

#venueModal .sala-canal input {
  display: none;
}

#venueModal .sala-canal:has(input:checked) {
  border-color: var(--sala-lima);
  background: rgba(210, 243, 101, 0.12);
  color: var(--sala-lima) !important;
}

#venueModal .sala-inv-resultado {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--sala-line);
}

#venueModal .sala-inv-resultado label {
  color: var(--sala-muted);
  font-size: 13px;
  font-weight: 700;
}

#venueModal .sala-inv-resultado textarea {
  width: 100%;
  min-height: 200px;
  box-sizing: border-box;
  background: #17171e;
  font-size: 15px;
  line-height: 1.5;
}

#venueModal .sala-inv-estado {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(210, 243, 101, 0.08);
  font-size: 14px;
  line-height: 1.45;
}

#venueModal .sala-inv-estado i {
  margin-top: 2px;
  color: var(--sala-lima);
}

#venueModal .sala-inv-botones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#venueModal .sala-inv-botones .sala-boton {
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
}

#venueModal .sala-inv-botones .sala-boton:first-child {
  grid-column: 1 / -1;
}

#venueModal .sala-inv-url {
  margin: 0;
  color: var(--sala-soft);
  font-size: 12px;
  word-break: break-all;
}

#venueModal .sala-inv-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

#venueModal .sala-inv-lista:empty {
  display: none;
}

#venueModal .sala-inv-lista h5 {
  margin: 0 0 2px;
  color: var(--sala-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#venueModal .sala-inv-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #17171e;
  font-size: 13.5px;
}

#venueModal .sala-inv-item small {
  display: block;
  margin-top: 2px;
  color: var(--sala-soft);
}

#venueModal .sala-inv-item.es-aceptada b {
  color: var(--sala-lima);
}

#venueModal .sala-inv-item.es-anulada,
#venueModal .sala-inv-item.es-caducada {
  opacity: 0.55;
}

#venueModal .sala-inv-item-botones {
  display: flex;
  gap: 14px;
}

#venueModal .sala-inv-item-botones button {
  color: var(--sala-lima);
  font-size: 13px;
  font-weight: 700;
}

#venueModal .sala-inv-item-botones button:last-child {
  color: #ff8f8f;
}

/* --- Paseo guiado para el gestor ------------------------------------------------------------ */

#venueModal .sala-paseo {
  position: fixed;
  inset: 0;
  z-index: 66;
}

#venueModal .sala-paseo.es-centro {
  background: rgba(0, 0, 0, 0.72);
}

#venueModal .sala-paseo-foco {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 2px var(--sala-lima), 0 0 0 9999px rgba(0, 0, 0, 0.72);
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}

#venueModal .sala-paseo.es-centro .sala-paseo-foco {
  display: none;
}

#venueModal .sala-paseo-globo {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(210, 243, 101, 0.35);
  border-radius: 18px;
  background: #15151c;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  color: var(--sala-text);
}

#venueModal .sala-paseo.es-centro .sala-paseo-globo {
  top: 50%;
  left: 50%;
  width: min(340px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  text-align: center;
  align-items: center;
}

#venueModal .sala-paseo-icono {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: rgba(210, 243, 101, 0.12);
  color: var(--sala-lima);
  font-size: 24px;
}

#venueModal .sala-paseo-globo b {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 17px;
}

#venueModal .sala-paseo-globo p {
  margin: 0;
  color: var(--sala-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

#venueModal .sala-paseo-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

#venueModal .sala-paseo-pie > span {
  color: var(--sala-soft);
  font-size: 12.5px;
  font-weight: 700;
}

#venueModal .sala-paseo-pie > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#venueModal .sala-paseo-pie button {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--sala-muted);
  font-size: 14px;
  font-weight: 700;
}

#venueModal .sala-paseo-pie button.es-principal {
  background: var(--sala-lima);
  color: var(--sala-lima-ink);
  font-weight: 800;
}

#venueModal .sala-paseo.es-centro .sala-paseo-pie {
  flex-direction: column;
}

#venueModal .sala-paseo.es-centro .sala-paseo-pie > div {
  justify-content: center;
}

/* --- Visor de fotos ---------------------------------------------------------------------- */

#venueModal .sala-visor {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: #000;
}

#venueModal .sala-visor-cerrar {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 12px;
  z-index: 2;
}

#venueModal .sala-visor-pista {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

#venueModal .sala-visor-pista::-webkit-scrollbar {
  display: none;
}

#venueModal .sala-visor-pista figure {
  display: grid;
  flex: 0 0 100%;
  place-items: center;
  margin: 0;
  scroll-snap-align: center;
}

#venueModal .sala-visor-pista img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#venueModal .sala-visor-pie {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px calc(env(safe-area-inset-bottom, 0px) + 18px);
  color: #fff;
  font-size: 14px;
}

#venueModal .sala-visor-pie > span {
  color: rgba(255, 255, 255, 0.7);
}

#venueModal .sala-visor-num {
  font-size: 12.5px;
  font-weight: 700;
}

#venueModal .sala-visor-acciones {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

#venueModal .sala-visor-acciones button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  font-weight: 700;
}

#venueModal .sala-skel {
  display: inline-block;
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

@media (min-width: 700px) {
  #venueModal .panel.sala-panel {
    height: min(940px, calc(100% - 40px));
    border-radius: 22px;
    border: 1px solid var(--sala-line);
  }

  #venueModal .sala-galeria {
    height: 300px;
  }
}

/* --- Tarjeta de sala (detalle de un evento, perfil de la sala) ------------------------- */

.sala-tarjeta {
  display: flex !important;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: var(--text, #f4f4f5) !important;
  text-align: left;
}

.sala-tarjeta-foto {
  display: grid;
  flex: none;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 12px;
  background: #1d1e26;
  color: var(--primary, #d2f365);
  font-size: 20px;
}

.sala-tarjeta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sala-tarjeta-texto {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.sala-tarjeta-tipo {
  color: var(--text-muted, #9fa1a8);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sala-tarjeta-tipo i {
  color: var(--primary, #d2f365);
}

.sala-tarjeta-nombre {
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sala-tarjeta-meta {
  overflow: hidden;
  color: var(--text-muted, #9fa1a8);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sala-tarjeta-meta b {
  color: var(--text, #f4f4f5);
}

.sala-tarjeta-meta .fa-star {
  color: #ffc94d;
}

.sala-tarjeta-ir {
  flex: none;
  color: var(--primary, #d2f365);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.detail-sala-tarjeta {
  min-width: 0;
  margin: 4px 0 14px;
}

.sala-tarjeta.es-compacta .sala-tarjeta-ir > span {
  display: none;
}

/* Perfil de la cuenta de una sala. */
.perfil-salas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 4px;
}

.perfil-salas-sello {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(210, 243, 101, 0.12);
  color: var(--primary, #d2f365);
  font-size: 12.5px;
  font-weight: 800;
}

.perfil-salas-ayuda {
  margin: 0;
  color: var(--text-muted, #9fa1a8);
  font-size: 12.5px;
}

/* Buscador: estrella y sello de cuenta oficial en las salas. */
.busq-estrella {
  color: #ffc94d;
  font-size: 0.85em;
}

.busq-oficial {
  color: var(--primary, #d2f365);
  font-size: 0.8em;
}

/* «Lugar» en el detalle: que se vea que lleva a algun sitio. */
#detailModal #detailVenue[href^="/sala/"]::after {
  content: " ›";
  color: var(--primary, #d2f365);
  font-weight: 800;
}
