/* Clínica Surquillo — reserva pública (servicio → horario → profesional) */
:root {
    --primary-color: #a56c4e;
    --primary-dark: #8e5b40;
    --primary-light: #d6b8a8;
    --primary-50: #f9efeb;
    --primary-100: #f2d8cf;
    --accent-border: #c48a6a;
    --text-color: #2f2a26;
    --text-muted: #6b6b6b;
    --bg-color: #f4eee8;
    --white: #ffffff;
    --border-radius: 14px;
    --shadow: 0 8px 28px rgba(80, 50, 30, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(165, 108, 78, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(214, 184, 168, 0.35), transparent),
        var(--bg-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    min-height: 100vh;
}

.page-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.booking-header {
    text-align: center;
    margin-bottom: 20px;
}

.booking-logo {
    height: 68px;
    margin-bottom: 6px;
}

.booking-header h1 {
    margin: 4px 0 6px;
    font-size: 1.65rem;
    color: var(--primary-color);
    font-weight: 700;
}

.booking-subtitle {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* ===== Políticas ===== */
.policies-accordion {
    text-align: left;
    border: 1px solid #efe5d0;
    border-radius: 10px;
    background: #fffcf5;
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
}

.policies-accordion__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.policies-accordion__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.policies-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.policies-accordion__title {
    font-size: 0.95rem;
    font-weight: 650;
    color: #4e3121;
}

.policies-accordion__action {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.policies-accordion__preview {
    margin: 0;
    padding: 0 14px 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #7a6a55;
}

.policies-accordion__body {
    border-top: 1px solid #efe5d0;
    padding: 14px 16px 16px;
    background: #fffdf8;
}

.policies-accordion__content {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: left;
}

.policies-accordion.is-open .policies-accordion__toggle {
    background: rgba(165, 108, 78, 0.04);
}

/* ===== Layout 2 columnas ===== */
.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.booking-main {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 28px 28px 32px;
    min-width: 0;
}

.booking-sidebar {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 22px 18px 24px;
    position: sticky;
    top: 16px;
    overflow: visible;
}

.booking-sidebar h3 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
}

.summary-card {
    border: 1.5px solid var(--accent-border);
    background: var(--primary-50);
    border-radius: 12px;
    padding: 16px;
}

/* ===== Vista rápida de profesionales (sidebar) ===== */
.booking-sidebar .pros-quick {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #efe6df;
}

.booking-sidebar .pros-quick__head {
    margin-bottom: 14px;
}

.booking-sidebar .pros-quick__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
}

.booking-sidebar .pros-quick__hint {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.booking-sidebar .pros-carousel-wrap {
    position: relative;
    padding: 4px 38px;
}

.booking-sidebar .pros-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
}

.booking-sidebar .pros-carousel::-webkit-scrollbar {
    display: none;
}

.booking-sidebar .pros-carousel__loading,
.booking-sidebar .pros-carousel__empty {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 18px 0;
}

.booking-sidebar .pros-nav {
    position: absolute;
    top: 36px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border: 1px solid #e6ddd6;
    background: #fff;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0;
    box-shadow: 0 4px 12px rgba(80, 50, 30, 0.1);
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.booking-sidebar .pros-nav--prev { left: 0; }
.booking-sidebar .pros-nav--next { right: 0; }

.booking-sidebar .pros-nav:hover:not(:disabled) {
    background: var(--primary-50);
    border-color: var(--primary-light);
}

.booking-sidebar .pros-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.booking-sidebar button.pros-chip {
    all: unset;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 86px;
    scroll-snap-align: start;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 2px;
    cursor: pointer;
    text-align: center;
    color: inherit;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.booking-sidebar button.pros-chip:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 12px;
}

.booking-sidebar .pros-chip__avatar {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px;
    min-height: 68px;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #f7ebe4, #edd4c7);
    color: var(--primary-color);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    border: 3px solid #fff !important;
    box-shadow:
        0 0 0 1.5px rgba(165, 108, 78, 0.22),
        0 8px 18px rgba(80, 50, 30, 0.12);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.booking-sidebar .pros-chip__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.booking-sidebar .pros-chip__initial {
    line-height: 1;
    user-select: none;
}

.booking-sidebar .pros-chip__name {
    width: 100%;
    max-width: 86px;
    font-size: 0.86rem;
    font-weight: 650;
    color: #4a433e;
    text-align: center;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.booking-sidebar button.pros-chip:hover .pros-chip__avatar {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 0 0 1.5px rgba(165, 108, 78, 0.35),
        0 12px 22px rgba(80, 50, 30, 0.16);
}

.booking-sidebar button.pros-chip.is-selected .pros-chip__avatar {
    border-color: #fff !important;
    box-shadow:
        0 0 0 3px var(--primary-color),
        0 10px 20px rgba(165, 108, 78, 0.28);
}

.booking-sidebar button.pros-chip.is-selected .pros-chip__name {
    color: var(--primary-color);
    font-weight: 750;
}

.booking-sidebar button.pros-chip--any .pros-chip__avatar {
    background: linear-gradient(145deg, #f3eee9, #e7e0d9);
    color: #7a6f66;
    font-size: 1.15rem;
}

.booking-sidebar .pros-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
}

.booking-sidebar .pros-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #d9d0c8;
    cursor: pointer;
}

.booking-sidebar .pros-dots button.is-active {
    background: var(--primary-color);
}

.booking-sidebar .pros-clear {
    display: block;
    margin: 12px auto 0;
    text-align: center;
}

.step-hint--filtered {
    color: var(--primary-color);
    font-weight: 550;
}

.summary-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
}

.summary-service {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #5a3a28;
}

.summary-location {
    margin: 0 0 6px;
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--primary-color);
}

.summary-description {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    border: 1px solid #e8d5c8;
}

.summary-description ul {
    margin: 0;
    padding-left: 1.1em;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-description li {
    font-size: 0.84rem;
    line-height: 1.4;
    color: #5c5048;
}

.summary-description__label {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #8d6e63;
}

.summary-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: #4a4038;
}

.summary-meta i {
    width: 18px;
    color: var(--primary-color);
    text-align: center;
}

.summary-body .btn-text {
    margin-top: 8px;
    display: block;
}

.summary-body .btn-text + .btn-text {
    margin-top: 4px;
}

/* ===== Stepper ===== */
.steps-progress {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0e6dc;
}

.step-indicator {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 0 2px;
    cursor: default;
    color: #999;
}

.step-indicator.reachable:not(:disabled) {
    cursor: pointer;
}

.step-indicator .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
}

.step-indicator .step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #999;
    text-align: center;
    line-height: 1.2;
}

