/* ==========================================================================
   TeamLab - Plataforma de Gamificación y Capacitación Corporativa
   Hoja de Estilos Principal (UI/UX Moderno, Lúdico y Corporativo)
   ========================================================================== */

:root {
  --bg-page: #f4f6fb;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-teal: #10b981;
  --accent-sky: #0ea5e9;
  --danger: #ef4444;

  --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 52%, #ec4899 100%);
  --grad-hero: linear-gradient(145deg, #1e1b4b 0%, #312e81 48%, #4c1d95 100%);
  --grad-accent: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

  --border-color: #e2e8f0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(79, 70, 229, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
}

code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
}

/* --------------------------------------------------------------------------
   Logo Profesional TLab
   -------------------------------------------------------------------------- */
.tlab-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.tlab-logo__mark svg {
  display: block;
  filter: drop-shadow(0 6px 14px rgba(99, 102, 241, 0.28));
}

.tlab-logo--sm .tlab-logo__mark svg {
  width: 38px;
  height: 38px;
}

.tlab-logo--md .tlab-logo__mark svg {
  width: 48px;
  height: 48px;
}

.tlab-logo--lg .tlab-logo__mark svg {
  width: 60px;
  height: 60px;
}

.tlab-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tlab-logo__brand {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  color: var(--text-main);
}

.tlab-logo--lg .tlab-logo__brand {
  font-size: 1.85rem;
}

.tlab-logo__t {
  color: #6366f1;
}

.tlab-logo--light .tlab-logo__brand,
.tlab-logo--light .tlab-logo__t {
  color: #ffffff;
}

.tlab-logo--light .tlab-logo__lab {
  color: #fde047;
}

.tlab-logo__badge {
  margin-left: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #ffffff;
}

.tlab-logo__sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.tlab-logo--light .tlab-logo__sub {
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------------------
   Botones, Badges y Controles de Formulario
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-accent,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -4px rgba(99, 102, 241, 0.6);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-accent {
  background: var(--grad-accent);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.4);
}

.btn-accent:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #f5f3ff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost--danger:hover {
  background: #fef2f2;
  color: var(--danger);
}

.btn-primary--sm,
.btn-outline--sm,
.btn-accent--sm {
  padding: 7px 13px;
  font-size: 0.86rem;
  border-radius: 10px;
}

.btn-outline--xs {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 8px;
}

