/* ==========================================
   BOOKING PÚBLICO - MODERN SAAS STYLE
   Diseño premium con animaciones y micro-interacciones
   ========================================== */

:root {
    --primary: #4ECDC4;
    --primary-dark: #2E8B7D;
    --primary-light: #E6FFFA;
    --primary-fade: rgba(78, 205, 196, 0.15);
    --primary-glow: rgba(78, 205, 196, 0.4);
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #A0AEC0;
    --text-disabled: #CBD5E0;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7FAFC;
    --bg-tertiary: #EDF2F7;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px var(--primary-glow);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 50%, #80DEEA 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 15px;
}

/* ==========================================
   CONTAINER PRINCIPAL
   ========================================== */

.booking-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   HEADER - Modern SaaS Style
   ========================================== */

.booking-header {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.booking-header .header-content {
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 12px;
}

.clinic-logo {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.clinic-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.clinic-logo svg {
    color: white;
}

.clinic-info h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.header-divider {
    width: 1px;
    height: 22px;
    background: var(--border-light);
    flex-shrink: 0;
}

.clinic-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.clinic-location svg {
    color: var(--primary);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.booking-main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* ==========================================
   PROGRESS STEPS - Modern SaaS Style con Pulse
   ========================================== */

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
    z-index: 1;
}

/* Pulse animation para step activo */
.step.active .step-number {
    background: var(--primary);
    color: white;
    box-shadow:
        0 0 0 0 var(--primary-glow),
        0 4px 12px rgba(78, 205, 196, 0.4);
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow:
            0 0 0 0 var(--primary-glow),
            0 4px 12px rgba(78, 205, 196, 0.4);
    }
    70% {
        box-shadow:
            0 0 0 12px rgba(78, 205, 196, 0),
            0 4px 16px rgba(78, 205, 196, 0.5);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(78, 205, 196, 0),
            0 4px 12px rgba(78, 205, 196, 0.4);
    }
}

.step.completed .step-number {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 14px;
}

.step-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
    transform: scale(1.05);
}

.step-line {
    width: 40px;
    height: 3px;
    background: var(--border-light);
    transition: var(--transition);
    margin-top: -18px;
    border-radius: 2px;
}

.step.completed + .step-line,
.step.active + .step-line {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

/* ==========================================
   FORM CONTAINER
   ========================================== */

.booking-form-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ==========================================
   FORM STEPS
   ========================================== */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.step-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==========================================
   TREATMENTS GRID - Modern SaaS Style
   ========================================== */

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.treatment-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.treatment-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
}

.treatment-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(78, 205, 196, 0.1) 100%);
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.treatment-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.treatment-info {
    flex: 1;
}

.treatment-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.treatment-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.treatment-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.treatment-duration {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.treatment-duration::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.treatment-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.treatment-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.treatment-card.selected .treatment-check {
    background: var(--primary);
    transform: scale(1.1);
}

.treatment-check svg {
    width: 12px;
    height: 12px;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.treatment-card.selected .treatment-check svg {
    opacity: 1;
}

/* ==========================================
   STEP HEADER ROW (Step 2 layout)
   ========================================== */

.step-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    min-height: 32px;
}

.step-header-row .step-title {
    margin-bottom: 0;
}

/* ==========================================
   DOCTOR SELECT DROPDOWN (Modern Style)
   ========================================== */

.doctor-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.doctor-select-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.doctor-select-dropdown {
    padding: 8px 36px 8px 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    min-width: 200px;
    max-width: 300px;
    height: 38px;
    /* Evitar layout shift del dropdown nativo */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

.doctor-select-dropdown:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.doctor-select-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-fade);
}

/* ==========================================
   FILTERS ROW (Sede + Profesional)
   ========================================== */

.filters-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.booking-select {
    padding: 8px 36px 8px 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    min-width: 180px;
    height: 38px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

.booking-select:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.booking-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-fade);
}

/* Ocultar flecha nativa en IE */
.doctor-select-dropdown::-ms-expand {
    display: none;
}

/* ==========================================
   EMPTY STATE - Modern Style
   ========================================== */

.empty-state {
    text-align: center;
    padding: 50px 24px;
    color: var(--text-secondary);
}

.empty-state svg {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 8px;
}

/* ==========================================
   DATE/TIME CONTAINER - Modern Style
   ========================================== */

.datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ==========================================
   CALENDAR - Modern Style
   ========================================== */

.calendar-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.calendar-nav {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.calendar-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.calendar-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    gap: 3px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 6px;
}

.calendar-weekdays > div {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-primary);
}