.step-indicator.active .step-num,
.step-indicator.current .step-num,
.step-indicator.done .step-num {
    background: var(--primary-color);
    color: #fff;
}

.step-indicator.current .step-num {
    box-shadow: 0 0 0 3px rgba(165, 108, 78, 0.25);
}

.step-indicator.current .step-label,
.step-indicator.active .step-label {
    color: var(--primary-color);
}

.step-indicator.current .step-label {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

.step-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: var(--text-color);
    text-align: left;
}

.step-hint {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.step-toolbar {
    margin-bottom: 8px;
}

/* ===== Catálogo acordeón ===== */
.catalog-loading,
.catalog-empty,
.slots-placeholder {
    text-align: center;
    color: #888;
    padding: 28px 12px;
}

.catalog-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-item {
    border-radius: 12px;
    background: #f3f1ef;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.cat-item.is-open {
    background: #f7f5f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.cat-item__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.cat-item__title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #3d3a45;
}

.cat-item__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cat-item__body {
    padding: 0 14px 16px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-card {
    background: #fff;
    border: 1.5px solid var(--accent-border);
    border-radius: 12px;
    padding: 16px 16px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(165, 108, 78, 0.12);
}

.service-card.is-selected {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.service-card__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
}

.service-card__duration {
    margin: 0;
    font-size: 0.85rem;
    color: #9a9a9a;
}

.service-card__price {
    margin: 4px 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
}

.service-card__desc {
    margin: 0 0 10px;
    padding: 8px 10px;
    background: #faf6f2;
    border: 1px solid #ebe1d5;
    border-radius: 8px;
}

.service-card__desc-label {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #8d6e63;
    letter-spacing: 0.02em;
}

.service-card__desc ul {
    margin: 0;
    padding-left: 1.05em;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.service-card__desc li {
    font-size: 0.82rem;
    line-height: 1.35;
    color: #5c5048;
}

.btn-book {
    margin-top: auto;
    align-self: flex-end;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-book:hover {
    background: var(--primary-dark);
}

/* ===== Fechas / slots ===== */
.month-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.month-tab {
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 650;
    color: #aaa;
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.month-tab.is-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.date-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.carousel-nav {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5ddd4;
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
}

.carousel-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.date-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    padding: 4px 2px;
    scrollbar-width: none;
}

.date-carousel::-webkit-scrollbar {
    display: none;
}

.date-pill {
    flex: 1;
    min-width: 56px;
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 10px 8px;
    cursor: pointer;
    font: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-color);
}

.date-pill__day {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
}

.date-pill__num {
    font-size: 1.05rem;
    font-weight: 700;
}

.date-pill.is-muted {
    color: #ccc;
}

.date-pill.is-muted .date-pill__day {
    color: #ccc;
}

.date-pill.is-selected {
    background: var(--primary-color);
    color: #fff;
}

.date-pill.is-selected .date-pill__day {
    color: rgba(255, 255, 255, 0.85);
}

.slots-panel {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 8px;
}

.slot-group {
    margin-bottom: 16px;
}

.slot-group__title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #555;
}

.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slot {
    background: #fff;
    color: var(--text-color);
    border: 1.5px solid var(--accent-border);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    transition: 0.15s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 92px;
}

.time-slot__hour {
    line-height: 1.2;
}

.time-slot__meta {
    font-size: 0.68rem;
    font-weight: 550;
    color: #8a7a6c;
    line-height: 1.2;
}

.time-slot.selected .time-slot__meta {
    color: rgba(255, 255, 255, 0.85);
}

.time-slot:hover {
    background: var(--primary-50);
}

.time-slot.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.slots-urgency {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #f3f1ef;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #6a5a4a;
}

.slots-urgency i {
    color: #c9a227;
}

.calendar-notice {
    padding: 24px 16px;
    text-align: center;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
}

.calendar-notice h3 {
    margin-top: 0;
    color: #856404;
}

/* ===== Profesionales ===== */
.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.doctor-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    border: 1.5px solid #eee;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font: inherit;
    transition: 0.15s;
}

.doctor-option:hover {
    border-color: var(--primary-light);
}

.doctor-option.is-selected {
    border-color: var(--primary-color);
    background: var(--primary-50);
}

.doctor-option__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.doctor-option__avatar--auto {
    background: var(--primary-color);
    color: #fff;
}

.doctor-option__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.doctor-option__info strong {
    color: var(--text-color);
}

.doctor-option__info small {
    color: var(--text-muted);
}

/* ===== Forms / buttons ===== */
.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 550;
    font-size: 0.92rem;
    color: #4a4a4a;
}