.btn-primary--lg {
  padding: 13px 24px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-primary--xl {
  padding: 16px 32px;
  font-size: 1.15rem;
  border-radius: 18px;
}

.btn-primary--full {
  width: 100%;
}

.btn-primary--pulse {
  animation: pulseShadow 2.2s infinite;
}

@keyframes pulseShadow {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.badge-pill--purple {
  background: #ede9fe;
  color: #5b21b6;
}

.badge-pill--blue {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-pill--teal {
  background: #d1fae5;
  color: #047857;
}

.badge-pill--green {
  background: #dcfce7;
  color: #15803d;
}

.badge-pill--amber,
.badge-pill--warn {
  background: #fef3c7;
  color: #b45309;
}

.badge-pill--vibrant {
  background: var(--grad-brand);
  color: #ffffff;
}

.input-control {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.input-control--lg {
  padding: 15px 18px;
  font-size: 1.08rem;
  border-radius: 14px;
}

.input-control--sm {
  padding: 7px 12px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.input-control--dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.input-control--dark::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group {
  margin-bottom: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.alert-box {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.alert-box--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-box--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.alert-box--warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.text-muted {
  color: var(--text-muted);
}

.text-success {
  color: #059669;
  font-weight: 600;
}

.text-warn {
  color: #d97706;
  font-weight: 600;
}

.text-right {
  text-align: right;
}

.mt-sm {
  margin-top: 10px;
}

.mt-md {
  margin-top: 16px;
}

.mt-lg {
  margin-top: 28px;
}

.mb-sm {
  margin-bottom: 10px;
}

.mb-md {
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Pantalla de Login (AuthView)
   -------------------------------------------------------------------------- */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.auth-hero-panel {
  background: var(--grad-hero);
  color: #ffffff;
  padding: 56px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.auth-hero-panel::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  pointer-events: none;
}

.auth-hero-panel__content {
  max-width: 580px;
  position: relative;
  z-index: 1;
}

.auth-hero-panel__title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.18;
  margin-top: 28px;
  letter-spacing: -0.02em;
}

.auth-hero-panel__lead {
  margin-top: 14px;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.82);
}

.auth-feature-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 18px;
  border-radius: 16px;
}

.auth-feature-item__icon {
  font-size: 1.5rem;
}

.auth-feature-item p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.guest-quick-box {
  margin-top: 32px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.guest-quick-box__label {
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fde047;
}

.guest-quick-box__form {
  display: flex;
  gap: 10px;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-page);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  padding: 38px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.auth-card__mobile-logo {
  display: none;
  margin-bottom: 20px;
}

.auth-card__title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-top: 10px;
}

.auth-card__subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 24px;
}

.demo-credentials-box {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-color);
}

.demo-credentials-box__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.demo-credentials-box__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Dashboard Shell (Superadmin & Facilitador)
   -------------------------------------------------------------------------- */
.dashboard-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar__divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-nav__item {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.topbar-nav__item:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.topbar-nav__item--active {
  background: #ede9fe;
  color: var(--primary-dark);
}

.user-Chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.user-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad-brand);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-chip__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-chip__text strong {
  font-size: 0.82rem;
}

.user-chip__text small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dashboard-container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 28px;
  flex: 1;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
}

/* KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.kpi-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kpi-card__icon--purple {
  background: #ede9fe;
}
.kpi-card__icon--blue {
  background: #e0f2fe;
}
.kpi-card__icon--teal {
  background: #d1fae5;
}
.kpi-card__icon--amber {
  background: #fef3c7;
}

.kpi-card__value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.kpi-card__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Panel Cards & Data Tables */
.panel-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.panel-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.data-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

.status-dot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-dot-badge--active {
  background: #dcfce7;
  color: #15803d;
}

.status-dot-badge--inactive {
  background: #fee2e2;
  color: #b91c1c;
}

.table-actions {
  display: inline-flex;
  gap: 6px;
}

.allowed-games-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.games-permission-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-permission-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all 0.15s;
}

.game-permission-card:hover {
  border-color: var(--primary);
}

.game-permission-card--checked {
  background: #f5f3ff;
  border-color: var(--primary);
}

.game-permission-card input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.game-permission-card__icon {
  font-size: 1.4rem;
}

.game-permission-card__info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.game-permission-card__info strong {
  font-size: 0.9rem;
}

.game-permission-card__info small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.btn-action {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-action:hover {
  background: var(--bg-subtle);
}

.btn-action--warn {
  color: #b45309;
  border-color: #fde68a;
}

.btn-action--success {
  color: #047857;
  border-color: #a7f3d0;
}

.btn-action--danger {
  color: #b91c1c;
  border-color: #fecaca;
}

/* --------------------------------------------------------------------------
   Facilitator Workspace & Stepper del Ciclo de Vida
   -------------------------------------------------------------------------- */
.empty-hero-card {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 64px 36px;
  text-align: center;
  max-width: 680px;
  margin: 48px auto;
}

.empty-hero-card p {
  max-width: 520px;
  margin: 12px auto 0;
  line-height: 1.6;
}

.btn-create-session-hero {
  margin-top: 34px !important;
  margin-bottom: 10px !important;
  padding: 16px 36px !important;
  font-size: 1.05rem !important;
}

.empty-hero-card__icon {
  font-size: 3.2rem;
  margin-bottom: 14px;
}

.room-command-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.room-command-bar__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.room-command-bar__badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sync-indicator__dot,
.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.room-command-bar__title {
  font-size: 1.6rem;
  font-weight: 800;
}

.room-command-bar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.code-highlight {
  font-size: 1rem;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
}

.room-command-bar__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.room-params-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hot-swap-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.participants-count-config-box {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.participants-count-config-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.participants-stepper-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.participants-number-input {
  width: 92px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  padding: 7px 10px;
}

.participants-quick-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.presets-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

.preset-chip-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.preset-chip-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.preset-chip-btn--active {
  background: #ede9fe;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.preset-chip-btn--live {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.toast-inline {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.toast-inline--success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.room-quick-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Lifecycle Stepper */
.lifecycle-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.lifecycle-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  opacity: 0.7;
}

.lifecycle-step--active {
  opacity: 1;
  background: #f5f3ff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.14);
}

.lifecycle-step--done {
  opacity: 0.95;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.lifecycle-step__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lifecycle-step--active .lifecycle-step__circle {
  background: var(--grad-brand);
  color: #ffffff;
}

.lifecycle-step--done .lifecycle-step__circle {
  background: #10b981;
  color: #ffffff;
}

.lifecycle-step__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.lifecycle-step__text strong {
  font-size: 0.88rem;
}

.lifecycle-step__text small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lifecycle-actions-bar {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef2ff 0%, #fdf2f8 100%);
  border: 1px solid #c7d2fe;
}

.lifecycle-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lifecycle-cta-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Split Grid Facilitador */
.facilitator-split-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 24px;
  align-items: start;
}

.attendance-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qr-access-card,
.attendance-card,
.game-config-card,
.game-live-facilitator,
.facilitator-results-board {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.qr-access-card__header,
.attendance-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.qr-access-card__body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qr-svg-box {
  width: 124px;
  height: 124px;
  padding: 8px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-svg-box svg {
  width: 100%;
  height: 100%;
}

.qr-hash-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.qr-hash-pill strong {
  font-size: 1.05rem;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
}

.qr-url-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  word-break: break-all;
  margin: 8px 0;
}

.qr-access-card__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Control de Asistencia Real */
.attendance-counters {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.manual-add-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.attendance-empty {
  text-align: center;
  padding: 24px 14px;
  background: var(--bg-subtle);
  border-radius: 14px;
  border: 1px dashed var(--border-color);
  font-size: 0.88rem;
}

.attendance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
}

.attendance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  transition: all 0.15s;
}

.attendance-item--absent {
  opacity: 0.58;
  background: #fef2f2;
  border-color: #fecaca;
}

.attendance-item__info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.attendance-item__avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attendance-item__name {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendance-item__sub {
  font-size: 0.75rem;
}

.attendance-item__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-toggle-attendance {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-toggle-attendance--on {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.btn-toggle-attendance--off {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.btn-icon-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
  opacity: 0.6;
}

.btn-icon-remove:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Juego 1 (MVP): Sorteo de Animales y Formación de Equipos
   -------------------------------------------------------------------------- */
.game-config-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.game-config-card__header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 6px;
}

.team-count-selector {
  margin: 22px 0;
}

.team-count-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.team-count-btn {
  padding: 14px 10px;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  background: var(--bg-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.18s;
}

.team-count-btn:hover {
  border-color: var(--primary);
}

.team-count-btn--active {
  background: var(--grad-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px -6px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.team-count-btn__num {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.team-count-btn__lbl {
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.88;
}

.distribution-preview__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tribes-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.tribe-preview-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-top-width: 5px;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tribe-preview-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tribe-preview-card__emoji {
  font-size: 1.9rem;
}

.tribe-preview-card__name {
  font-weight: 800;
  font-size: 1rem;
}

.tribe-preview-card__motto {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tribe-preview-card__quota {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
  flex-shrink: 0;
}

.tribe-preview-card__quota strong {
  display: block;
  font-size: 1.15rem;
  color: var(--primary-dark);
  line-height: 1;
}

.tribe-preview-card__quota span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Ejecución en Vivo (Facilitador) */
.live-progress-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.live-progress-banner__info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 620px;
}

.big-fraction {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  text-align: right;
}

.big-fraction small {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.counter-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.progress-bar-track {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-track--lg {
  height: 16px;
  margin-bottom: 22px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--grad-brand);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.participants-live-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.participant-status-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
}

.participant-status-chip--done {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.participant-status-chip__icon {
  font-size: 1.35rem;
}

.participant-status-chip__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.participant-status-chip__name {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-status-chip__state {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Vista de Participante (Móvil / Invitado) y Sobre Interactivo
   -------------------------------------------------------------------------- */
.participant-shell {
  min-height: 100vh;
  background: radial-gradient(circle at top, #eef2ff 0%, #f8fafc 60%);
  display: flex;
  flex-direction: column;
}

.participant-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.participant-header__left,
.participant-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-pill-code {
  background: #ede9fe;
  color: #5b21b6;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.guest-user-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-link-subtle {
  background: transparent;
  border: none;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.participant-main {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 18px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.participant-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  box-shadow: var(--shadow-md);
}

.participant-card--center,
.participant-lobby {
  text-align: center;
}

.onboarding-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.onboarding-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.onboarding-facilitator {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 6px;
  margin-bottom: 22px;
}

.fullname-helper-banner {
  background: #f5f3ff;
  border-left: 4px solid var(--primary);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.required-star {
  color: var(--danger);
}

.onboarding-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Lobby Previo */
.lobby-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--grad-brand);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto;
  box-shadow: var(--shadow-lg);
}

.lobby-live-counter {
  margin: 24px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.lobby-live-counter strong {
  display: block;
  font-size: 0.95rem;
}

.lobby-live-counter span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lobby-peers-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.peer-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.peer-tag--me {
  background: #ede9fe;
  color: var(--primary-dark);
  border: 1px solid #c4b5fd;
}

/* Caja / Sobre Misterioso Interactivo */
.envelope-stage {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 26px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.envelope-stage__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 12px;
}

.envelope-stage__subtitle {
  color: var(--text-secondary);
  max-width: 460px;
  margin: 8px auto 28px;
  font-size: 0.96rem;
}

.mystery-envelope {
  width: 280px;
  height: 200px;
  margin: 24px auto 32px;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatEnvelope 3.2s ease-in-out infinite;
}

.mystery-envelope:hover {
  transform: scale(1.04);
}

@keyframes floatEnvelope {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.mystery-envelope__glow {
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  border-radius: 30px;
  z-index: 0;
}

.mystery-envelope__body {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
  border-radius: 22px;
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.55);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 22px;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.mystery-envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 95px;
  background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  z-index: 3;
  transform-origin: top center;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mystery-envelope--opening .mystery-envelope__flap {
  transform: rotateX(175deg);
}

.mystery-envelope__ticket {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  height: 120px;
  background: #ffffff;
  border-radius: 14px;
  border: 2px dashed #f59e0b;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mystery-envelope--opening .mystery-envelope__ticket {
  transform: translateY(-68px) scale(1.06);
  z-index: 4;
}

.mystery-envelope__ticket-icons {
  font-size: 1.45rem;
  letter-spacing: 4px;
}

.mystery-envelope__ticket-text {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 4px;
}

.mystery-envelope__seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  color: #1e1b4b;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: 10px;
  border: 3px solid #ffffff;
}

.mystery-envelope__hint {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Sala de Espera del Participante */
.participant-waiting-room {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawn-preview-card {
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.drawn-preview-card__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.drawn-preview-card__emoji {
  font-size: 4rem;
  margin: 10px 0 4px;
}

.drawn-preview-card__team {
  font-size: 1.9rem;
  font-weight: 800;
}

.drawn-preview-card__motto {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-top: 4px;
}

.waiting-sync-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.waiting-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waiting-spinner--sm {
  width: 44px;
  height: 44px;
  margin: 0;
  flex-shrink: 0;
}

.waiting-spinner__ring {
  position: absolute;
  inset: 0;
  border: 4px solid #e0e7ff;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinRing 1.1s linear infinite;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

.waiting-spinner__emoji {
  font-size: 1.5rem;
}

.waiting-sync-box__headline {
  font-size: 1.25rem;
  font-weight: 800;
}

.waiting-sync-box__dynamic {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 6px;
}

.waiting-progress-wrap {
  margin: 22px 0 14px;
  text-align: left;
}

.waiting-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.waiting-sync-box__footnote {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Resultados Finales (Facilitador y Participante)
   -------------------------------------------------------------------------- */
.participant-final-celebration {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.celebration-hero {
  border-radius: var(--radius-xl);
  padding: 34px 24px;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.celebration-hero__confetti {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
}

.celebration-hero__emoji {
  font-size: 4.5rem;
  margin: 12px 0 4px;
}

.celebration-hero__title {
  font-size: 2.1rem;
  font-weight: 800;
}

.celebration-hero__motto {
  font-size: 1rem;
  opacity: 0.92;
  margin-top: 6px;
}

.teammates-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.teammates-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.teammates-card__sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 6px 0 18px;
}

.teammates-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teammates-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  font-weight: 700;
}

.teammates-list__item--me {
  background: #f5f3ff;
  border-color: var(--primary);
}

.teammates-list__index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.teammates-list__name {
  flex: 1;
}

/* Grilla Visual de Equipos Armados (Facilitador) */
.results-board-header {
  margin-bottom: 22px;
}

.results-board-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 6px;
}

.teams-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.team-result-card {
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.team-result-card__banner {
  padding: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-result-card__emoji {
  font-size: 2.3rem;
}

.team-result-card__titles {
  flex: 1;
  min-width: 0;
}

.team-result-card__titles h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
}

.team-result-card__titles span {
  font-size: 0.74rem;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

.team-result-card__count {
  background: rgba(0, 0, 0, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.team-result-card__body {
  padding: 16px;
  flex: 1;
}

.team-members-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-members-ul__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-subtle);
  font-size: 0.9rem;
  font-weight: 600;
}

.team-members-ul__item--highlight {
  background: #ede9fe;
  color: var(--primary-dark);
  font-weight: 800;
}

.member-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Historial de Sesiones (session_results) */
.history-cards-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.history-record-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  background: var(--bg-subtle);
}

.history-record-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.history-record-card__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.history-teams-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.history-team-pill {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left-width: 4px;
  border-radius: 10px;
  padding: 10px 12px;
}

.history-team-pill__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.badge-count {
  background: #f1f5f9;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.history-team-pill__members {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Modales y Proyector QR */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-card--projector,
.modal-card--lg {
  max-width: 880px;
}

.modal-card__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  background: var(--bg-subtle);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
}

.modal-card__body {
  padding: 24px;
  overflow-y: auto;
}

.modal-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.projector-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
}

.projector-qr-frame {
  width: 300px;
  height: 300px;
  padding: 16px;
  background: #ffffff;
  border: 3px solid var(--primary);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.projector-qr-frame svg {
  width: 100%;
  height: 100%;
}

.projector-instructions h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.projector-instructions ol {
  padding-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.projector-url-box {
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-family: monospace;
  font-size: 1rem;
  word-break: break-all;
  margin-bottom: 14px;
}

.projector-code-badge {
  display: inline-block;
  background: #ede9fe;
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 1.2rem;
}

.projector-live-count {
  margin-top: 16px;
  font-size: 1.05rem;
}

/* Transiciones entre vistas */
.fade-slide-enter-active,
.fade-slide-leave-active {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.fade-slide-enter-from,
.fade-slide-leave-to {
  opacity: 0;
  transform: translateY(8px);
}

/* --------------------------------------------------------------------------
   Juego 2: El Cuadrante de Opiniones (QuadrantsGame)
   -------------------------------------------------------------------------- */
.questions-builder-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.question-builder-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}

.question-builder-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.quadrants-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quadrant-input-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 12px;
}

.quadrant-input-box label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.quadrant-input-box--q1 {
  border-left-color: #4f46e5;
}
.quadrant-input-box--q2 {
  border-left-color: #059669;
}
.quadrant-input-box--q3 {
  border-left-color: #d97706;
}
.quadrant-input-box--q4 {
  border-left-color: #db2777;
}

.questions-builder-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.quadrant-question-controller {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 22px;
}

.quadrant-question-controller__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.question-step-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.q-index-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
}

.q-index-pill--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.question-nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.active-question-projection {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.quadrants-live-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.quadrant-matrix-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  box-shadow: var(--shadow-sm);
}

.quadrant-matrix-card__head {
  padding: 16px 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quadrant-matrix-card__title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quadrant-matrix-card__code {
  background: rgba(255, 255, 255, 0.22);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.85rem;
}

.quadrant-matrix-card__head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.quadrant-matrix-card__stats {
  background: rgba(0, 0, 0, 0.22);
  padding: 6px 12px;
  border-radius: 12px;
  text-align: center;
  flex-shrink: 0;
}

.quadrant-matrix-card__stats strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.quadrant-matrix-card__stats small {
  font-size: 0.72rem;
  opacity: 0.9;
}

.quadrant-matrix-card__body {
  padding: 16px 18px;
  flex: 1;
}

.quadrant-empty-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.quadrant-members-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quadrant-member-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.pending-voters-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 14px 18px;
}

.pending-voters-box__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 8px;
}

.pending-voters-box__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Vista Participante de Cuadrantes */
.quadrant-participant-question {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

.participant-quadrants-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.participant-quadrant-btn {
  text-align: left;
  background: var(--bg-subtle);
  border: 2px solid var(--border-color);
  border-left-width: 6px;
  border-radius: 18px;
  padding: 18px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 140px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.participant-quadrant-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.participant-quadrant-btn--selected {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.participant-quadrant-btn__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.participant-quadrant-btn__check {
  background: rgba(255, 255, 255, 0.24);
  padding: 2px 8px;
  border-radius: 999px;
}

.participant-quadrant-btn__label {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}

.participant-quadrant-btn__foot {
  font-size: 0.76rem;
  opacity: 0.85;
  font-weight: 600;
}

.participant-quadrant-feedback {
  background: #f5f3ff;
  border: 1.5px solid #c4b5fd;
  border-radius: 16px;
  padding: 16px 18px;
}

.participant-quadrant-feedback__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.participant-quadrant-feedback__head small {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.question-result-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border-color);
}

.question-result-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.question-result-section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Superadmin: Vista de Estadísticas por Facilitador
   -------------------------------------------------------------------------- */
.stats-open-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.stats-open-session-chip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.82rem;
}

.stats-games-users-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-game-user-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stats-game-user-row__name {
  font-size: 0.85rem;
}

.facilitator-stats-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.facilitator-stat-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 8px;
}

.facilitator-stat-section h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.open-sessions-cards,
.games-usage-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.open-session-mini-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
}

.open-session-mini-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.open-session-mini-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-usage-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
}

.game-usage-mini-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-usage-mini-card__icon {
  font-size: 1.65rem;
}

.game-usage-mini-card__right {
  text-align: right;
  min-width: 110px;
}

.game-usage-mini-card__count {
  font-size: 1.5rem;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Juego 3: Competencia de Clics (Facilitador y Participantes)
   -------------------------------------------------------------------------- */
.clicks-config-section {
  margin-bottom: 20px;
}

.clicks-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.clicks-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clicks-mode-card:hover {
  border-color: #ef4444;
  transform: translateY(-2px);
}

.clicks-mode-card--active {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.12);
}

.clicks-mode-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.clicks-mode-card__body strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.clicks-mode-card__body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.clicks-params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.clicks-param-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
}

.clicks-duration-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
}

.clicks-duration-input {
  width: 90px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.clicks-quick-durations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clicks-live-kpis {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.clicks-pending-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 16px;
}

.clicks-pending-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.clicks-ranking-row--podium {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
}

.clicks-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  background: #f1f5f9;
  color: var(--text-main);
}

.clicks-rank-badge--1 {
  background: #fef3c7;
  color: #b45309;
  font-size: 1.15rem;
}

.clicks-rank-badge--2 {
  background: #e2e8f0;
  color: #334155;
  font-size: 1.1rem;
}

.clicks-rank-badge--3 {
  background: #ffedd5;
  color: #9a3412;
  font-size: 1.05rem;
}

.clicks-bar-track {
  width: 100%;
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.clicks-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.clicks-score-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Vista Participante: Botón Comenzar y Zona Roja */
.clicks-start-card {
  text-align: center;
  padding: 32px 24px;
}

.btn-clicks-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  padding: 20px 28px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-clicks-start:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.46);
}

.btn-clicks-start:active {
  transform: scale(0.97);
}

.clicks-active-arena {
  padding: 20px;
  user-select: none;
  -webkit-user-select: none;
}

.clicks-arena-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.clicks-hud-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.clicks-hud-box--timer {
  background: #fef2f2;
  border-color: #fecaca;
}

.clicks-hud-box__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.clicks-hud-box__value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.clicks-hud-box--timer .clicks-hud-box__value {
  color: #dc2626;
}

.clicks-timer-bar {
  width: 100%;
  height: 10px;
  background: #fee2e2;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.clicks-timer-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #f97316 100%);
  transition: width 0.06s linear;
}

/* ZONA ROJA DE CLICS */
.clicks-red-zone {
  width: 100%;
  min-height: 290px;
  border-radius: 24px;
  border: 4px solid #fca5a5;
  background: radial-gradient(circle at center, #ef4444 0%, #dc2626 65%, #991b1b 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.42), inset 0 2px 12px rgba(255, 255, 255, 0.25);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.clicks-red-zone:active,
.clicks-red-zone--pulse {
  transform: scale(0.965);
  background: radial-gradient(circle at center, #f87171 0%, #ef4444 60%, #b91c1c 100%);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.55), inset 0 4px 18px rgba(255, 255, 255, 0.4);
}

.clicks-red-zone__icon {
  font-size: 3.4rem;
  line-height: 1;
  pointer-events: none;
}

.clicks-red-zone__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.clicks-red-zone__counter {
  font-size: 2.2rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.22);
  padding: 6px 22px;
  border-radius: 999px;
  pointer-events: none;
}

.clicks-personal-result-card {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #991b1b 100%);
}

.clicks-personal-score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.clicks-personal-metric {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}

.clicks-personal-metric__num {
  display: block;
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
}

.clicks-personal-metric__label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

.clicks-my-team-members {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.clicks-my-team-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.clicks-team-member-pill {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.row-highlight-me {
  background: #fef2f2 !important;
}

/* --------------------------------------------------------------------------
   Juego 4: Nube de Palabras en Tiempo Real (Estilo Mentimeter)
   -------------------------------------------------------------------------- */
.wordcloud-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wordcloud-config-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 18px;
  align-items: start;
}

.wordcloud-question-input {
  font-size: 1.02rem;
  font-weight: 600;
}

.wordcloud-presets__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.wordcloud-preset-chip {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wordcloud-preset-chip:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #5b21b6;
}

.wordcloud-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.wordcloud-live-prompt {
  margin: 8px 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.wordcloud-canvas-container {
  position: relative;
  min-height: 320px;
  padding: 36px 28px;
  border-radius: 20px;
  background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 68%, #eef2ff 100%);
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wordcloud-canvas-container--compact {
  min-height: 210px;
  padding: 22px 16px;
}

.wordcloud-empty {
  text-align: center;
  max-width: 440px;
}

.wordcloud-empty__icon {
  font-size: 3.2rem;
  margin-bottom: 8px;
}

.wordcloud-canvas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 14px 24px;
  max-width: 920px;
  width: 100%;
  text-align: center;
}

.wordcloud-token {
  display: inline-flex;
  align-items: baseline;
  line-height: 1.12;
  padding: 4px 10px;
  border-radius: 12px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), font-size 0.3s ease, background-color 0.2s ease;
  cursor: default;
  user-select: none;
}

.wordcloud-token:hover {
  transform: scale(1.08);
  background: rgba(99, 102, 241, 0.08);
}

.wordcloud-token__badge {
  font-size: 0.42em;
  font-weight: 800;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
  vertical-align: super;
}

/* Animación de entrada de nuevas palabras en la nube */
.wc-pop-enter-active,
.wc-pop-leave-active {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wc-pop-enter-from,
.wc-pop-leave-to {
  opacity: 0;
  transform: scale(0.4) translateY(12px);
}

/* Vista Participante Minimalista */
.wordcloud-guest-card {
  text-align: center;
  padding: 28px 22px;
}

.wordcloud-guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.wordcloud-guest-question {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 18px;
}

.wordcloud-guest-form {
  max-width: 440px;
  margin: 0 auto;
}

.wordcloud-guest-input {
  text-align: center;
  font-size: 1.12rem;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 14px;
}

.wordcloud-my-words__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

/* Responsividad (Móviles y Tablets) */
@media (max-width: 1024px) {
  .wordcloud-config-grid,
  .clicks-mode-selector,
  .clicks-params-grid {
    grid-template-columns: 1fr;
  }
  .facilitator-stat-card__body {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-hero-panel {
    display: none;
  }
  .auth-card__mobile-logo {
    display: block;
  }
  .facilitator-split-grid {
    grid-template-columns: 1fr;
  }
  .lifecycle-stepper {
    grid-template-columns: 1fr 1fr;
  }
  .projector-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .dashboard-container {
    padding: 16px;
  }
  .lifecycle-stepper {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 10px 16px;
  }
  .quadrants-inputs-grid,
  .quadrants-live-matrix,
  .participant-quadrants-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Calculadora en Tiempo Real de Participantes por Grupo (Modal Crear Sala)
   -------------------------------------------------------------------------- */
.realtime-group-calc-box {
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 100%);
  border: 1.5px solid #c4b5fd;
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 10px;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}

.realtime-group-calc-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.realtime-group-calc-box__headline {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.3;
}

.realtime-group-calc-box__sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 4px 0 12px;
}

.realtime-group-calc-box__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.realtime-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.realtime-group-chip strong {
  color: var(--primary-dark);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Selector de Juego en Escaneo Directo + QR Dinámico y Ventana Nueva
   -------------------------------------------------------------------------- */
.qr-game-selector-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.qr-game-sync-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.qr-svg-box:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.16);
  transform: translateY(-1px);
  transition: all 0.18s ease;
}

.qr-hash-pill--clickable {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
}

.qr-hash-pill--clickable:hover {
  background: #ede9fe;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.qr-hash-pill__ext {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 800;
}

.qr-active-game-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 8px;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Vista Dedicada en Ventana Nueva (#/qr/[hash])
   -------------------------------------------------------------------------- */
.qr-window-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, #eef2ff 0%, #f8fafc 55%, #ecfeff 100%);
}

.qr-window-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.qr-standalone-card {
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 34px 38px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.qr-standalone-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border-color);
}

.qr-standalone-card__header h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 6px 0 0;
}

.qr-standalone-game-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
  border: 1.5px solid #c4b5fd;
  padding: 12px 18px;
  border-radius: 16px;
}

.qr-standalone-game-pill__icon {
  font-size: 2rem;
}

.qr-standalone-game-pill small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.qr-standalone-game-pill strong {
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.qr-standalone-card__footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Juego 5: Desafíos de Pensamiento Lateral (Nivel 1: Los Tres Interruptores)
   -------------------------------------------------------------------------- */
.lateral-riddle-showcase {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1.5px solid #c7d2fe;
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.lateral-riddle-showcase__switches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.lateral-switch-visual {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.lateral-switch-visual--door {
  background: #fef3c7;
  border-color: #fcd34d;
}

.lateral-switch-visual__num {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lateral-switch-visual__icon {
  font-size: 1.45rem;
}

.lateral-riddle-quote {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.55;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  margin: 0;
}

.lateral-facilitator-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lateral-option-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lateral-projector-header {
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 60%, #4c1d95 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}

.lateral-projector-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lateral-badges-row,
.lateral-facilitator-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lateral-facilitator-toolbar .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.lateral-facilitator-toolbar .btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lateral-projector-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fde047;
}

.lateral-projector-prompt {
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  max-width: 920px;
}

.lateral-solution-reveal-box {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1.5px solid rgba(253, 224, 71, 0.5);
  border-radius: 16px;
  padding: 18px 20px;
}

.lateral-solution-reveal-box__badge {
  display: inline-block;
  background: #fde047;
  color: #1e1b4b;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.lateral-solution-reveal-box__text {
  font-size: 0.96rem;
  line-height: 1.55;
  color: #ffffff;
  margin-bottom: 14px;
}

.lateral-solution-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lateral-sol-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lateral-sol-card strong {
  font-size: 0.92rem;
  color: #fde047;
}

.lateral-sol-card span {
  font-size: 0.84rem;
  color: #ffffff;
  font-weight: 600;
}

.lateral-sol-card small {
  font-size: 0.78rem;
  color: #a5f3fc;
}

/* Tarjeta Gigante del Ganador (#1) en la pantalla del Facilitador */
.lateral-winner-spotlight {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 45%, #fce7f3 100%);
  border: 2.5px solid #f59e0b;
  border-radius: 22px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px -10px rgba(245, 158, 11, 0.32);
}

.lateral-winner-spotlight__crown {
  font-size: 3.6rem;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(245, 158, 11, 0.35));
}

.lateral-winner-spotlight__content {
  flex: 1;
  min-width: 240px;
}

.lateral-winner-spotlight__tag {
  display: inline-block;
  background: #b45309;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.lateral-winner-spotlight__name {
  font-size: 2rem;
  font-weight: 800;
  color: #78350f;
  line-height: 1.15;
}

.lateral-winner-spotlight__sub {
  font-size: 0.9rem;
  color: #92400e;
  font-weight: 600;
  margin-top: 2px;
}

.lateral-winner-spotlight__note {
  margin-top: 6px;
  font-size: 0.85rem;
  font-style: italic;
  color: #78350f;
  background: rgba(255, 255, 255, 0.65);
  padding: 5px 10px;
  border-radius: 8px;
  display: inline-block;
}

.lateral-winner-spotlight__metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lateral-winner-metric {
  background: #ffffff;
  border: 1.5px solid #fbbf24;
  border-radius: 16px;
  padding: 12px 18px;
  text-align: center;
  min-width: 130px;
}

.lateral-winner-metric__value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #b45309;
}

.lateral-winner-metric__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lateral-waiting-winner-box {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.lateral-ranking-row--winner {
  background: #fffbeb !important;
}

.lateral-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: #f1f5f9;
  color: var(--text-main);
}

.lateral-rank-pill--gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
}

.lateral-rank-pill--silver {
  background: #e2e8f0;
  color: #1e293b;
}

.lateral-rank-pill--bronze {
  background: #ffedd5;
  color: #9a3412;
}

.lateral-solver-name {
  font-size: 1rem;
  color: var(--text-main);
}

/* Vista del Participante en Celular / PC */
.lateral-play-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.lateral-stopwatch-pill {
  background: #0f172a;
  color: #fde047;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.lateral-play-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.lateral-play-riddle-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-main);
  margin-bottom: 16px;
}

.lateral-interactive-lab {
  background: linear-gradient(135deg, #f5f3ff 0%, #f8fafc 100%);
  border: 1.5px solid #ddd6fe;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.lateral-interactive-lab__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.lateral-interactive-lab__head small {
  color: var(--text-muted);
}

.lateral-switches-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.lateral-switch-btn {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.16s ease;
}

.lateral-switch-btn--on {
  background: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.16);
}

.lateral-switch-btn__label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.lateral-switch-btn__toggle {
  font-size: 0.8rem;
  font-weight: 800;
}

.lateral-switch-btn__heat {
  font-size: 0.7rem;
  color: #d97706;
  font-weight: 700;
}

.lateral-lab-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lateral-lab-clue {
  font-size: 0.8rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 5px 10px;
  border-radius: 8px;
}

.lateral-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.lateral-choice-card {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lateral-choice-card:hover {
  border-color: #a5b4fc;
  background: #f8fafc;
}

.lateral-choice-card--selected {
  border-color: var(--primary);
  background: #eef2ff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.14);
}

.lateral-choice-card__icon {
  font-size: 1.35rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.lateral-choice-card__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.lateral-participant-done-card {
  text-align: center;
  padding: 36px 24px;
}

.lateral-done-icon {
  font-size: 3.6rem;
  margin-bottom: 8px;
}

.lateral-personal-stats-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}

.lateral-personal-stat {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lateral-personal-stat strong {
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.lateral-personal-stat span {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
}

.lateral-look-projector-banner {
  background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
  border: 1.5px solid #c7d2fe;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.lateral-look-projector-banner > span {
  font-size: 2rem;
}

.lateral-look-projector-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Escenario Iluminado de Luces e Interruptores (Facilitador y Participante)
   -------------------------------------------------------------------------- */
.lateral-riddle-showcase--illuminated {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 55%, #1e293b 100%);
  border: 1.5px solid #334155;
  color: #f8fafc;
}

.lateral-riddle-showcase--illuminated .lateral-riddle-quote {
  color: #f1f5f9;
  border-left-color: #facc15;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
}

.lateral-Stage-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.lateral-Stage-preview__switches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.lateral-illuminated-switch {
  background: rgba(30, 41, 59, 0.9);
  border: 1.5px solid #475569;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.lateral-illuminated-switch--on {
  border-color: #facc15;
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.25);
}

.lateral-illuminated-switch--warm {
  border-color: #fb923c;
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.2);
}

.lateral-illuminated-switch strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.lateral-illuminated-switch small {
  color: #94a3b8;
  font-size: 0.75rem;
}

.lateral-led-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.lateral-led-dot--on {
  background: #fde047;
  box-shadow: 0 0 12px #fde047, 0 0 24px #f59e0b;
}

.lateral-led-dot--warm {
  background: #fb923c;
  box-shadow: 0 0 10px #fb923c;
}

.lateral-led-dot--off {
  background: #475569;
}

.lateral-Stage-preview__Lamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.18) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 18px;
}

.lateral-bulb-svg {
  width: 86px;
  height: 105px;
  filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.55));
}

.lateral-Stage-preview__caption {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fde047;
  margin-top: 4px;
}

.lateral-sol-card__bulb {
  font-size: 1.65rem;
  margin-bottom: 4px;
}

/* Tablero Exterior de 3 Interruptores con Luces Piloto (Participante) */
.lateral-light-board {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 2px solid #334155;
  border-radius: 20px;
  padding: 20px;
  color: #f8fafc;
  margin-bottom: 18px;
  box-shadow: 0 14px 32px -10px rgba(15, 23, 42, 0.45);
}

.lateral-light-board--locked {
  opacity: 0.92;
  border-color: #475569;
}

.lateral-light-board__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.lateral-light-board__header h4 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px;
}

.lateral-light-board__header p {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin: 0;
}

.lateral-light-board__header .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.lateral-step-chip {
  display: inline-block;
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
}

.lateral-step-chip--room {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
}

.lateral-rocker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.lateral-rocker-card {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #475569;
  border-radius: 16px;
  padding: 14px 12px;
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.22s ease;
  position: relative;
}

.lateral-rocker-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #94a3b8;
}

.lateral-rocker-card:disabled {
  cursor: default;
}

.lateral-rocker-card--on {
  background: radial-gradient(circle at 50% 18%, rgba(250, 204, 21, 0.28) 0%, #1e293b 70%);
  border-color: #facc15;
  box-shadow: 0 0 26px rgba(250, 204, 21, 0.32), inset 0 0 15px rgba(250, 204, 21, 0.12);
}

.lateral-rocker-card--warm {
  background: radial-gradient(circle at 50% 18%, rgba(249, 115, 22, 0.24) 0%, #1e293b 70%);
  border-color: #fb923c;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.24);
}

.lateral-rocker-card__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.lateral-rocker-card__title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #e2e8f0;
}

.lateral-pilot-led {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #334155;
  border: 2px solid #475569;
  transition: all 0.2s ease;
}

.lateral-pilot-led--on {
  background: #fef08a;
  border-color: #facc15;
  box-shadow: 0 0 12px #fde047, 0 0 22px #f59e0b;
}

.lateral-pilot-led--warm {
  background: #fb923c;
  border-color: #f97316;
  box-shadow: 0 0 10px #fb923c;
}

/* Interruptor basculante 3D */
.lateral-rocker-switch {
  padding: 6px;
  background: #090d16;
  border-radius: 12px;
  border: 1.5px solid #334155;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.7);
}

.lateral-rocker-switch__Well {
  width: 54px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}

.lateral-rocker-switch__actuator {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #334155 0%, #475569 50%, #1e293b 100%);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-weight: 900;
  font-size: 0.82rem;
  color: #94a3b8;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.lateral-rocker-switch__actuator--on {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 55%, #ca8a04 100%);
  color: #422006;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.65);
}

.lateral-rocker-card__status {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #cbd5e1;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lateral-rocker-card--on .lateral-rocker-card__status {
  color: #fef08a;
}

.lateral-rocker-card--warm .lateral-rocker-card__status {
  color: #fdba74;
}

.lateral-outside-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.lateral-action-btn {
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
}

.lateral-action-btn--time {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.45);
}

.lateral-action-btn--time:hover {
  background: rgba(249, 115, 22, 0.28);
}

.lateral-action-btn--reset {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

.lateral-action-btn--reset:hover {
  background: rgba(148, 163, 184, 0.24);
}

.lateral-action-btn--door {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #1e1b4b;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  margin-left: auto;
}

.lateral-action-btn--door:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.48);
}

.lateral-action-log {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lateral-action-log__chip {
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  border: 1px solid #334155;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Interior de la Habitación con Lámpara Colgante y Sensores */
.lateral-room-stage {
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 18px;
  border: 2px solid #334155;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.lateral-room-stage--dark {
  background: radial-gradient(circle at 50% 25%, #1e293b 0%, #090d16 85%);
}

.lateral-room-stage--lit {
  background: radial-gradient(circle at 50% 22%, rgba(254, 240, 138, 0.35) 0%, rgba(245, 158, 11, 0.14) 45%, #0f172a 90%);
  border-color: #facc15;
  box-shadow: 0 0 38px rgba(250, 204, 21, 0.25);
}

.lateral-room-stage--hot {
  border-color: #f97316;
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.25);
}

.lateral-room-stage--cold {
  border-color: #38bdf8;
}

.lateral-room-stage__header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 14px;
}

.lateral-lamp-arena {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.lateral-lamp-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.lateral-room-bulb-svg {
  width: 145px;
  height: 175px;
  position: relative;
  z-index: 2;
}

.lateral-lamp-light-cone {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.55) 0%, rgba(250, 204, 21, 0) 70%);
  animation: lateralGlowPulse 2.2s infinite ease-in-out;
  z-index: 1;
}

.lateral-lamp-heat-aura {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.48) 0%, rgba(234, 88, 12, 0) 72%);
  animation: lateralGlowPulse 1.8s infinite ease-in-out;
  z-index: 1;
}

.lateral-lamp-cold-aura {
  position: absolute;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(14, 165, 233, 0) 72%);
  z-index: 1;
}

@keyframes lateralGlowPulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.lateral-lamp-sensors {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lateral-sensor-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.75);
}

.lateral-sensor-badge--lit {
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.14);
}

.lateral-sensor-badge--hot {
  border-color: #fb923c;
  background: rgba(249, 115, 22, 0.18);
}

.lateral-sensor-badge--cold {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.lateral-sensor-badge__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.lateral-sensor-badge strong {
  display: block;
  font-size: 0.84rem;
  color: #ffffff;
}

.lateral-sensor-badge p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.lateral-touch-bulb-btn {
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #fb923c;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

.lateral-touch-bulb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.5);
}

.lateral-touch-bulb-btn--done {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.lateral-deduction-box__title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fde047;
  margin-bottom: 10px;
}

.lateral-deduction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lateral-deduce-btn {
  background: rgba(30, 41, 59, 0.9);
  border: 2px solid #475569;
  border-radius: 14px;
  padding: 12px 10px;
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: all 0.18s ease;
}

.lateral-deduce-btn:hover {
  border-color: #94a3b8;
}

.lateral-deduce-btn--selected {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-color: #fde047;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.lateral-deduce-btn strong {
  font-size: 0.9rem;
  color: #ffffff;
}

.lateral-deduce-btn small {
  font-size: 0.72rem;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .lateral-riddle-showcase__switches,
  .lateral-Stage-preview__switches,
  .lateral-facilitator-options,
  .lateral-solution-steps-grid,
  .lateral-switches-row,
  .lateral-rocker-grid,
  .lateral-deduction-grid,
  .lateral-lamp-arena {
    grid-template-columns: 1fr;
  }
}


