/* Bookly-inspired Booking System Styles */

.bookly-form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: var(--public-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif);
}

/* Dark theme overrides (public booking) */
html[data-theme="dark"] .bookly-form {
    color: rgba(226, 232, 240, 0.95);
}
html[data-theme="dark"] .bookly-service-step,
html[data-theme="dark"] .bookly-time-step,
html[data-theme="dark"] .bookly-details-step,
html[data-theme="dark"] .bookly-confirmation {
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .bookly-bold,
html[data-theme="dark"] .bookly-form-group label {
    color: rgba(226, 232, 240, 0.95);
}
html[data-theme="dark"] .bookly-select-mobile,
html[data-theme="dark"] .bookly-input-field {
    background: rgba(2, 6, 23, 0.55);
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(226, 232, 240, 0.95);
}
html[data-theme="dark"] .bookly-select-mobile:focus,
html[data-theme="dark"] .bookly-input-field:focus {
    border-color: var(--primary-color, #8177f4);
    box-shadow: 0 0 0 3px rgba(129, 119, 244, 0.22);
}
html[data-theme="dark"] .bookly-input-field::placeholder {
    color: rgba(148, 163, 184, 0.9);
}
html[data-theme="dark"] .bookly-progress-tracker>div {
    color: rgba(148, 163, 184, 0.95);
}
html[data-theme="dark"] .bookly-progress-tracker .step {
    background: rgba(148, 163, 184, 0.28);
}
html[data-theme="dark"] .picker__frame {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .picker__weekday {
    color: rgba(148, 163, 184, 0.95);
}
html[data-theme="dark"] .picker__day {
    color: rgba(226, 232, 240, 0.95);
}
html[data-theme="dark"] .picker__day--outfocus {
    color: rgba(148, 163, 184, 0.65);
}
html[data-theme="dark"] .picker__day--disabled {
    opacity: 0.45;
}
html[data-theme="dark"] .picker__day--selected {
    background: rgba(129, 119, 244, 0.22);
}
html[data-theme="dark"] .bookly-time-slots-container .bookly-time-slots>div:not(.bookly-time-slot):only-child {
    background: rgba(2, 6, 23, 0.45);
    border-color: rgba(148, 163, 184, 0.28);
}
html[data-theme="dark"] .bookly-time-slot {
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: rgba(226, 232, 240, 0.95);
}
html[data-theme="dark"] .bookly-time-slot:hover {
    background: rgba(30, 41, 59, 0.7);
}
html[data-theme="dark"] .bookly-time-slot.selected {
    background: rgba(129, 119, 244, 0.22);
    border-color: rgba(129, 119, 244, 0.55);
}

html[data-theme="dark"] .bookly-btn-secondary {
    background: rgba(2, 6, 23, 0.35);
    color: rgba(203, 213, 225, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.28);
}
html[data-theme="dark"] .bookly-btn-secondary:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(148, 163, 184, 0.38);
}
html[data-theme="dark"] .bookly-btn-outline {
    border-color: rgba(129, 119, 244, 0.75);
    color: rgba(226, 232, 240, 0.95);
}
html[data-theme="dark"] .bookly-btn-outline:hover {
    color: #fff;
}
html[data-theme="dark"] .bookly-summary,
html[data-theme="dark"] .bookly-summary-item {
    color: rgba(226, 232, 240, 0.95);
}
html[data-theme="dark"] .bookly-summary {
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .bookly-summary-item {
    border-top-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .bookly-modal-content {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
}
html[data-theme="dark"] .bookly-modal-header {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .bookly-modal-header h3 {
    color: rgba(226, 232, 240, 0.95);
}
html[data-theme="dark"] .bookly-modal-body h4 {
    color: rgba(226, 232, 240, 0.95);
}
html[data-theme="dark"] .bookly-modal-footer {
    border-top-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .bookly-modal-close {
    color: rgba(226, 232, 240, 0.85);
}
html[data-theme="dark"] .bookly-modal-close:hover {
    background: rgba(30, 41, 59, 0.7);
    color: rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .bookly-modal .form-group label {
    color: rgba(226, 232, 240, 0.95);
}

html[data-theme="dark"] .bookly-modal .form-group input,
html[data-theme="dark"] .bookly-modal .form-group select,
html[data-theme="dark"] .bookly-modal .form-group textarea {
    background: rgba(2, 6, 23, 0.55);
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(226, 232, 240, 0.95);
}

html[data-theme="dark"] .bookly-modal .form-group input:focus,
html[data-theme="dark"] .bookly-modal .form-group select:focus,
html[data-theme="dark"] .bookly-modal .form-group textarea:focus {
    border-color: var(--primary-color, #8177f4);
    box-shadow: 0 0 0 3px rgba(129, 119, 244, 0.22);
}

html[data-theme="dark"] .bookly-modal .waitlist-info {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.45);
}
html[data-theme="dark"] .bookly-modal .waitlist-info h4,
html[data-theme="dark"] .bookly-modal .waitlist-info p {
    color: rgba(253, 230, 138, 0.95);
}
html[data-theme="dark"] .bookly-modal .waitlist-form {
    background: rgba(2, 6, 23, 0.35);
    border-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .bookly-modal .waitlist-form p {
    color: rgba(226, 232, 240, 0.92);
}

html[data-theme="dark"] .days-selector label {
    background: rgba(2, 6, 23, 0.55);
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(226, 232, 240, 0.92);
}
html[data-theme="dark"] .days-selector label:hover {
    background: rgba(30, 41, 59, 0.7);
}

html[data-theme="dark"] .recurring-preview,
html[data-theme="dark"] .recurring-appointments-preview {
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .appointment-preview-item {
    background: rgba(2, 6, 23, 0.45);
    border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .appointment-preview-item.unavailable {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.35);
}

html[data-theme="dark"] .appointment-date {
    color: rgba(226, 232, 240, 0.95);
}
html[data-theme="dark"] .appointment-time {
    color: rgba(148, 163, 184, 0.95);
}
html[data-theme="dark"] .appointment-preview-item.unavailable .appointment-date {
    color: rgba(252, 165, 165, 0.95);
}

html[data-theme="dark"] .appointment-status.available {
    background: rgba(16, 185, 129, 0.16);
    color: rgba(110, 231, 183, 0.95);
}

html[data-theme="dark"] .appointment-status.unavailable {
    background: rgba(239, 68, 68, 0.16);
    color: rgba(252, 165, 165, 0.95);
}

html[data-theme="dark"] .capacity-warning {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.45);
    color: rgba(253, 230, 138, 0.95);
}

/* Defensive: keep recurring modal compact even if legacy JS injects these blocks */
.bookly-modal .recurring-preview {
    display: none !important;
}
.bookly-modal .summary-info {
    display: none !important;
}

/* Progress Tracker */
.bookly-progress-tracker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
}

.bookly-progress-tracker>div {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    position: relative;
    color: var(--text-muted, #737373);
    font-size: 14px;
    font-weight: 500;
}

.bookly-progress-tracker>div.active {
    color: var(--primary-color, #8177f4);
    font-weight: 600;
}

.bookly-progress-tracker .step {
    height: 4px;
    background: var(--border-color, #e5e5e5);
    margin-top: 8px;
    border-radius: 2px;
}

.bookly-progress-tracker>div.active .step {
    background: linear-gradient(90deg, var(--primary-color, #8177f4) 0%, var(--secondary-color, #37acfb) 100%);
}

/* Service Step */
.bookly-service-step {
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bookly-box {
    margin-bottom: 20px;
}

.bookly-bold {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-main, #333);
}

.bookly-form-group {
    margin-bottom: 20px;
}

.bookly-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main, #555);
}

.bookly-select-mobile {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--surface-color, #ffffff);
}

.bookly-select-mobile:focus {
    outline: none;
    border-color: var(--primary-color, #8177f4);
    box-shadow: 0 0 0 3px rgba(129, 119, 244, 0.1);
}

.bookly-select-mobile.bookly-error {
    border-color: var(--danger, #ef4444);
}

.bookly-label-error {
    color: var(--danger, #ef4444);
    font-size: 13px;
    margin-top: 5px;
}

/* Estados de error mejorados para selects/inputs */
.bookly-input-field.bookly-error,
.bookly-select-mobile.bookly-error {
    border-color: var(--danger, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Campos deshabilitados: aspecto coherente y legible */
.bookly-input-field:disabled,
.bookly-select-mobile:disabled {
    background: var(--bg-body, #f8f9fa);
    color: var(--text-muted, #6b7280);
    cursor: not-allowed;
    opacity: 0.9;
}

/* Time Step */
.bookly-time-step {
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bookly-calendar-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.bookly-calendar-container {
    flex: 1;
    min-width: 300px;
}

.bookly-time-slots-container {
    flex: 1;
    min-width: 250px;
}

/* Placeholder cuando no hay fecha seleccionada - solo el mensaje inicial, NO los slots */
.bookly-time-slots-container .bookly-time-slots>div:not(.bookly-time-slot):only-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    grid-column: 1 / -1;
    /* Abarcar todas las columnas del grid */
    padding: 60px 40px;
    min-height: 280px;
    color: var(--text-muted, #6b7280);
    background: var(--bg-body, #f9fafb);
    border-radius: 12px;
    border: 2px dashed var(--border-color, #e5e5e5);
    box-sizing: border-box;
}

.bookly-time-slots-container .bookly-time-slots>div:not(.bookly-time-slot):only-child i {
    font-size: 56px;
    color: var(--primary-color, #8177f4);
    opacity: 0.4;
    margin-bottom: 20px;
}

.bookly-time-slots-container .bookly-time-slots>div:not(.bookly-time-slot):only-child p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    max-width: 220px;
    color: var(--text-muted, #6b7280);
}

/* Calendar Styles */
.picker {
    width: 100%;
}

.picker__frame {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.picker__header {
    background: linear-gradient(135deg, var(--primary-color, #8177f4) 0%, var(--secondary-color, #37acfb) 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.picker__month {
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
}

.picker__year {
    font-size: 16px;
    opacity: 0.9;
}

.picker__nav--prev,
.picker__nav--next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.picker__nav--prev:hover,
.picker__nav--next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.picker__nav--prev::before {
    content: '‹';
    font-size: 24px;
    color: white;
}

.picker__nav--next::before {
    content: '›';
    font-size: 24px;
    color: white;
}

.picker__nav--disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.picker__table {
    width: 100%;
    border-collapse: collapse;
    padding: 15px;
}

.picker__weekday {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
}

.picker__day {
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.picker__day:hover {
    background: var(--bg-hover, #e5e7eb);
}

.picker__day--infocus {
    color: var(--text-main, #111827);
}

.picker__day--outfocus {
    color: var(--text-muted, #9ca3af);
}

.picker__day--disabled {
    color: #ddd;
    cursor: not-allowed;
}

.picker__day--disabled:hover {
    background: transparent;
}

.picker__day--today {
    background: var(--warning-light, #fef3c7);
    color: var(--warning-dark, #d97706);
}

.picker__day--selected {
    background: linear-gradient(135deg, var(--primary-color, #8177f4) 0%, var(--secondary-color, #37acfb) 100%);
    color: white !important;
    font-weight: 600;
}

.picker__day--selected:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

/* Time Slots */
.bookly-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.bookly-time-slot {
    padding: 10px 8px;
    border: 2px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--surface-color, #ffffff);
    min-height: 36px;
    /* más angosto y uniforme */
    position: relative;
}

.bookly-time-slot:focus-visible {
    border-color: var(--primary-color, #8177f4);
    box-shadow: 0 0 0 3px rgba(129, 119, 244, 0.3);
    outline: none;
}

.bookly-time-slot.selected {
    border-color: var(--primary-color, #8177f4);
    background: linear-gradient(135deg, var(--primary-color, #8177f4) 0%, var(--secondary-color, #37acfb) 100%);
    color: white;
}

.bookly-time-main {
    font-size: 14px;
    font-weight: 600;
}

.bookly-time-additional {
    font-size: 12px;
    opacity: 0.8;
}

/* Navigation Buttons */
.bookly-nav-steps {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.bookly-btn {
    padding: 9px 22px;
    /* menos alto */
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bookly-btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #8177f4) 0%, var(--secondary-color, #37acfb) 100%);
    color: white;
}

.bookly-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(129, 119, 244, 0.4);
}

.bookly-btn-secondary {
    background: #f0f0f0;
    color: var(--text-muted, #6b7280);
}

.bookly-btn-secondary:hover {
    background: #e0e0e0;
}

/* Details Step */
.bookly-details-step {
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bookly-input-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
    color: var(--text-main, #333);
}

.bookly-input-field:focus {
    outline: none;
    border-color: var(--primary-color, #8177f4);
    box-shadow: 0 0 0 3px rgba(129, 119, 244, 0.1);
}

.bookly-input-field::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Confirmation Step */
.bookly-confirmation {
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.bookly-success-icon {
    font-size: 64px;
    color: var(--success, #10b981);
    margin-bottom: 20px;
}

.bookly-summary {
    background: var(--bg-body, #f8f9fa);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.bookly-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.bookly-summary-item:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .bookly-calendar-wrapper {
        flex-direction: column;
    }
}

.bookly-time-main {
    font-size: 13px;
    /* reducir tamaño de fuente */
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookly-time-main i {
    font-size: 13px;
    line-height: 1;
}

.bookly-time-additional {
    font-size: 11px;
    /* reducir tamaño de fuente */
    opacity: 0.8;
}

.bookly-time-slot:hover {
    border-color: var(--primary-color, #8177f4);
    background: #f8f9ff;
}

.bookly-time-slot.selected {
    border-color: var(--primary-color, #8177f4);
    background: linear-gradient(135deg, var(--primary-color, #8177f4) 0%, var(--secondary-color, #37acfb) 100%);
    color: white;
}

.bookly-time-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* tiempo a la izquierda */
    font-weight: 600;
    font-size: 14px;
}

.bookly-hour-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    position: relative;
}

.bookly-hour-icon span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.bookly-hour-icon span:before {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 4px;
    background: currentColor;
}

.bookly-time-additional {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

/* Navigation Buttons */
.bookly-nav-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e5e5e5);
}

.bookly-btn {
    padding: 9px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bookly-btn:focus-visible {
    outline: 2px solid rgba(129, 119, 244, 0.9);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(129, 119, 244, 0.35);
}

.bookly-btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #8177f4) 0%, var(--secondary-color, #37acfb) 100%);
    color: white;
}

.bookly-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(129, 119, 244, 0.3);
}

.bookly-btn-secondary {
    background: var(--bg-body, #f8f9fa);
    color: var(--text-muted, #6b7280);
    border: 1px solid var(--border-color, #e5e5e5);
}

.bookly-btn-secondary:hover {
    background: var(--bg-hover, #e5e7eb);
    border-color: var(--border-color-dark, #cbd5e1);
}

.bookly-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Details Step (duplicado, mantenido coherente) */
.bookly-details-step {
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bookly-input-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
    color: var(--text-main, #333);
}

.bookly-input-field:focus {
    outline: none;
    border-color: var(--primary-color, #8177f4);
    box-shadow: 0 0 0 3px rgba(129, 119, 244, 0.1);
}

.bookly-input-field::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Summary */
.bookly-summary {
    background: var(--bg-body, #f8f9fa);
    border: 1px solid rgba(129, 119, 244, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.bookly-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(129, 119, 244, 0.1);
}

.bookly-summary-item:last-child {
    border-bottom: none;
}

/* Confirmation */
.bookly-confirmation {
    text-align: center;
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bookly-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 20px;
}

.bookly-confirmation h2 {
    color: var(--text-main, #111827);
    margin-bottom: 10px;
}

.bookly-confirmation p {
    color: var(--text-muted, #6b7280);
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bookly-form {
        margin: 0 15px;
    }

    .bookly-service-step,
    .bookly-details-step,
    .bookly-confirmation {
        padding: 20px;
    }

    .bookly-progress-tracker>div {
        font-size: 12px;
        padding: 10px 5px;
    }

    .bookly-time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .bookly-nav-steps {
        flex-direction: column;
        gap: 15px;
    }

    .bookly-btn {
        width: 100%;
        justify-content: center;
    }

    .bookly-time-main {
        font-size: 13px;
    }

    .bookly-time-additional {
        font-size: 11px;
    }

    .bookly-waitlist-slot .bookly-time-main {
        font-size: 11.5px;
    }
}

@media (max-width: 480px) {

    .bookly-service-step,
    .bookly-time-step,
    .bookly-details-step,
    .bookly-confirmation {
        padding: 16px;
    }

    .bookly-progress-tracker>div {
        font-size: 11px;
        padding: 8px 4px;
    }

    .bookly-time-slots {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 6px;
    }
}

/* Loading States */
.bookly-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted, #6b7280);
}

.bookly-loading i {
    color: var(--primary-color, #8177f4);
    margin-bottom: 15px;
}

/* Error States */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.alert-danger {
    background: var(--danger-light, #fee2e2);
    border: 1px solid var(--danger, #ef4444);
    color: var(--danger-dark, #dc2626);
}

.alert-success {
    background: var(--success-light, #d1fae5);
    border: 1px solid var(--success, #10b981);
    color: var(--success-dark, #059669);
}

.alert-info {
    background: var(--info-light, #dbeafe);
    border: 1px solid var(--info, #3b82f6);
    color: var(--info-dark, #2563eb);
}

/* ==========================================
   ESTILOS PARA CITAS RECURRENTES Y LISTA DE ESPERA
   ========================================== */

/* Sección de botón repetir */
.bookly-recurring-section {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(129, 119, 244, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(129, 119, 244, 0.2);
}

.bookly-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color, #8177f4);
    color: var(--primary-color, #8177f4);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.bookly-btn-outline:hover {
    background: var(--primary-color, #8177f4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(129, 119, 244, 0.3);
}

/* Slots de lista de espera */
.bookly-waitlist-slot {
    background: var(--warning-light, #fef3c7) !important;
    /* claro */
    border-color: var(--warning, #f59e0b) !important;
    color: var(--text-main, #111827) !important;
    /* texto oscuro */
}

.bookly-waitlist-slot .bookly-time-main {
    font-size: 12px;
    /* más pequeño para que quepa */
    color: var(--text-main, #111827);
}

.bookly-waitlist-slot:hover {
    background: var(--warning-light, #fef3c7) !important;
    color: var(--text-main, #111827);
    border-color: var(--warning-dark, #d97706) !important;
}

.bookly-waitlist-slot .bookly-time-main i {
    color: var(--warning, #f59e0b);
}

.bookly-waitlist-slot:hover .bookly-time-main i {
    color: var(--warning-dark, #d97706);
}

/* Mantener estilo legible cuando está seleccionado un slot de lista de espera */
.bookly-waitlist-slot.selected {
    background: var(--warning-light, #fef3c7) !important;
    color: var(--text-main, #111827) !important;
    border-color: var(--warning-dark, #d97706) !important;
}

/* Modal styles */
.bookly-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bookly-modal-content {
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.bookly-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bookly-modal-header h3 {
    margin: 0;
    color: var(--text-main, #333);
    font-size: 20px;
}

.bookly-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted, #9ca3af);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.bookly-modal-close:hover {
    background: var(--bg-hover, #e5e7eb);
    color: var(--text-main, #333);
}

.bookly-modal-body {
    padding: 25px;
}

.bookly-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color, #e5e5e5);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Formularios en modales */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-main, #374151);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #8177f4);
}

/* Checkbox de recurrencia */
.recurring-checkbox {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-body, #f8f9fa);
    border-radius: 8px;
    border: 1px solid #e0e8ff;
}

.recurring-checkbox label {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

.recurring-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

/* Selector de días de la semana */
.days-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.days-selector label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-body, #f8f9fa);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.days-selector label:hover {
    background: #e9ecef;
}

.days-selector input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

.days-selector input[type="checkbox"]:checked+span {
    font-weight: bold;
}

.days-selector label:has(input:checked) {
    background: var(--primary-color, #8177f4);
    color: white;
    border-color: var(--primary-color, #8177f4);
}

/* Preview de recurrencia */
.recurring-preview {
    margin-top: 15px;
    padding: 15px;
    background: var(--success-light, #d1fae5);
    border: 1px solid var(--success, #10b981);
    border-radius: 6px;
    color: var(--success-dark, #059669);
    font-size: 14px;
}

/* Información de lista de espera */
.waitlist-info {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--warning-light, #fef3c7);
    border-radius: 8px;
    border: 1px solid var(--warning, #f59e0b);
}

.waitlist-info h4 {
    color: #856404;
    margin: 15px 0 10px;
}

.waitlist-info p {
    margin: 5px 0;
    color: #856404;
}

.waitlist-form {
    background: var(--bg-body, #f8f9fa);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e5e5);
}

/* Estados de éxito */
.text-success {
    color: var(--success, #10b981) !important;
}

.text-warning {
    color: var(--warning, #f59e0b) !important;
}

.text-muted {
    color: var(--text-muted, #6b7280) !important;
}

/* Responsive para modales */
@media (max-width: 768px) {
    .bookly-modal-content {
        width: 95%;
        margin: 20px;
    }

    .bookly-modal-header,
    .bookly-modal-body,
    .bookly-modal-footer {
        padding: 15px 20px;
    }

    .days-selector {
        justify-content: center;
    }

    .days-selector label {
        flex: 1;
        min-width: 45px;
        justify-content: center;
    }

    .bookly-modal-footer {
        flex-direction: column;
    }

    .bookly-modal-footer .bookly-btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bookly-modal-content {
    animation: fadeIn 0.3s ease-out;
}

/* Mejoras para slots de tiempo */
.bookly-time-slot {
    position: relative;
    overflow: hidden;
}

.bookly-time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.bookly-time-slot:hover::before {
    left: 100%;
}

/* Indicadores de estado */
.bookly-time-slot.available {
    border-left: 4px solid var(--success, #10b981);
}

.bookly-time-slot.waitlist {
    border-left: 4px solid var(--warning, #f59e0b);
}

.bookly-time-slot.full {
    border-left: 4px solid var(--danger, #ef4444);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tooltips para información adicional */
.bookly-tooltip {
    position: relative;
    cursor: help;
}

.bookly-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800, #1f2937);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.bookly-tooltip:hover::after {
    opacity: 1;
}

/* Días con solo lista de espera */
.picker__day--waitlist-only {
    background: linear-gradient(135deg, var(--warning, #f59e0b) 0%, var(--warning-dark, #d97706) 100%);
    color: white !important;
    position: relative;
}

.picker__day--waitlist-only:hover {
    background: linear-gradient(135deg, var(--warning-dark, #d97706) 0%, var(--warning, #f59e0b) 100%);
}

.picker__day--waitlist-only::after {
    content: "⏰";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    opacity: 0.8;
}

/* Modal unificado para citas recurrentes y lista de espera */
.bookly-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bookly-modal-content {
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.bookly-modal[style*="flex"] .bookly-modal-content {
    transform: scale(1);
}

.bookly-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color, #e5e5e5);
}

.bookly-modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main, #111827);
    margin: 0;
}

.bookly-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.bookly-modal-close:hover {
    background: var(--bg-hover, #e5e7eb);
    color: var(--text-main, #111827);
}

.bookly-modal-body {
    margin-bottom: 20px;
}

.bookly-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e5e5e5);
}

.bookly-modal-footer .bookly-btn {
    min-width: 120px;
}

/* Formularios dentro del modal */
.bookly-modal .form-group {
    margin-bottom: 20px;
}

.bookly-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main, #374151);
}

.bookly-modal .form-group input,
.bookly-modal .form-group select,
.bookly-modal .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--surface-color, #ffffff);
    box-sizing: border-box;
}

.bookly-modal .form-group input:focus,
.bookly-modal .form-group select:focus,
.bookly-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #8177f4);
    box-shadow: 0 0 0 3px rgba(129, 119, 244, 0.1);
}

/* Selector de días de la semana */
.days-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.days-selector label {
    display: flex !important;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    margin-bottom: 0 !important;
}

.days-selector label:hover {
    border-color: var(--primary-color, #8177f4);
    background: var(--bg-hover, #eef2ff);
}

.days-selector input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.days-selector input[type="checkbox"]:checked+span {
    font-weight: 600;
}

.days-selector label:has(input:checked) {
    background: linear-gradient(135deg, var(--primary-color, #8177f4) 0%, var(--secondary-color, #37acfb) 100%);
    color: white;
    border-color: var(--primary-color, #8177f4);
}

/* Preview de recurrencia */
.recurring-preview {
    background: var(--bg-body, #f8f9fa);
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    font-style: italic;
    color: var(--text-muted, #6b7280);
}

/* Info de lista de espera */
.waitlist-info {
    text-align: center;
    margin-bottom: 30px;
}

.waitlist-info i {
    color: var(--warning, #f59e0b);
}

.waitlist-info h4 {
    color: var(--text-main, #111827);
    margin: 15px 0 10px 0;
}

.waitlist-form {
    background: var(--bg-body, #f8f9fa);
    border-radius: 8px;
    padding: 20px;
}

/* Estilos para el paso de revisión de citas recurrentes */
.recurring-appointments-preview {
    background: var(--bg-body, #f8f9fa);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.recurring-appointments-preview h4 {
    color: var(--text-main, #111827);
    margin-bottom: 15px;
    font-size: 18px;
}

.appointment-preview-item {
    background: var(--surface-color, #ffffff);
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appointment-preview-item.unavailable {
    background: #fff5f5;
    border-color: #fed7d7;
}

.appointment-preview-item.unavailable .appointment-date {
    color: var(--danger, #ef4444);
}

.appointment-date {
    font-weight: 600;
    color: var(--text-main, #333);
}

.appointment-time {
    color: var(--text-main, #666);
    font-size: 14px;
}

.appointment-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.appointment-status.available {
    background: var(--success-light, #d1fae5);
    color: var(--success-dark, #059669);
}

.appointment-status.unavailable {
    background: var(--danger-light, #fee2e2);
    color: var(--danger-dark, #dc2626);
}

.capacity-warning {
    background: var(--warning-light, #fef3c7);
    border: 1px solid var(--warning, #f59e0b);
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    color: var(--warning-dark, #d97706);
}

.capacity-warning i {
    margin-right: 8px;
}

/* Botón de editar horarios */
.edit-schedule-btn {
    background: var(--warning, #f59e0b);
    color: #212529;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-schedule-btn:hover {
    background: var(--warning-dark, #d97706);
    transform: translateY(-1px);
}

/*
 Recurring appointments summary styles */
.recurring-appointments-list {
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.recurring-appointment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: var(--bg-body, #f8f9fa);
}

.recurring-appointment-item:last-child {
    border-bottom: none;
}

.recurring-appointment-item .appointment-date {
    font-weight: 500;
    color: var(--text-main, #333);
    flex: 1;
}

.recurring-appointment-item .appointment-time {
    font-weight: 600;
    color: var(--primary-color, #8177f4);
    margin: 0 15px;
}

.recurring-appointment-item .appointment-price {
    font-weight: 600;
    color: var(--success, #10b981);
}

.total-price {
    border-top: 2px solid var(--primary-color, #8177f4);
    padding-top: 15px;
    margin-top: 15px;
}

.total-price .price-amount {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color, #8177f4);
}

/* Change Service Link (when user has preselected a service) */
.bookly-change-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface-color, #f8fafc);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color, #8177f4);
    text-decoration: none;
    transition: all 0.2s ease;
}

.bookly-change-service-link:hover {
    background: var(--primary-light, #f0efff);
    border-color: var(--primary-color, #8177f4);
    color: var(--primary-color, #8177f4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(129, 119, 244, 0.15);
}

.bookly-change-service-link i {
    font-size: 12px;
}