select,
input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border 0.2s, box-shadow 0.2s;
    background: #fff;
}

select:focus,
input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 108, 78, 0.15);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    transition: background 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-ghost {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    padding: 4px 0;
}

.btn-text {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 650;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Location */
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.location-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    background: #fff;
    border: 1.5px solid var(--accent-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font: inherit;
    color: inherit;
}

.location-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(165, 108, 78, 0.12);
}

.location-card.is-selected {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.location-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #faf6f2;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.location-card__name {
    font-size: 1rem;
    color: var(--text-color);
}

.location-card__address,
.location-card__phone,
.location-card__desc {
    color: #7a6e64;
    font-size: 0.84rem;
    line-height: 1.35;
}

.location-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.location-card__phone i {
    margin-right: 4px;
    color: var(--primary-color);
}

.location-card__cta {
    align-self: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 650;
    white-space: nowrap;
}

.location-section {
    margin-top: 28px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
}

.location-section h3 {
    margin: 0 0 8px;
    color: #333;
}

.location-address {
    color: #666;
    margin-bottom: 14px;
}

.location-address i {
    color: var(--primary-color);
}

.location-map {
    width: 100%;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.success-section {
    text-align: center;
    padding: 28px 0 8px;
}

.success-icon {
    font-size: 50px;
    margin-bottom: 12px;
}

.success-section > h2 {
    color: var(--primary-color);
    margin: 0 0 8px;
}

.success-section > p {
    margin: 0 0 6px;
    color: #555;
}

.success-deposit {
    margin: 22px auto 16px;
    max-width: 440px;
    text-align: left;
    background: #f3faf5;
    border: 1.5px solid #b7dfc4;
    border-radius: 12px;
    padding: 18px 16px 16px;
}

.success-deposit__title {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #1f6b3a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-deposit__title i {
    font-size: 1.2rem;
    color: #25d366;
}

.success-deposit__text {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #3d4a42;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #25d366;
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.98rem;
    transition: background 0.15s, transform 0.15s;
}

.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-1px);
}

.btn-whatsapp i {
    font-size: 1.25rem;
}

.pay-choice[hidden],
.pay-qr[hidden],
.pay-choice__qr[hidden],
.pay-qr img[hidden],
.pay-qr__missing[hidden] {
    display: none !important;
}

.pay-choice {
    border: 1.5px solid #eadfce;
    border-radius: 12px;
    margin: 8px 0 16px;
    padding: 12px 14px 8px;
}

.pay-choice legend {
    font-weight: 700;
    padding: 0 6px;
}

.pay-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-weight: 700;
    cursor: pointer;
}

.pay-toggle input {
    width: 18px;
    height: 18px;
}

