/**
 * Estilos del Asistente Wizard de Presupuesto - NEO Producciones (Parte 2: Acciones y Viewport Móvil).
 * Provee disposición en columna única, scroll interno fluido con scrollbar fijo y botones lado a lado.
 */

/* ─── ACCIONES INFERIORES (ESCRITORIO / BASE) ─── */
.wizard-actions-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border2);
}
.wizard-actions-bar.dual { justify-content: space-between; }
.btn-wizard-next,
.btn-wizard-send {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
}

/* ─── CONTENEDOR DE ADICIONALES Y SCROLLBAR VISUAL FIJO ─── */
.wizard-extras-wrapper {
  position: relative;
  display: flex;
}
.wizard-extras-wrapper .wizard-extras-grid {
  flex: 1;
}
.wizard-scroll-track {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 0;
  width: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  pointer-events: none;
  z-index: 5;
}
.wizard-scroll-thumb {
  width: 100%;
  background: var(--gold2);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(244, 192, 103, 0.7);
  transition: transform 0.05s linear;
}

/* ─── ADAPTACIÓN RESPONSIVA MÓVIL (<= 768px) ─── */
@media (max-width: 768px) {
  .wizard-card {
    padding: 1.25rem 1rem;
    min-height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }

  .wizard-progress-bar { margin-bottom: 1rem; padding-bottom: 0.75rem; }
  .wizard-steps-track { gap: 0.75rem; justify-content: center; }
  .wizard-step-node { padding: 0.3rem 0.6rem; gap: 0.4rem; }
  .step-label { font-size: 0.84rem; line-height: 1.2; }
  .step-badge { width: 24px; height: 24px; font-size: 0.78rem; }

  .wizard-context-pill { padding: 0.25rem 0.7rem; font-size: 0.78rem; margin-bottom: 0.6rem; }
  .wizard-group-title { font-size: 1.15rem; margin-bottom: 0.25rem; }
  .wizard-group-desc { font-size: 0.85rem; margin-bottom: 0.85rem; line-height: 1.35; }

  /* Paso 1: Servicios base en columna única y compactos con bullet alineado */
  .wizard-services-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .wizard-card-radio { padding: 0.65rem 0.85rem; gap: 0.25rem; border-radius: 10px; }
  .card-radio-title { font-size: 0.95rem; line-height: 1.2; }
  .card-radio-sub { font-size: 0.72rem; }
  .card-radio-desc { display: none; }

  /* Paso 2: Adicionales en columna única con scroll interno */
  .wizard-extras-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Se oculta el scrollbar nativo ya que se usa la barra visual fija */
  }
  .wizard-extras-grid::-webkit-scrollbar { display: none; }

  .wizard-card-checkbox { padding: 0.55rem 0.75rem; gap: 0.55rem; border-radius: 8px; }
  .checkbox-box { width: 18px; height: 18px; font-size: 0.72rem; border-radius: 5px; }
  .checkbox-title { font-size: 0.84rem; line-height: 1.25; white-space: normal; }
  .checkbox-desc { font-size: 0.74rem; line-height: 1.3; }

  /* Acciones inferiores en fila horizontal sin desborde */
  .wizard-actions-bar { padding-top: 0.85rem; margin-top: 1rem; }
  .wizard-actions-bar.dual {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-wizard-back {
    flex: 0 0 auto;
    width: auto;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .btn-wizard-next,
  .btn-wizard-send {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}
