.mc-page {
    padding: 1rem;
    padding-bottom: 5rem;
}

.mc-header {
    margin-bottom: 1.25rem;
}

.mc-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1f2937;
}

.mc-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

.mc-tabs {
    display: flex;
    gap: 0.5rem;
    background: #f3f4f6;
    border-radius: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 1rem;
}

.mc-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mc-tab-active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mc-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.mc-btn-programar {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.mc-btn-programar:hover {
    background: #b91c1c;
}

.mc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mc-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.9rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mc-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.mc-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.mc-stat-red { color: #dc2626; }
.mc-stat-orange { color: #f59e0b; }
.mc-stat-blue { color: #3b82f6; }
.mc-stat-gray { color: #6b7280; }

.mc-empty {
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-top: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mc-empty-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #9ca3af;
    font-size: 1.5rem;
}

.mc-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.mc-empty-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.mc-empty.mc-empty-historial {
    padding: 2.5rem 1.25rem;
}

.mc-empty-historial .mc-empty-text {
    margin-bottom: 1.25rem;
}

.mc-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    background: #f9fafb;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mc-empty-action:hover {
    background: #f3f4f6;
}

.mc-alert-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mc-alert-icon {
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.mc-alert-danger { border-left: 4px solid #dc2626; }
.mc-alert-danger .mc-alert-icon { color: #dc2626; }

.mc-alert-warning { border-left: 4px solid #f59e0b; }
.mc-alert-warning .mc-alert-icon { color: #f59e0b; }

.mc-alert-info { border-left: 4px solid #3b82f6; }
.mc-alert-info .mc-alert-icon { color: #3b82f6; }

.mc-alert-success { border-left: 4px solid #10b981; }
.mc-alert-success .mc-alert-icon { color: #10b981; }

.mc-alert-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.2rem;
}

.mc-alert-detail {
    font-size: 0.85rem;
    color: #6b7280;
}

.mc-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.25rem 0 0.75rem;
}

.mc-cita-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mc-cita-card:hover {
    background: #f9fafb;
}

.mc-historial-card {
    padding: 1.15rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mc-cita-arrow {
    color: #9ca3af;
    font-size: 1.1rem;
}

.mc-cita-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.35rem;
}

.mc-cita-date {
    font-size: 0.85rem;
    color: #6b7280;
}

.mc-cita-notes {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.mc-cita-info {
    flex: 1;
}

.mc-cita-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.mc-cita-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #f3f4f6;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mc-cita-btn:hover {
    background: #e5e7eb;
}

.mc-cita-btn i {
    font-size: 1rem;
}

.mc-cita-btn-cancel {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fee2e2;
}

.mc-cita-btn-cancel:hover {
    background: #fecaca;
}

.mc-alert-error {
    position: fixed;
    bottom: 5rem;
    left: 1rem;
    right: 1rem;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    z-index: 100;
}

.mc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 200;
}

.mc-modal {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 24rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mc-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem;
}

.mc-modal-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
    margin: 0 0 1.25rem;
}

.mc-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