.pay-choice__box {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eadfce;
}

.pay-choice__hint {
    margin: 0 0 10px;
    color: #5c534c;
    font-size: 0.88rem;
}

.pay-choice__qr {
    display: block;
    width: min(100%, 180px);
    height: auto;
    margin: 0 0 12px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

.pay-choice__file {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
}

.pay-choice__file input {
    display: block;
    margin-top: 6px;
    font-weight: 500;
}

.pay-choice__opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 8px 0;
    font-weight: 700;
}

.pay-qr {
    margin: 22px auto 16px;
    max-width: 440px;
    text-align: center;
    background: #fffaf6;
    border: 1.5px solid #eadfce;
    border-radius: 14px;
    padding: 18px 16px 16px;
}

.pay-qr__kicker {
    margin: 0 0 6px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a5638;
    font-weight: 700;
}

.pay-qr h3 {
    margin: 0 0 4px;
}

.pay-qr__amount {
    margin: 0 0 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #4e3121;
}

.pay-qr img {
    width: min(100%, 260px);
    height: auto;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
}

.pay-qr__missing,
.pay-qr__note {
    margin: 10px 0 0;
    color: #5c534c;
    font-size: 0.9rem;
    line-height: 1.45;
}

.pay-qr__help {
    display: inline-block;
    margin-top: 12px;
    color: #1f6b3a;
    font-weight: 700;
    font-size: 0.88rem;
}

.btn-secondary-block {
    display: block;
    width: 100%;
    max-width: 440px;
    margin: 8px auto 0;
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-light);
    padding: 12px 20px;
    border-radius: 10px;
    font: inherit;
    font-weight: 650;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-secondary-block:hover {
    background: var(--primary-50);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 36px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 8px;
}

.modal-content p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.45;
}

.modal-link {
    display: block;
    margin-top: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.modal-overlay.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .booking-sidebar {
        position: static;
        order: -1;
    }

    .summary-card {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 16px 12px 36px;
    }

    .booking-main {
        padding: 18px 16px 24px;
    }

    .service-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        flex-wrap: wrap;
    }

    .location-card__cta {
        width: 100%;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .step-indicator .step-label {
        font-size: 0.65rem;
    }

    .date-pill {
        min-width: 52px;
    }
}

/* —— Nav superior landing reserva —— */
.booking-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ebe1d5;
}

.booking-nav__inner {
  width: min(100% - 1.5rem, 1100px);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.booking-nav__brand img {
  width: 140px;
  height: auto;
  display: block;
}

.booking-nav__links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: #4a4038;
}

.booking-nav__links a {
  position: relative;
  padding: 0.2rem 0;
  text-decoration: none;
  color: inherit;
}

.booking-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.booking-nav__links a:hover::after,
.booking-nav__links a.is-active::after {
  transform: scaleX(1);
}

.booking-nav__links a.is-active {
  color: var(--primary-color);
  font-weight: 700;
}

.booking-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-staff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #7f523e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(127, 82, 62, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-staff:hover {
  background: #7a4934;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(122, 73, 52, 0.35);
}

.btn-staff i {
  font-size: 0.85rem;
  opacity: 1;
}

.btn-wa-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.28);
}

.btn-wa-mini i { font-size: 1.05rem; }

.booking-nav__menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 9px;
  cursor: pointer;
}

.booking-nav__menu span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #4a4038;
  transition: 0.25s ease;
}

.booking-nav__menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.booking-nav__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.booking-nav__menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.booking-nav__mobile {
  display: none;
  border-top: 1px solid #ebe1d5;
  background: #fff;
  padding: 0.35rem 0 1rem;
}

.booking-nav__mobile:not([hidden]) {
  display: block;
}

.booking-nav__mobile a {
  display: block;
  width: min(100% - 1.5rem, 1100px);
  margin: 0 auto;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0e6dc;
  color: #4a4038;
  text-decoration: none;
  font-weight: 550;
}

.booking-nav__mobile a.is-active {
  color: var(--primary-color);
  font-weight: 700;
}

.booking-page .page-shell {
  padding-top: 20px;
}

.booking-page .booking-logo {
  display: none;
}

@media (max-width: 900px) {
  .booking-nav__links { display: none; }
  .booking-nav__menu { display: inline-block; }
}

/* —— Mejoras Django landing —— */
.booking-page {
  position: relative;
}

.booking-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.booking-header h1 {
  font-family: 'Mansory', 'DM Sans', serif;
}

.service-card,
.location-card,
.doctor-option,
.time-slot,
.date-pill {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cat-item__body {
  animation: bookingFade 0.28s ease;
}

@keyframes bookingFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
