/* Component styles: inherit the host font and expose a small set of theme variables. */
#agenda-horas {
  --ag-accent: var(--agenda-accent, #00b0a9);
  --ag-accent-text: var(--agenda-accent-text, #087f7b);
  --ag-profile: var(--agenda-profile-background, #edf8fa);
  --ag-surface: var(--agenda-surface, #fff);
  --ag-text: var(--agenda-text, #374151);
  --ag-muted: var(--agenda-muted, #66727d);
  --ag-line: var(--agenda-border, #e5e7eb);
  --ag-footer: var(--agenda-actions-background, #f7fafb);
  max-width: var(--agenda-max-width, 1120px);
  margin: 0 auto;
  scroll-margin-top: 32px;
  color: var(--ag-text);
  font-family: var(--agenda-font, inherit);
  font-size: 14px;
  line-height: 1.5;
  background: transparent;
}
#agenda-horas :where(*, *::before, *::after) { box-sizing: border-box; }
#agenda-horas [hidden] { display: none !important; }
#agenda-horas :where(h1,h2,h3,h4,p,ul,ol,dl) { margin: 0; }
#agenda-horas :where(h1,h2,h3,h4) { font-family: inherit; line-height: 1.4; letter-spacing: normal; }
#agenda-horas :where(button,input,select) { font: inherit; }
#agenda-horas button { cursor: pointer; transition: background-color .15s, border-color .15s; }
#agenda-horas button:disabled { cursor: not-allowed; }
#agenda-horas :where(button,input,select,summary):focus-visible { outline: 3px solid var(--ag-accent); outline-offset: 3px; }
#agenda-horas .agenda-heading { text-align: center; margin: 0 0 30px; }
#agenda-horas .agenda-heading h1 { font-size: 24px; font-weight: 650; color: var(--ag-accent-text); margin-bottom: 6px; }
#agenda-horas #step-caption { color: var(--ag-text); font-size: 14px; }
#agenda-horas .steps { display: flex; list-style: none; padding: 0; margin: 0 0 38px; }
#agenda-horas .steps li { position: relative; flex: 1; display: flex; justify-content: center; }
#agenda-horas .steps li::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 4px; background: var(--ag-line); }
#agenda-horas .steps li:first-child::before { display: none; }
#agenda-horas .steps li.done::before, #agenda-horas .steps li[aria-current]::before { background: var(--ag-accent); }
#agenda-horas .steps span[aria-hidden] { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ag-line); color: #666; box-shadow: 0 1px 2px #0001; }
#agenda-horas .steps .done span[aria-hidden], #agenda-horas .steps [aria-current] span[aria-hidden] { background: var(--ag-accent); color: #fff; }
#agenda-horas .steps [aria-current] span[aria-hidden] { outline: 5px solid color-mix(in srgb, var(--ag-accent) 25%, transparent); }
#agenda-horas .card { background: var(--ag-surface); border: 1px solid var(--ag-line); border-radius: 7px; box-shadow: 0 3px 5px #00000016; overflow: hidden; }
#agenda-horas .card-content { padding: 26px; }
#agenda-horas .card h2 { font-size: 19px; color: var(--ag-accent-text); font-weight: 500; }
#agenda-horas .card-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--ag-footer); padding: 14px 24px; min-height: 66px; }
#agenda-horas .primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: #fff; background: var(--ag-accent); border: 1px solid transparent; border-radius: 5px; padding: 10px 17px; min-height: 42px; font-weight: 550; }
#agenda-horas .primary:hover:not(:disabled) { background: color-mix(in srgb, var(--ag-accent) 85%, #000); }
#agenda-horas .primary:disabled { background: #d1d6d9; color: #77838e; }
#agenda-horas .text-button { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 4px; padding: 7px 0; background: transparent; color: var(--ag-muted); }
#agenda-horas .text-button span { color: var(--ag-accent-text); font-size: 23px; line-height: 1; }
#agenda-horas .text-button:hover:not(:disabled) { color: var(--ag-accent-text); text-decoration: underline; }
#agenda-horas .secondary { color: var(--ag-accent-text); border: 1px solid var(--ag-line); border-radius: 6px; padding: 10px 16px; background: var(--ag-surface); }
#agenda-horas .text-button:disabled, #agenda-horas .secondary:disabled { opacity: .5; }
#agenda-horas .agenda { display: grid; grid-template-columns: minmax(260px, 39%) minmax(0, 1fr); }
#agenda-horas .profile { background: var(--ag-profile); padding: 26px; min-width: 0; }
#agenda-horas .location { color: var(--ag-accent-text); margin: 0 0 22px; font-size: 14px; }
#agenda-horas .professional-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: var(--ag-surface); border: 1px solid var(--ag-line); margin-bottom: 22px; }
#agenda-horas .avatar { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-height: 280px; border-radius: 6px; background: var(--ag-surface); color: #bcc9cb; font-size: 80px; font-weight: 200; margin-bottom: 22px; }
#agenda-horas .profile h2 { font-size: 21px; overflow-wrap: anywhere; }
#agenda-horas .professional-specialties { list-style: none; padding: 0; margin: 18px 0; font-weight: 600; color: #5d656b; }
#agenda-horas .professional-info { margin-top: 18px; color: #5d656b; overflow-wrap: anywhere; }
#agenda-horas .professional-info p { white-space: pre-line; margin-bottom: 20px; }
#agenda-horas .professional-info p:last-child { margin-bottom: 0; }
#agenda-horas .schedule { min-width: 0; padding: 34px 22px 24px; }
#agenda-horas .availability { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .95fr); gap: 24px; }
#agenda-horas .day-navigation { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; margin-bottom: 30px; }
#agenda-horas #day-title { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ag-accent-text); text-transform: capitalize; font-size: 16px; font-weight: 550; }
#agenda-horas #day-number { font-size: 34px; font-weight: 600; line-height: 1.15; }
#agenda-horas .arrow { display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--ag-accent-text); font-size: 38px; line-height: 1; min-height: 36px; min-width: 28px; }
#agenda-horas .arrow:disabled { color: #d1d8dc; }
#agenda-horas .period { margin-bottom: 28px; }
#agenda-horas .period h3 { color: var(--ag-accent-text); font-size: 16px; font-weight: 500; margin-bottom: 18px; }
#agenda-horas .time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#agenda-horas .time { width: 100%; padding: 7px 3px; background: var(--ag-surface); border: 1px solid var(--ag-line); color: var(--ag-accent-text); border-radius: 7px; box-shadow: 0 1px 3px #0000000b; font-size: 15px; font-weight: 600; min-height: 39px; }
#agenda-horas .time:hover:not(:disabled), #agenda-horas .time.selected { background: var(--ag-profile); border-color: var(--ag-accent); }
#agenda-horas .time:disabled { color: #b2bbc0; box-shadow: none; }
#agenda-horas .no-times { font-size: 14px; color: var(--ag-muted); }
#agenda-horas .calendar h3 { color: var(--ag-accent-text); font-size: 14px; font-weight: 500; text-align: center; margin: 5px 0 28px; }
#agenda-horas .month-navigation { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; margin-bottom: 16px; }
#agenda-horas .month-navigation h4 { text-align: center; font-size: 18px; font-weight: 600; text-transform: capitalize; }
#agenda-horas .month-navigation .arrow { font-size: 28px; }
#agenda-horas .weekdays, #agenda-horas .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
#agenda-horas .weekdays { color: #85949e; font-weight: 600; margin-bottom: 7px; }
#agenda-horas .days { row-gap: 5px; }
#agenda-horas .day { border: 0; background: transparent; color: var(--ag-text); padding: 0; width: 30px; height: 30px; border-radius: 50%; justify-self: center; font-size: 15px; }
#agenda-horas .day:disabled { color: #c6cfd4; }
#agenda-horas .day.outside { visibility: hidden; }
#agenda-horas .day.active { color: #fff; background: var(--ag-accent); }
#agenda-horas .day:hover:not(:disabled):not(.active) { background: var(--ag-profile); }
#agenda-horas .schedule-actions { grid-column: 1 / -1; }
#agenda-horas .availability-note { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; color: var(--ag-muted); font-size: 11px; }
#agenda-horas :where(input,select) { display: block; width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; color: var(--ag-text); background: var(--ag-surface); border: 1px solid #e1e3e6; border-radius: 6px; box-shadow: 0 1px 3px #00000010; }
#agenda-horas input::placeholder { color: #98a3ad; }
#agenda-horas :where(input[readonly],input:disabled,select:disabled) { background: #f9f9f9; color: #65717a; }
#agenda-horas .identity-summary { margin-top: 9px; color: var(--ag-muted); font-size: 13px; }
#agenda-horas .identity-fields { max-width: 410px; margin: 45px auto 42px; }
#agenda-horas .identity-fields label { display: block; margin: 24px 0 7px; font-weight: 600; }
#agenda-horas .field-help { font-size: 11px; color: var(--ag-muted); margin-top: 6px; }
#agenda-horas .form-note { color: var(--ag-muted); font-size: 12px; text-align: center; margin-top: 10px; }
#agenda-horas .booking .card-content, #agenda-horas .confirmation .card-content { padding: 18px 7% 36px; }
#agenda-horas .timer-row { text-align: center; margin: 0 0 38px; }
#agenda-horas .countdown { display: inline-block; background: #5c6266; color: #fff; border-radius: 16px; padding: 2px 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
#agenda-horas .countdown::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--ag-accent); border-radius: 50%; margin-right: 8px; }
#agenda-horas .form-title { text-align: center; margin: 28px 0; }
#agenda-horas .booking-summary { display: grid; grid-template-columns: 120px 1fr; gap: 34px; padding: 8px 0 28px; border-bottom: 1px solid #d5d7da; margin-bottom: 28px; }
#agenda-horas .date-badge { text-align: center; color: var(--ag-accent-text); display: flex; flex-direction: column; align-items: center; text-transform: capitalize; }
#agenda-horas .date-badge > span, #agenda-horas .date-badge > strong { display: block; width: 100%; background: var(--ag-profile); }
#agenda-horas .date-badge strong { font-size: 25px; line-height: 1.1; }
#agenda-horas .date-badge b { font-weight: 600; font-size: 13px; margin-top: 4px; }
#agenda-horas .professional-summary { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 4px 16px; align-content: start; }
#agenda-horas .professional-summary dt { font-weight: 600; }
#agenda-horas :where(dd) { margin: 0; overflow-wrap: anywhere; }
#agenda-horas .patient-fields { padding: 0; border: 0; margin: 0; min-width: 0; }
#agenda-horas .patient-fields label { display: grid; grid-template-columns: 28% minmax(0, 1fr); align-items: center; gap: 18px; text-align: right; margin-bottom: 22px; font-weight: 400; }
#agenda-horas .birth-date-row { display: grid; grid-template-columns: 28% minmax(0, 1fr); align-items: start; gap: 18px; text-align: right; margin-bottom: 22px; }
#agenda-horas #birth-date-label { padding-top: 32px; }
#agenda-horas .birth-date-parts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr); gap: 12px; }
#agenda-horas .patient-fields .birth-date-parts label { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; margin: 0; }
#agenda-horas .birth-date-row .field-help, #agenda-horas .field-error { text-align: left; margin: 6px 0 0; }
#agenda-horas .field-error { color: #973a33; font-size: 12px; }
#agenda-horas [aria-invalid="true"] { border-color: #973a33; }
#agenda-horas .patient-fields .consent { display: flex; align-items: flex-start; margin: 28px 0 20px 28%; padding-left: 18px; text-align: left; gap: 10px; font-size: 13px; }
#agenda-horas .gender-row { display: grid; grid-template-columns: 28% minmax(0, 1fr); align-items: center; gap: 18px; text-align: right; margin-bottom: 22px; }
#agenda-horas .gender-options { display: flex; flex-wrap: wrap; gap: 8px 24px; }
#agenda-horas .patient-fields .gender-options label { display: flex; align-items: center; gap: 9px; text-align: left; margin: 0; min-height: 44px; cursor: pointer; }
#agenda-horas .gender-options input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--ag-accent); box-shadow: none; }
#agenda-horas .confirmation .card-actions { flex-wrap: wrap; }
#agenda-horas .consent input { flex: 0 0 17px; width: 17px; height: 17px; min-height: 0; margin: 2px 0 0; accent-color: var(--ag-accent); box-shadow: none; }
#agenda-horas .receipt { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 16px 24px; max-width: 700px; margin: 32px auto; }
#agenda-horas .receipt dt { color: var(--ag-muted); }
#agenda-horas .feedback { padding: 18px; background: var(--ag-footer); color: var(--ag-muted); border-radius: 5px; margin: 18px 0; }
#agenda-horas .feedback.error { background: #fff1ef; color: #973a33; }
#agenda-horas .mode { padding: 8px 14px; text-align: center; font-size: 12px; margin-bottom: 24px; border-radius: 5px; background: #fff4d9; color: #74571f; }
#agenda-horas .technical { margin-top: 24px; font-size: 12px; }
#agenda-horas .technical summary { cursor: pointer; }
#agenda-horas .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }
@media(max-width:1000px) {
  #agenda-horas .agenda { grid-template-columns: minmax(230px, 35%) minmax(0, 1fr); }
  #agenda-horas .availability { grid-template-columns: minmax(0,1fr) 200px; gap: 16px; }
  #agenda-horas .profile { padding: 20px; }
  #agenda-horas .schedule { padding: 28px 18px; }
  #agenda-horas .time-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #agenda-horas .day { width: 27px; height: 29px; }
}
@media(max-width:760px) {
  #agenda-horas .agenda { grid-template-columns: 1fr; }
  #agenda-horas .profile { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 10px 18px; }
  #agenda-horas .location { grid-column: 1 / -1; margin: 0 0 6px; }
  #agenda-horas .professional-photo, #agenda-horas .avatar { grid-row: 2 / 5; margin: 0; }
  #agenda-horas .profile h2 { font-size: 18px; align-self: end; }
  #agenda-horas .professional-specialties { margin: 0; font-size: 13px; }
  #agenda-horas .professional-info { grid-column: 1 / -1; margin-top: 10px; font-size: 13px; }
  #agenda-horas .availability { grid-template-columns: minmax(0,1fr) minmax(200px,1fr); gap: 26px; }
  #agenda-horas .time-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #agenda-horas .card-content { padding: 22px; }
  #agenda-horas .card-actions { padding: 12px 18px; }
  #agenda-horas .booking .card-content, #agenda-horas .confirmation .card-content { padding: 18px 24px 28px; }
  #agenda-horas .professional-summary { grid-template-columns: 120px minmax(0,1fr); gap: 4px 12px; font-size: 13px; }
  #agenda-horas .booking-summary { grid-template-columns: 95px 1fr; gap: 20px; }
}
@media(max-width:540px) {
  #agenda-horas .steps { margin-bottom: 30px; }
  #agenda-horas .agenda-heading { margin-bottom: 28px; }
  #agenda-horas .availability { display: flex; flex-direction: column; gap: 28px; }
  #agenda-horas .calendar { order: -1; max-width: 330px; width: 100%; margin: 0 auto; }
  #agenda-horas .calendar h3 { margin-bottom: 14px; }
  #agenda-horas .calendar .days { row-gap: 3px; }
  #agenda-horas .calendar .day { width: 34px; height: 34px; }
  #agenda-horas .day-navigation { margin-bottom: 24px; }
  #agenda-horas #day-title { gap: 5px; }
  #agenda-horas .time-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #agenda-horas .time { min-height: 44px; }
  #agenda-horas .schedule-actions { flex-wrap: wrap; gap: 6px; }
  #agenda-horas .availability-note { justify-content: flex-start; font-size: 10px; }
  #agenda-horas .identity-fields { margin: 30px auto; }
  #agenda-horas .patient-fields label { grid-template-columns: 1fr; text-align: left; gap: 7px; margin-bottom: 18px; }
  #agenda-horas .birth-date-row { grid-template-columns: 1fr; text-align: left; gap: 7px; margin-bottom: 18px; }
  #agenda-horas #birth-date-label { padding-top: 0; }
  #agenda-horas .birth-date-parts { gap: 8px; }
  #agenda-horas .patient-fields .consent { margin: 24px 0 14px; padding: 0; }
  #agenda-horas .gender-row { grid-template-columns: 1fr; gap: 7px; text-align: left; }
  #agenda-horas .gender-options { column-gap: 16px; }
  #agenda-horas .booking-summary { grid-template-columns: 75px 1fr; gap: 16px; }
  #agenda-horas .professional-summary { grid-template-columns: 1fr; gap: 2px; }
  #agenda-horas .professional-summary dd { margin-bottom: 7px; }
  #agenda-horas .receipt { grid-template-columns: 1fr; gap: 3px; }
  #agenda-horas .receipt dd { margin-bottom: 15px; }
  #agenda-horas .primary { padding: 10px 12px; font-size: 13px; gap: 7px; }
  #agenda-horas .card-actions { gap: 12px; }
  #agenda-horas .text-button { font-size: 13px; }
}
