/* CRONOS-003.3G.6 — Asistente compacto */

/* Modal con navegación siempre visible */
.setup-dialog {
  width: min(96vw, 1040px);
  height: min(94dvh, 770px);
  max-height: 94dvh;
  overflow: hidden;
  border-radius: 22px;
}

.setup-form {
  height: 100%;
  min-height: 0;
  padding: clamp(12px, 2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Cabecera compacta, sin título repetido */
.setup-header {
  min-height: 40px;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.setup-header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.setup-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

/* Pestañas originales, más compactas */
.wizard-tabs {
  flex: 0 0 auto;
  gap: 9px;
  margin: 8px 0 12px;
}

.wizard-tab {
  min-height: 124px;
  padding: 6px 7px 8px;
  gap: 4px;
  border-radius: 15px;
}

.wizard-tab-image {
  width: 100%;
  height: 85px;
  border-radius: 10px;
  object-fit: cover;
}

.wizard-tab span {
  font-size: clamp(.78rem, 1.35vw, 1rem);
  line-height: 1.15;
}

/* Solo el contenido central puede desplazarse */
.setup-fields {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0 3px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.wizard-panel {
  min-height: 0;
  gap: 9px;
  padding: clamp(10px, 1.7vw, 17px);
  border-radius: 16px;
}

.wizard-panel[hidden] {
  display: none !important;
}

/* Tarjetas interiores compactas */
.participants-layout {
  gap: 10px;
}

.participants-heading h3 {
  font-size: 1.45rem;
}

.participants-heading p {
  margin-top: 3px;
}

.participants-section,
.choices-section {
  gap: 8px;
  padding: 11px 14px;
  border-radius: 15px;
}

.participants-mode-card {
  min-height: 84px;
  padding: 9px 12px;
  gap: 4px;
}

.participants-number,
.participants-stepper {
  min-width: 42px;
  min-height: 42px;
}

.choice-button {
  min-height: 47px;
  padding: 8px;
  gap: 3px;
}

.choice-button strong {
  font-size: .95rem;
}

.choice-button span {
  font-size: .76rem;
}

/* Nombres: dos columnas cuando haya espacio */
.setup-names {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Botones inferiores siempre visibles */
#setup-status {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
}

#setup-status:empty {
  display: none;
}

.setup-actions {
  flex: 0 0 auto;
  min-height: 60px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.setup-actions button {
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 12px;
}

/* Tabletas y ventanas medianas */
@media (max-width: 800px) {
  .wizard-tab {
    min-height: 104px;
    padding: 5px;
  }

  .wizard-tab-image {
    height: 65px;
  }

  .wizard-tab span {
    font-size: .85rem;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .setup-dialog {
    width: 98vw;
    height: 96dvh;
    max-height: 96dvh;
    border-radius: 15px;
  }

  .setup-form {
    padding: 10px;
  }

  .setup-header {
    min-height: 36px;
  }

  .wizard-tabs {
    gap: 4px;
    margin: 6px 0 9px;
  }

  .wizard-tab {
    min-height: 76px;
    padding: 3px;
    gap: 2px;
    border-radius: 9px;
  }

  .wizard-tab-image {
    height: 44px;
    border-radius: 6px;
  }

  .wizard-tab span {
    font-size: clamp(.59rem, 2.3vw, .73rem);
    overflow-wrap: anywhere;
  }

  .wizard-panel {
    padding: 10px;
  }

  .setup-names {
    grid-template-columns: 1fr;
  }

  .setup-actions {
    min-height: 54px;
    margin-top: 5px;
  }

  .setup-actions button {
    min-height: 43px;
    padding: 8px 12px;
  }
}