/* ==========================================================================
   Estilos de la vista DEMO (conmutador camarero / cliente)
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: #2b2118;
}

.demo-barra {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 56px;
  padding: 0 1rem;
  background-color: #2b2118;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 10;
}

.demo-barra__logo {
  height: 38px;
  width: auto;
}

.demo-barra__titulo {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}

.demo-barra__roles {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.demo-barra__rol {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background-color: transparent;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.demo-barra__rol:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.demo-barra__rol.is-activo {
  background-color: #b03a2e;
  border-color: #b03a2e;
}

.demo-barra__pista {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.demo-contenido {
  height: calc(100% - 56px);
}

.demo-marco {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.demo-marco[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .demo-barra {
    flex-wrap: wrap;
    height: auto;
    padding: 0.5rem;
    gap: 0.4rem;
  }

  .demo-barra__titulo {
    flex: 1;
  }

  .demo-barra__roles {
    order: 3;
    width: 100%;
  }

  .demo-barra__rol {
    flex: 1;
    text-align: center;
  }

  .demo-contenido {
    height: calc(100% - 96px);
  }
}
