/* Portal público: propuesta Institucional. No modifica el panel admin ni las reglas del formulario. */
body.turnos-institucional {
  --turnos-page-bg: #f3f6f9;
  --turnos-primary: #35658a;
  --turnos-ink: #20344b;
  --turnos-muted: #62758a;
  --turnos-line: #dce5ee;
  --turnos-soft: #edf3f8;
  --turnos-surface: #fff;
  color-scheme: light;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--turnos-ink);
  background: var(--turnos-page-bg);
}
.turnos-institucional :is(h1,h2,h3,h4,h5,h6,input,select,textarea,button,.btn,.form-control,.form-select) { font-family: inherit; }
.turnos-institucional h1 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.turnos-institucional :is(h2,h3,h4,h5,h6) { font-size: 15px; font-weight: 600; line-height: 1.3; }
.turnos-institucional :is(h1,h2,h3,h4,h5,h6) :is(b,strong) { font-weight: inherit; }
.turnos-institucional :is(p,dl) { margin-bottom: 12px; }
.turnos-institucional a { color: var(--turnos-primary); }
.turnos-institucional :is(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--turnos-primary); outline-offset: 3px; }
.turnos-institucional .turnos-header { position: static; height: auto; min-height: 78px; overflow: visible; box-shadow: none; border-bottom: 1px solid var(--turnos-line); background: var(--turnos-surface); z-index: auto; }
.turnos-institucional .turnos-header-inner { max-width: none; width: calc(100% - 30px); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.turnos-institucional .turnos-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--turnos-ink); min-width: 0; }
.turnos-institucional .turnos-brand strong { display: block; font-size: 14px; font-weight: 600; }
.turnos-institucional .turnos-brand small { display: block; margin-top: 2px; font-size: 12px; color: var(--turnos-muted); }
.turnos-institucional .turnos-logo { width: 46px; height: 46px; max-height: none; object-fit: contain; flex-shrink: 0; }
.turnos-institucional .turnos-logo-pba { width: 36px; height: 40px; object-fit: contain; max-height: none; margin-left: 5px; }
.turnos-institucional .turnos-header-right { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin-left: auto; flex-shrink: 0; }
.turnos-institucional .turnos-header-nav { display: flex; align-items: center; gap: 22px; }
.turnos-institucional .turnos-header-nav a { color: var(--turnos-muted); text-decoration: none; font-size: 14px; }
.turnos-institucional .turnos-header-nav a:hover { color: var(--turnos-primary); }
.turnos-institucional > .turnos-main { flex: 1 0 auto; }
.turnos-institucional .container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; }
.turnos-institucional .turnos-main { padding-bottom: 0; }
.turnos-institucional .turnos-home-container { padding-top: 18px; padding-bottom: 24px; }
.turnos-institucional .turnos-welcome { padding: 18px 20px; margin-bottom: 12px; min-height: 0; border: 1px solid var(--turnos-line); border-radius: 8px; box-shadow: 0 3px 12px #18354d05; gap: 24px; }
.turnos-institucional .turnos-welcome > div:first-child { flex: 1; }
.turnos-institucional .turnos-eyebrow { display: block; color: var(--turnos-muted); font-size: 12px; font-weight: 600; letter-spacing: .07em; margin-bottom: 6px; }
.turnos-institucional .turnos-welcome h1 { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 6px; }
.turnos-institucional .turnos-welcome p { color: var(--turnos-muted); font-size: 14px; line-height: 1.45; max-width: 850px; }
.turnos-institucional .turnos-terms-link { font-size: 12px; font-weight: 400; padding: 6px 0 0; color: var(--turnos-primary); text-decoration: none; margin: 0; }
.turnos-institucional .turnos-terms-link:hover { text-decoration: underline; }
.turnos-institucional .turnos-action-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 12px; margin: 0; }
.turnos-institucional .turnos-action-grid > div { display: flex; width: auto; max-width: none; padding: 0; margin-top: 0; }
.turnos-institucional .turnos-home-link { display: flex; text-decoration: none; width: 100%; }
.turnos-institucional .turnos-card { border: 1px solid var(--turnos-line); border-radius: 8px; background: var(--turnos-surface); overflow: hidden; }
/* shadow-sm y utilidades del tema anterior necesitan neutralización acotada. */
.turnos-institucional .turnos-card.shadow-sm { box-shadow: 0 3px 12px #18354d05 !important; }
.turnos-institucional .turnos-home-action { background: var(--turnos-surface); border-color: var(--turnos-line); min-height: 155px; color: var(--turnos-ink); width: 100%; }
.turnos-institucional .turnos-home-action .card-body { display: grid; grid-template-columns: 42px minmax(0,1fr) 16px; grid-template-rows: auto 1fr; align-items: center; text-align: left; padding: 18px; gap: 12px; }
.turnos-institucional .turnos-icon-wrap { grid-column: 1; grid-row: 1; margin: 0; }
.turnos-institucional .turnos-home-action .turnos-action-icon { width: 42px; height: 42px; font-size: 21px; border-radius: 8px; color: var(--turnos-primary); background: #eaf2f8; }
.turnos-institucional .turnos-home-action-danger .turnos-action-icon { background: #fbf0f2; color: #985260; }
.turnos-institucional .turnos-home-action :is(.turnos-action-title,.turnos-action-text) { color: var(--turnos-ink); }
.turnos-institucional .turnos-home-action .turnos-action-title { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0; flex: none; order: initial; grid-column: 2; grid-row: 1; }
.turnos-institucional .turnos-home-action .turnos-action-text { color: var(--turnos-muted); font-size: 14px; line-height: 1.45; margin: 0; order: initial; grid-column: 1/-1; grid-row: 2; align-self: start; }
.turnos-institucional .turnos-home-action :is(.turnos-card-footer-link,.turnos-card-arrow) { color: var(--turnos-primary); }
.turnos-institucional .turnos-home-action .turnos-card-footer-link { font-size: 14px; font-weight: 400; width: auto; order: initial; grid-column: 3; grid-row: 1; margin: 0 !important; padding: 0 !important; }
.turnos-institucional .turnos-home-action .turnos-card-footer-text { display: none; }
.turnos-institucional .turnos-action:hover { transform: none; border-color: #a8c4d9; }
.turnos-institucional .turnos-action:hover .turnos-card-arrow { transform: none; }
.turnos-institucional .turnos-home-notes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 12px 0 0; padding: 0; }
.turnos-institucional .turnos-home-notes > div { width: auto; max-width: none; margin: 0; padding: 0; }
.turnos-institucional .turnos-info-panel { display: flex; height: 100%; align-items: flex-start; gap: 12px; background: var(--turnos-surface); border: 1px solid var(--turnos-line); border-radius: 8px; padding: 16px; }
.turnos-institucional .turnos-info-panel > i { color: var(--turnos-primary); font-size: 19px; margin-top: 2px; }
.turnos-institucional .turnos-info-panel h2 { margin: 0 0 6px; }
.turnos-institucional .turnos-info-panel p { font-size: 12px; color: var(--turnos-muted); margin: 0; }
.turnos-institucional :is(.form-control,.form-select,.btn,.form-label) { font-size: 14px; line-height: 1.45; }
.turnos-institucional :is(.form-control,.form-select) { min-height: 44px; border: 1px solid var(--turnos-line); border-radius: 7px; padding: 10px 12px; color: var(--turnos-ink); background-color: var(--turnos-surface); }
.turnos-institucional :is(.form-control,.form-select):focus { border-color: var(--turnos-primary); box-shadow: 0 0 0 3px #35658a18; }
.turnos-institucional .form-control::placeholder { color: #74869a; opacity: 1; }
.turnos-institucional :is(input[type=checkbox],input[type=radio]) { accent-color: var(--turnos-primary); }
.turnos-institucional .form-control:disabled { background: var(--turnos-soft); }
.turnos-institucional :is(.btn,.swal2-styled) { border-radius: 8px; font-size: 14px; font-weight: 400; padding: 9px 14px; }
.turnos-institucional .turnos-card .form-label.fw-bold { font-weight: 400 !important; }
.turnos-institucional .turnos-card .lead { font-size: 14px; font-weight: 400; }
/* colors.min.css impone colores !important: neutralizar solo botones del portal. */
.turnos-institucional .btn-primary { background-color: var(--turnos-primary) !important; border-color: var(--turnos-primary) !important; color: #fff !important; }
.turnos-institucional .btn-primary:hover { background-color: #294e6b !important; border-color: #294e6b !important; }
.turnos-institucional .btn-outline-primary { color: var(--turnos-primary) !important; background: #eaf2f8 !important; border-color: #cbddea !important; }
.turnos-institucional :is(.btn-secondary,.btn-outline-secondary) { color: var(--turnos-ink) !important; background: var(--turnos-soft) !important; border-color: var(--turnos-line) !important; }
.turnos-institucional .turnos-btn-consult { color: #fff; background: var(--turnos-primary); border-color: var(--turnos-primary); }
.turnos-institucional .btn-success { background: #426f5f !important; border-color: #426f5f !important; color: #fff !important; }
.turnos-institucional .btn-info { background: #487788 !important; border-color: #487788 !important; color: #fff !important; }
.turnos-institucional :is(.btn-danger,.turnos-btn-cancel) { background: #985260 !important; border-color: #985260 !important; color: #fff !important; }
.turnos-institucional .btn-sm { padding: 7px 10px; }
.turnos-institucional .btn:focus { box-shadow: 0 0 0 3px #35658a25; }
.turnos-institucional .turnos-simple-card { max-width: 680px; }
.turnos-institucional :is(.turnos-form-container,.turnos-simple-container) { margin-top: 18px; margin-bottom: 24px; }
.turnos-institucional .turnos-main.my-5 { margin-top: 18px !important; margin-bottom: 24px !important; }
.turnos-institucional .turnos-main .turnos-card.mb-5 { margin-bottom: 0 !important; }
.turnos-institucional .turnos-simple-body { padding: 24px; }
.turnos-institucional .turnos-form-hint { background: var(--turnos-soft); border: 1px solid var(--turnos-line); border-radius: 8px; color: var(--turnos-muted); font-size: 12px; margin-bottom: 20px; padding: 14px; }
.turnos-institucional .turnos-cancel-card .turnos-form-hint { color: var(--turnos-muted); background: var(--turnos-soft); border-color: var(--turnos-line); }
.turnos-institucional .turnos-simple-footer { padding: 16px 24px; border-color: var(--turnos-line); flex-wrap: wrap; }
/* bg-*, text-white y fs-* heredados son !important: neutralización acotada a las tarjetas. */
.turnos-institucional .turnos-card > .card-header { padding: 18px 24px; border-bottom: 1px solid var(--turnos-line); background-color: var(--turnos-surface) !important; color: var(--turnos-ink) !important; text-align: left !important; }
.turnos-institucional .turnos-card > .card-header :is(h1,h2,h3,.text-white) { color: var(--turnos-ink) !important; text-align: left !important; }
.turnos-institucional .turnos-card :is(.fs-4,.fs-5,.fs-6) { font-size: 14px !important; }
.turnos-institucional .turnos-card :is(.fs-1,.fs-2) { font-size: 22px !important; }
.turnos-institucional .turnos-card :is(h1,h2,h3,h4,h5,h6) { font-family: inherit; font-size: 15px; font-weight: 600; }
.turnos-institucional .turnos-card :is(h1,h2,h3,h4,h5,h6) i:not([class]) { font-style: normal; }
.turnos-institucional .turnos-wizard-card > .turnos-wizard-header { padding: 0; }
.turnos-institucional .turnos-wizard-title { padding: 20px 24px; font-size: 18px; font-weight: 600; }
.turnos-institucional .turnos-wizard-stepbar { background: var(--turnos-soft); padding: 16px 24px; border-top: 1px solid var(--turnos-line); }
.turnos-institucional .turnos-wizard-stepbar .turnos-steps-track { background: var(--turnos-line); height: 1px; }
.turnos-institucional .turnos-wizard-stepbar .turnos-wizard-progress { background: var(--turnos-primary); }
.turnos-institucional .turnos-wizard-stepbar .turnos-step { background: var(--turnos-surface); border: 1px solid var(--turnos-line); color: var(--turnos-muted); height: 28px; width: 28px; font-size: 12px; font-weight: 400; }
.turnos-institucional .turnos-wizard-stepbar .turnos-step-label { font-size: 12px; color: var(--turnos-muted); }
.turnos-institucional .turnos-wizard-stepbar .turnos-step-item.active .turnos-step { background: var(--turnos-primary); color: #fff; border-color: var(--turnos-primary); }
.turnos-institucional .turnos-wizard-stepbar .turnos-step-item.active .turnos-step-label { color: var(--turnos-primary); font-weight: 600; }
.turnos-institucional .turnos-wizard-body { padding: 24px; }
.turnos-institucional .turnos-request-form { width: 100%; max-width: 1120px; }
.turnos-institucional .turnos-birthdate-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; }
.turnos-institucional .turnos-birthdate-grid > div { width: auto; max-width: none; min-width: 0; padding: 0; }
.turnos-institucional .turnos-birthdate-grid .form-select { width: 100%; padding-left: 8px; padding-right: 28px; background-position: right 8px center; }
.turnos-institucional .turnos-georef-options { margin-top: 8px; border: 1px solid var(--turnos-line); border-radius: 8px; overflow: hidden; }
.turnos-institucional .turnos-georef-options[hidden] { display: none; }
.turnos-institucional .turnos-georef-option { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--turnos-line); background: var(--turnos-surface); color: var(--turnos-ink); padding: 10px 12px; text-align: left; font: inherit; overflow-wrap: anywhere; }
.turnos-institucional .turnos-georef-option:last-child { border-bottom: 0; }
.turnos-institucional .turnos-georef-option:hover,.turnos-institucional .turnos-georef-option[aria-selected=true] { background: var(--turnos-soft); }
.turnos-institucional .turnos-georef-option small { display: block; color: var(--turnos-muted); font-size: 12px; margin-top: 2px; }
.turnos-institucional .turnos-georef-map { border: 1px solid var(--turnos-line); border-radius: 8px; overflow: hidden; }
.turnos-institucional .turnos-georef-map[hidden] { display: none; }
.turnos-institucional .turnos-georef-map iframe { display: block; width: 100%; height: 230px; border: 0; }
.turnos-institucional .turnos-wizard-step .card-body { padding: 0; }
.turnos-institucional .turnos-wizard-actions { border-color: var(--turnos-line); }
.turnos-institucional .turnos-card .alert { border: 1px solid var(--turnos-line); border-radius: 8px; padding: 15px; font-size: 14px; line-height: 1.45; }
.turnos-institucional .turnos-card :is(.alert-info,.alert-primary) { background: #eaf2f8; color: #355b78; border-color: #dbe7f0; }
.turnos-institucional .turnos-card .alert-success { background: #edf6f1; color: #306b58; border-color: #dcebe2; }
.turnos-institucional .turnos-card .alert-warning { background: #faf5e8; color: #806526; border-color: #eee5ce; }
.turnos-institucional .turnos-card .alert-danger { background: #fbf0f2; color: #985260; border-color: #eedbe0; }
.turnos-institucional .modal-content { border: 1px solid var(--turnos-line); border-radius: 8px; color: var(--turnos-ink); }
.turnos-institucional .modal-header { background: var(--turnos-soft); border-color: var(--turnos-line); }
.turnos-institucional .modal-title { font-size: 15px; font-weight: 600; }
.turnos-institucional .modal-body { font-size: 14px; line-height: 1.45; }
.turnos-institucional .turnos-upload-modal .turnos-upload-title { font-size: 15px; }
.turnos-institucional .turnos-secondary { font-size: 12px; color: var(--turnos-muted); }
.turnos-institucional .turnos-record-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 16px; align-items: start; }
.turnos-institucional .turnos-record-body { padding: 24px; }
.turnos-institucional .turnos-record-data { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0 0 24px; }
.turnos-institucional .turnos-record-data dt { font-size: 12px; font-weight: 400; color: var(--turnos-muted); margin-bottom: 6px; }
.turnos-institucional .turnos-record-data dd { font-size: 14px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.turnos-institucional .turnos-record-code { grid-column: 1/-1; }
.turnos-institucional .turnos-record-code dd { color: var(--turnos-primary); }
.turnos-institucional .turnos-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 24px; background: var(--turnos-surface); border-top: 1px solid var(--turnos-line); }
.turnos-institucional .turnos-query-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.turnos-institucional .turnos-query-status { border: 1px solid var(--turnos-line); border-radius: 8px; padding: 5px 10px; font-size: 12px; overflow-wrap: anywhere; }
.turnos-institucional .turnos-query-status-pending { color: #806526; background: #faf5e8; border-color: #eee5ce; }
.turnos-institucional .turnos-query-status-cancelled { color: #985260; background: #fbf0f2; border-color: #eedbe0; }
.turnos-institucional .turnos-query-status-assigned { color: #306b58; background: #edf6f1; border-color: #dcebe2; }
.turnos-institucional .turnos-query-body { padding: 20px 24px; }
.turnos-institucional .turnos-query-data { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--turnos-line); }
.turnos-institucional .turnos-query :is(dt) { color: var(--turnos-muted); font-size: 12px; font-weight: 400; margin-bottom: 5px; }
.turnos-institucional .turnos-query :is(dd) { font-size: 14px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.turnos-institucional .turnos-query-panel { border: 1px solid var(--turnos-line); border-radius: 8px; background: var(--turnos-soft); padding: 16px; margin-bottom: 12px; }
.turnos-institucional .turnos-query-panel :is(h2,h3) { margin: 0 0 10px; }
.turnos-institucional .turnos-query-details { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 12px; }
.turnos-institucional .turnos-query-details > div { min-width: 0; }
.turnos-institucional :is(.turnos-query-share,.turnos-query-actions) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.turnos-institucional .turnos-query-share { padding-top: 4px; }
.turnos-institucional .turnos-query-actions { padding: 14px 24px; background: var(--turnos-surface); border-color: var(--turnos-line); justify-content: flex-end; }
.turnos-institucional .turnos-footer { position: static; width: calc(100% - 30px); max-width: none; margin: auto auto 0; height: auto; min-height: 42px; padding: 12px 0; background: transparent; border-top: 1px solid var(--turnos-line); color: var(--turnos-muted); z-index: auto; }
.turnos-institucional .turnos-footer .text-light { color: var(--turnos-muted) !important; font-size: 12px; }
.turnos-institucional .turnos-footer-brand { font-size: 12px; }
@media(min-width:992px) {
  .turnos-institucional .turnos-home-action { min-height: clamp(190px,26vh,260px); }
  .turnos-institucional .turnos-home-action .card-body { padding: 24px; gap: 16px; }
}
@media(max-width:991px) {
  .turnos-institucional .turnos-action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .turnos-institucional .turnos-header-nav { gap: 14px; }
  .turnos-institucional .turnos-header-nav a { font-size: 12px; }
  .turnos-institucional .turnos-header-right { gap: 14px; }
  .turnos-institucional .turnos-logo-pba { width: 30px; height: 34px; }
}
@media(max-width:767px) {
  .turnos-institucional .turnos-query-data { grid-template-columns: 1fr; gap: 12px; }
  .turnos-institucional .turnos-query-body { padding: 16px 20px; }
  .turnos-institucional .turnos-query-actions { padding: 14px 20px; justify-content: flex-start; }
  .turnos-institucional .turnos-home-notes { grid-template-columns: 1fr; }
  .turnos-institucional .turnos-header-inner { min-height: 74px; gap: 10px; }
  .turnos-institucional .turnos-brand { gap: 10px; }
  .turnos-institucional .turnos-logo { width: 40px; height: 40px; }
  .turnos-institucional .turnos-header-nav { display: none; }
  .turnos-institucional .turnos-header-right { gap: 0; }
  .turnos-institucional .turnos-logo-pba { width: 28px; height: 34px; margin-left: 0; }
  .turnos-institucional .turnos-welcome { padding: 16px; gap: 10px; margin-bottom: 12px !important; flex-direction: column; align-items: flex-start; }
  .turnos-institucional .turnos-terms-link { margin: 0; flex-basis: auto; font-size: 12px; }
  .turnos-institucional :is(.turnos-home-container,.turnos-form-container,.turnos-simple-container) { padding-left: 15px; padding-right: 15px; }
  .turnos-institucional .turnos-home-container { padding-top: 12px; }
  .turnos-institucional .turnos-main.my-5 { margin-top: 18px !important; }
  .turnos-institucional :is(.turnos-form-container,.turnos-simple-container) { margin-top: 18px; }
  .turnos-institucional .turnos-home-action { min-height: 170px; }
  .turnos-institucional .turnos-home-action .card-body { display: flex; flex-direction: column !important; padding: 16px 12px; align-items: center; text-align: center; gap: 0; position: relative; }
  .turnos-institucional .turnos-home-action .card-body > .turnos-icon-wrap { display: block !important; margin-bottom: 10px; }
  .turnos-institucional .turnos-home-action .turnos-action-icon { width: 32px; height: 32px; font-size: 20px; order: initial; }
  .turnos-institucional .turnos-home-action .turnos-action-title { font-size: 13px; font-weight: 400; margin-bottom: 8px !important; flex: none; }
  .turnos-institucional .turnos-home-action .turnos-action-text { font-size: 12px; flex: initial; }
  .turnos-institucional .turnos-home-action .turnos-card-footer-link { position: absolute; top: 12px; right: 8px; flex: initial; }
  .turnos-institucional .turnos-home-action .turnos-card-arrow { margin-left: auto; }
  .turnos-institucional .turnos-info-panel { padding: 14px; }
  .turnos-institucional :is(.turnos-wizard-body,.turnos-simple-body) { padding: 20px; }
  .turnos-institucional .turnos-wizard-title { padding: 18px 20px; }
  .turnos-institucional .turnos-wizard-stepbar { padding: 14px 10px; }
  .turnos-institucional .turnos-wizard-stepbar .turnos-step-label { font-size: 12px; line-height: 1.3; }
  .turnos-institucional .turnos-card > .card-header { padding: 18px 20px; }
  .turnos-institucional .turnos-wizard-card > .turnos-wizard-header { padding: 0; }
  .turnos-institucional .turnos-simple-footer { padding: 16px 20px; }
  .turnos-institucional .turnos-record-layout { grid-template-columns: 1fr; }
  .turnos-institucional .turnos-record-body { padding: 20px; }
  .turnos-institucional .turnos-record-actions { padding: 16px 20px; }
}
@media(max-width:359px) { .turnos-institucional .turnos-home-action .turnos-action-title { font-size: 12px; } }
@media(prefers-reduced-motion:reduce) { .turnos-institucional *, .turnos-institucional *::before, .turnos-institucional *::after { transition: none !important; animation: none !important; } }
