/* Etiquetas largas: cada grupo conserva su etiqueta y alinea controles por fila. */
.wizard-shell { grid-template-columns: 250px minmax(0, 1fr); }
.wizard-main, .wizard-main fieldset, .wizard-main .row > *, .form-section-title > div { min-width: 0; }
.wizard-main { overflow-wrap: anywhere; }
.wizard-sidebar [hidden] { display: none !important; }
.wizard-main .btn { max-width: 100%; white-space: normal; }
.form-label, .registro-titulo, .wizard-main h1 { overflow-wrap: anywhere; }
.form-section-title > span { flex-shrink: 0; }
.registro-tarjeta .row > [class*="col-"] { display: flex; }
.registro-tarjeta .row > [class*="col-"] > .registro-label {
    display: flex; flex-direction: column; gap: .5rem; width: 100%; margin-bottom: 0;
}
.registro-tarjeta .row .registro-label > .form-control,
.registro-tarjeta .row .registro-label > .form-select { margin-top: auto; }
.form-actions { flex-wrap: wrap; gap: .75rem; }
.form-actions > div { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-actions .btn { white-space: normal; }
.form-actions .ms-2 { margin-left: 0 !important; }
.wizard-sidebar .steps { grid-template-columns: 1fr; max-height: none; }
.wizard-sidebar details { margin-top: 1rem; }
.wizard-sidebar summary { color: var(--primary); cursor: pointer; font-weight: 600; }
.paso-actual { padding: .85rem; background: #eaf3fc; border-radius: .65rem; margin: 1rem 0; }
.paso-actual small { display: block; margin-bottom: .25rem; color: #506176; }
.registro-tarjeta .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
@media (max-width: 991px) {
    .wizard-shell { grid-template-columns: minmax(0, 1fr); }
    .wizard-sidebar { position: static; padding: 1rem; }
    .wizard-sidebar .sidebar-label { margin-top: 1rem; }
}
@media (max-width: 767px) {
    .wizard-top { flex-direction: column; gap: .5rem; align-items: flex-start; }
    .progress-summary { text-align: left; }
    .registro-tarjeta { padding: 1rem; }
    .horario-registro { display: table !important; min-width: 760px; }
    .horario-registro thead { display: table-header-group !important; }
    .horario-registro tbody { display: table-row-group !important; }
    .horario-registro tr { display: table-row !important; padding: 0; }
    .horario-registro th, .horario-registro td { display: table-cell !important; width: auto; padding: .5rem; text-align: center; }
    .horario-registro td::before { display: none; }
    .horario-registro select { min-width: 100px; }
    .form-control, .form-select { font-size: 16px; }
    .registro-acciones .btn, .form-actions > .btn { min-height: 44px; }
}
@media (max-width: 575px) {
    .page-container { padding-top: 1rem; }
    .form-actions, .form-actions > div { flex-direction: column; width: 100%; }
    .form-actions .btn { width: 100%; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1rem; }
}