.calendar-day {
    border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled) {
    background: var(--primary-light);
    border-color: var(--primary);
}

.calendar-day.selected {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
    font-weight: 700;
}

.calendar-day.today {
    border: 2px solid var(--primary);
    font-weight: 700;
}

.calendar-day.disabled {
    color: var(--text-disabled);
    cursor: not-allowed;
    opacity: 0.4;
}

.calendar-day.other-month {
    color: var(--text-muted);
    font-size: 11px;
}

/* ==========================================
   SLOTS CONTAINER - Modern Style
   ========================================== */

.slots-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.slots-container h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 12px 8px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.time-slot.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
    font-weight: 600;
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

/* ==========================================
   PATIENT FORM - Modern Style
   ========================================== */

.patient-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.form-input,
.form-textarea {
    padding: 13px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-fade);
    background: rgba(255, 255, 255, 0.95);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================
   SUMMARY - Modern Style
   ========================================== */

.summary-container {
    margin-bottom: 24px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.summary-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.summary-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
    text-align: right;
}

.summary-item.hidden {
    display: none;
}

.summary-total {
    background: var(--primary);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 10px;
}

.summary-total .summary-label {
    color: rgba(255, 255, 255, 0.9);
}

.summary-total .summary-value {
    font-size: 18px;
    color: white;
}

/* ==========================================
   BUTTONS - Modern SaaS Style
   ========================================== */

.form-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.btn-next,
.btn-submit {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(78, 205, 196, 0.35);
    letter-spacing: 0.3px;
}

.btn-next:hover:not(:disabled),
.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a6860 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.45);
}

.btn-next:active:not(:disabled),
.btn-submit:active {
    transform: translateY(-1px);
}

.btn-next:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--border-medium);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Botón Continuar en Step 1 */
.form-step[data-step="1"] > div[style*="text-align"] {
    text-align: center !important;
    margin-top: 20px;
}

/* ==========================================
   LOADING OVERLAY - Modern Style
   ========================================== */

.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-weight: 600;
    font-size: 15px;
}

/* ==========================================
   TOAST NOTIFICATION - Modern Style
   ========================================== */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 22px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    transform: translateX(calc(100% + 20px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    max-width: 360px;
    font-size: 14px;
    border-left: 4px solid var(--primary);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #10B981;
}

.toast.error {
    border-left-color: #EF4444;
}

/* ==========================================
   SUCCESS STATE - Modern Style
   ========================================== */

.success-container {
    text-align: center;
    padding: 50px 24px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.success-icon svg {
    color: white;
    width: 40px;
    height: 40px;
}

.success-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.success-message {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==========================================
   FOOTER - Modern Style
   ========================================== */

.booking-footer {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.booking-footer p {
    margin: 0;
}

/* ==========================================
   RESPONSIVE - Modern Style
   ========================================== */

/* Tablets: 2 columnas */
@media (max-width: 1024px) {
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles: 1 columna */
@media (max-width: 640px) {
    .booking-main {
        padding: 16px 14px 28px;
    }

    .booking-form-container {
        padding: 24px 20px;
    }

    .booking-header {
        padding: 10px 14px;
    }

    .header-content {
        gap: 8px;
    }

    .clinic-logo {
        width: 32px;
        height: 32px;
    }

    .clinic-info h1 {
        font-size: 13px;
    }

    .header-divider {
        height: 16px;
    }

    .clinic-location {
        font-size: 10px;
    }

    .clinic-location svg {
        width: 11px;
        height: 11px;
    }

    .progress-steps {
        gap: 4px;
        padding: 12px 16px;
        margin-bottom: 20px;
    }

    .step-label {
        font-size: 9px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .step-line {
        width: 28px;
        margin-top: -14px;
    }

    .datetime-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .treatments-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .treatment-card {
        padding: 16px 18px;
    }

    .treatment-info h4 {
        font-size: 14px;
    }

    .treatment-price {
        font-size: 17px;
    }

    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .btn-next,
    .btn-submit,
    .btn-secondary {
        width: 100%;
        padding: 12px 20px;
    }

    .step-title {
        font-size: 18px;
    }

    .step-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        min-height: auto;
    }

    .doctor-select-wrapper {
        width: 100%;
    }

    .doctor-select-dropdown {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    /* Colores más visibles para selección en móvil */
    .calendar-day.selected {
        background: #3db8b0;
        color: #2c3e50;
        border: 2px solid #2d9a93;
        font-weight: 700;
    }

    .time-slot.selected {
        background: #3db8b0;
        border-color: #2d9a93;
        color: #2c3e50;
        font-weight: 600;
    }
}
